/**
 * site.css - the public design system. Scoped under body.site so it can never
 * leak into the admin. NO colour is hard-coded: everything reads the theme
 * variables (--d deep, --p primary, --a accent, --bg, --ink ...) that
 * Theme::css() emits in <head>, so themes and dark mode just work.
 *
 *  1 Base & utilities    2 Reveal & motion    3 Chrome (progress, toasts, to-top)
 *  4 Topbar & header     5 Mobile menu & action bar    6 Buttons & pills
 *  7 Home hero           8 Page hero & marquee         9 Cards
 * 10 Timeline, slider, FAQ   11 Explorer, hybrid, LMS preview   12 CTA & footer
 * 13 Forms & multi-step      14 Calendar, news, notices, gallery, lightbox
 * 15 Search palette, map, contact, detail pages   16 Auth, errors, responsive, dark, print
 */

/* ===== 1. BASE & UTILITIES ===== */
body.site {
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
    --r: 22px; --r-sm: 14px; --r-xs: 10px;
    --sh: 0 10px 30px rgba(var(--shadow-rgb, 11, 31, 58), 0.10);
    --sh-lg: 0 28px 64px rgba(var(--shadow-rgb, 11, 31, 58), 0.20);
    --header-h: 76px;
    --section-y: clamp(64px, 5vw + 32px, 128px);
    --grad: linear-gradient(110deg, var(--p) 0%, var(--a) 100%);
    --bs-body-bg: var(--bg); --bs-body-color: var(--ink); --bs-border-color: var(--line);
    font-family: var(--font-body, system-ui, sans-serif);
    color: var(--ink); background: var(--bg);
    overflow-x: clip; -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility;
    padding-bottom: env(safe-area-inset-bottom);
}
@supports not (overflow: clip) { body.site { overflow-x: hidden; } }
.site ::selection { background: var(--p); color: var(--on-p); }
.site img { max-width: 100%; height: auto; }
.site a { color: var(--p-text); text-decoration: none; }
.site :focus-visible { outline: 3px solid var(--a); outline-offset: 3px; border-radius: 6px; }
.site h1, .site h2, .site h3, .site h4, .site h5 { font-family: var(--font-display, inherit); letter-spacing: -0.025em; text-wrap: balance; color: var(--ink); }
.site p { text-wrap: pretty; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 3100; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.img-x { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--bg-soft); }
.ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; color: rgba(255, 255, 255, 0.85); font-size: 2.2rem;
    background: radial-gradient(circle at 20% 20%, rgba(var(--a-rgb), 0.55), transparent 55%), linear-gradient(135deg, var(--p-700), var(--d)); }
.zoom { overflow: hidden; }
.zoom .img-x, .zoom .ph { transition: transform 0.8s var(--ease); }
.zoom:hover .img-x, a:hover > .zoom .img-x { transform: scale(1.06); }

.sec { padding: var(--section-y) 0; position: relative; }
.sec-tight { padding: calc(var(--section-y) * 0.6) 0; position: relative; }
.sec-soft { background: var(--bg-soft); }
.sec-dark { background: var(--deep-bg); color: #fff; position: relative; isolation: isolate; overflow: clip; }
.sec-dark h1, .sec-dark h2, .sec-dark h3, .sec-dark h4 { color: #fff; }
.sec-dark a:not(.btn-x) { color: #fff; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; display: inline-block; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--p-text); background: rgba(var(--p-rgb), 0.1); border: 1px solid rgba(var(--p-rgb), 0.25); padding: 7px 16px; border-radius: 999px; }
.sec-dark .kicker, .page-hero .kicker, .hero-x .kicker { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); }
.kicker .ping { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; position: relative; flex-shrink: 0; }
.kicker .ping::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.8); opacity: 0; } }
.h-section { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.1rem); font-weight: 800; line-height: 1.1; margin: 16px 0 0; }
.lead-x { font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); line-height: 1.7; color: var(--muted); }
.sec-dark .lead-x { color: rgba(255, 255, 255, 0.75); }
.sec-head { max-width: 740px; margin: 0 auto clamp(36px, 4vw, 64px); text-align: center; }
.sec-head .lead-x { margin-top: 16px; }
.sec-head-split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head-split .h-section { margin-top: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--p-text); }
.link-arrow i { transition: transform 0.3s var(--ease); }
.link-arrow:hover i { transform: translateX(6px); }
.sec-dark .link-arrow { color: var(--a); }
.bg-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 35%, #000 15%, transparent 72%); }
.blob { position: absolute; z-index: -1; border-radius: 50%; opacity: 0.55; pointer-events: none; }
.blob-p { background: radial-gradient(circle, rgba(var(--p-rgb), 0.9), transparent 68%); }
.blob-a { background: radial-gradient(circle, rgba(var(--a-rgb), 0.8), transparent 68%); }
.blob-1 { width: 560px; height: 560px; top: -180px; right: -120px; animation: blobA 20s ease-in-out infinite alternate; }
.blob-2 { width: 460px; height: 460px; bottom: -160px; left: -140px; opacity: 0.4; animation: blobB 24s ease-in-out infinite alternate; }
@keyframes blobA { to { transform: translate3d(-90px, 70px, 0) scale(1.18); } }
@keyframes blobB { to { transform: translate3d(110px, -60px, 0) scale(1.12); } }
@keyframes floatY { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.doodle { position: absolute; left: 0; right: 0; bottom: -0.12em; width: 100%; height: 0.32em; color: var(--a); }

/* ===== 2. REVEAL & MOTION ===== */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="left"] { transform: translate3d(-48px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(48px, 0, 0); }
.js [data-reveal="zoom"] { transform: scale(0.92); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-fallback [data-reveal] { opacity: 1 !important; transform: none !important; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.js .split .w > * { display: inline-block; transform: translate3d(0, 110%, 0) rotate(3deg); transition: transform 0.95s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + var(--base, 0ms)); }
.js .split.is-in .w > * { transform: none; }
.reveal-fallback .split .w > * { transform: none !important; }
.spot { position: relative; isolation: isolate; overflow: hidden; }
.spot::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--p-rgb), 0.16), transparent 62%); transition: opacity 0.4s ease; }
.spot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--p-rgb), 0.95), rgba(var(--a-rgb), 0.6) 45%, transparent 72%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.spot:hover::before, .spot:hover::after { opacity: 1; }
[data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, var(--ty, 0px), 0); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
[data-tilt].is-tilting { transition: transform 0.08s linear, box-shadow 0.35s var(--ease); }
[data-magnetic] { transition: transform 0.35s var(--ease); }
.view-fade { view-transition-name: none; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; }

/* ===== 3. CHROME ===== */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); pointer-events: none; }
.to-top { position: fixed; right: clamp(14px, 2vw, 28px); bottom: calc(clamp(14px, 2vw, 28px) + env(safe-area-inset-bottom)); z-index: 1000; width: 52px; height: 52px; border-radius: 50%; border: 0; padding: 0;
    background: var(--d); color: #fff; display: grid; place-items: center; box-shadow: var(--sh-lg); opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.9);
    transition: opacity 0.35s ease, transform 0.35s var(--ease), visibility 0.35s, background 0.25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--p-600); transform: translateY(-4px); }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top svg circle { fill: none; stroke-width: 2.5; }
.to-top .ring-bg { stroke: rgba(255, 255, 255, 0.18); }
.to-top .ring { stroke: var(--a); stroke-linecap: round; stroke-dasharray: 144.5; stroke-dashoffset: calc(144.5 - 144.5 * var(--sp, 0)); }
.to-top i { position: relative; font-size: 1.15rem; }
.flash-stack { position: fixed; top: calc(var(--header-h) + 54px); right: 16px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.flash-x { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--card); color: var(--ink); border: 1px solid var(--line);
    border-left: 4px solid var(--p); box-shadow: var(--sh-lg); animation: toastIn 0.5s var(--ease); }
