/* ============================================================
   THIEN UY MULTI-PAGE LAYOUT
   Shared page language for About, Courses and Achievements.
   It extends the tokens and shell in styles.css without replacing them.
   ============================================================ */

.subpage-main {
  overflow: clip;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 600;
}

.breadcrumb a {
  color: var(--brand-ink);
  transition: color 0.18s var(--ease);
}

.breadcrumb a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb-separator {
  color: var(--line-2);
  user-select: none;
}

.page-hero {
  position: relative;
  min-height: auto;
  padding: clamp(14px, 1.8vw, 24px) 0 clamp(22px, 2.8vw, 36px);
  background:
    radial-gradient(circle at 85% 15%, rgba(14, 78, 161, 0.09), transparent 38%),
    radial-gradient(circle at 15% 85%, rgba(194, 76, 0, 0.05), transparent 45%),
    linear-gradient(180deg, var(--surface) 0%, var(--brand-wash) 100%);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(20px, 3.2vw, 44px);
  align-items: center;
}

.page-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 670px;
}

.page-title {
  max-width: 13ch;
  font-family: "Baloo 2", "Be Vietnam Pro", sans-serif;
  font-size: clamp(2.45rem, 1.7rem + 3vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--brand-ink);
  text-wrap: balance;
}

.page-title,
.home-title {
  padding-block: 0.04em;
}

.page-title .tx-accent {
  color: var(--accent-ink);
}

.page-hero__lead {
  max-width: 56ch;
  margin-top: 12px;
  color: var(--text-2);
  font-size: clamp(0.98rem, 0.92rem + 0.22vw, 1.12rem);
  line-height: 1.65;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.page-hero__visual {
  position: relative;
  min-width: 0;
}

.page-hero__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  border: 1px solid rgba(14, 78, 161, 0.08);
}

.page-hero__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.page-hero__image--portrait img {
  aspect-ratio: 4 / 3;
}

.page-hero__note {
  position: absolute;
  left: -18px;
  bottom: 18px;
  width: min(290px, 72%);
  padding: 14px 18px;
  border: 1px solid rgba(14, 78, 161, 0.12);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sh-2);
}

.page-hero__note strong,
.page-hero__note span {
  display: block;
}

.page-hero__note strong {
  color: var(--brand-ink);
  font-size: 1rem;
  font-weight: 750;
}

.page-hero__note span {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.84rem;
  line-height: 1.45;
}

.page-section {
  padding: var(--section-y) 0;
}

.page-section--soft {
  background: var(--surface-2);
}

.page-section__head {
  max-width: 720px;
  margin-bottom: clamp(18px, 2.4vw, 32px);
}

.page-section__head.flex,
.page-section__head.max-w-full,
.page-section__head.w-full,
.page-section__head--full {
  max-width: 100%;
  width: 100%;
}

.page-section__head .lead {
  max-width: 62ch;
  margin-top: 8px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.fact {
  padding: 32px clamp(20px, 3.5vw, 42px);
  transition: background 0.2s var(--ease);
}

.fact:hover {
  background: var(--brand-wash);
}

.fact + .fact {
  border-left: 1px solid var(--line);
}

.fact strong,
.fact span {
  display: block;
}

.fact strong {
  font-family: "Baloo 2", "Be Vietnam Pro", sans-serif;
  font-size: clamp(2.2rem, 1.6rem + 1.9vw, 3.4rem);
  line-height: 1;
  color: var(--brand-ink);
}

.fact span {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

/* About */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.story-copy .h2 {
  max-width: 17ch;
}

.story-copy p:not(.section-label) {
  max-width: 63ch;
  margin-top: 12px;
  color: var(--text-2);
  line-height: 1.7;
}

.story-figure {
  margin: 0;
}

.story-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  border: 1px solid var(--line);
}

.story-figure figcaption {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 0.84rem;
  font-style: italic;
}

.principles-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.principles-intro {
  position: sticky;
  top: 92px;
  align-self: start;
}

.principles-intro .h2 {
  max-width: 20ch;
}

.principles-intro .lead {
  max-width: 38ch;
}

.principles-list {
  display: grid;
  gap: 12px;
}

.principle {
  display: block;
}

.principle h3 {
  color: var(--brand-ink);
}

.principle p {
  color: var(--text-2);
  line-height: 1.6;
}

.team-evidence-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.team-evidence {
  margin: 0;
}

.team-evidence img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
}

