:root {
  --bg: #f6f1e8;
  --bg-soft: #fff9f1;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #fffdf8;
  --surface-dark: #15362c;
  --text: #163128;
  --muted: #5f756f;
  --line: rgba(17, 61, 45, 0.12);
  --primary: #156f52;
  --primary-deep: #0f5a42;
  --accent: #c77a2f;
  --accent-soft: #fff0df;
  --shadow: 0 24px 80px rgba(20, 45, 37, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100vw - 32px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(229, 191, 143, 0.35), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(35, 139, 101, 0.16), transparent 28rem),
    var(--bg);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

iframe {
  border: 0;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 80%);
  z-index: -1;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 18px 0 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(17, 49, 40, 0.72);
  backdrop-filter: blur(14px);
  color: #f6f7f3;
  box-shadow: 0 18px 40px rgba(14, 29, 24, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}

.topbar-start {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(21, 111, 82, 0.1);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
}

.nav-links .nav-menu-action {
  display: none;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.menu-toggle__icon {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.menu-toggle__icon--burger {
  fill: currentColor;
}

.menu-toggle__icon--close {
  opacity: 0;
  transform: scale(0.8) rotate(-90deg);
  fill: currentColor;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #1b8b66, #126347);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(18, 99, 71, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.52);
  color: var(--text);
  border-color: rgba(20, 61, 45, 0.14);
}

.button-compact {
  min-height: 42px;
  padding: 10px 18px;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

p {
  margin: 0;
}

.hero,
.subhero {
  padding: 56px 0 36px;
}

.hero-grid,
.subhero-grid,
.story-grid,
.spotlight-grid,
.scholarship-panel,
.certificate-panel,
.contact-grid,
.detail-grid {
  display: grid;
  gap: 28px;
}

.hero-grid {
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.subhero-grid {
  align-items: center;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.hero-text {
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  max-width: 62ch;
  color: var(--muted);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-card,
.info-card,
.highlight-card,
.program-card,
.scholarship-copy,
.contact-card,
.certificate-copy {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.stat-card strong,
.program-index {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 1.4rem;
}

.stat-card span {
  display: block;
}

.hero-visual {
  position: relative;
  padding-bottom: 64px;
}

.photo-frame {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.hero-card {
  transform: rotate(-2deg);
}

.hero-card img,
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.35s ease;
}

.floating-card {
  position: absolute;
  right: -14px;
  bottom: 0;
  max-width: 320px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 246, 233, 0.96), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(199, 122, 47, 0.24);
  box-shadow: 0 22px 40px rgba(31, 50, 43, 0.16);
}

.floating-label,
.contact-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.floating-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.floating-card a,
.contact-card a {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.section {
  padding: 44px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 250, 242, 0.74));
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  max-width: 760px;
}

.section-heading p:last-child {
  color: var(--muted);
}

#lien-he .section-heading {
  max-width: none;
}

#lien-he .section-heading h2 {
  max-width: 18ch;
  text-wrap: nowrap;
}

#hinh-anh .section-heading {
  max-width: none;
}

#hinh-anh .section-heading h2 {
  white-space: nowrap;
}

#chuong-trinh .section-heading {
  max-width: none;
}

#chuong-trinh .section-heading h2 {
  white-space: nowrap;
}

.story-grid,
.spotlight-grid,
.scholarship-panel,
.certificate-panel,
.contact-grid,
.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.intro-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.intro-content-column,
.intro-media-column {
  display: grid;
  gap: 20px;
}

.intro-card {
  height: 100%;
}

.intro-card h3 {
  max-width: 14ch;
}

.intro-highlight {
  justify-items: start;
}

.intro-media-card {
  background: rgba(255, 255, 255, 0.82);
}

.intro-media-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: auto;
}

.intro-media-primary img {
  display: block;
}

.intro-media-secondary img {
  display: block;
}

.intro-media-card figcaption {
  padding: 16px 18px 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
}

#gioi-thieu .photo-frame:hover img,
#gioi-thieu .photo-frame:focus-within img,
#chuong-trinh .photo-frame:hover img,
#chuong-trinh .photo-frame:focus-within img,
.subhero .photo-frame:hover img,
.subhero .photo-frame:focus-within img,
.story-grid .photo-frame:hover img,
.story-grid .photo-frame:focus-within img {
  transform: scale(1.04);
}

.media-tall {
  min-height: 100%;
}

.media-tall img {
  min-height: 100%;
}

.feature-list,
.step-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.feature-list li,
.step-list li {
  margin-bottom: 10px;
}

.highlight-card,
.accent-card,
.contact-card-accent {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 167, 0.35), transparent 14rem),
    rgba(255, 255, 255, 0.8);
}

.program-grid,
.gallery-grid {
  display: grid;
  gap: 18px;
}

.program-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
}

.program-card p,
.scholarship-copy p,
.contact-card p,
.certificate-copy p,
.highlight-card p,
.info-card p {
  margin-top: 12px;
  color: var(--muted);
}

.scholarship-panel {
  margin-top: 10px;
}

.scholarship-copy {
  align-self: center;
}

.gallery-showcase {
  display: grid;
  gap: 20px;
}

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

.gallery-card {
  background: rgba(255, 255, 255, 0.84);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: auto;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.35s ease;
}

.gallery-feature img {
  max-height: 520px;
}

.gallery-grid-secondary .gallery-card img {
  max-height: 360px;
}

.gallery-card figcaption,
.media-tall figcaption {
  padding: 14px 18px 18px;
  color: var(--muted);
}