.flash-x.is-out { opacity: 0; transform: translateX(30px); transition: 0.4s; }
.flash-x .fi { font-size: 1.2rem; color: var(--p-text); margin-top: 1px; }
.flash-x.flash-success { border-left-color: #16a34a; } .flash-x.flash-success .fi { color: #16a34a; }
.flash-x.flash-danger { border-left-color: #dc2626; } .flash-x.flash-danger .fi { color: #dc2626; }
.flash-x.flash-warning { border-left-color: var(--a); }
.flash-x .fm { flex: 1; font-size: 0.95rem; }
.flash-x .fx { background: none; border: 0; color: var(--muted); padding: 0; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } }

/* ===== 4. TOPBAR & HEADER ===== */
.topbar { background: var(--d); color: rgba(255, 255, 255, 0.85); font-size: 0.82rem; position: relative; z-index: 1001; }
.topbar .container { display: flex; align-items: center; gap: 18px; min-height: 40px; }
.ticker { flex: 1; min-width: 0; overflow: hidden; position: relative; height: 40px; }
.ticker-track { display: flex; flex-direction: column; transition: transform 0.6s var(--ease); }
.ticker-item { height: 40px; display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.ticker-item .tag { background: var(--a); color: var(--on-a); font-weight: 800; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; flex-shrink: 0; }
.ticker-item .tag.urgent { background: #ef4444; color: #fff; }
.ticker-item a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 3px; overflow: hidden; text-overflow: ellipsis; }
.topbar .tb-links { display: flex; gap: 18px; align-items: center; flex-shrink: 0; }
.topbar .tb-links a { color: rgba(255, 255, 255, 0.85); display: inline-flex; gap: 6px; align-items: center; }
.topbar .tb-links a:hover { color: var(--a); }
.open-dot { display: inline-flex; align-items: center; gap: 6px; }
.open-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.open-dot.is-open::before { background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.25); }

.site-nav { position: sticky; top: 0; z-index: 1000; height: 0; transition: transform 0.45s var(--ease); }
.site-nav.is-hidden { transform: translateY(-140px); }
.nav-shell { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 9px 12px 9px 20px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); transition: box-shadow 0.3s, padding 0.3s; }
.site-nav.is-scrolled .nav-shell { box-shadow: var(--sh-lg); }
.nav-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink) !important; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; min-width: 0; }
.nav-brand img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.nav-brand .logo-dark, [data-theme="dark"] .nav-brand .logo-light.has-dark { display: none; }
[data-theme="dark"] .nav-brand .logo-dark { display: block; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--d); color: var(--p); display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; position: relative; flex-shrink: 0; }
.brand-mark::after { content: ''; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--a); }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.brand-name small { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.nav-links { display: none; list-style: none; margin: 0 8px 0 0; padding: 0; position: relative; align-items: center; gap: 2px; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button.dd-t { display: inline-flex; align-items: center; gap: 5px; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--ink); background: none; border: 0; position: relative; z-index: 1; white-space: nowrap; }
.nav-links > li > a:hover, .nav-links > li > a.active, .nav-links > li > button.dd-t:hover { color: var(--p-text); }
.nav-indicator { position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); background: rgba(var(--p-rgb), 0.12); border-radius: 999px; opacity: 0; transition: transform 0.4s var(--ease), width 0.4s var(--ease), opacity 0.25s; pointer-events: none; }
.nav-indicator.is-on { opacity: 1; }
.dd { position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px); width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); padding: 14px; opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0.25s; z-index: 5; }
.has-dd:hover > .dd, .has-dd:focus-within > .dd, .has-dd.open > .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dd-item { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-sm); color: var(--ink) !important; }
.dd-item:hover { background: var(--bg-soft); }
.dd-item .di { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: rgba(var(--p-rgb), 0.12); color: var(--p-text); font-size: 1.2rem; }
.dd-item.alt .di { background: rgba(var(--a-rgb), 0.18); color: var(--a-text); }
.dd-item b { display: block; font-size: 0.95rem; } .dd-item small { color: var(--muted); font-size: 0.8rem; line-height: 1.4; display: block; }
.nav-actions { display: none; align-items: center; gap: 8px; }
.nav-icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink) !important; border: 0; font-size: 1.05rem; }
.nav-icon-btn:hover { background: rgba(var(--p-rgb), 0.15); }
.nav-toggle { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--d); display: grid; place-items: center; padding: 0; }
.nav-toggle .bars { width: 18px; height: 14px; position: relative; display: block; }
.nav-toggle .bars i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.35s var(--ease), opacity 0.2s, top 0.35s var(--ease); }
.nav-toggle .bars i:nth-child(1) { top: 0; } .nav-toggle .bars i:nth-child(2) { top: 6px; } .nav-toggle .bars i:nth-child(3) { top: 12px; }
.menu-open .nav-toggle .bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-open .nav-toggle .bars i:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle .bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
@media (min-width: 1200px) {
    .nav-links, .nav-actions { display: flex; } .nav-toggle { display: none; }
    .nav-shell { padding-left: 22px; }
}

/* ===== 5. MOBILE MENU & ACTION BAR ===== */
.mobile-menu { position: fixed; inset: 0; z-index: 990; background: var(--deep-bg); color: #fff; padding: calc(var(--header-h) + 64px) 0 40px; overflow-y: auto; visibility: hidden; opacity: 0; clip-path: circle(0% at calc(100% - 44px) 44px); transition: clip-path 0.7s var(--ease), opacity 0.3s, visibility 0.7s; }
.menu-open .mobile-menu { visibility: visible; opacity: 1; clip-path: circle(150% at calc(100% - 44px) 44px); }
.menu-open { overflow: hidden; }
.mm-links { list-style: none; margin: 0 0 28px; padding: 0; }
.mm-links a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 5vw, 2.2rem); color: #fff !important; border-bottom: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + 0.2s); }
.menu-open .mm-links a { opacity: 1; transform: none; }
.mm-links a small { font-size: 0.8rem; color: var(--a); font-family: var(--font-body); }
.mm-links a.active { color: var(--a) !important; }
.mm-sub { padding-left: 14px; } .mm-sub a { font-size: 1.05rem; font-weight: 600; padding: 9px 0; opacity: 0.85; }
.mm-foot { color: rgba(255, 255, 255, 0.8); } .mm-foot a { color: #fff; }
.m-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 995; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 6px; padding: 6px; border-radius: 20px; background: var(--d); box-shadow: var(--sh-lg); transition: transform 0.4s var(--ease); }
.m-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; color: #fff !important; font-size: 0.7rem; font-weight: 700; }
.m-bar a i { font-size: 1.15rem; }
.m-bar a.go { background: var(--a); color: var(--on-a) !important; flex-direction: row; justify-content: center; gap: 6px; font-size: 0.85rem; }
.menu-open .m-bar { transform: translateY(140%); }
@media (min-width: 992px) { .m-bar { display: none; } }
@media (max-width: 991.98px) { body.site { padding-bottom: calc(86px + env(safe-area-inset-bottom)); } .to-top { bottom: calc(92px + env(safe-area-inset-bottom)); } }

/* ===== 6. BUTTONS & PILLS ===== */
.btn-x { --bg-b: var(--p); --fg-b: var(--on-p); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
    font-family: var(--font-body); font-weight: 700; font-size: 0.97rem; line-height: 1; background: var(--bg-b); color: var(--fg-b) !important; position: relative; overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.25s; box-shadow: 0 8px 22px rgba(var(--p-rgb), 0.35); text-decoration: none !important; }
