.featured-cards {
  position: relative;
  width: 100%;
  height: 100svh;
  padding: 0.75rem;
  overflow: hidden;
  background-color: var(--base-200);
}

.featured-cards > .container {
  position: relative;
  width: 100%;
  height: 100%;
}

.featured-cards-wrapper {
  display: flex;
  gap: 3rem;
  width: 80%;
  height: 100%;
  margin: 0 auto;
}

.featured-cards-header {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: 0.75rem;
  height: 100%;
  color: var(--base-500);
}

.featured-cards-header h2 {
  font-size: clamp(3rem, 6vw, 6rem);
  width: 80%;
  margin: 1.5rem 0 3rem 0;
}

.featured-cards-container {
  position: relative;
  flex: 1;
  height: 100%;
}

.featured-card {
  position: absolute;
  top: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: var(--base-100);
  transform: translateY(200%);
  will-change: transform;
}

.featured-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-color: var(--base-200);
  opacity: var(--overlay-opacity, 0);
  pointer-events: none;
  will-change: opacity;
  z-index: 1;
}

.featured-card-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
}

.featured-card-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    360deg,
    rgba(15, 15, 15, 1) 0%,
    rgba(15, 15, 15, 0) 100%
  );
}

.featured-card-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  text-align: center;
  color: var(--base-300);
}

.featured-card-content .dsp.subheader {
  font-size: clamp(1rem, 2vw, 3rem);
  margin-bottom: 0.1875rem;
}

.featured-card-content h3 {
  font-size: clamp(1.5rem, 5vw, 4rem);
}

@media (max-width: 1000px) {
  .featured-cards {
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .featured-cards-wrapper {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    height: auto;
  }

  .featured-cards-header {
    height: auto;
    padding: 6rem 0 3rem 0;
  }

  .featured-cards-header h2 {
    width: 100%;
  }

  .featured-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: auto;
  }

  .featured-card {
    position: relative;
    top: auto;
    transform: none;
    will-change: auto;
  }

  .featured-card-content .dsp.subheader {
    font-size: clamp(1.5rem, 3vw, 4rem);
    margin-bottom: 0.1875rem;
  }

  .featured-card-content h3 {
    font-size: clamp(3rem, 5vw, 5rem);
  }
}