.gallery-card figcaption {
  text-align: center;
}

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

.certificate-panel {
  padding: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

.pdf-shell {
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(21, 111, 82, 0.14);
  background: #ffffff;
}

.pdf-shell iframe {
  width: 100%;
  height: 100%;
  min-height: 560px;
}

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

.contact-card {
  min-height: 100%;
}

.contact-card p {
  color: var(--muted);
}

.footer {
  padding: 20px 0 34px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 28px;
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.88);
}

.footer a {
  color: #fff6d5;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .topbar {
    border-radius: 28px;
  }

  .hero-grid,
  .subhero-grid,
  .story-grid,
  .spotlight-grid,
  .scholarship-panel,
  .certificate-panel,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    justify-self: center;
  }

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

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

@media (max-width: 980px) {
  .intro-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 928px) {
  .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }

  .brand,
  .topbar-start {
    min-width: 0;
  }

  .brand-text strong {
    font-size: 0.96rem;
  }

  .brand-text small {
    font-size: 0.72rem;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding: 2px 2px 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 0.95rem;
  }

  .button-compact {
    min-height: 40px;
    padding: 9px 16px;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .hero-stats,
  .intro-content-column,
  .intro-media-column,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    width: fit-content;
    max-width: 100%;
    justify-self: center;
  }

  .gallery-card img {
    width: auto;
    max-width: 100%;
  }

  .gallery-feature img,
  .gallery-grid-secondary .gallery-card img {
    max-height: none;
  }

  .floating-card {
    position: static;
    max-width: none;
    margin-top: 18px;
  }

  .hero-visual {
    padding-bottom: 0;
  }

  .pdf-shell,
  .pdf-shell iframe {
    min-height: 420px;
  }
}

@media (max-width: 836px) {
  .topbar {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    overflow: visible;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    background: #56705f;
    backdrop-filter: none;
  }

  .topbar .topbar-start {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
  }

  .topbar .brand {
    min-width: 0;
  }

  .topbar .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .topbar-start .button-compact {
    display: none;
  }

  .topbar-start .button-primary,
  .topbar .nav-links .nav-menu-action {
    box-shadow: none;
  }

  .topbar .nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
    padding: 0 12px;
    border-radius: 22px;
    border: 1px solid transparent;
    background: #4b6556;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    z-index: -1;
    overflow-x: hidden;
    overflow-y: auto;
    pointer-events: none;
    transform: translateY(-10px);
    transform-origin: top center;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      visibility 0s linear 0.35s,
      transform 0.3s ease,
      margin-top 0.3s ease,
      padding 0.3s ease,
      border-color 0.25s ease,
      background-color 0.25s ease;
  }

  .topbar.menu-open .nav-links {
    margin-top: 2px;
    padding: 12px;
    border-color: rgba(255, 255, 255, 0.16);
    background: #4b6556;
    max-height: min(70vh, 440px);
    opacity: 1;
    visibility: visible;
    z-index: 20;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      visibility 0s linear 0s,
      transform 0.3s ease,
      margin-top 0.3s ease,
      padding 0.3s ease,
      border-color 0.25s ease,
      background-color 0.25s ease;
  }

  .topbar .nav-links a {
    width: 100%;
    flex: initial;
    padding: 11px 14px;
  }

  .topbar .nav-links .nav-menu-action {
    display: inline-flex;
    margin-top: 4px;
    min-height: 48px;
    margin-bottom: 2px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 9999px;
    overflow: hidden;
    box-shadow: none;
    background: linear-gradient(135deg, #1b8b66, #126347);
    justify-content: center;
  }

  .topbar.menu-open .menu-toggle__icon--burger {
    opacity: 0;
    transform: scale(0.82) rotate(90deg);
  }

  .topbar.menu-open .menu-toggle__icon--close {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100%, calc(100vw - 24px));
    --radius-xl: 24px;
    --radius-lg: 20px;
  }

  .topbar-wrap {
    padding-top: 12px;
  }

  .topbar {
    padding: 12px;
  }

  .topbar-start .button-compact {
    width: auto;
  }

  .hero,
  .subhero {
    padding-top: 30px;
  }

  .button,
  .button-compact {
    width: 100%;
  }

  .hero-actions,
  .button-row {
    display: grid;
  }

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

  .certificate-panel {
    padding: 14px;
  }

  #lien-he .section-heading h2 {
    max-width: none;
    text-wrap: balance;
  }

  #hinh-anh .section-heading h2 {
    white-space: normal;
    text-wrap: balance;
  }

  #chuong-trinh .section-heading h2 {
    white-space: normal;
    text-wrap: balance;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 813px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .footer-inner p {
    width: 100%;
    white-space: normal;
  }

  .footer-inner a {
    display: inline-block;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .brand {
    width: 100%;
    justify-content: center;
  }

  .button-compact {
    width: 100%;
  }

  .topbar .topbar-start {
    gap: 8px;
  }

  .topbar .brand {
    width: auto;
    justify-content: flex-start;
  }

  .topbar-start .button-compact {
    width: auto;
    padding: 9px 14px;
  }

  .nav-links a {
    padding: 10px 12px;
  }

  .gallery-card figcaption {
    padding: 10px 12px 12px;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .stat-card,
  .info-card,
  .highlight-card,
  .program-card,
  .contact-card,
  .certificate-copy {
    padding: 20px;
  }

  .section {
    padding: 34px 0;
  }

  .pdf-shell,
  .pdf-shell iframe {
    min-height: 320px;
  }
}