.btn-x:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(var(--p-rgb), 0.45); }
.btn-x::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s var(--ease); }
.btn-x:hover::after { transform: translateX(120%); }
.btn-x .arr { transition: transform 0.3s var(--ease); } .btn-x:hover .arr { transform: translate(3px, -3px); }
.btn-x-accent { --bg-b: var(--a); --fg-b: var(--on-a); box-shadow: 0 8px 22px rgba(var(--a-rgb), 0.35); }
.btn-x-accent:hover { box-shadow: 0 14px 30px rgba(var(--a-rgb), 0.5); }
.btn-x-dark { --bg-b: var(--d); --fg-b: #fff; box-shadow: var(--sh); }
.btn-x-ghost { --bg-b: transparent; --fg-b: var(--ink); background: transparent; box-shadow: none; border: 1.5px solid var(--line); }
.btn-x-ghost:hover { background: var(--bg-soft); box-shadow: none; border-color: var(--p); }
.hero-x .btn-x-ghost, .page-hero .btn-x-ghost, .sec-dark .btn-x-ghost, .cta-x .btn-x-ghost { --fg-b: #fff; border-color: rgba(255, 255, 255, 0.35); }
.hero-x .btn-x-ghost:hover, .page-hero .btn-x-ghost:hover, .sec-dark .btn-x-ghost:hover, .cta-x .btn-x-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-x-sm { padding: 11px 20px; font-size: 0.88rem; } .btn-x-lg { padding: 18px 34px; font-size: 1.05rem; }
.btn-x .spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin 0.7s linear infinite; }
.btn-x.is-loading { pointer-events: none; opacity: 0.85; } .btn-x.is-loading .spin { display: inline-block; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; background: rgba(var(--p-rgb), 0.12); color: var(--p-text); white-space: nowrap; }
.pill-a { background: rgba(var(--a-rgb), 0.2); color: var(--a-text); }
.pill-d { background: var(--d); color: #fff; } .pill-muted { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.pill-red { background: #fee2e2; color: #b91c1c; } .pill-green { background: #dcfce7; color: #15803d; }
[data-theme="dark"] .pill-red { background: rgba(239, 68, 68, 0.18); color: #fca5a5; } [data-theme="dark"] .pill-green { background: rgba(34, 197, 94, 0.18); color: #86efac; }

/* ===== 7. HOME HERO ===== */
.site [hidden] { display: none !important; }
.hero-x { position: relative; isolation: isolate; overflow: clip; background: var(--deep-bg); color: #fff; padding: calc(var(--header-h) + 52px) 0 0; }
.hero-x h1, .hero-x h2, .hero-x h3 { color: #fff; }
.hero-x [data-particles] { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-glow { position: absolute; top: 0; left: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; z-index: -1; pointer-events: none; will-change: transform;
    background: radial-gradient(circle, rgba(var(--p-rgb), 0.32), transparent 66%); transform: translate3d(62vw, 34%, 0); transition: transform 0.28s ease-out; }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero-title { font-size: clamp(2.3rem, 1.1rem + 5.2vw, 4.9rem); font-weight: 800; line-height: 1.04; margin: 20px 0 22px; letter-spacing: -0.035em; }
.hero-title .rot { color: var(--a); border-right: 3px solid var(--a); padding-right: 4px; animation: caret 1s steps(1) infinite; white-space: nowrap; }
@keyframes caret { 50% { border-color: transparent; } }
.hero-sub { font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.28rem); line-height: 1.65; color: rgba(255, 255, 255, 0.82); max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 34px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; } .hero-trust i { color: var(--a); font-size: 1.05rem; }
.hero-visual { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1 / 1.04; }
.hv-orbit { position: absolute; inset: 2% -2% 6% 4%; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, 0.22); animation: spin 60s linear infinite; }
.hv-orbit::after { content: ''; position: absolute; top: 14%; left: 6%; width: 14px; height: 14px; border-radius: 50%; background: var(--a); box-shadow: 0 0 22px 4px rgba(var(--a-rgb), 0.7); }
.hv-main { position: absolute; inset: 7% 6% 12% 14%; border-radius: 34px 34px 150px 34px; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.2); background: var(--d); }
.hv-main .img-x { height: 100%; }
.hv-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(var(--d-rgb), 0.55)); pointer-events: none; }
.hv-thumb { position: absolute; left: 0; bottom: 5%; width: 38%; aspect-ratio: 1; border-radius: 28px; overflow: hidden; border: 4px solid var(--d); box-shadow: var(--sh-lg); animation: floatY 7s ease-in-out infinite; }
.hv-thumb .img-x { height: 100%; }
.hv-chip { position: absolute; display: flex; align-items: center; gap: 11px; padding: 11px 16px 11px 12px; border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: var(--sh-lg); border: 1px solid var(--line); font-size: 0.8rem; line-height: 1.25; animation: floatY 6s ease-in-out infinite; }
.hv-chip .ci { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; background: rgba(var(--p-rgb), 0.14); color: var(--p-text); flex-shrink: 0; }
.hv-chip.alt .ci { background: rgba(var(--a-rgb), 0.22); color: var(--a-text); }
.hv-chip b { display: block; font-size: 0.92rem; } .hv-chip small { color: var(--muted); }
.hv-chip-a { top: 4%; left: 0; animation-delay: -1.2s; } .hv-chip-b { top: 36%; right: -3%; animation-delay: -3s; } .hv-chip-c { bottom: 0; right: 8%; animation-delay: -4.4s; }
.stats-bar { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 0; border-radius: 26px 26px 0 0; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
@media (min-width: 768px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } }
.stats-bar .stat { padding: 22px 24px; border-left: 1px solid rgba(255, 255, 255, 0.1); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.stats-bar .stat:nth-child(-n+2) { border-top: 0; } .stats-bar .stat:nth-child(odd) { border-left: 0; }
@media (min-width: 768px) { .stats-bar .stat { border-top: 0; } .stats-bar .stat:nth-child(odd) { border-left: 1px solid rgba(255, 255, 255, 0.1); } .stats-bar .stat:first-child { border-left: 0; } }
.stats-bar b { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 800; line-height: 1; color: #fff; }
.stats-bar b em { font-style: normal; color: var(--a); }
.stats-bar span { display: block; margin-top: 8px; font-size: 0.84rem; color: rgba(255, 255, 255, 0.72); }

/* ===== 8. PAGE HERO & MARQUEE ===== */
.page-hero { position: relative; isolation: isolate; overflow: clip; background: var(--deep-bg); color: #fff; padding: calc(var(--header-h) + 44px) 0 clamp(48px, 6vw, 84px); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1rem + 4.2vw, 3.7rem); font-weight: 800; line-height: 1.08; margin: 16px 0 14px; }
.page-hero p.lead-x { color: rgba(255, 255, 255, 0.8); max-width: 680px; margin: 0; }
.page-hero .ph-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 0.84rem; list-style: none; padding: 0; margin: 0 0 6px; color: rgba(255, 255, 255, 0.68); }
.crumbs a { color: rgba(255, 255, 255, 0.88); } .crumbs a:hover { color: var(--a); }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: 0.5; }
.page-hero .ph-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }
.page-hero .ph-meta span { display: inline-flex; gap: 7px; align-items: center; } .page-hero .ph-meta i { color: var(--a); }
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-soft); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee-group { display: flex; gap: 46px; padding-right: 46px; }
.mq-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); white-space: nowrap; font-size: 0.98rem; }
.mq-item i { color: var(--p-text); font-size: 1.15rem; }
.marquee.is-off .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ===== 9. CARDS ===== */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.card-x { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: relative; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s; height: 100%; display: flex; flex-direction: column; color: var(--ink); }
.card-x:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: rgba(var(--p-rgb), 0.45); }
.card-x .cx-img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: var(--bg-soft); flex-shrink: 0; }
.card-x .cx-img .img-x, .card-x .cx-img .ph { position: absolute; inset: 0; }
.card-x .cx-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.card-x .cx-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-x h3 { font-size: 1.2rem; font-weight: 700; margin: 0; line-height: 1.25; } .card-x h3 a { color: var(--ink); }
.card-x h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-x p { color: var(--muted); font-size: 0.94rem; line-height: 1.6; margin: 0; }
.card-x .cx-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.card-x .cx-foot a, .card-x .cx-foot button { position: relative; z-index: 2; }
.cx-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.82rem; color: var(--muted); list-style: none; padding: 0; margin: 4px 0 0; }
.cx-meta li { display: inline-flex; align-items: center; gap: 6px; } .cx-meta i { color: var(--p-text); }
.ico-box { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: rgba(var(--p-rgb), 0.12); color: var(--p-text); flex-shrink: 0; transition: transform 0.4s var(--ease), background 0.3s, color 0.3s; }
.card-x:hover .ico-box { transform: rotate(-6deg) scale(1.08); background: var(--p); color: var(--on-p); }
.ico-box.alt { background: rgba(var(--a-rgb), 0.2); color: var(--a-text); } .card-x:hover .ico-box.alt { background: var(--a); color: var(--on-a); }
.feat-card { padding: 26px; gap: 14px; }
.feat-card h3 { font-size: 1.12rem; }
.track-card { border-radius: 28px; min-height: 100%; }
.track-card .cx-img { aspect-ratio: 16 / 9; }
.track-card .cx-body { padding: 28px; gap: 14px; }
.track-card h3 { font-size: 1.7rem; }
.track-card .age { font-family: var(--font-display); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--p-text); }
.track-card.t-adults .age { color: var(--a-text); }
.tick-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 9px; font-size: 0.94rem; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; } .tick-list i { color: var(--p-text); margin-top: 3px; flex-shrink: 0; }
.sec-dark .tick-list i { color: var(--a); }
.domain-tile { padding: 24px; gap: 12px; }
.domain-tile .count { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.prog-card .price { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.prog-card .price small { font-weight: 500; color: var(--muted); font-family: var(--font-body); font-size: 0.78rem; }
.news-card .cx-img { aspect-ratio: 16 / 9; }
.news-card .date { font-size: 0.8rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.event-card { flex-direction: row; }
.event-card .date-badge { width: 84px; flex-shrink: 0; background: var(--d); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px 6px; }
.event-card .date-badge b { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; } .event-card .date-badge span { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--a); font-weight: 700; margin-top: 4px; }
.event-card .cx-body { padding: 18px 20px; }
.staff-card { text-align: center; }
.staff-card .cx-img { aspect-ratio: 1 / 1.05; }
.staff-card .cx-body { align-items: center; gap: 4px; padding: 18px; }
.staff-card .role { color: var(--p-text); font-weight: 700; font-size: 0.86rem; }
.portal-card { padding: 26px; gap: 14px; }
.portal-card .pc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.album-card .cx-img { aspect-ratio: 4 / 3; }
.album-card .count { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(var(--d-rgb), 0.85); color: #fff; font-size: 0.74rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.project-card .cx-img { aspect-ratio: 4 / 3; }
.testi-card { padding: 28px; gap: 16px; }
.testi-card .quote { font-size: 1.05rem; line-height: 1.65; color: var(--ink); position: relative; margin: 0; }
.testi-card .quote::before { content: '\201C'; font-family: var(--font-display); font-size: 4rem; line-height: 0; color: var(--a); display: block; height: 22px; margin-bottom: 6px; }
.testi-card .who { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--p); color: var(--on-p); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-card .who b { display: block; font-size: 0.95rem; } .testi-card .who small { color: var(--muted); }
.stars { color: var(--a); letter-spacing: 2px; font-size: 0.95rem; }
.note-card { padding: 22px; gap: 8px; border-left: 4px solid var(--p); border-radius: var(--r-sm); }
.note-card.urgent { border-left-color: #ef4444; }
.note-card .meta { font-size: 0.8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.value-card { padding: 26px; text-align: left; }
.num-stat { padding: 28px 22px; text-align: center; }
.num-stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; line-height: 1; color: var(--p-text); }
.num-stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }

/* ===== 10. TIMELINE, SLIDER, FAQ ===== */
.tl { --p: 0; position: relative; display: grid; gap: 22px; counter-reset: step; }
@media (min-width: 900px) { .tl { grid-template-columns: repeat(3, 1fr); gap: 28px; } .tl.tl-4 { grid-template-columns: repeat(4, 1fr); } }
.tl::before, .tl::after { content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 3px; border-radius: 3px; background: var(--line); }
.tl::after { background: var(--grad); transform-origin: 0 0; transform: scaleY(var(--p)); }
@media (min-width: 900px) {
    .tl::before, .tl::after { left: 8%; right: 8%; top: 27px; bottom: auto; width: auto; height: 3px; }
    .tl::after { transform: scaleX(var(--p)); }
}
.tl-step { position: relative; padding-left: 78px; }
@media (min-width: 900px) { .tl-step { padding: 76px 8px 0; text-align: center; } }
.tl-dot { position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; background: var(--card); border: 3px solid var(--line); color: var(--muted); transition: background 0.5s var(--ease), border-color 0.5s, color 0.5s, transform 0.5s var(--ease), box-shadow 0.5s; z-index: 1; }
@media (min-width: 900px) { .tl-dot { left: 50%; margin-left: -28px; } }
.tl-step.is-on .tl-dot { background: var(--p); border-color: var(--p); color: var(--on-p); transform: scale(1.08); box-shadow: 0 0 0 8px rgba(var(--p-rgb), 0.18); }
.tl-step h3 { font-size: 1.25rem; margin: 0 0 8px; } .tl-step p { color: var(--muted); margin: 0; font-size: 0.96rem; line-height: 1.6; }
.tl-step .tl-tag { display: inline-block; margin-top: 10px; }
.sec-dark .tl-dot { background: var(--d); border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.7); }
.sec-dark .tl::before { background: rgba(255, 255, 255, 0.14); } .sec-dark .tl-step p { color: rgba(255, 255, 255, 0.72); }
.tsl-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 22px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.tsl-track::-webkit-scrollbar { display: none; }
.tsl-slide { flex: 0 0 min(88%, 440px); scroll-snap-align: start; }
@media (min-width: 992px) { .tsl-slide { flex-basis: calc((100% - 44px) / 3); } }
.tsl-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.tsl-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.tsl-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; background: var(--line); transition: width 0.4s var(--ease), background 0.3s; }
.tsl-dots button.is-on { width: 30px; background: var(--p); }
.tsl-arrows { display: flex; gap: 8px; }
.tsl-arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.tsl-arrows button:hover { background: var(--p); color: var(--on-p); border-color: var(--p); }
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color 0.3s, box-shadow 0.3s; }
.faq-item.is-open { border-color: rgba(var(--p-rgb), 0.5); box-shadow: var(--sh); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 18px 22px; background: none; border: 0; font-weight: 700; font-size: 1.02rem; color: var(--ink); font-family: var(--font-display); }
.faq-q .pm { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--p-rgb), 0.12); color: var(--p-text); flex-shrink: 0; transition: transform 0.4s var(--ease), background 0.3s, color 0.3s; }
.faq-item.is-open .pm { transform: rotate(45deg); background: var(--p); color: var(--on-p); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; } .faq-a p, .faq-a .rt { padding: 0 22px 20px; margin: 0; color: var(--muted); line-height: 1.7; }

