/* VBIA visual system — navy and teal, with restrained red highlights. */
:root {
  --vbia-navy: #022C3C; --vbia-teal: #046A89; --vbia-gold: #C9AC6D;
  --vbia-red: #D71920; --vbia-red-light: #D71920;
  --primary: var(--vbia-navy); --primary-light: var(--vbia-teal);
  --text: var(--vbia-navy); --muted: #416477; --bg: #F2F7F9; --line: #D9E7EC;
  --radius: 22px; --shadow: 0 14px 36px rgba(2,44,60,.12); --max-width: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font: 1rem/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #FFF; color: var(--text); }
html:lang(km) body { font-family: "Noto Sans Khmer", "Khmer OS Battambang", "Leelawadee UI", system-ui, sans-serif; line-height: 1.95; }
html:lang(zh) body { font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: rgba(4,106,137,.15); }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
iframe { display: block; max-width: 100%; border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--vbia-gold); outline-offset: 5px; }
::selection { background: var(--vbia-teal); color: #FFF; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.35; text-wrap: balance; }
p, li, .contact-detail { overflow-wrap: anywhere; }
p + p { margin-top: .85rem; }
h2 + p, h3 + p, h4 + p { margin-top: .7rem; }
.icon { width: 22px; height: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: .5rem; left: 1rem; z-index: 1000; background: #FFF; color: var(--primary); padding: .7rem 1rem; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Language selection and header */
.top-bar { background: var(--vbia-navy); color: #FFF; font-size: .8rem; }
.top-bar-inner { max-width: 1480px; margin: auto; padding: .4rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.top-bar-left a { display: inline-flex; align-items: center; gap: .4rem; }
.top-bar-left .icon { width: 15px; height: 15px; }
.badge-language { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: .2rem .85rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #FFF; font-size: .8rem; line-height: 1.5; transition: background .25s,color .25s,transform .25s; }
.badge-language.active { color: var(--vbia-navy); background: #FFF; border-color: #FFF; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 100; background: #FFF; box-shadow: 0 3px 18px rgba(2,44,60,.08); }
.nav-inner { position: relative; max-width: 1480px; padding: .75rem 1.5rem; margin: auto; display: flex; align-items: center; gap: .8rem; }
.brand { display: inline-flex; flex-direction: column; align-items: center; text-align: center; width: 172px; gap: .2rem; flex-shrink: 0; }
.brand-img { width: 100%; height: auto; max-height: 70px; object-fit: contain; }
.brand-tagline { display: block; width: 100%; align-self: center; text-align: center; color: var(--vbia-red); font-size: .72rem; font-weight: 700; line-height: 1.7; text-wrap: balance; }
.nav-links { display: flex; flex: 1; align-items: center; justify-content: center; gap: .15rem; font-size: .85rem; min-width: 0; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .65rem; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: inherit; line-height: 1.4; transition: color .25s,background .25s; }
.nav-link.active { color: #FFF; background: var(--vbia-navy); }
.chevron { font-size: .65rem; transition: transform .25s; }
.open .chevron { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: 0; width: max-content; min-width: 210px; max-width: 310px; padding: .5rem; background: #FFF; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 110; animation: dropdown-in .22s var(--ease); }
.nav-item:last-child .dropdown { left: auto; right: 0; }
.dropdown a { display: block; padding: .6rem .75rem; border-radius: 8px; font-size: .85rem; line-height: 1.6; white-space: normal; transition: color .2s,background .2s,padding .2s; }
.nav-right, .nav-cta { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.nav-cta .btn { font-size: .8rem; padding: .55rem .8rem; max-width: 150px; }
.nav-toggle { display: none; align-items: center; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #FFF; }
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--vbia-navy); transition: transform .25s,opacity .25s; }
.nav-menu-open .nav-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-menu-open .nav-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Shared actions */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: .55rem; min-height: 44px; padding: .7rem 1.2rem; border: 1px solid transparent; border-radius: 999px; font-size: .94rem; font-weight: 650; line-height: 1.5; transition: background .3s,color .3s,transform .3s var(--ease),box-shadow .3s; }
.btn-primary { color: #FFF; background: var(--vbia-teal); }
.btn-outline { color: var(--vbia-teal); background: transparent; border-color: var(--vbia-teal); }
.btn-light { background: #FFF; color: var(--vbia-navy); }
.text-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--vbia-teal); font-size: .9rem; font-weight: 650; margin-top: 1.1rem; }
.text-link .icon { width: 18px; height: 18px; transition: transform .3s; }

/* Home: visible photo fallback with an optional video above it. */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: var(--vbia-navy); color: #FFF; }
.hero-backdrop, .hero-bg-video, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-backdrop { object-fit: cover; object-position: 65% center; z-index: -3; }
.hero-bg-video { object-fit: cover; opacity: 0; z-index: -2; pointer-events: none; transition: opacity 1s ease; }
.hero.is-video-ready .hero-bg-video { opacity: 1; }
.hero-overlay { z-index: -1; background: linear-gradient(90deg,rgba(2,44,60,.94) 0%,rgba(2,44,60,.83) 45%,rgba(2,44,60,.24) 100%); }
.hero-inner { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 4.5rem 1.5rem; }
.hero-copy { max-width: 740px; }
.hero-kicker { font-size: .9rem; display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1rem; }
.hero-kicker strong { font-size: 1.05rem; color: #E4F1F5; font-weight: 600; }
.text-highlight { color: var(--vbia-red); }
.hero .text-highlight { color: var(--vbia-red-light); }
.hero-title { font-size: clamp(2rem,4vw,3.65rem); line-height: 1.16; letter-spacing: -.025em; max-width: 730px; }
html:lang(km) .hero-title { line-height: 1.55; font-size: clamp(1.85rem,3.2vw,3rem); letter-spacing: 0; }
.hero-subtitle { margin-top: 1.4rem; max-width: 630px; color: #E4F1F5; font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.partners { --partner-logo-height: 80px; background: var(--vbia-navy); padding: 1.7rem 1.5rem; }
.partners-panel { max-width: var(--max-width); margin: 0 auto; background: #FFF; border: 2px solid var(--vbia-teal); border-radius: 24px; padding: 1.25rem 1.6rem 1.5rem; }
.partners-heading { font-size: 1.5rem; font-weight: 670; text-align: center; color: var(--vbia-navy); margin: 0 0 1.1rem; }
.partners-heading::after { content: ''; display: block; width: 28px; height: 2px; background: var(--vbia-red); margin: .55rem auto 0; }
.partners-inner { display: flex; align-items: center; justify-content: center; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.partner-logo { display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; height: calc(var(--partner-logo-height) * 1.25); margin: 0; padding: 0; }
.partners img { max-width: 100%; height: var(--partner-logo-height); width: auto; object-fit: contain; }
/* Ministry crest is 25% taller than the standard logo height at every breakpoint. */
.partners .partner-logo-moeys img { height: calc(var(--partner-logo-height) * 1.25); }

/* Sections, cards, photography */
.section { padding: 4rem 1.5rem; }
.section.alt { background: var(--bg); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-header { margin-bottom: 2rem; }
.section-kicker { text-transform: uppercase; font-size: .78rem; font-weight: 650; letter-spacing: .12em; color: var(--vbia-red); margin-bottom: .5rem; }
html:lang(km) .section-kicker, html:lang(zh) .section-kicker { letter-spacing: .01em; }
.section-title { font-size: clamp(1.65rem,2.4vw,2.25rem); margin-bottom: .8rem; }
.section-description { font-size: 1rem; color: var(--muted); max-width: 770px; }
.grid-3, .community-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.card { overflow: hidden; background: #FFF; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(2,44,60,.06); }
.card-img { width: 100%; height: 240px; object-fit: cover; }
.card-content { padding: 1.4rem; }
.card-title { font-size: 1.15rem; margin-bottom: .6rem; }
.card-body { color: var(--muted); font-size: .95rem; }
.image-zoom, .admissions-image-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--vbia-navy); }
.image-zoom img { width: 100%; object-fit: cover; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; background: #FFF; border: 1px solid var(--line); border-left: 4px solid var(--vbia-gold); border-radius: var(--radius); padding: 2rem; margin-top: 2rem; }
.cta-panel h2 { font-size: 1.4rem; }
.cta-panel p { color: var(--muted); }
.cta-panel .btn { flex-shrink: 0; }

/* About */
.about-hero { padding: 4rem 1.5rem; background: linear-gradient(120deg,var(--vbia-navy),var(--vbia-teal)); color: #FFF; }
.about-hero-inner, .about-grid { max-width: var(--max-width); margin: auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.about-hero .section-kicker { color: #FFF; }
.about-hero p { color: #E4F1F5; }
.about-hero-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.about-hero-logos img { height: 48px; max-width: 200px; width: auto; object-fit: contain; }
.about-grid { align-items: start; }
.about-section + .about-section { margin-top: 2.7rem; }
.about-section h2 { font-size: 1.6rem; margin-bottom: .85rem; }
.about-section p { color: var(--muted); }
.about-section .btn { margin-top: 1.2rem; }
.about-list { padding-left: 1.3rem; color: var(--muted); margin: 1rem 0 0; }
.about-list li { margin-bottom: .6rem; padding-left: .2rem; }
li::marker { color: var(--vbia-teal); }
.values-list strong { color: var(--vbia-navy); display: block; }
.about-images { display: grid; gap: 1.5rem; }

/* Admissions */
.admissions-hero { padding: 4rem 1.5rem; color: #FFF; background: linear-gradient(90deg,rgba(2,44,60,.96),rgba(4,106,137,.8)),url('images/bg-programs.jpg') center/cover; }
.admissions-hero .section-kicker { color: #FFF; }
.admissions-hero-subtitle { max-width: 800px; color: #E4F1F5; }
.admissions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.admissions-grid h2 { font-size: 1.7rem; }
.admissions-grid p, .admissions-extra-grid p { color: var(--muted); }
.apply-list, .process-steps { padding-left: 1.5rem; color: var(--muted); margin: 1.2rem 0; }
.apply-list li, .process-steps li { margin-bottom: .7rem; padding-left: .25rem; }
.apply-list li::marker, .process-steps li::marker { font-weight: 700; }
.telegram-box { padding: 1.5rem; margin-top: 1.8rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.telegram-box .btn { margin: 1rem 0; }
.telegram-qr { width: 160px; height: auto; border-radius: 12px; background: #FFF; }
.qr-caption { font-size: .86rem; margin-top: .6rem; }
.admissions-image-card img { width: 100%; min-height: 450px; object-fit: cover; }
.admissions-extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 3rem; }
.admissions-extra-grid h2 { font-size: 1.5rem; }
.admissions-extra-grid .image-zoom { margin-top: 1.5rem; }

/* School life and community */
.gallery-section { margin-top: 2rem; }
.gallery-section h2 { font-size: 1.45rem; margin-bottom: 1.2rem; }
.gallery-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--vbia-navy); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 320px; object-fit: cover; }
.gallery-item::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent,rgba(2,44,60,.94)); pointer-events: none; }
.gallery-label { position: absolute; z-index: 1; left: 1.3rem; right: 1.3rem; bottom: 1.2rem; font-size: 1rem; font-weight: 600; color: #FFF; }
.community-card { overflow: hidden; border-radius: var(--radius); background: var(--vbia-navy); color: #FFF; box-shadow: var(--shadow); border: 1px solid rgba(4,106,137,.25); }
.community-card-image { height: 210px; overflow: hidden; }
.community-card-image img { width: 100%; height: 100%; object-fit: cover; }
.community-card-body { padding: 1.5rem; border-top: 3px solid var(--vbia-teal); }
.community-card-body h2 { font-size: 1.15rem; }
.community-card-body p { color: #DBEDF3; font-size: .94rem; }
.community-gallery, .testimonials { margin-top: 3rem; }
.community-gallery-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.community-gallery-item { overflow: hidden; border-radius: 16px; background: var(--vbia-navy); box-shadow: 0 8px 24px rgba(2,44,60,.12); }
.community-gallery-item img { width: 100%; height: 190px; object-fit: cover; }
.anchor-alias { display: block; height: 0; }
.video-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--vbia-navy); color: #FFF; box-shadow: 0 8px 24px rgba(2,44,60,.1); }
.video-card iframe { display: block; width: 100%; aspect-ratio: 16/9; }
.video-card p { padding: .8rem 1.2rem; }

/* Contact and labelled channel icons */
.contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: start; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); background: #FFF; padding: 1.8rem; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.5rem; }
.contact-card p { color: var(--muted); }
.contact-primary { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.3rem 0 2rem; }
.campus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.campus-card { border-top: 1px solid var(--line); padding-top: 1rem; font-size: .9rem; }
.campus-card > .icon { color: var(--vbia-teal); margin-bottom: .6rem; }
.campus-card h4 { font-size: 1rem; }
.campus-card .text-link { font-size: .85rem; }
.qr-link { display: inline-flex; align-items: flex-start; flex-direction: column; gap: .65rem; font-size: .85rem; color: var(--vbia-teal); margin-top: 1.5rem; }
.map-card iframe { width: 100%; height: 440px; margin-top: 1.4rem; border-radius: 14px; background: var(--bg); }
.contact-social { margin-top: 3rem; }
.contact-links { display: grid; gap: .4rem; }
.contact-link { display: flex; align-items: flex-start; gap: .7rem; padding: .45rem 0; min-width: 0; border-radius: 12px; transition: background .25s,transform .25s,border-color .25s; }
.contact-link > .icon { margin-top: .25rem; color: var(--vbia-gold); }
.contact-link > span { min-width: 0; }
.contact-link strong { display: block; font-weight: 600; line-height: 1.6; }
.contact-detail { display: block; font-size: .84rem; line-height: 1.65; }
.phone-row .contact-detail a { display: inline-block; padding: .1rem 0; }
.contact-links-full { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.contact-links-full .contact-link { padding: 1.2rem; background: var(--bg); border: 1px solid var(--line); }
.contact-links-full .contact-link > .icon { color: var(--vbia-teal); }
.contact-links-full .contact-detail { color: var(--muted); }

/* Footer */
.site-footer { background: var(--vbia-navy); color: #DCECF2; padding: 3.2rem 1.5rem 6.5rem; }
.footer-wrap { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1.35fr 1.25fr .8fr 1.25fr; gap: 2rem; font-size: .9rem; }
.f-col { min-width: 0; }
.f-col h2 { font-size: 1.02rem; color: #FFF; margin-bottom: 1.2rem; }
.footer-brand h2 { font-size: 1.25rem; }
.f-col h3 { color: #FFF; font-size: .92rem; }
.f-col p { margin-top: .4rem; }
.footer-campus + .footer-campus { margin-top: 1.3rem; }
.map-link { display: inline-flex; align-items: flex-start; gap: .35rem; color: #B6E3EC; font-size: .82rem; margin-top: .4rem; }
.map-link .icon { width: 15px; height: 15px; margin-top: .25rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.footer-nav a { display: inline-block; padding: .15rem 0; }
.footer-bottom { max-width: var(--max-width); margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; font-size: .8rem; }
.floating-lang { position: fixed; bottom: 1rem; right: 1rem; z-index: 90; display: flex; align-items: center; gap: .35rem; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: .35rem; background: var(--vbia-navy); box-shadow: var(--shadow); }
.floating-lang .badge-language { min-height: 36px; border-color: transparent; }

/* One reveal system. No hidden content unless JS enables it. */
[data-animate] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .motion-ready [data-animate] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease) var(--reveal-delay,0ms),transform .7s var(--ease) var(--reveal-delay,0ms),box-shadow .3s,border-color .3s; }
  .motion-ready [data-animate].is-visible { opacity: 1; transform: none; }
  .card img, .community-card-image img, .gallery-item img, .community-gallery-item img, .image-zoom img, .admissions-image-card img, .brand-img, .partners img, .about-hero-logos img, .telegram-qr, .hero-backdrop { transition: transform .65s var(--ease),filter .65s; }
  h1, h2, h3, h4, .card-body, .gallery-label, .brand-tagline, main p, main li, .f-col p { transition: color .25s,translate .3s var(--ease); }
  @keyframes dropdown-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover, .dropdown a:hover { background: var(--bg); color: var(--vbia-teal); }
  .dropdown a:hover { padding-left: 1rem; }
  .nav-link.active:hover { background: var(--vbia-teal); color: #FFF; }
  .btn:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(2,44,60,.17); }
  .btn-primary:hover { background: var(--vbia-navy); }
  .hero .btn-primary:hover { background: #FFF; color: var(--vbia-navy); }
  .btn-outline:hover { color: #FFF; background: var(--vbia-teal); }
  .btn-light:hover { background: #E3F2F5; }
  .badge-language:hover { transform: translateY(-2px); background: rgba(255,255,255,.18); }
  .badge-language.active:hover { background: #FFF; }
  .text-link:hover .icon { transform: translateX(4px); }
  .text-link:hover { color: var(--vbia-navy); }
  .card:hover, .community-card:hover, .contact-card:hover, .video-card:hover { box-shadow: 0 20px 42px rgba(2,44,60,.18); }
  .card:hover .card-img, .community-card:hover img, .gallery-item:hover img, .community-gallery-item:hover img, .image-zoom:hover img, .admissions-image-card:hover img { transform: scale(1.045); filter: saturate(1.06); }
  .card:hover .card-title { color: var(--vbia-teal); translate: 0 -2px; }
  .card:hover .card-body, .community-card:hover p, .community-card:hover h2, .gallery-item:hover .gallery-label { translate: 0 -2px; }
  main h1:hover, main h2:hover, main h3:hover, main h4:hover, main p:hover, main li:hover { translate: 0 -1px; }
  .brand:hover .brand-img, .partners img:hover, .about-hero-logos img:hover { transform: scale(1.035); }
  .hero:hover .hero-backdrop { transform: scale(1.025); }
  .brand:hover .brand-tagline, .f-col:hover h2, .f-col:hover h3, .f-col:hover p { translate: 0 -1px; }
  .qr-link:hover .telegram-qr, .telegram-box .telegram-qr:hover { transform: scale(1.025); }
  .contact-links-full .contact-link:hover { transform: translateY(-3px); border-color: var(--vbia-teal); background: #E5F1F5; }
  .site-footer a:hover { color: #FFF; }
  .site-footer .contact-link:hover { background: rgba(255,255,255,.07); }
  .footer-nav a:hover, .map-link:hover { text-decoration: underline; text-underline-offset: 4px; }
  .phone-row a:hover { text-decoration: underline; }
  .top-bar-left a:hover { color: #DBEDF3; }
}

/* Responsive layouts and an inline, scrollable mobile navigation panel. */
@media (max-width: 1320px) {
  .nav-inner { justify-content: space-between; }
  .nav-right { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--nav-panel-top,115px) - 12px); max-height: calc(100dvh - var(--nav-panel-top,115px) - 12px); overflow-y: auto; background: #FFF; border-top: 1px solid var(--line); padding: 1rem 1.5rem 1.5rem; box-shadow: var(--shadow); }
  .nav-menu-open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: .3rem; }
  .nav-link { min-height: 44px; width: 100%; text-align: left; justify-content: space-between; }
  .dropdown { position: static; min-width: 0; max-width: none; width: 100%; box-shadow: none; border: 0; border-left: 2px solid var(--line); margin-left: .7rem; padding: .2rem .5rem; }
  .dropdown a { padding: .6rem .7rem; }
}
@media (max-width: 960px) {
  .partners { --partner-logo-height: 72px; }
  .partners-inner { flex-wrap: wrap; gap: 1rem; }
  .partner-logo { flex: 0 0 calc((100% - 3rem) / 4); }
  .grid-3, .community-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .about-hero-inner, .about-grid, .admissions-grid, .admissions-extra-grid, .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .about-images { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .about-hero .image-zoom { max-width: 640px; }
  .about-images img { height: 260px; }
  .admissions-image-card img { min-height: 0; max-height: 520px; object-position: center 35%; }
  .community-gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .footer-wrap { grid-template-columns: 1fr 1fr; }
  .contact-links-full { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cta-panel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 100px; }
  .top-bar-inner { padding: .5rem 1rem; justify-content: center; flex-wrap: wrap; }
  .top-bar-left { justify-content: center; font-size: .7rem; gap: .3rem .8rem; }
  .top-bar-right { gap: .4rem; }
  .badge-language { min-height: 34px; padding: .25rem .8rem; }
  .nav-inner { padding: .65rem 1rem; gap: .5rem; }
  .brand { width: 138px; }
  .brand-img { width: 100%; max-height: 56px; }
  .brand-tagline { font-size: .65rem; }
  .nav-cta .btn-outline { display: none; }
  .nav-cta .btn { max-width: 120px; padding: .5rem .7rem; font-size: .75rem; }
  .nav-links { padding: .8rem 1rem 1.5rem; }
  .section, .about-hero, .admissions-hero { padding: 2.7rem 1rem; }
  .hero { min-height: 610px; }
  .hero-inner { padding: 3rem 1rem; }
  .hero-overlay { background: linear-gradient(90deg,rgba(2,44,60,.94),rgba(2,44,60,.7)); }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .partners { --partner-logo-height: 54px; padding: 1.2rem 1rem; }
  .partners-panel { padding: 1rem .85rem; border-radius: 18px; }
  .partners-inner { gap: .75rem; }
  .partner-logo { flex-basis: calc((100% - 1.5rem) / 3); }
  .partners-heading { font-size: .8rem; }
  .grid-3, .community-grid, .gallery-row, .video-grid, .about-images { grid-template-columns: 1fr; }
  .community-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .community-gallery-item img { height: 150px; }
  .gallery-item img { height: 280px; }
  .card-img { height: 235px; }
  .contact-card { padding: 1.25rem; }
  .campus-grid { grid-template-columns: 1fr; }
  .contact-links-full { grid-template-columns: 1fr; }
  .footer-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer { padding: 2.7rem 1rem 6.5rem; }
  .footer-bottom { flex-direction: column; }
  .floating-lang { right: .6rem; bottom: .6rem; }
  .floating-lang .badge-language { min-height: 38px; }
  .cta-panel { padding: 1.4rem; }
}
@media (max-width: 380px) {
  .brand { width: 120px; }
  .brand-img { width: 100%; }
  .partner-logo { flex-basis: calc((100% - .75rem) / 2); }
  .nav-cta .btn { max-width: 100px; font-size: .69rem; }
  .nav-right { gap: .3rem; }
  .top-bar-left { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-animate], .motion-ready [data-animate] { opacity: 1 !important; transform: none !important; }
  img, .btn, .badge-language, .contact-link, .icon { transform: none !important; }
  h1, h2, h3, h4, p, li, .card-body, .gallery-label, .brand-tagline { translate: none !important; }
  .hero-bg-video { display: none; }
}



#apply h2[data-i18n="apply"] {
  color: #D71920; /* School red */
}

