/* Container */
.expanding-cards-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;

}

/* Flex row */
.expanding-cards {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 1100px;
}

/* Each card */
.expanding-card {
  position: relative;
  flex: 1;
  min-height: 320px;
  border-radius: 1.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.45s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.8);
}

/* Background image */
.expanding-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  transition: filter 0.35s ease, transform 0.35s ease;
}

/* Gradient overlay */
.expanding-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.05));
}

/* Content */
.expanding-card__content {
  position: absolute;
  inset: 0;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f9fafb;
  z-index: 1;
}

.expanding-card__title {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.expanding-card__subtitle {
  font-size: 0.85rem;
  color: #e5e7eb;
}

/* Default (not active) */
.expanding-card:not(.is-active) .expanding-card__title {
  font-size: 1.1rem;
}

/* Hover / active state */
.expanding-card.is-active {
  flex: 3;
  transform: translateY(-6px);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.9);
}

.expanding-card.is-active .expanding-card__bg {
  filter: brightness(0.95);
  transform: scale(1.05);
}

/* Make first card active by default on larger screens */
@media (min-width: 768px) {
  .expanding-card:first-child {
    flex: 2;
  }
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
  .expanding-cards {
    flex-direction: column;
  }

  .expanding-card {
    flex: 1;
    min-height: 220px;
  }

  .expanding-card.is-active {
    transform: translateY(-2px);
  }
}
