.student-success-stories { color-scheme: light; --review-ink: #0f2a38; --review-body: #4c6268; --review-font: 'IBM Plex Sans Thai', system-ui, sans-serif; }
.student-success-stories * { box-sizing: border-box; }
.student-success-stories :is(button, a) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.student-success-stories button { font: inherit; }
.student-success-stories :focus-visible { outline: 3px solid #087e98; outline-offset: 5px; }
/* A single card structure; future categories only change these colour tokens. */
.review-card { --review-accent: #176d79; --review-tint: #edf8f6; --review-line: #d3e7e3; }
.review-card[data-course="intensive"] { --review-accent: #173b50; --review-tint: #edf3f7; --review-line: #d7e2e9; }
.review-card { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); grid-template-areas: 'copy evidence' 'footer evidence'; gap: 26px 44px; padding: 42px; background: #fff; border: 1px solid #dfe9e4; border-radius: 26px; box-shadow: 0 18px 52px -36px rgba(15, 42, 56, .22); }
.review-card__copy { grid-area: copy; align-self: end; min-width: 0; }
.review-card__course { display: inline-block; margin: 0 0 23px; padding: 7px 13px; border-radius: 7px; color: var(--review-accent); background: var(--review-tint); font-size: 13px; font-weight: 600; letter-spacing: .025em; }
.review-card__headline { margin: 0 0 21px; font: 600 clamp(25px, 2.2vw, 30px)/1.6 'Noto Serif Thai', serif; text-wrap: balance; }
.review-card__headline-line { display: block; }
.review-card__headline-phrase { display: inline-block; white-space: nowrap; }
.review-card__support { margin: 0; color: var(--review-accent); font-size: 16px; line-height: 1.85; }
.review-card__footer { grid-area: footer; align-self: start; min-width: 0; }
.review-card__caption { margin: 0 0 25px; color: var(--review-body); font-size: 15.5px; line-height: 1.9; }
.review-card__cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; padding: 12px 17px; border: 1px solid var(--review-line); border-radius: 11px; color: var(--review-accent); background: var(--review-tint); font-size: 14px; font-weight: 600; line-height: 1.7; text-decoration: none; transition: border-color .18s, background-color .18s; }
.review-card__cta svg { flex: 0 0 auto; }
.review-card__cta:hover { border-color: var(--review-accent); }
.review-evidence { grid-area: evidence; align-self: center; min-width: 0; margin: 0; }
.review-evidence__open { display: block; width: 100%; margin: 0; padding: 0; background: #fff; border: 1px solid #edf1ee; border-radius: 12px; cursor: zoom-in; }
.review-evidence__open picture { display: block; }
.review-evidence__open img { display: block; width: 100%; height: auto; }
.review-evidence__hint { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: 13px; color: #627876; font-size: 11.5px; line-height: 1.7; }
.review-evidence__hint span:first-child { color: var(--review-accent); }
.review-panel[hidden] { display: none; }
.review-panel > .review-card + .review-card { margin-top: 24px; }
.review-evidence__continuation { display: flex; align-items: center; gap: 13px; width: 100%; margin-top: 14px; padding: 11px; border: 1px solid var(--review-line); border-radius: 11px; background: var(--review-tint); color: var(--review-accent); text-align: left; cursor: zoom-in; font-size: 13px; line-height: 1.7; }
.review-evidence__continuation img { display: block; flex: 0 0 72px; width: 72px; height: auto; border-radius: 5px; }
.review-evidence__continuation small { display: block; color: var(--review-body); font-size: 11px; font-weight: 400; }
.review-evidence__continuation > span:last-child { margin-left: auto; }
.review-card__verification-note { font-size: 14px; }

.review-lightbox { width: min(1120px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border: 1px solid #d7e4df; border-radius: 18px; color: var(--review-ink); background: #fff; box-shadow: 0 24px 100px rgba(15, 42, 56, .2); }
.review-lightbox[open] { display: flex; flex-direction: column; }
.review-lightbox::backdrop { background: rgba(15, 35, 42, .6); }
.review-lightbox__header { display: flex; justify-content: space-between; align-items: start; gap: 14px; padding: 20px 24px 10px; }
.review-lightbox__header h2 { margin: 0; font-size: 18px; font-weight: 600; }
.review-lightbox__header p { margin: 6px 0 0; color: var(--review-body); font-size: 12px; line-height: 1.7; }
.review-lightbox button { min-width: 42px; min-height: 42px; border: 1px solid #d4e4df; border-radius: 8px; background: #f4f9f7; color: #176d79; cursor: pointer; }
.review-lightbox button:disabled { opacity: .45; cursor: default; }
.review-lightbox__close { flex: 0 0 auto; padding: 5px 10px; }
.review-lightbox__close span { margin-left: 6px; font-size: 21px; }
.review-lightbox__tools { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4px 20px 12px; }
.review-lightbox__tools button { font-size: 24px; }
.review-lightbox__tools output { min-width: 50px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.review-lightbox__viewport { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0; background: #fff; }
.review-lightbox__image { display: block; width: calc(100% * var(--review-zoom, 1)); max-width: none; height: auto; }
html:has(.review-lightbox[open]) { overflow: hidden; }

@media (max-width: 860px) {
  .review-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copy' 'evidence' 'footer'; gap: 25px; padding: 30px; }
  .review-card__headline { font-size: 27px; }
  .review-card__course { margin-bottom: 18px; }
  .review-card__copy, .review-card__footer { align-self: auto; }
}
@media (max-width: 480px) {
  .review-card { padding: 23px; gap: 24px; border-radius: 20px; }
  .review-card__headline { margin-bottom: 17px; font-size: clamp(22px, 6.15vw, 24px); line-height: 1.65; }
  .review-card__support { font-size: 15px; }
  .review-card__caption { margin-bottom: 20px; font-size: 15px; line-height: 1.85; }
  .review-card__cta { width: 100%; padding-inline: 10px; }
  .review-lightbox__header { padding: 16px 14px 8px; }
  .review-lightbox__header h2 { font-size: 16px; }
  .review-lightbox__header p { font-size: 11px; }
}

.student-success-stories { padding: 66px 0; background: #faf8f2; font-family: var(--review-font); color: var(--review-ink); }
.student-success-stories__header { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; }
.student-success-stories__header p { margin: 0 0 10px; color: #176d79; font-size: 11px; font-weight: 600; letter-spacing: .13em; }
.student-success-stories__header h2 { margin: 0; font: 600 clamp(25px, 2.8vw, 34px)/1.5 'Noto Serif Thai', serif; }
.review-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 24px; }
.review-categories button { padding: 13px 12px; background: #fff; border: 1px solid #dce6e2; border-radius: 11px; color: #405f67; font-size: 13px; font-weight: 600; line-height: 1.6; }
.review-categories button { cursor: pointer; }
.review-categories button[aria-selected="true"] { color: #176d79; background: #edf8f6; border-color: #8dbeb7; }
.review-categories button[data-course="intensive"][aria-selected="true"] { color: #173b50; background: #edf3f7; border-color: #8da9b9; }
.review-categories button:disabled { cursor: not-allowed; opacity: 1; }
.review-categories button small { display: block; color: #61736f; font-size: 11px; font-weight: 400; margin-top: 4px; }
.review-categories button[data-course="intensive"] { color: #173b50; }
.student-success-stories .review-card__cta { box-shadow: none; }
.student-success-stories { scroll-margin-top: 96px; }
@media (max-width: 860px) {
  .student-success-stories { padding: 48px 0; }
  .review-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .student-success-stories > .wrap { padding-inline: 16px; }
  .student-success-stories__header h2 { font-size: 25px; }
  .review-categories { gap: 9px; margin-top: 22px; }
  .review-categories button { min-height: 76px; padding: 10px 8px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .student-success-stories *, .student-success-stories *::before, .student-success-stories *::after { scroll-behavior: auto !important; transition: none !important; }
}