/* ===== 11. EXPLORER, HYBRID TOGGLE, LMS PREVIEW ===== */
.ex-filters { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--sh); margin-bottom: 26px; }
.ex-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; }
.ex-label { font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); width: 100%; }
@media (min-width: 768px) { .ex-label { width: 96px; } }
.chip-btn { border: 1.5px solid var(--line); background: transparent; color: var(--ink); padding: 9px 17px; border-radius: 999px; font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease); display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); }
.chip-btn:hover { border-color: var(--p); transform: translateY(-2px); }
.chip-btn.is-on, .chip-btn[aria-pressed="true"] { background: var(--d); color: #fff; border-color: var(--d); }
.ex-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.ex-count { color: var(--muted); font-size: 0.92rem; } .ex-count b { color: var(--ink); }
.ex-empty { text-align: center; padding: 56px 20px; border: 2px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.ex-empty i { font-size: 2.4rem; color: var(--p-text); display: block; margin-bottom: 10px; }
.filter-pop { animation: pop 0.5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.search-inline { position: relative; min-width: min(100%, 280px); }
.search-inline i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-inline input { width: 100%; padding: 11px 16px 11px 40px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-size: 0.92rem; }
.seg { display: inline-flex; flex-wrap: wrap; position: relative; padding: 5px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); max-width: 100%; }
.seg button { position: relative; z-index: 1; padding: 11px 22px; border-radius: 999px; border: 0; background: none; font-weight: 700; font-size: 0.92rem; color: var(--muted); transition: color 0.3s; font-family: var(--font-body); display: inline-flex; gap: 8px; align-items: center; }
.seg button.is-on { color: var(--on-p); }
.seg-thumb { position: absolute; top: 5px; bottom: 5px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); background: var(--p); border-radius: 999px; transition: transform 0.45s var(--ease), width 0.45s var(--ease); box-shadow: 0 6px 16px rgba(var(--p-rgb), 0.35); }
.hy-panels { display: grid; margin-top: 34px; }
.hy-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.45s, transform 0.55s var(--ease), visibility 0.45s; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hy-panel { grid-template-columns: 1fr 1fr; } }
.hy-panel.is-on { opacity: 1; visibility: visible; transform: none; }
.hy-img { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--sh-lg); position: relative; background: var(--bg-soft); }
.hy-img .img-x { position: absolute; inset: 0; height: 100%; }
.hy-copy h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin: 0 0 12px; }
.hy-best { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-sm); background: rgba(var(--a-rgb), 0.14); border: 1px solid rgba(var(--a-rgb), 0.35); font-size: 0.93rem; }
.cmp-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.94rem; }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { background: var(--d); color: #fff; font-family: var(--font-display); } .cmp tbody th { font-weight: 700; color: var(--ink); width: 22%; background: var(--bg-soft); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp .yes { color: var(--p-text); font-weight: 700; }
.lms { background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--sh-lg); overflow: hidden; display: grid; position: relative; }
@media (min-width: 820px) { .lms { grid-template-columns: 208px 1fr; } }
.lms-side { background: var(--d); color: #fff; padding: 14px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 820px) { .lms-side { flex-direction: column; padding: 22px 14px; } }
.lms-brand { display: none; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; padding: 4px 10px 18px; }
@media (min-width: 820px) { .lms-brand { display: flex; } }
.lms-side button { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 12px; color: rgba(255, 255, 255, 0.78); font-size: 0.88rem; font-weight: 600; border: 0; background: none; text-align: left; white-space: nowrap; font-family: var(--font-body); transition: background 0.25s, color 0.25s; }
.lms-side button:hover { background: rgba(255, 255, 255, 0.08); color: #fff; } .lms-side button.is-on { background: rgba(255, 255, 255, 0.14); color: #fff; }
.lms-side button i { color: var(--a); }
.lms-main { padding: clamp(18px, 3vw, 30px); min-height: 420px; position: relative; }
.lms-flag { position: absolute; top: 14px; right: 14px; }
.lms-pane { display: none; animation: pop 0.5s var(--ease); } .lms-pane.is-on { display: block; }
.lms-pane h4 { font-size: 1.15rem; margin: 0 0 4px; } .lms-pane .sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; }
.lms-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.lms-kpi { background: var(--bg-soft); border-radius: 16px; padding: 14px 16px; } .lms-kpi b { display: block; font-family: var(--font-display); font-size: 1.5rem; } .lms-kpi span { font-size: 0.78rem; color: var(--muted); }
.lms-row { display: grid; gap: 6px; margin-bottom: 14px; } .lms-row .top { display: flex; justify-content: space-between; font-size: 0.88rem; font-weight: 600; }
.lms-bar { height: 9px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; } .lms-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); width: var(--v, 0%); transition: width 1.1s var(--ease); }
.lms-lab { background: var(--d); color: #d7f5ee; border-radius: 16px; padding: 16px 18px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.82rem; line-height: 1.8; overflow-x: auto; }
.lms-lab .c { color: var(--a); } .lms-lab .g { color: #7ef0b5; } .lms-lab .m { color: rgba(255, 255, 255, 0.5); }
.lms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.lms-tile { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 0.86rem; } .lms-tile .th { aspect-ratio: 16 / 10; border-radius: 10px; background: linear-gradient(135deg, var(--p-700), var(--d)); display: grid; place-items: center; color: #fff; font-size: 1.6rem; }
.lms-verify { display: flex; flex-wrap: wrap; gap: 10px; } .lms-verify input { flex: 1; min-width: 180px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.lms-cert { margin-top: 18px; border-radius: 16px; border: 1px dashed var(--p); padding: 18px; background: rgba(var(--p-rgb), 0.06); font-size: 0.92rem; }
.lms-cert.bad { border-color: #ef4444; background: rgba(239, 68, 68, 0.06); }

/* ===== 12. CTA & FOOTER ===== */
.cta-x { background: var(--deep-bg); color: #fff; border-radius: 36px; padding: clamp(36px, 6vw, 84px) clamp(24px, 5vw, 72px); position: relative; overflow: clip; isolation: isolate; text-align: center; }
.cta-x h2 { color: #fff; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.3rem); font-weight: 800; line-height: 1.1; margin: 16px auto 14px; max-width: 800px; }
.cta-x p { color: rgba(255, 255, 255, 0.8); max-width: 620px; margin: 0 auto; font-size: 1.06rem; }
.cta-x .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.footer-x { background: var(--deep-bg); color: rgba(255, 255, 255, 0.78); padding: clamp(56px, 6vw, 96px) 0 0; position: relative; isolation: isolate; overflow: clip; margin-top: 0; }
.footer-x h5 { color: #fff; font-size: 0.95rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 18px; font-family: var(--font-display); }
.footer-x a { color: rgba(255, 255, 255, 0.78); } .footer-x a:hover { color: var(--a); }
.footer-grid { display: grid; gap: 40px 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.f-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: 0.94rem; }
.f-brand { display: flex; align-items: center; gap: 12px; color: #fff !important; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; }
.f-brand img { height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.footer-x .brand-mark { background: rgba(255, 255, 255, 0.1); }
.f-about { font-size: 0.94rem; line-height: 1.7; max-width: 340px; }
.f-contact { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; font-size: 0.93rem; }
.f-contact li { display: flex; gap: 12px; align-items: flex-start; } .f-contact i { color: var(--a); margin-top: 2px; }
.f-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.f-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1.1rem; transition: background 0.25s, transform 0.3s var(--ease), color 0.25s; }
.f-social a:hover { background: var(--a); color: var(--on-a); transform: translateY(-4px); }
.f-news form { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.f-news input[type=email] { flex: 1; min-width: 170px; padding: 13px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.07); color: #fff; }
.f-news input::placeholder { color: rgba(255, 255, 255, 0.55); }
.f-wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 13px 22px; border-radius: 999px; background: #25d366; color: #052e16 !important; font-weight: 800; font-size: 0.95rem; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3); transition: transform 0.3s var(--ease); }
.f-wa:hover { transform: translateY(-3px); color: #052e16 !important; }
.f-wa i { font-size: 1.2rem; }
.f-map { margin-top: 18px; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid rgba(255, 255, 255, 0.14); background: var(--d); position: relative; }
.f-map .map-box { position: absolute; inset: 0; } .f-map .map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 14px; font-size: 0.88rem; }
.f-logins { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.f-logins a { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); font-size: 0.86rem; font-weight: 700; color: #fff; } .f-logins a:hover { background: rgba(255, 255, 255, 0.1); }
.f-bottom { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.85rem; }
.f-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; }
@media (max-width: 991.98px) { .f-bottom { padding-bottom: 96px; } }

/* ===== 13. FORMS & MULTI-STEP ===== */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 4vw, 42px); box-shadow: var(--sh); }
.field { margin-bottom: 18px; }
.field label, .field .lbl { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 7px; color: var(--ink); }
.field label .req, .field .lbl .req { color: #dc2626; margin-left: 2px; }
.input-x { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-size: 1rem; font-family: var(--font-body); transition: border-color 0.25s, box-shadow 0.25s; appearance: none; -webkit-appearance: none; }
select.input-x { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%238a96a8' stroke-width='2' d='m1 1 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
textarea.input-x { min-height: 130px; resize: vertical; line-height: 1.6; }
.input-x:hover { border-color: rgba(var(--p-rgb), 0.5); }
.input-x:focus { outline: 0; border-color: var(--p); box-shadow: 0 0 0 4px rgba(var(--p-rgb), 0.18); }
.input-x[aria-invalid="true"], .input-x.is-bad { border-color: #dc2626; }
.field-hint { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.field-err { font-size: 0.82rem; color: #dc2626; margin-top: 6px; display: none; } .is-bad ~ .field-err { display: block; }
input[type=file].input-x { padding: 11px 14px; }
.check-x { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; line-height: 1.5; } .check-x input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--p); flex-shrink: 0; }
.opt-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.opt-body { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.3s var(--ease); height: 100%; }
.opt-body i { font-size: 1.5rem; color: var(--p-text); } .opt-body b { display: block; font-size: 0.95rem; } .opt-body small { color: var(--muted); font-size: 0.8rem; }
.opt:hover .opt-body { transform: translateY(-2px); border-color: rgba(var(--p-rgb), 0.55); }
.opt input:checked + .opt-body { border-color: var(--p); background: rgba(var(--p-rgb), 0.09); box-shadow: 0 0 0 3px rgba(var(--p-rgb), 0.18); }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--a); outline-offset: 2px; }
.ms-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; overflow-x: auto; scrollbar-width: none; counter-reset: ms; }
.ms-steps li { flex: 1 0 auto; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.85rem; color: var(--muted); padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--bg-soft); white-space: nowrap; counter-increment: ms; }
.ms-steps li::before { content: counter(ms); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1.5px solid var(--line); font-size: 0.8rem; }
.ms-steps li.is-on { background: rgba(var(--p-rgb), 0.14); color: var(--p-text); } .ms-steps li.is-on::before { background: var(--p); border-color: var(--p); color: var(--on-p); }
.ms-steps li.is-done::before { content: '\2713'; background: var(--a); border-color: var(--a); color: var(--on-a); }
.ms-pane { display: none; } .ms-pane.is-on { display: block; animation: pop 0.5s var(--ease); }
.ms-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.ms-pane h3 { font-size: 1.3rem; margin: 0 0 6px; } .ms-pane .sub { color: var(--muted); margin: 0 0 22px; }
.alert-x { padding: 14px 18px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-soft); display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; }
.alert-x i { font-size: 1.2rem; margin-top: 1px; color: var(--p-text); }
.alert-x.warn { background: rgba(var(--a-rgb), 0.15); border-color: rgba(var(--a-rgb), 0.4); } .alert-x.warn i { color: var(--a-text); }
.alert-x.bad { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.35); } .alert-x.bad i { color: #dc2626; }
.alert-x.good { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.35); } .alert-x.good i { color: #16a34a; }
.dlg { border: 0; padding: 0; border-radius: 26px; width: min(520px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); background: var(--card); color: var(--ink); box-shadow: var(--sh-lg); overflow: auto; }
.dlg::backdrop { background: rgba(6, 12, 26, 0.7); }
.dlg[open] { animation: pop 0.45s var(--ease); }
.dlg-in { padding: clamp(22px, 4vw, 34px); } .dlg-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--ink); }
.success-box { text-align: center; padding: clamp(28px, 5vw, 56px); }
.success-box .ok { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; background: rgba(34, 197, 94, 0.15); color: #16a34a; font-size: 2.4rem; }
.ref-code { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-size: 1.4rem; font-weight: 800; letter-spacing: 0.08em; padding: 12px 22px; border-radius: 14px; background: var(--bg-soft); border: 1.5px dashed var(--p); margin: 12px 0; color: var(--ink); }
.status-track { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.status-track span { padding: 8px 16px; border-radius: 999px; font-size: 0.84rem; font-weight: 700; background: var(--bg-soft); color: var(--muted); }
.status-track span.done { background: rgba(var(--p-rgb), 0.15); color: var(--p-text); } .status-track span.now { background: var(--p); color: var(--on-p); }

/* ===== 14. CALENDAR, NEWS, NOTICES, GALLERY, LIGHTBOX ===== */
.cal { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--sh); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; } .cal-head h3 { margin: 0; font-size: 1.15rem; }
.cal-head button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; }
.cal-head button:hover { background: var(--p); color: var(--on-p); border-color: var(--p); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 6px 0; }
.cal-day { aspect-ratio: 1; border-radius: 12px; border: 0; background: none; color: var(--ink); font-size: 0.9rem; font-weight: 600; position: relative; display: grid; place-items: center; font-family: var(--font-body); }
.cal-day:disabled { opacity: 0.3; } .cal-day.today { outline: 2px solid var(--a); outline-offset: -2px; }
.cal-day.has-ev { background: rgba(var(--p-rgb), 0.14); color: var(--p-text); cursor: pointer; }
.cal-day.has-ev::after { content: ''; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--a); }
.cal-day.has-ev:hover, .cal-day.sel { background: var(--p); color: var(--on-p); }
.cal-list { margin-top: 16px; display: grid; gap: 10px; }
.cal-ev { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); font-size: 0.9rem; } .cal-ev b { display: block; } .cal-ev small { color: var(--muted); }
.notice-list { display: grid; gap: 12px; }
.notice-row { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); position: relative; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.3s; }
.notice-row:hover { transform: translateX(4px); box-shadow: var(--sh); border-color: rgba(var(--p-rgb), 0.5); }
.notice-row .ni { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: rgba(var(--p-rgb), 0.12); color: var(--p-text); flex-shrink: 0; }
.notice-row.urgent .ni { background: rgba(239, 68, 68, 0.14); color: #dc2626; } .notice-row.pinned { border-left: 4px solid var(--a); }
.notice-row .nb { flex: 1; min-width: 0; } .notice-row h3 { font-size: 1.02rem; margin: 0 0 4px; } .notice-row h3 a { color: var(--ink); } .notice-row h3 a::after { content: ''; position: absolute; inset: 0; }
.notice-row .meta { font-size: 0.8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.rt { font-size: 1.04rem; line-height: 1.8; color: var(--ink); }
.rt > * + * { margin-top: 1.1em; } .rt h2 { font-size: 1.6rem; margin-top: 1.8em; } .rt h3 { font-size: 1.25rem; margin-top: 1.5em; }
.rt ul { padding-left: 1.3em; display: grid; gap: 6px; } .rt a { text-decoration: underline; text-underline-offset: 3px; } .rt strong { font-weight: 700; }
.rt blockquote { border-left: 4px solid var(--a); padding: 4px 0 4px 18px; color: var(--muted); font-style: italic; }
.article { max-width: 780px; margin-inline: auto; }
.article-hero { border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 8; margin: 0 0 32px; box-shadow: var(--sh); position: relative; background: var(--bg-soft); } .article-hero .img-x { position: absolute; inset: 0; height: 100%; }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-weight: 700; font-size: 0.9rem; }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); border: 0; } .share a:hover, .share button:hover { background: var(--p); color: var(--on-p); }
.masonry { columns: 3 260px; column-gap: 16px; }
.g-item { break-inside: avoid; margin: 0 0 16px; border-radius: 18px; overflow: hidden; position: relative; display: block; width: 100%; border: 0; padding: 0; background: var(--bg-soft); cursor: zoom-in; }
.g-item .img-x { height: auto; transition: transform 0.7s var(--ease); } .g-item:hover .img-x { transform: scale(1.05); }
.g-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; background: linear-gradient(transparent, rgba(var(--d-rgb), 0.9)); color: #fff; font-size: 0.84rem; text-align: left; opacity: 0; transform: translateY(8px); transition: 0.35s var(--ease); }
.g-item:hover .cap, .g-item:focus-visible .cap { opacity: 1; transform: none; }
.g-play { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; background: var(--a); color: var(--on-a); font-size: 1.6rem; box-shadow: var(--sh-lg); }
.lb { position: fixed; inset: 0; z-index: 3200; background: rgba(5, 10, 22, 0.94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 16px; }
.lb.is-open { display: flex; animation: fadeIn 0.3s; } @keyframes fadeIn { from { opacity: 0; } }
.lb figure { margin: 0; max-width: min(1100px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb img, .lb iframe { max-width: 100%; max-height: 78dvh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); background: #000; } .lb iframe { width: min(960px, 92vw); aspect-ratio: 16 / 9; border: 0; }
.lb figcaption { color: #fff; text-align: center; font-size: 0.95rem; max-width: 680px; }
.lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.3rem; display: grid; place-items: center; }
.lb button:hover { background: var(--a); color: var(--on-a); }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 12px; top: 50%; margin-top: -24px; } .lb-next { right: 12px; top: 50%; margin-top: -24px; }
.lb-count { position: absolute; top: 24px; left: 20px; color: rgba(255, 255, 255, 0.8); font-size: 0.85rem; font-weight: 700; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; font-size: 0.92rem; }
.pager a:hover { border-color: var(--p); } .pager .cur { background: var(--d); color: #fff; border-color: var(--d); }

/* ===== 15. SEARCH PALETTE, MAP, CONTACT, DETAIL PAGES ===== */
.cmdk { position: fixed; inset: 0; z-index: 3300; background: rgba(6, 12, 26, 0.72); display: none; align-items: flex-start; justify-content: center; padding: 12vh 14px 14px; }
.cmdk.is-open { display: flex; animation: fadeIn 0.2s; }
.cmdk-box { width: min(640px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-lg); overflow: hidden; }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); } .cmdk-in i { color: var(--muted); font-size: 1.15rem; }
.cmdk-in input { flex: 1; border: 0; background: none; font-size: 1.05rem; color: var(--ink); outline: 0; min-width: 0; font-family: var(--font-body); }
.cmdk-in kbd, .kbd { font-size: 0.7rem; padding: 3px 8px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); font-family: var(--font-body); font-weight: 700; }
.cmdk-list { max-height: min(52dvh, 420px); overflow-y: auto; padding: 8px; }
.cmdk-group { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 4px; }
.cmdk-item { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; color: var(--ink) !important; cursor: pointer; }
.cmdk-item i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--p-rgb), 0.12); color: var(--p-text); flex-shrink: 0; }
.cmdk-item b { display: block; font-size: 0.93rem; } .cmdk-item small { color: var(--muted); font-size: 0.78rem; display: block; }
.cmdk-item.is-on, .cmdk-item:hover { background: var(--bg-soft); } .cmdk-empty { padding: 28px; text-align: center; color: var(--muted); }
.search-hit { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--ink); transition: border-color 0.3s, transform 0.3s var(--ease); }
.search-hit:hover { border-color: var(--p); transform: translateX(4px); } .search-hit b { display: block; font-size: 1.05rem; margin: 6px 0 4px; } .search-hit p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.map-box { height: clamp(280px, 40vw, 440px); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); position: relative; z-index: 0; }
.map-box .leaflet-container { height: 100%; width: 100%; font-family: var(--font-body); z-index: 0; }
.map-pin { width: 38px; height: 38px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--p); border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); display: grid; place-items: center; }
.map-pin i { transform: rotate(45deg); color: var(--on-p); font-size: 1rem; }
.map-fallback { display: grid; place-items: center; height: 100%; padding: 20px; text-align: center; color: var(--muted); }
.contact-grid { display: grid; gap: 28px; } @media (min-width: 992px) { .contact-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; } }
.info-card { display: flex; gap: 14px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 12px; align-items: flex-start; }
.info-card .ii { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--p-rgb), 0.12); color: var(--p-text); font-size: 1.25rem; flex-shrink: 0; }
.info-card b { display: block; } .info-card small, .info-card span { color: var(--muted); font-size: 0.9rem; } .info-card a { font-weight: 600; }
.hours-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 7px; font-size: 0.92rem; } .hours-list li { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 7px; border-bottom: 1px dashed var(--line); }
.hours-list li.today { font-weight: 800; color: var(--p-text); }
.detail-grid { display: grid; gap: 36px; } @media (min-width: 992px) { .detail-grid { grid-template-columns: 1fr 360px; align-items: start; } }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--sh); } @media (min-width: 992px) { .side-sticky { position: sticky; top: 108px; } }
.fact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.fact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; } .fact-list i { color: var(--p-text); font-size: 1.15rem; margin-top: 1px; } .fact-list small { display: block; color: var(--muted); font-size: 0.78rem; }
.outcome-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); list-style: none; padding: 0; margin: 0; }
.outcome-list li { display: flex; gap: 12px; padding: 16px 18px; background: var(--bg-soft); border-radius: var(--r-sm); font-size: 0.94rem; align-items: flex-start; } .outcome-list i { color: var(--p-text); font-size: 1.1rem; margin-top: 2px; }
.hero-media { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--sh-lg); background: var(--bg-soft); } .hero-media .img-x { position: absolute; inset: 0; height: 100%; }
.about-split { display: grid; gap: 40px; align-items: center; } @media (min-width: 992px) { .about-split { grid-template-columns: 1fr 1fr; } }
.about-collage { position: relative; aspect-ratio: 1 / 0.95; } .about-collage .a1 { position: absolute; inset: 0 22% 22% 0; border-radius: 28px; overflow: hidden; box-shadow: var(--sh-lg); } .about-collage .a2 { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border-radius: 28px; overflow: hidden; border: 6px solid var(--bg); box-shadow: var(--sh-lg); }
.about-collage .img-x { height: 100%; }
.principal { display: grid; gap: 28px; align-items: center; } @media (min-width: 768px) { .principal { grid-template-columns: 280px 1fr; } }
.principal .pp { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-soft); box-shadow: var(--sh-lg); } .principal .pp .img-x { height: 100%; }
.ms-list { display: grid; gap: 0; position: relative; padding-left: 28px; } .ms-list::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.ms-item { position: relative; padding: 0 0 26px 18px; } .ms-item::before { content: ''; position: absolute; left: -28px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--p); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--p); }
.ms-item b { font-family: var(--font-display); font-size: 1.1rem; color: var(--p-text); display: block; } .ms-item h3 { font-size: 1.05rem; margin: 2px 0 4px; } .ms-item p { margin: 0; color: var(--muted); }
.syllabus { display: grid; gap: 12px; counter-reset: wk; } .syllabus li { list-style: none; display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); counter-increment: wk; align-items: flex-start; }
.syllabus li::before { content: counter(wk); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--p); color: var(--on-p); font-weight: 800; font-size: 0.85rem; flex-shrink: 0; }