/* Courses */
.program-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
  width: 100%;
}

.program-layout__rail {
  position: static;
}

.program-layout__rail .page-section__head {
  margin-bottom: 16px;
}

.program-layout__rail .filter-bar {
  margin-bottom: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.filter-button {
  min-height: 40px;
  padding: 8px 18px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.15s var(--ease);
}

.filter-button:hover {
  border-color: var(--brand);
  color: var(--brand-ink);
  background: var(--brand-wash);
}

.filter-button:active {
  transform: translateY(1px);
}

.filter-button[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 4px 12px rgba(14, 78, 161, 0.22);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  width: 100%;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  height: 100%;
}

.catalog-card:nth-child(1),
.catalog-card:nth-child(7) {
  grid-column: auto;
  display: flex;
  grid-template-columns: none;
}

.catalog-card__media {
  overflow: hidden;
}

.catalog-card__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.catalog-card:hover .catalog-card__media img {
  transform: scale(1.035);
}

.catalog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.catalog-card__meta {
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.catalog-card h2,
.catalog-card h3 {
  margin-top: 8px;
  font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.6rem);
  color: var(--brand-ink);
}

.catalog-card p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.65;
}

.catalog-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 20px;
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 700;
}

.catalog-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.text-action,
.result-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--brand-ink);
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.18s var(--ease);
}

.text-action:hover,
.result-action:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.route-map {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.route-stop {
  position: relative;
  min-width: 160px;
  padding: 28px 18px 22px 0;
  border-top: 3px solid var(--brand);
  scroll-snap-align: start;
}

.route-stop::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.route-stop strong,
.route-stop span {
  display: block;
}

.route-stop strong {
  color: var(--brand-ink);
  font-size: 0.98rem;
  font-weight: 750;
}

.route-stop span {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 0.8rem;
}

/* Achievements */
.results-mosaic {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: repeat(2, clamp(130px, 16vw, 170px));
  gap: 12px;
  max-height: 360px;
}

.results-mosaic figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-2);
  height: 100%;
}

.results-mosaic figure:first-child {
  grid-row: 1 / 3;
}

.results-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.results-mosaic figure:first-child img {
  object-position: center;
}

.evidence-summary {
  display: grid;
  grid-template-columns: minmax(140px, 0.28fr) minmax(0, 0.72fr);
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  border-radius: var(--r-lg);
  background: var(--brand);
  color: var(--on-brand);
}

.evidence-summary__total strong,
.evidence-summary__total span {
  display: block;
}

.evidence-summary__total strong {
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 0.88;
}

.evidence-summary__total span {
  margin-top: 6px;
  font-weight: 700;
  font-size: 0.88rem;
}

.evidence-summary__copy {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.evidence-summary__copy h2 {
  max-width: 24ch;
  font-size: clamp(1.3rem, 1rem + 0.8vw, 1.8rem);
}

.evidence-summary__copy p {
  max-width: 58ch;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
}

.achievement-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  height: 100%;
}

.achievement-card:nth-child(1),
.achievement-card:nth-child(4) {
  grid-column: auto;
}

.achievement-card__media {
  min-height: 280px;
  background: var(--surface-3);
}

.achievement-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.achievement-card__body {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.achievement-card__body h2 {
  color: var(--brand-ink);
  font-size: 1.55rem;
}

.achievement-card__body > p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.6;
}

