@import url('https://fonts.googleapis.com/css2?family=Inclusive+Sans:wght@400;700&family=Inter:wght@600&display=swap');
.fs-testimonials-section { --font-body: 'Roboto', sans-serif; font-family: var(--font-body); line-height: normal; color: #08070a; -webkit-font-smoothing: antialiased; }
.fs-testimonials-section :is(p,h2,h3,figure) { margin: 0; }
.fs-testimonials-section button { color: inherit; }
.fs-stories-heading { text-align: center; }
.fs-stories-heading h2 { font-family: 'Inclusive Sans', 'Roboto', sans-serif; font-weight: 700; letter-spacing: -.025em; }
.fs-stories-heading > p { font-family: 'Inclusive Sans', 'Roboto', sans-serif; }
.fs-stories-heading > p:last-child { color: rgba(0,0,0,.58); line-height: 1.55; }
.fs-eyebrow { font-size: .9rem; font-weight: 700; letter-spacing: -.01em; }
.fs-accent-text { color: #f26233; }
.fs-stories-counselling { display: inline-flex; min-height: 56px; align-items: center; justify-content: center; gap: 14px; padding: 13px 28px; border-radius: 10px; font: 600 16px/1.2 'Inter', sans-serif; background: #08070a; color: #fff !important; box-shadow: 0 4px 4px #0004; }
.fs-stories-counselling .button-arrow { font-size: 30px; line-height: 1; }
.fs-stories-counselling:focus-visible { outline: 3px solid #664095; outline-offset: 3px; }
/* Existing student portraits and copy, presented as a featured story and story list. */
.fs-testimonials-section { padding: clamp(44px, 5vw, 76px) 0; background: #faf7ff; }
.fs-stories-shell { width: min(calc(100% - 64px), 1120px); margin-inline: auto; }
.fs-stories-heading { max-width: 1000px; margin-inline: auto; }
.fs-stories-heading .fs-eyebrow { margin-bottom: 10px; color: #664095; }
.fs-stories-heading h2 { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.18; }
.fs-stories-heading > p:last-child { font-size: clamp(16px, 1.5vw, 21px); margin-top: 18px; }
.fs-stories-layout { display: grid; grid-template-columns: minmax(0, 424px) minmax(0, 492px); justify-content: space-between; align-items: center; gap: clamp(40px, 7vw, 160px); margin-top: 36px; }
.fs-story-feature { overflow: hidden; border-radius: 20px; background: #e9e7eb; box-shadow: 0 2px 5px #0002; }
.fs-story-feature-play { display: block; position: relative; width: 100%; padding: 0; aspect-ratio: 424 / 600; background: #ece2f8; overflow: hidden; }
.fs-story-feature-image { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.fs-story-play-icon { position: absolute; left: 50%; top: 57%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: white; box-shadow: 0 3px 10px #0002; transition: scale 160ms ease; }
.fs-story-play-icon::after { content: ''; width: 0; height: 0; margin-left: 6px; border-top: 15px solid transparent; border-bottom: 15px solid transparent; border-left: 25px solid #664095; }
.fs-story-feature-play:hover .fs-story-play-icon { scale: 1.06; }
.fs-story-feature-play:focus-visible { outline: 3px solid #f26233; outline-offset: -4px; }
.fs-story-feature figcaption { position: relative; padding: 18px 28px 18px 48px; min-height: 86px; display: grid; gap: 4px; font-size: 16px; }
.fs-story-feature figcaption::before { content: ''; position: absolute; width: 4px; top: 18px; bottom: 18px; left: 28px; background: #ff6033; }
.fs-story-feature figcaption strong { font-size: 23px; }
.fs-stories-side { min-width: 0; }
.fs-stories-list-panel { padding: 30px; background: white; border: 1px solid #e3dfe8; border-radius: 16px; box-shadow: 0 1px 4px #0002; }
.fs-stories-list-panel h3 { font: 600 24px/1.3 var(--font-body); }
.fs-stories-list-panel h3::after { display: block; content: ''; width: 49px; height: 3px; margin-top: 9px; background: #ff6033; }
.fs-stories-list { margin-top: 10px; }
.fs-story-choice { width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) 34px; align-items: center; gap: 18px; padding: 24px 8px; background: transparent; text-align: left; border-bottom: 1px solid #e1e1e1; }
.fs-story-choice:last-child { border-bottom: 0; padding-bottom: 12px; }
.fs-story-choice > img { width: 56px; height: 56px; object-fit: cover; object-position: center 20%; border-radius: 50%; }
.fs-story-choice-copy { display: grid; gap: 3px; }
.fs-story-choice-copy strong { font-size: 19px; line-height: 1.2; }
.fs-story-choice-copy small { color: #77717e; font-size: 12px; }
.fs-story-watch { margin-top: 5px; font-size: 13px; font-weight: 600; color: #664095; }
.fs-story-choice-arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d8d5dc; border-radius: 50%; font-size: 23px; }
.fs-story-choice:hover, .fs-story-choice[aria-pressed='true'] { background: #faf7ff; }
.fs-story-choice:focus-visible { outline: 2px solid #664095; outline-offset: -2px; }
.fs-stories-counselling { width: 100%; min-width: 0; margin-top: 24px; }
.fs-story-dialog { width: min(360px, calc(100vw - 32px), calc((100dvh - 48px) * 9 / 16)); max-width: none; max-height: none; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 17px; background: #171020; color: white; overflow: hidden; box-shadow: 0 20px 80px #0005; }
.fs-story-dialog::backdrop { background: #271b3b99; backdrop-filter: blur(6px); }
body:has(.fs-story-dialog[open]) { overflow: hidden; }
.fs-story-dialog-close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: #0009; color: white; font: 26px/1 Arial, sans-serif; }
.fs-story-player, .fs-story-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.fs-story-unavailable { display: grid; align-content: center; gap: 16px; height: 100%; padding: 30px; text-align: center; line-height: 1.5; }
.fs-story-unavailable img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin-inline: auto; }
@media (max-width: 900px) {
  .fs-stories-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 28px; }
  .fs-stories-list-panel { padding: 22px 16px; }
  .fs-stories-list-panel h3 { font-size: 21px; }
  .fs-story-choice { gap: 10px; grid-template-columns: 44px minmax(0, 1fr) 28px; padding-inline: 0; }
  .fs-story-choice > img { width: 44px; height: 44px; }
  .fs-story-choice-copy strong { font-size: 16px; }
  .fs-story-choice-arrow { width: 28px; height: 28px; }
  .fs-stories-counselling { padding-inline: 14px; font-size: 14px; }
}
@media (max-width: 650px) {
  .fs-stories-shell { width: calc(100% - 40px); }
  .fs-stories-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; }
  .fs-story-feature { width: min(100%, 360px); justify-self: center; }
  .fs-stories-side { width: min(100%, 440px); justify-self: center; }
  .fs-story-play-icon { width: 66px; height: 66px; }
  .fs-stories-heading h2 br { display: none; }
  .fs-story-feature figcaption { padding-left: 36px; }
  .fs-story-feature figcaption::before { left: 20px; }
  .fs-story-feature figcaption strong { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .fs-story-play-icon { transition: none; } }

/* Compact, overlapping testimonial deck for phones. */
.fs-stories-mobile-stack { display: none; }
@media (max-width: 650px) {
  .fs-testimonials-section { padding: 16px 0 22px; background: #ece2f8; }
  .fs-stories-shell { width: calc(100% - 40px); }
  .fs-stories-heading { max-width: 360px; }
  .fs-stories-heading .fs-eyebrow { display: none; }
  .fs-stories-heading h2 { font-size: 18px; line-height: 1.25; letter-spacing: -.35px; }
  .fs-stories-heading h2 br { display: block; }
  .fs-stories-heading > p:last-child { font-size: 12px; line-height: 1.4; margin-top: 10px; }
  .fs-stories-layout { display: none; }
  .fs-stories-mobile-stack {
    position: relative;
    display: block;
    width: min(100%, 336px);
    aspect-ratio: 336 / 304;
    margin: 28px auto 0;
    touch-action: pan-y;
    isolation: isolate;
  }
  .fs-story-stack-card {
    position: absolute;
    left: calc(var(--depth) * 9%);
    top: calc(var(--depth) * 5%);
    width: 64%;
    height: calc(100% - var(--depth) * 4.5%);
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: #fff;
    border-radius: 11px;
    box-shadow: 0 3px 5px #0002;
    overflow: hidden;
    text-align: left;
    transition: left 220ms ease, top 220ms ease, height 220ms ease;
  }
  .fs-story-stack-card > img { width: 100%; height: 73%; flex: 0 0 73%; object-fit: cover; object-position: center 25%; border-radius: 5px; }
  .fs-story-stack-card .fs-story-play-icon { width: 44px; height: 44px; top: 37%; }
  .fs-story-stack-card .fs-story-play-icon::after { border-top-width: 10px; border-bottom-width: 10px; border-left-width: 16px; margin-left: 4px; }
  .fs-story-stack-card:not([aria-current='true']) .fs-story-play-icon { visibility: hidden; }
  .fs-story-stack-caption { display: grid; gap: 5px; padding: 18px 2px 0; }
  .fs-story-stack-caption strong { font: 600 14px/1.2 var(--font-body); }
  .fs-story-stack-caption > span { font: 400 11px/1.2 var(--font-body); }
  .fs-story-stack-card:focus-visible { outline: 3px solid #664095; outline-offset: -3px; }
}
@media (max-width: 359px) {
  .fs-stories-heading h2 { font-size: 16px; }
  .fs-story-stack-caption { padding-top: 12px; gap: 4px; }
  .fs-story-stack-caption strong { font-size: 12px; }
  .fs-story-stack-caption > span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .fs-story-stack-card { transition: none; } }


.fs-stories-oil-lamp,
.fs-stories-cracker {
  position: absolute;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.fs-stories-oil-lamp {
  top: 0;
  right: clamp(8px, 2vw, 18px);
  width: clamp(102px, 11vw, 124px);
  aspect-ratio: 227 / 243;
  background: url("assets/gold-oil-lamp.png") center top / contain no-repeat;
/* Static peak lighting; only opacity animates (paint-only filters removed). */
  filter: brightness(1.08) drop-shadow(0 0 7px rgba(255, 190, 76, 0.4));
  opacity: 0.94;
  animation: fs-stories-oil-glow 3.2s ease-in-out infinite;
}

.fs-stories-cracker {
  right: 0;
  bottom: 0;
  width: clamp(142px, 21vw, 198px);
  aspect-ratio: 299 / 198;
  background: url("assets/cracker.png") center / contain no-repeat;
/* Static peak lighting; only opacity animates (paint-only filters removed). */
  filter: brightness(1.1) drop-shadow(0 0 9px rgba(255, 192, 76, 0.4));
  opacity: 0.9;
  animation: fs-stories-cracker-glow 3.6s ease-in-out infinite;
}

/* Keep the existing stories, cards and controls in front of decorations. */
.fs-stories-shell {
  z-index: 1;
}

@keyframes fs-stories-oil-glow {
  0%,
  100% {
    opacity: 0.798;
  }

  50% {
    opacity: 1;
  }
}

@keyframes fs-stories-cracker-glow {
  0%,
  100% {
    opacity: 0.745;
  }

  48% {
    opacity: 1;
  }

  72% {
    opacity: 0.845;
  }
}

@media (max-width: 900px) {
  .fs-stories-oil-lamp {
    right: 6px;
    width: clamp(90px, 12vw, 108px);
  }

  .fs-stories-cracker {
    width: clamp(130px, 22vw, 170px);
  }
}

@media (max-width: 650px) {
  .fs-stories-oil-lamp {
    right: 4px;
    width: clamp(82px, 24vw, 100px);
  }

  .fs-stories-cracker {
    right: 0;
    bottom: 0;
    width: clamp(124px, 36vw, 150px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fs-stories-oil-lamp,
  .fs-stories-cracker {
    animation: none;
  }
}

/* Festive background accents only; story cards and controls remain untouched. */
.fs-testimonials-section {
  --stories-pendant-width: clamp(24px, 2.4vw, 30px);
  --stories-pendant-inset: clamp(8px, 1vw, 16px);
  --stories-pendant-gap: 46px;
  position: relative;
  isolation: isolate;
}

.fs-testimonials-section::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("assets/festive-marigold-pendant.svg");
  background-repeat: no-repeat;
  background-position: left var(--stories-pendant-inset) top 0;
  background-size: var(--stories-pendant-width) auto;
  content: "";
  opacity: 0.9;
  pointer-events: none;
}

@media (max-width: 900px) {
  .fs-testimonials-section {
    --stories-pendant-width: clamp(18px, 2.4vw, 22px);
    --stories-pendant-inset: 6px;
    --stories-pendant-gap: 30px;
  }
}

@media (max-width: 650px) {
  .fs-testimonials-section {
    --stories-pendant-width: clamp(8px, 2.2vw, 10px);
    --stories-pendant-inset: 2px;
    --stories-pendant-gap: 10px;
  }
}

.fs-testimonials-section::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    repeating-conic-gradient(from 5deg at 50% 50%, transparent 0deg 12deg, rgba(208, 150, 53, 0.12) 12.4deg 13deg, transparent 13.4deg 24deg),
    repeating-conic-gradient(from 10deg at 50% 50%, transparent 0deg 12deg, rgba(208, 150, 53, 0.1) 12.4deg 13deg, transparent 13.4deg 24deg);
  background-repeat: no-repeat;
  background-position: left -70px top 16px, right -70px bottom 8px;
  background-size: 154px 154px;
  content: "";
  pointer-events: none;
}

.fs-stories-shell {
  position: relative;
  z-index: 1;
}

@media (max-width: 650px) {
  .fs-testimonials-section::before {
    background-position: left -48px top 8px, right -48px bottom 6px;
    background-size: 100px 100px;
    opacity: 0.7;
  }
}