/* ===== 16. AUTH, ERRORS, RESPONSIVE, DARK, PRINT ===== */
.auth-wrap { min-height: 100dvh; display: grid; } @media (min-width: 992px) { .auth-wrap { grid-template-columns: 1.05fr 1fr; } }
.auth-art { position: relative; isolation: isolate; overflow: clip; background: var(--deep-bg); color: #fff; padding: clamp(32px, 5vw, 72px); display: none; flex-direction: column; justify-content: space-between; }
@media (min-width: 992px) { .auth-art { display: flex; } } .auth-art h1, .auth-art h2 { color: #fff; }
.auth-card-wrap { display: grid; place-items: center; padding: clamp(24px, 5vw, 56px); background: var(--bg); }
.auth-card { width: min(440px, 100%); }
.pw-wrap { position: relative; } .pw-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); width: 38px; height: 38px; }
.err-wrap { min-height: 100dvh; background: var(--deep-bg); color: #fff; display: grid; place-items: center; text-align: center; padding: 40px 20px; position: relative; isolation: isolate; overflow: clip; }
.err-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 30vw, 14rem); line-height: 0.9; letter-spacing: -0.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.err-wrap h1 { color: #fff; font-size: clamp(1.6rem, 1rem + 2.4vw, 2.6rem); margin: 8px 0 12px; } .err-wrap p { color: rgba(255, 255, 255, 0.78); max-width: 520px; margin: 0 auto 24px; }
.theme-ico .ti-moon { display: inline; } .theme-ico .ti-sun { display: none; }
[data-theme="dark"] .theme-ico .ti-moon { display: none; } [data-theme="dark"] .theme-ico .ti-sun { display: inline; }
[data-theme="dark"] body.site { color-scheme: dark; } [data-theme="dark"] .site .img-x { filter: brightness(0.92); }
[data-theme="dark"] .nav-shell, [data-theme="dark"] .card-x, [data-theme="dark"] .form-card { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.is-off .blob, .is-off .hv-orbit, .is-off .hv-chip, .is-off .hv-thumb { animation-play-state: paused; }
html.lite .blob, html.lite .hv-orbit, html.lite .hv-chip, html.lite .hv-thumb, html.lite .marquee-track { animation: none; }
html.lite .spot::before, html.lite .spot::after { display: none; }
html.lite .card-x, html.lite .btn-x { transition-duration: 0.15s; }
@media (max-width: 767.98px) {
    body.site { --header-h: 68px; }
    .nav-shell { padding: 8px 8px 8px 14px; } .brand-name b { max-width: 150px; } .brand-name small { display: none; }
    .topbar .tb-links { display: none; }
    .hv-chip-b { right: 0; } .hv-chip { padding: 9px 13px 9px 10px; font-size: 0.74rem; } .hv-chip .ci { width: 32px; height: 32px; }
    .event-card { flex-direction: column; } .event-card .date-badge { width: 100%; flex-direction: row; gap: 10px; padding: 10px; } .event-card .date-badge b { font-size: 1.3rem; }
    .cta-x { border-radius: 26px; } .notice-row { align-items: flex-start; } .notice-row .btn-x { display: none; }
    .hero-cta .btn-x, .page-hero .ph-actions .btn-x { flex: 1 1 100%; } .flash-stack { top: 64px; }
}
@media (min-width: 1920px) { html { font-size: 112.5%; } .container { max-width: 1560px; } }
@media (hover: none) { .card-x:hover, .notice-row:hover, .search-hit:hover { transform: none; } .spot::before, .spot::after { display: none; } [data-tilt] { transform: none !important; } }
@media (prefers-reduced-motion: reduce) {
    .site *, .site *::before, .site *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .js [data-reveal], .js .split .w > * { opacity: 1 !important; transform: none !important; }
}
@media print {
    .topbar, .site-nav, .m-bar, .mobile-menu, .to-top, .scroll-progress, .flash-stack, .cta-x, .footer-x .f-news, .footer-x .f-map, .marquee, .cmdk, .lb { display: none !important; }
    body.site { background: #fff; color: #000; padding: 0; } .page-hero, .sec-dark, .hero-x, .footer-x { background: #fff !important; color: #000 !important; }
    .page-hero h1, .sec-dark h2 { color: #000 !important; } .card-x { break-inside: avoid; box-shadow: none; } a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}

/* ===== 17. NAV & NO-JS REFINEMENTS ===== */
.dd-right { left: auto; right: 0; transform: translate(0, 8px); width: min(600px, 92vw); }
.has-dd:hover > .dd-right, .has-dd:focus-within > .dd-right, .has-dd.open > .dd-right { transform: translate(0, 0); }
.nav-links .dd-t i { transition: transform 0.3s var(--ease); }
.has-dd:hover > .dd-t i, .has-dd:focus-within > .dd-t i { transform: rotate(180deg); }
@media (min-width: 1200px) and (max-width: 1439.98px) {
    .nav-actions .login-btn span { display: none; }
    .nav-actions .login-btn { padding: 11px 13px; }
    .brand-name small { display: none; }
    .nav-links > li > a, .nav-links > li > button.dd-t { padding: 10px 11px; font-size: 0.88rem; }
}
html:not(.js) .ms-pane { display: block; margin-bottom: 28px; }
html:not(.js) [data-prev-step], html:not(.js) [data-next-step] { display: none; }
html:not(.js) .hy-panel { position: static; opacity: 1; visibility: visible; transform: none; margin-bottom: 28px; }
html:not(.js) .lms-pane { display: block; margin-bottom: 24px; }
html:not(.js) .seg, html:not(.js) .lms-side { display: none; }
html:not(.js) .mobile-menu { display: none; }
.visually-hidden-focusable:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.f-news .f-wa { margin-top: 20px; }
.rich-list { padding-left: 1.2em; display: grid; gap: 6px; }
.card-x .zoom { display: block; }
.ph i { opacity: 0.9; }
.btn-x:focus-visible { outline-offset: 4px; }
.sec-dark .card-x, .sec-dark .testi-card { color: var(--ink); }
.sec-dark .card-x h3, .sec-dark .card-x h3 a { color: var(--ink); }
.sec-dark .card-x p { color: var(--muted); }

/* ===== 18. PUBLIC PAGE ADDITIONS ===== */
.site a.chip-btn { color: var(--ink); }
.site a.chip-btn.is-on, .site a.chip-btn:hover.is-on { color: #fff; }
.err-wrap .chip-btn, .site .err-wrap a.chip-btn { color: #fff; }
.card-x.is-past { opacity: 0.78; }
.card-x.domain-tile { color: var(--ink); }
.ref-code { cursor: pointer; font-family: ui-monospace, Consolas, monospace; color: var(--ink); }
.search-hit .pill { margin-bottom: 2px; }
.hero-copy { min-width: 0; }
.field .lbl { display: block; }
html:not(.js) .tl-step .tl-dot { background: var(--p); border-color: var(--p); color: var(--on-p); }
html:not(.js) .hero-x [data-particles], html:not(.js) .hero-glow { display: none; }
html:not(.js) .faq-a { grid-template-rows: 1fr; }
html:not(.js) .lms-pane h4 { margin-top: 8px; }
.d-grid .event-card { height: auto; }
.ex-empty .btn-x-ghost { --fg-b: var(--ink); }

/* ===== 19. SCHOOL BACKDROP (partials/school_bg.php) ===== */
.sb { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--deep-bg); }
.sb > span { position: absolute; inset: 0; display: block; }
/* campus photo: tablet and up only, so phones never download it */
.sb-photo { background: center 38% / cover no-repeat; }
@media (min-width: 768px) { .sb-photo { background-image: var(--sb-img); } }
/* theme-coloured tint keeps white text readable: solid at the text side, lighter on the right */
.sb-photo::after { content: ''; position: absolute; inset: 0; background: var(--deep-bg);
    -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.86) 50%, rgba(0, 0, 0, 0.76) 100%);
    mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.86) 50%, rgba(0, 0, 0, 0.76) 100%); }
/* chalk-style school doodles: a tile that drifts one tile-width, so the loop is seamless */
.sb-doodles { overflow: hidden; -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.8) 42%, #000 72%); mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.8) 42%, #000 72%); }
.sb-doodles::before { content: ''; position: absolute; top: 0; left: 0; right: -640px; bottom: -480px; background: url('../images/school-doodles.svg') 0 0 / 640px 480px repeat; animation: sbDrift 140s linear infinite; will-change: transform; }
@keyframes sbDrift { to { transform: translate3d(-640px, -480px, 0); } }
/* warm window light from the top-right corner, a cool wash bottom-left, soft diagonal sunbeams */
.sb-light { background: radial-gradient(62% 84% at 100% 0%, rgba(var(--a-rgb), 0.26), transparent 70%), radial-gradient(54% 64% at 0% 100%, rgba(var(--p-rgb), 0.2), transparent 70%); }
.sb-light::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.05) 0 44px, transparent 44px 150px);
    -webkit-mask-image: linear-gradient(to bottom left, #000 0%, transparent 52%); mask-image: linear-gradient(to bottom left, #000 0%, transparent 52%); }
.sb-plain .sb-light { background: radial-gradient(70% 90% at 100% 0%, rgba(var(--a-rgb), 0.2), transparent 70%), radial-gradient(60% 70% at 0% 100%, rgba(var(--p-rgb), 0.16), transparent 70%); }
@media (max-width: 767.98px) { .sb-doodles::before { background-size: 480px 360px; right: -480px; bottom: -360px; animation-name: sbDriftSm; } @keyframes sbDriftSm { to { transform: translate3d(-480px, -360px, 0); } } }
.is-off .sb-doodles::before { animation-play-state: paused; }
html.lite .sb-photo { background-image: none !important; }
html.lite .sb-doodles::before { animation: none; }
@media (prefers-reduced-motion: reduce) { .sb-doodles::before { animation: none; } }
@media print { .sb { display: none !important; } }

/* ===== 20. NAV FIT (dropdown content + crowded header) ===== */
/* dropdown cards: text wraps inside the card instead of spilling over the page */
.dd-item { white-space: normal; text-align: left; align-items: flex-start; font-size: 1rem; font-weight: 400; min-width: 0; }
.dd-grid > * { min-width: 0; }
.dd-item:hover b { color: var(--p-text); }
/* the header pill gets a little more room on 1200-1399px screens, and nothing in it may squash */
@media (min-width: 1200px) { .site-nav .container { max-width: 1280px; } }
@media (min-width: 1400px) { .site-nav .container { max-width: 1320px; } }
@media (min-width: 1920px) { .site-nav .container { max-width: 1560px; } }
.nav-links, .nav-actions { flex-shrink: 0; }
.nav-actions .btn-x { white-space: nowrap; flex-shrink: 0; }
/* long school names wrap onto two lines instead of being cut to "H..." */
.brand-name b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.12; font-size: 0.95rem; }
@media (min-width: 1200px) { .brand-name b { max-width: 200px; } }