.achievement-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.achievement-stat {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.achievement-stat strong,
.achievement-stat span {
  display: block;
}

.achievement-stat strong {
  color: var(--accent-ink);
  font-size: 1.3rem;
  font-weight: 800;
}

.achievement-stat span {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 600;
}

.achievement-card .result-action {
  margin-top: auto;
  align-self: flex-start;
  padding-top: 18px;
}

.trust-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: center;
}

.trust-copy__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  border: 1px solid var(--line);
}

.trust-copy__body .h2 {
  max-width: 16ch;
}

.trust-copy__body p {
  max-width: 58ch;
  margin-top: 16px;
  color: var(--text-2);
  line-height: 1.75;
}

.page-cta {
  padding: var(--section-y) 0;
  background: var(--brand-wash);
}

.page-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(32px, 5vw, 62px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-2);
}

.page-cta__inner .h2 {
  max-width: 19ch;
  color: var(--brand-ink);
}

.page-cta__inner p {
  max-width: 58ch;
  margin-top: 12px;
  color: var(--text-2);
  line-height: 1.68;
}

.page-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

[data-filter-item][hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .page-hero {
    min-height: auto;
  }

  .page-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 38px;
  }
}

@media (max-width: 860px) {
  .page-hero__grid,
  .story-grid,
  .principles-layout,
  .trust-copy,
  .page-cta__inner {
    grid-template-columns: 1fr;
  }

  .page-hero__copy {
    max-width: 720px;
  }

  .page-title {
    max-width: 14ch;
  }

  .page-hero__visual {
    width: min(100%, 680px);
  }

  .page-hero__image--portrait img {
    aspect-ratio: 4 / 3;
  }

  .principles-intro {
    position: static;
  }

  .achievement-card {
    grid-template-columns: 1fr;
  }

  .achievement-card__media {
    min-height: 220px;
  }

  .page-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .page-section,
  .section {
    padding-block: var(--section-y-mobile);
  }

  input,
  select,
  textarea {
    font-size: 1rem;
  }

  .team-evidence-grid,
  .teaching-practice-row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 32px 0 46px;
  }

  .page-hero__grid {
    gap: 28px;
  }

  .page-title {
    font-size: clamp(2.1rem, 10vw, 3.1rem);
  }

  .page-hero__note {
    position: relative;
    left: auto;
    bottom: auto;
    width: calc(100% - 24px);
    margin: -28px 12px 0;
  }

  .fact-strip {
    grid-template-columns: 1fr;
  }

  .fact {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    padding: 20px 0;
  }

  .fact + .fact {
    border-left: 0;
    border-top: 1px solid var(--line-2);
  }

  .fact strong {
    font-size: 2rem;
  }

  .fact span {
    margin-top: 0;
  }

  .principle {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .classroom-grid,
  .results-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 240px 170px;
  }

  .classroom-grid figure:first-child,
  .results-mosaic figure:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .filter-button {
    flex: none;
    scroll-snap-align: start;
  }

  .catalog-card,
  .catalog-card:nth-child(1),
  .catalog-card:nth-child(7) {
    grid-column: 1 / -1;
    display: flex;
  }

  .achievement-card {
    grid-template-columns: 1fr;
  }

  .achievement-card__media {
    min-height: 0;
  }

  .achievement-card__media img {
    aspect-ratio: 16 / 10;
  }

  .page-cta__inner {
    padding: 26px 20px;
  }

  .page-cta__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-card:hover,
  .achievement-card:hover,
  .catalog-card:hover .catalog-card__media img {
    transform: none;
  }
}

/* ============================================================
   EXTENDED WEBSITE SECTIONS
   Teachers, learning path, activities, knowledge, FAQ, contact
   and the reusable course-detail view.
   ============================================================ */

.compact-hero {
  padding-block: clamp(16px, 2vw, 28px);
  background:
    radial-gradient(circle at 90% 5%, rgba(194, 76, 0, 0.08), transparent 30%),
    linear-gradient(180deg, var(--surface) 0%, var(--brand-wash) 100%);
}

.compact-hero .page-title {
  max-width: 17ch;
}

