:root {
  --primary: #1746a2;
  --secondary: #0f766e;
  --accent: #f5b700;
  --surface: #ffffff;
  --background: #f5f7fb;
  --text: #101d31;
  --muted: #46566d;
  --line: color-mix(in srgb, var(--text) 12%, transparent);
  --font: Poppins, Arial, sans-serif;
  --body-size: 16px;
  --container: 1180px;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(20, 32, 51, .13);
  --transition: 220ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--background); color: var(--text); font: var(--body-size)/1.75 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { color: inherit; font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text); font-weight: 800; letter-spacing: -.04em; line-height: 1.12; }
h1 { font-size: 3rem; }
h2 { font-size: 1.25rem; }
p { color: var(--muted); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 80%, transparent); outline-offset: 3px; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 40px)); }
.sr-only, .skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link:focus { z-index: 1000; top: 12px; left: 12px; width: auto; height: auto; clip: auto; padding: 10px 14px; border-radius: 8px; background: #fff; color: #111; }
.section { padding: 86px 0; }
.surface { background: var(--surface); }
.section-label, .eyebrow { display: inline-flex; color: var(--primary); font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.section h2 { margin: 12px 0 18px; font-size: 2.25rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-head h2 { margin-bottom: 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-size: .84rem; font-weight: 800; }
.text-link svg { width: 17px; transition: transform var(--transition); }
.text-link:hover svg { transform: translateX(4px); }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 21px; border: 1px solid transparent; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 800; line-height: 1.2; transition: transform var(--transition), box-shadow var(--transition), background var(--transition); }
.button:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 13px 28px color-mix(in srgb, var(--primary) 28%, transparent); }
.button-accent { background: var(--accent); color: #172033; }
.button-accent:hover { color: #172033; }
.button-ghost { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.button-light { background: #fff; color: var(--primary); }
.button-light:hover { color: var(--primary); }

/* Topbar and social icons */
.topbar { background: var(--secondary); color: #fff; font-size: .78rem; }
.topbar-inner { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-contact, .socials { display: flex; align-items: center; gap: 18px; }
.topbar-contact a, .topbar-contact span { color: #fff; font-weight: 700; }
.topbar a:hover { color: var(--accent); }
.socials a { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; color: #fff; transition: transform var(--transition), border-color var(--transition), background var(--transition); }
.socials a:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(255,255,255,.12); color: var(--accent); }
.socials svg { width: 15px; height: 15px; }

/* Header base */
.site-header { position: sticky; z-index: 80; top: 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(18px); }
.nav-shell { position: relative; display: flex; min-height: 82px; align-items: center; gap: 24px; }
.brand { display: inline-flex; min-width: max-content; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 15px; background: linear-gradient(145deg, var(--primary), var(--secondary)); color: #fff; font-size: .9rem; font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand strong { color: var(--text); font-size: 1.1rem; font-weight: 850; letter-spacing: -.025em; line-height: 1.2; }
.brand small { color: #526178; font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 21px; margin-left: auto; }
.main-nav a { position: relative; color: var(--text); font-size: .86rem; font-weight: 800; }
.main-nav a::after { position: absolute; right: 50%; bottom: -10px; left: 50%; height: 2px; border-radius: 2px; background: var(--primary); content: ""; transition: right var(--transition), left var(--transition); }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; left: 0; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.icon-button { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.icon-button svg { width: 19px; }
.icon-button:hover { border-color: var(--primary); color: var(--primary); }
.menu-toggle { display: none; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 19px; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
.menu-bars::before { transform: translateY(-6px); }
.menu-bars::after { transform: translateY(4px); }

/* Five header variants */
.header-v2 .site-header { position: relative; }
.header-v2 .nav-shell { min-height: 132px; flex-wrap: wrap; justify-content: center; padding: 16px 0; }
.header-v2 .brand { width: 100%; justify-content: center; }
.header-v2 .main-nav { order: 3; width: 100%; justify-content: center; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.header-v2 .nav-actions { position: absolute; top: 20px; right: 0; }
.header-v3 .site-header { border: 0; background: var(--primary); color: #fff; }
.header-v3 .brand-mark { background: #fff; color: var(--primary); }
.header-v3 .brand strong { color: #fff; }
.header-v3 .brand small, .header-v3 .main-nav a { color: rgba(255,255,255,.76); }
.header-v3 .main-nav a::after { background: var(--accent); }
.header-v3 .main-nav a:hover, .header-v3 .main-nav a.active { color: #fff; }
.header-v3 .icon-button { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; }
.header-v4 .site-header { top: 12px; width: min(var(--container), calc(100% - 28px)); margin: 12px auto 0; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 40px rgba(20,32,51,.1); }
.header-v4 .nav-shell { width: auto; min-height: 68px; padding: 0 12px 0 16px; }
.header-v4 .brand-mark { width: 42px; height: 42px; flex-basis: 42px; border-radius: 50%; }
.header-v5 .site-header { border-top: 5px solid var(--accent); }
.header-v5 .nav-shell { display: grid; grid-template-columns: auto 1fr auto; }
.header-v5 .main-nav { justify-content: center; margin: 0 0 0 20px; padding: 11px 18px; border: 1px solid color-mix(in srgb,var(--primary) 12%,transparent); border-radius: 12px; background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }

/* Hero and five home variants */
.hero { position: relative; overflow: hidden; background: #082451; color: #fff; }
.hero::before { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(5,26,65,.97), color-mix(in srgb, var(--secondary) 78%, transparent)); content: ""; }
.hero::after { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.16) 1px,transparent 1px); background-size: 42px 42px; content: ""; }
.hero-grid { position: relative; z-index: 1; display: grid; min-height: 620px; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 52px; padding-block: 72px; }
.hero-copy h1 { max-width: 760px; margin: 19px 0 20px; letter-spacing: -.045em; line-height: 1.07; }
.hero-copy h1, .page-hero h1, .article-hero h1, .cta-box h2 { color: #fff; }
.hero-copy p { max-width: 630px; color: rgba(255,255,255,.94); font-size: 1.08rem; font-weight: 500; }
.eyebrow { padding: 8px 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; background: rgba(255,255,255,.1); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 430px; border: 10px solid rgba(255,255,255,.12); border-radius: calc(var(--radius) + 8px); object-fit: cover; box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.floating-card { position: absolute; right: -12px; bottom: 24px; max-width: 235px; padding: 17px 19px; border-radius: 18px; background: #fff; color: var(--text); box-shadow: var(--shadow); }
.floating-card strong, .floating-card span { display: block; }
.floating-card strong { color: var(--primary); }
.floating-card span { color: var(--muted); font-size: .78rem; font-weight: 600; }
.home-v2 .hero::before { background: linear-gradient(rgba(4,25,62,.78),rgba(4,25,62,.87)), url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1800&q=85") center/cover; }
.home-v2 .hero-grid { display: flex; min-height: 690px; justify-content: center; text-align: center; }
.home-v2 .hero-copy { max-width: 900px; }
.home-v2 .hero-copy p { margin-inline: auto; }
.home-v2 .hero-actions { justify-content: center; }
.home-v2 .hero-media { display: none; }
.home-v3 .hero { background: var(--surface); color: var(--text); }
.home-v3 .hero::before { left: 54%; background: linear-gradient(rgba(7,28,64,.18),rgba(7,28,64,.18)),url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1400&q=85") center/cover; }
.home-v3 .hero::after { display: none; }
.home-v3 .hero-grid { grid-template-columns: 1fr .8fr; }
.home-v3 .hero-copy { padding-right: 35px; }
.home-v3 .hero-copy p { color: var(--muted); }
.home-v3 .hero-copy h1 { color: var(--text); }
.home-v3 .eyebrow { border-color: var(--line); background: color-mix(in srgb,var(--primary) 7%,transparent); color: var(--primary); }
.home-v3 .button-ghost { border-color: var(--primary); color: var(--primary); }
.home-v3 .hero-media { visibility: hidden; }
.home-v4 .hero::before { background: linear-gradient(120deg,var(--primary),var(--secondary)); clip-path: polygon(0 0,100% 0,88% 100%,0 100%); }
.home-v4 .hero-grid { min-height: 560px; }
.home-v4 .hero-media img { height: 360px; border-radius: 80px 20px 80px 20px; }
.home-v5 .hero { padding: 34px 0; background: var(--background); color: var(--text); }
.home-v5 .hero::before, .home-v5 .hero::after { display: none; }
.home-v5 .hero-grid { min-height: 560px; padding: 60px; border-radius: 34px; background: linear-gradient(135deg,color-mix(in srgb,var(--primary) 94%,#000),var(--secondary)); color: #fff; box-shadow: var(--shadow); }

.stats { position: relative; z-index: 2; margin-top: -26px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 18px 50px rgba(20,32,51,.1); }
.stats-grid div { padding: 25px 30px; border-right: 1px solid var(--line); }
.stats-grid div:last-child { border: 0; }
.stats-grid strong, .stats-grid span { display: block; }
.stats-grid strong { color: var(--primary); font-size: 1.75rem; letter-spacing: -.05em; }
.stats-grid span { color: var(--muted); font-size: .8rem; font-weight: 650; }
.about-grid, .split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.about-grid blockquote { margin: 0; padding: 36px; border-radius: var(--radius); background: linear-gradient(135deg,var(--primary),var(--secondary)); color: #fff; font-size: 1.4rem; font-weight: 700; letter-spacing: -.03em; }
.about-grid blockquote footer { margin-top: 24px; color: rgba(255,255,255,.7); font-size: .75rem; font-weight: 600; }
.rounded-image { width: 100%; height: 460px; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }

/* Cards and five card variants */
.card-grid, .news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.program-grid { grid-template-columns: repeat(3,1fr); }
.feature-card, .news-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.feature-card { position: relative; min-height: 270px; padding: 30px; }
.feature-card:hover, .news-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb,var(--primary) 35%,transparent); box-shadow: var(--shadow); }
.feature-card small { color: var(--secondary); font-size: .73rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.feature-card h2, .feature-card h3 { margin: 24px 0 12px; font-size: 1.45rem; }
.card-number { display: grid; width: 45px; height: 45px; place-items: center; float: right; border-radius: 13px; background: color-mix(in srgb,var(--primary) 10%,transparent); color: var(--primary); font-size: .75rem; font-weight: 900; }
.news-image { display: block; overflow: hidden; }
.news-image img { width: 100%; height: 220px; object-fit: cover; transition: transform .5s ease; }
.news-card:hover img { transform: scale(1.045); }
.news-body { padding: 24px; }
.news-body h2, .news-body h3 { margin: 10px 0 12px; font-size: 1.3rem; }
.news-body p { color: var(--muted); font-size: .92rem; line-height: 1.65; }
.meta { color: var(--secondary); font-size: .74rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.card-v2 .feature-card, .card-v2 .news-card { border: 0; border-top: 5px solid var(--primary); border-radius: 12px; box-shadow: 0 12px 40px rgba(20,32,51,.08); }
.card-v3 .feature-card, .card-v3 .news-card { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.card-v3 .feature-card { border-bottom: 1px solid var(--line); }
.card-v3 .news-image img { border-radius: 18px; }
.card-v4 .feature-card { border-radius: 38px 6px 38px 6px; }
.card-v4 .news-card { display: grid; grid-template-columns: .9fr 1.1fr; grid-column: span 3; }
.card-v4 .news-image img { height: 100%; min-height: 245px; }
.card-v5 .feature-card, .card-v5 .news-card { border: 2px solid var(--text); border-radius: 8px; box-shadow: 8px 8px 0 var(--accent); }
.card-v5 .feature-card:hover, .card-v5 .news-card:hover { transform: translate(-3px,-3px); box-shadow: 11px 11px 0 var(--accent); }

/* Inner pages */
.page-hero, .article-hero { padding: 88px 0 72px; background: linear-gradient(125deg,color-mix(in srgb,var(--primary) 95%,#000),var(--secondary)); color: #fff; }
.page-hero .section-label { color: var(--accent); }
.page-hero h1, .article-hero h1 { max-width: 900px; margin: 16px 0; }
.page-hero p, .article-hero p { max-width: 700px; margin: 0; color: rgba(255,255,255,.93); font-size: 1.08rem; font-weight: 500; }
.teacher-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.teacher-card { overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 38px rgba(20,32,51,.08); }
.teacher-card img { width: 100%; height: 350px; object-fit: cover; }
.teacher-card div { padding: 22px; }
.teacher-card h2 { margin-bottom: 7px; font-size: 1.16rem; }
.teacher-card p { margin: 0; color: var(--muted); font-size: .86rem; font-weight: 600; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; }
.gallery-item { position: relative; overflow: hidden; min-height: 300px; padding: 0; border: 0; border-radius: var(--radius); background: #10233f; color: #fff; text-align: left; }
.gallery-item img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; transition: transform .5s ease, opacity var(--transition); }
.gallery-item span { position: absolute; right: 0; bottom: 0; left: 0; padding: 45px 20px 18px; background: linear-gradient(transparent,rgba(2,12,28,.8)); font-size: .84rem; font-weight: 700; }
.gallery-item:hover img { transform: scale(1.05); opacity: .82; }
.article-hero .meta { color: var(--accent); }
.back-link { display: inline-block; margin-bottom: 35px; font-size: .8rem; font-weight: 800; }
.article-content { padding-top: 55px; padding-bottom: 90px; }
.article-image { width: 100%; max-height: 480px; margin-bottom: 36px; border-radius: var(--radius); object-fit: cover; }
.article-content p { font-size: 1.03rem; }
.article-content h2 { margin-top: 38px; font-size: 2rem; }

/* Contact and PPDB */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 38px; }
.contact-cards { display: grid; gap: 14px; align-content: start; }
.contact-cards article { padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.contact-cards small { display: block; margin-bottom: 7px; color: var(--secondary); font-size: .75rem; font-weight: 850; text-transform: uppercase; }
.contact-cards a, .contact-cards p { margin: 0; font-weight: 700; }
.demo-form { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 16px 48px rgba(20,32,51,.08); }
.demo-form label { display: grid; gap: 7px; margin-bottom: 17px; color: var(--text); font-size: .78rem; font-weight: 800; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
input, select { height: 48px; padding: 0 13px; }
textarea { padding: 13px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); outline: 3px solid color-mix(in srgb,var(--primary) 13%,transparent); }
.form-note { margin: 13px 0 0; font-size: .7rem; }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 34px; }
.steps article { padding: 26px; border-radius: 18px; background: var(--surface); }
.steps span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 900; }
.steps h2 { margin: 20px 0 8px; font-size: 1.15rem; }
.steps p { margin: 0; font-size: .84rem; }
.wide-form { max-width: 850px; margin-inline: auto; }
.form-head { margin-bottom: 25px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1/-1; }

/* CTA */
.cta-section { padding-top: 20px; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 48px; border-radius: 32px; background: linear-gradient(125deg,var(--primary),var(--secondary)); color: #fff; }
.cta-box .section-label { color: var(--accent); }
.cta-box h2 { margin: 10px 0 7px; }
.cta-box p { margin: 0; color: rgba(255,255,255,.92); font-weight: 500; }

/* Footer and five footer variants */
.site-footer { background: #0a2346; color: rgba(255,255,255,.88); }
.footer-main { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 35px; }
.footer-grid h2 { margin-bottom: 16px; color: #fff; font-size: .96rem; }
.footer-grid > div > a:not(.brand) { display: block; margin-bottom: 9px; color: rgba(255,255,255,.9); font-size: .84rem; font-weight: 600; }
.footer-grid p { color: inherit; font-size: .84rem; }
.footer-brand > p { max-width: 340px; margin-top: 18px; }
.site-footer .brand strong { color: #fff; }
.site-footer .brand small { color: rgba(255,255,255,.55); }
.footer-social { margin-top: 20px; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.82); font-size: .76rem; text-align: center; }
.footer-v2 .footer-grid { display: block; max-width: 800px; margin: auto; text-align: center; }
.footer-v2 .footer-grid > div { display: inline-block; margin: 30px 22px 0; vertical-align: top; }
.footer-v2 .footer-brand { display: block !important; margin-top: 0 !important; }
.footer-v2 .footer-brand .brand, .footer-v2 .footer-social { justify-content: center; }
.footer-v2 .footer-brand > p { margin-inline: auto; }
.footer-v3 .site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.footer-v3 .footer-grid h2, .footer-v3 .site-footer .brand strong { color: var(--text); }
.footer-v3 .site-footer .brand small { color: var(--muted); }
.footer-v3 .footer-social a { border-color: var(--line); color: var(--text); }
.footer-v3 .footer-bottom { border-color: var(--line); }
.footer-v4 .site-footer { background: linear-gradient(135deg,var(--primary),var(--secondary)); }
.footer-v4 .footer-main { padding-top: 80px; }
.footer-v5 .site-footer { background: var(--text); }
.footer-v5 .footer-grid { grid-template-columns: 1fr 1fr; }
.footer-v5 .footer-grid > div { padding: 22px; border-left: 1px solid rgba(255,255,255,.12); }

/* Search page and modal variants */
.search-page-form, .search-panel form { display: flex; gap: 10px; }
.search-page-form label, .search-panel label { flex: 1; }
.search-results { display: grid; gap: 13px; margin-top: 30px; }
.search-results article, .empty-state { padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.search-results small { color: var(--secondary); font-weight: 800; text-transform: uppercase; }
.search-results h2 { margin: 8px 0; font-size: 1.2rem; }
.search-results p { margin: 0; font-size: .84rem; }
.search-layer { position: fixed; z-index: 300; inset: 0; background: rgba(3,13,30,.7); opacity: 0; backdrop-filter: blur(9px); transition: opacity .18s ease; }
.search-layer.open { opacity: 1; }
.search-panel { position: absolute; top: 50%; left: 50%; width: min(680px,calc(100% - 32px)); padding: 34px; border-radius: 24px; background: var(--surface); transform: translate(-50%,-50%); box-shadow: var(--shadow); }
.search-panel h2 { margin: 10px 45px 22px 0; font-size: 2rem; }
.dialog-close, .customizer-close, .lightbox-close { display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 0; border-radius: 10px; background: var(--background); font-size: 1.5rem; }
.dialog-close { position: absolute; top: 16px; right: 16px; }
.search-v2 .search-panel { top: 0; width: 100%; max-width: none; border-radius: 0 0 28px 28px; transform: translateX(-50%); }
.search-v3 .search-layer { background: var(--surface); }
.search-v3 .search-panel { box-shadow: none; }
.search-v4 .search-panel { top: 95px; right: max(20px,calc((100% - var(--container))/2)); left: auto; width: min(520px,calc(100% - 40px)); transform: none; }
.search-v5 .search-panel { border: 2px solid var(--text); border-radius: 8px; box-shadow: 12px 12px 0 var(--accent); }

/* Live customizer */
.customizer-open { position: fixed; z-index: 160; right: 18px; bottom: 18px; display: inline-flex; min-height: 48px; align-items: center; gap: 9px; padding: 0 17px; border: 0; border-radius: 999px; background: var(--text); color: #fff; box-shadow: 0 14px 40px rgba(20,32,51,.25); font-weight: 800; }
.customizer-open svg { width: 20px; }
.demo-customizer { position: fixed; z-index: 250; top: 0; right: 0; width: min(390px,100%); height: 100%; overflow-y: auto; padding: 26px; background: var(--surface); box-shadow: -20px 0 60px rgba(20,32,51,.2); transform: translateX(100%); transition: transform .24s ease; }
.demo-customizer.open { transform: translateX(0); }
.customizer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.customizer-head small { color: var(--secondary); font-size: .65rem; font-weight: 900; letter-spacing: .14em; }
.customizer-head h2 { margin: 5px 0 0; }
.customizer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.customizer-grid label { display: grid; gap: 6px; color: var(--muted); font-size: .7rem; font-weight: 800; }
.customizer-grid input[type="color"] { height: 48px; padding: 5px; }
.customizer-apply { width: 100%; margin-top: 22px; }
.reset-link { display: block; margin-top: 13px; color: var(--muted); font-size: .75rem; font-weight: 700; text-align: center; }

/* Lightbox and feedback */
.lightbox { position: fixed; z-index: 350; inset: 0; display: grid; padding: 40px; place-items: center; background: rgba(2,9,21,.9); }
.lightbox figure { max-width: 1100px; margin: 0; color: #fff; }
.lightbox img { max-height: 78vh; border-radius: 18px; }
.lightbox figcaption { margin-top: 12px; text-align: center; }
.lightbox-close { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,.12); color: #fff; }
.toast { position: fixed; z-index: 400; right: 20px; bottom: 82px; max-width: 340px; padding: 15px 18px; border-radius: 12px; background: #116239; color: #fff; box-shadow: var(--shadow); font-size: .82rem; font-weight: 700; }

@media (max-width: 1080px) {
  .main-nav { gap: 13px; }
  .hero-grid, .about-grid, .split { grid-template-columns: 1fr; }
  .hero-media { max-width: 720px; }
  .home-v3 .hero::before { inset: 0; opacity: .15; }
  .home-v3 .hero-copy { padding-right: 0; }
  .home-v3 .hero-media { display: none; }
  .home-v3 .hero-copy, .home-v3 .hero-copy p { color: var(--text); }
  .teacher-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-shell, .header-v2 .nav-shell, .header-v5 .nav-shell { display: flex; min-height: 74px; flex-wrap: nowrap; padding-block: 0; }
  .header-v2 .brand { width: auto; justify-content: flex-start; }
  .header-v2 .nav-actions { position: static; }
  .header-v4 .site-header { border-radius: 22px; }
  .main-nav, .header-v2 .main-nav, .header-v5 .main-nav { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: none; width: auto; max-height: calc(100vh - 120px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a, .header-v3 .main-nav a { padding: 10px; border-radius: 8px; color: var(--text); }
  .main-nav a::after { display: none; }
  .menu-toggle { display: grid; order: 5; }
  .nav-actions { margin-left: auto; }
  .card-grid, .news-grid, .program-grid { grid-template-columns: repeat(2,1fr); }
  .card-v4 .news-card { display: block; grid-column: auto; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid div:nth-child(2) { border-right: 0; }
  .stats-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .container, .narrow { width: min(100% - 28px,var(--container)); }
  .topbar-inner { justify-content: center; }
  .topbar-contact { gap: 11px; font-size: .68rem; }
  .topbar-contact span { display: none; }
  .topbar .socials { display: none; }
  .brand > span:last-child { display: none; }
  .header-v4 .site-header { width: calc(100% - 20px); }
  .nav-actions .button { display: none; }
  .hero-grid { min-height: auto; padding-block: 62px; }
  .home-v5 .hero-grid { padding: 42px 24px; border-radius: 22px; }
  .hero-media img { height: 330px; }
  .stats-grid, .card-grid, .news-grid, .program-grid, .teacher-grid, .gallery-grid, .footer-grid, .footer-v5 .footer-grid { grid-template-columns: 1fr; }
  .stats-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-grid div:nth-child(3) { border-bottom: 1px solid var(--line); }
  .section { padding: 65px 0; }
  .section-head, .cta-box { align-items: flex-start; flex-direction: column; }
  .page-hero, .article-hero { padding: 65px 0 55px; }
  .teacher-card img { height: 390px; }
  .gallery-item, .gallery-item img { min-height: 270px; }
  .steps, .form-grid, .customizer-grid { grid-template-columns: 1fr; }
  .search-page-form, .search-panel form { flex-direction: column; }
  .search-panel { padding: 27px; }
  .search-v4 .search-panel { top: 80px; right: 14px; width: calc(100% - 28px); }
  .footer-v2 .footer-grid > div { display: block; margin: 28px 0 0; }
  .footer-v5 .footer-grid > div { border-left: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .customizer-open span { display: none; }
  .customizer-open { width: 50px; padding: 0; justify-content: center; }
  .lightbox { padding: 18px; }
}
