/* ================================
   PAGE WRAPPER
================================ */
.student-stories-page {
  background-color: var(--light--off-white, #f7f7f7);
}

/* ================================
   STUDENT STORIES HERO
================================ */
.student-stories-hero {
  margin-top: -64px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
    url("/assets/images/about/Centre-GLS-de-langue-Allemande.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--light--off-white);
  padding-top: 6rem;
  padding-bottom: 5rem;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
}

.student-stories-hero-inner {
  max-width: 720px;
}

/* Badge */
.student-stories-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

/* Title */
.student-stories-hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* Subtitle */
.student-stories-hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: 36rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* Meta */
.student-stories-hero-meta {
  font-size: 0.95rem;
  opacity: 0.95;
  color: #ffffff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* ================================
   STUDENT STORY CARDS
================================ */
.student-stories-card {
  background-color: #ffffff;
  border-radius: var(--radius-mid, 18px);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  height: 100%;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.student-stories-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.student-stories-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.student-stories-body {
  padding: 1.2rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.student-stories-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text, #1f2937);
}

.student-stories-path {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.student-stories-badge {
  display: inline-block;
  font-size: 0.85rem;
  background-color: black;
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  width: fit-content;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(7, 82, 197, 0.15);
}

/* ================================
   RESPONSIVE FIXES
================================ */
@media screen and (max-width: 767px) {
  .student-stories-hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    background-position: center top;
  }

  .student-stories-hero-title {
    font-size: 2.2rem;
  }

  .student-stories-hero-subtitle {
    font-size: 1rem;
  }

  .student-stories-card {
    text-align: center;
  }

  .student-stories-body {
    align-items: center;
  }
}

.h-section-subtitle {
  color: black !important;
}

/* ==========================
   IMAGE HOVER EFFECT
========================== */
.student-stories-image-wrapper {
  position: relative;
  overflow: hidden;
}

.student-stories-image {
  transition: transform 0.6s ease, filter 0.6s ease;
}

/* Hover zoom */
.student-stories-card:hover .student-stories-image {
  transform: scale(1.12);
  filter: brightness(0.85);
}

/* Optional soft overlay on hover */
.student-stories-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.4s ease;
}

.student-stories-card:hover .student-stories-image-wrapper::after {
  background: rgba(0, 0, 0, 0.25);
}
@media screen and (max-width: 479px) {
    .section {
        padding: 6rem 2rem !important;
    }
}