.content-grid,
.knowledge-grid,
.contact-grid {
  display: grid;
  gap: 20px;
}

.teaching-practice-list {
  border-top: 1px solid var(--line);
}

.teaching-practice-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.teaching-practice-row h3,
.content-card h2,
.content-card h3,
.knowledge-card h2,
.knowledge-card h3 {
  color: var(--brand-ink);
}

.teaching-practice-row p,
.content-card p,
.knowledge-card p {
  margin-top: 10px;
  color: var(--text-2);
  line-height: 1.65;
}

.verification-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--accent-wash);
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.content-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.content-card {
  grid-column: span 4;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-1);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}

.content-card--wide {
  grid-column: span 6;
}

.number-badge {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(14, 78, 161, 0.25);
}

.learning-roadmap {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  margin: 0;
  overflow-x: auto;
  padding: 0 0 12px;
  list-style: none;
  scroll-snap-type: x mandatory;
}

.learning-roadmap__item {
  min-width: 150px;
  border-right: 1px solid var(--line);
  scroll-snap-align: start;
}

.learning-roadmap__item:first-child {
  border-left: 1px solid var(--line);
}

.learning-roadmap__item a {
  display: block;
  min-height: 132px;
  padding: 26px 18px 20px;
  border-top: 3px solid var(--brand);
  background: var(--surface);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.learning-roadmap__item a:hover,
.learning-roadmap__item a:focus-visible {
  border-top-color: var(--accent);
  background: var(--brand-wash);
}

.learning-roadmap__item strong {
  display: block;
  color: var(--brand-ink);
  font-size: 1.1rem;
}

.learning-roadmap__item span {
  display: block;
  margin-top: 6px;
  color: var(--text-3);
  font-size: 0.86rem;
  font-weight: 600;
}

.enrollment-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.enrollment-step {
  padding: 28px clamp(18px, 2.4vw, 30px) 30px;
  border-right: 1px solid var(--line);
}

.enrollment-step:last-child {
  border-right: 0;
}

.enrollment-step h3,
.program-alternative h3 {
  color: var(--brand-ink);
  font-size: var(--fs-h3);
}

.enrollment-step p,
.program-alternative p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.65;
}

.program-alternatives {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.program-alternative {
  grid-column: span 5;
  padding: clamp(24px, 3vw, 36px) clamp(18px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.program-alternative:first-child {
  grid-column: span 7;
  grid-row: span 2;
  padding-left: 0;
  border-right: 1px solid var(--line);
}

.program-alternative:not(:first-child) {
  padding-right: 0;
}

.program-alternative .text-action {
  margin-top: 14px;
}

.program-alternative__media {
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface-3);
}

.program-alternative__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.program-alternative:first-child .program-alternative__media img {
  aspect-ratio: 16 / 10;
}

.activity-story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.activity-story figure {
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-3);
}

.activity-story figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-story__segments {
  display: grid;
  align-content: stretch;
  border-top: 1px solid var(--line-2);
}

.activity-story__segments article {
  display: grid;
  align-content: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line-2);
}

.activity-story__segments h3 {
  color: var(--brand-ink);
  font-size: var(--fs-h3);
}

.activity-story__segments p {
  max-width: 46ch;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.65;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: var(--sh-1);
  cursor: zoom-in;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(5) {
  grid-column: span 8;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.gallery-item span,
.gallery-item figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(7, 31, 65, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 16px;
}

.knowledge-feature {
  display: flex;
  flex-direction: column;
  grid-row: span 2;
  justify-content: flex-end;
  min-height: 410px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: var(--r-md);
  background: var(--brand);
  color: var(--on-brand);
}

.knowledge-feature > p:first-child,
.knowledge-link-card > span {
  font-size: 0.82rem;
  font-weight: 700;
}

.knowledge-feature figure {
  margin: 18px 0 0;
  overflow: hidden;
  border-radius: var(--r-sm);
}

.knowledge-feature figure img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.knowledge-feature h2 {
  max-width: 18ch;
  margin-top: 18px;
  font-size: clamp(1.85rem, 1.45rem + 1.4vw, 2.8rem);
  line-height: 1.12;
}

.knowledge-feature > p:not(:first-child) {
  max-width: 58ch;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.68;
}

.knowledge-feature a {
  width: fit-content;
  margin-top: 26px;
  color: var(--on-brand);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.knowledge-link-card {
  display: block;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.knowledge-link-card h2 {
  margin-top: 14px;
  color: var(--brand-ink);
  font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.55rem);
}

.knowledge-link-card p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.65;
}

.knowledge-link-card:hover,
.knowledge-link-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.knowledge-link-card:active {
  transform: translateY(1px);
}

.knowledge-link-card > span {
  color: var(--text-3);
}

.knowledge-feature a:hover {
  color: var(--on-brand);
  text-decoration-thickness: 2px;
}

.knowledge-feature a:focus-visible {
  outline-color: var(--on-brand);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: start;
}

.article-copy {
  max-width: 760px;
}

.article-copy h2 {
  margin-top: 36px;
  color: var(--brand-ink);
  font-size: clamp(1.45rem, 1.25rem + 0.7vw, 2rem);
}

.article-copy p,
.article-copy li {
  color: var(--text-2);
  line-height: 1.78;
}

.article-copy p,
.article-copy ul,
.article-copy ol {
  margin-top: 14px;
}

.article-copy ul,
.article-copy ol {
  padding-left: 1.3rem;
}

.article-aside {
  position: sticky;
  top: 102px;
  padding: 26px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--brand-wash);
  box-shadow: var(--sh-1);
}

.article-aside h2,
.article-aside h3 {
  color: var(--brand-ink);
}

.article-aside a {
  display: block;
  margin-top: 14px;
  color: var(--brand-ink);
  font-weight: 700;
  transition: color 0.18s var(--ease);
}

.article-aside a:hover {
  color: var(--accent-ink);
}

.faq-list--page {
  max-width: 880px;
  margin-inline: auto;
}

.contact-conversion {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 3vw, 36px);
  align-items: start;
}

.contact-channels {
  display: grid;
  gap: 12px;
}

.contact-faq {
  max-width: 900px;
  margin-inline: auto;
}

.contact-card {
  padding: 16px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-1);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}

.contact-card span:not(.material-symbols-outlined) {
  display: block;
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-card .material-symbols-outlined {
  text-transform: none !important;
}

.contact-card a,
.contact-card strong {
  display: block;
  margin-top: 4px;
  color: var(--brand-ink);
  font-size: 1.02rem;
}

.contact-form-shell {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-2);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent);
}

[data-form-status][data-tone="success"] {
  color: var(--brand-strong);
  background: var(--brand-tint);
}

[data-form-status][data-tone="error"] {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
}

/* Map Section in Contact Page - Full Width Container */
.map-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-2);
  margin-top: 12px;
}

.map-embed {
  position: relative;
  width: 100%;
  height: clamp(380px, 48vh, 560px);
  background: var(--surface-3);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 24px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.course-switcher {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

.course-switcher a {
  flex: none;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 700;
  scroll-snap-align: start;
  transition: all 0.2s var(--ease);
}

.course-switcher a:hover {
  border-color: var(--brand);
  color: var(--brand-ink);
  background: var(--brand-wash);
}

.course-switcher a[aria-current="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 78, 161, 0.24);
}

.course-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}

.course-detail-copy h2 {
  margin-top: 36px;
  color: var(--brand-ink);
}

.course-detail-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  gap: 12px;
  margin-top: 28px;
}

.course-detail-gallery img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  border-radius: var(--r-md);
  object-fit: cover;
}

.course-detail-copy p,
.course-detail-copy li {
  color: var(--text-2);
  line-height: 1.78;
}

.course-detail-copy p,
.course-detail-copy ul {
  margin-top: 14px;
}

.course-detail-copy ul {
  padding-left: 1.25rem;
}

.course-facts {
  position: sticky;
  top: 102px;
  padding: 28px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--brand-wash);
  box-shadow: var(--sh-1);
}

.course-facts h2 {
  color: var(--brand-ink);
  font-size: 1.32rem;
}

.course-facts dl {
  margin-top: 18px;
}

.course-facts dt {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-facts dd {
  margin-top: 4px;
  color: var(--brand-ink);
  font-weight: 700;
}

.course-facts .btn {
  width: 100%;
  margin-top: 24px;
}

.data-pending {
  color: var(--accent-ink) !important;
}

@media (max-width: 900px) {
  .program-layout {
    grid-template-columns: 1fr;
  }

  .program-layout__rail {
    position: static;
  }

  .content-card,
  .content-card--wide {
    grid-column: span 6;
  }

  .knowledge-grid,
  .article-layout,
  .contact-conversion,
  .course-detail-layout {
    grid-template-columns: 1fr;
  }

  .article-aside,
  .course-facts {
    position: static;
  }
}

@media (max-width: 680px) {
  .evidence-summary,
  .activity-story,
  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .evidence-summary__copy {
    padding-top: 22px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.32);
    border-left: 0;
  }

  .achievement-card,
  .achievement-card:nth-child(1),
  .achievement-card:nth-child(4) {
    grid-column: 1 / -1;
  }

  .activity-story figure {
    min-height: 320px;
  }

  .knowledge-feature {
    min-height: 360px;
  }

  .course-detail-gallery {
    grid-template-columns: 1fr;
  }

  .enrollment-steps {
    grid-template-columns: 1fr 1fr;
  }

  .enrollment-step:nth-child(2) {
    border-right: 0;
  }

  .enrollment-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .program-alternatives {
    grid-template-columns: 1fr;
  }

  .program-alternative,
  .program-alternative:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    padding-inline: 0;
    border-right: 0;
  }

  .content-card,
  .content-card--wide {
    grid-column: 1 / -1;
  }

  .gallery-grid {
    grid-auto-rows: 190px;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5) {
    grid-column: span 12;
  }
}

@media (max-width: 480px) {
  .enrollment-steps {
    grid-template-columns: 1fr;
  }

  .enrollment-step,
  .enrollment-step:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .enrollment-step:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item:hover img,
  .gallery-item:focus-visible img {
    transform: none;
  }
}

/* Homepage A2 conversion path */
.home-main {
  overflow: clip;
}

.home-hero--a2 {
  padding: clamp(18px, 2.4vw, 36px) 0;
  background: linear-gradient(150deg, var(--surface) 0%, var(--brand-wash) 100%);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
  gap: clamp(20px, 3.5vw, 44px);
  align-items: center;
}

.home-title {
  max-width: 14ch;
  color: var(--brand-ink);
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(2.55rem, 1.8rem + 3.3vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.home-title span {
  color: var(--accent-ink);
}

.home-hero__copy > p {
  max-width: 56ch;
  margin-top: 12px;
  color: var(--text-2);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.1rem);
  line-height: 1.65;
}

.home-hero__visual {
  min-width: 0;
  margin: 0;
}

.home-hero__visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}

.home-trust {
  background: var(--surface);
}

.home-trust__legacy {
  padding-block: 14px;
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 650;
}

.home-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.home-fact {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px) clamp(14px, 2.4vw, 30px);
}

.home-fact + .home-fact {
  border-left: 1px solid var(--line);
}

.home-fact strong,
.home-fact span {
  display: block;
}

.home-fact strong {
  color: var(--brand-ink);
  font-family: "Baloo 2", "Be Vietnam Pro", sans-serif;
  font-size: clamp(2rem, 1.55rem + 1.5vw, 3rem);
  line-height: 1;
}

.home-fact span {
  margin-top: 7px;
  color: var(--text-2);
  font-size: 0.87rem;
  font-weight: 650;
  line-height: 1.45;
}

.home-programs {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 16px;
}

.home-program-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: inherit;
  border-top: 3px solid var(--brand);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease);
}

.home-program-card:nth-child(2) {
  border-top-color: var(--accent);
}

.home-program-card:hover,
.home-program-card:focus-visible {
  transform: translateY(-3px);
  border-top-color: var(--accent-strong);
}

.home-program-card figure {
  margin: 0;
  overflow: hidden;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: var(--surface-3);
}

.home-program-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.home-program-card--primary img {
  aspect-ratio: 16 / 11;
}

.home-program-card--compact img {
  aspect-ratio: 1 / 1;
}

.home-program-card:hover img,
.home-program-card:focus-visible img {
  transform: scale(1.025);
}

.home-program-copy {
  display: grid;
  gap: 5px;
  padding: 18px 2px 2px;
}

.home-program-copy small {
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 700;
}

.home-program-copy strong {
  color: var(--brand-ink);
  font-family: "Baloo 2", "Be Vietnam Pro", sans-serif;
  font-size: clamp(1.35rem, 1.15rem + 0.65vw, 1.82rem);
  line-height: 1.18;
}

.home-program-copy em {
  margin-top: 5px;
  color: var(--accent-ink);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 750;
}

.home-method,
.home-evidence {
  display: grid;
  align-items: center;
  gap: clamp(32px, 5vw, 68px);
}

.home-method {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
}

.home-method__visual,
.home-evidence__visual {
  min-width: 0;
  margin: 0;
}

.home-method__visual img,
.home-evidence__visual img {
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}

.home-method__visual img {
  aspect-ratio: 4 / 5;
}

.home-method__copy .lead,
.home-evidence__copy .lead {
  max-width: 58ch;
  margin-top: 14px;
}

.home-method .principles-list {
  margin-top: 22px;
}

.home-method .principle {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 21px 0;
}

.home-method .principle-index {
  font-size: 1.28rem;
}

.home-evidence {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.72fr);
}

.home-evidence__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.home-evidence__stats div {
  padding: 20px 18px 20px 0;
  border-bottom: 1px solid var(--line);
}

.home-evidence__stats div:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.home-evidence__stats dt {
  color: var(--brand-ink);
  font-family: "Baloo 2", "Be Vietnam Pro", sans-serif;
  font-size: clamp(1.85rem, 1.55rem + 0.9vw, 2.45rem);
  font-weight: 800;
  line-height: 1;
}

.home-evidence__stats dd {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
}

.home-evidence__visual img {
  aspect-ratio: 4 / 5;
}

.home-register {
  background: var(--brand-wash);
}

.home-register .contact-form-shell {
  max-width: 920px;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .home-hero__grid,
  .home-programs {
    grid-template-columns: 1fr;
  }

  .home-hero__visual {
    width: min(100%, 720px);
  }

  .home-program-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
  }

  .home-program-card figure {
    border-radius: 0 0 var(--r-lg) var(--r-lg);
  }

  .home-program-card img,
  .home-program-card--primary img,
  .home-program-card--compact img {
    aspect-ratio: 16 / 10;
  }

  .home-program-copy {
    padding: 22px;
  }

  .home-method,
  .home-evidence {
    grid-template-columns: 1fr;
  }

  .home-method__visual,
  .home-evidence__visual {
    width: min(100%, 680px);
  }

  .home-method__visual img,
  .home-evidence__visual img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 680px) {
  .home-title {
    font-size: clamp(2.18rem, 10.7vw, 3.35rem);
  }

  .home-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-fact:nth-child(3) {
    border-left: 0;
  }

  .home-fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .home-program-card {
    display: flex;
  }

  .home-program-copy {
    padding: 16px 2px 4px;
  }

  .home-evidence__stats div {
    padding-right: 12px;
  }

  .home-evidence__stats div:nth-child(even) {
    padding-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-program-card:hover,
  .home-program-card:focus-visible,
  .home-program-card:hover img,
  .home-program-card:focus-visible img {
    transform: none;
  }
}
