/* ==========================================================================
   Abbottabad Coaching & IT Academy — Design System
   Brand: Navy #0B2548 · Sky #00A6FF · White
   ========================================================================== */

/* ---------- Self-hosted fonts (no third-party requests) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

:root {
  --navy: #0B2548;
  --navy-800: #0d2c55;
  --navy-900: #071a35;
  --sky: #00A6FF;
  --sky-600: #0090e0;
  --sky-50: #eaf7ff;
  --sky-100: #d3eeff;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-softer: #f9fbfd;
  --ink: #0B2548;
  --text: #3d4b63;
  --muted: #6b7a92;
  --line: #e3e9f1;
  --gold: #f5b301;
  --danger: #e5484d;
  --success: #12a150;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 72, .06), 0 2px 8px rgba(11, 37, 72, .04);
  --shadow: 0 10px 30px -12px rgba(11, 37, 72, .18);
  --shadow-lg: 0 30px 60px -24px rgba(11, 37, 72, .35);
  --container: 1240px;
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--sky); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 9999; font-weight: 600; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-sm { padding: clamp(48px, 6vw, 72px) 0; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy); color: rgba(255, 255, 255, .78); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 } .mb-0 { margin-bottom: 0 } .mt-2 { margin-top: 16px } .mt-4 { margin-top: 32px }

/* Swiss grid lines background */
.gridlines { position: absolute; inset: 0; pointer-events: none; background-image:
  linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
  linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%); }
.gridlines-dark { background-image:
  linear-gradient(to right, rgba(11,37,72,.05) 1px, transparent 1px),
  linear-gradient(to bottom, rgba(11,37,72,.05) 1px, transparent 1px); }

/* ---------- Section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sky-600); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--sky); }
.bg-navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--sky); }
.section-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head h2 { margin: 0; }
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 1.05rem; max-width: 640px; }
.section-num { font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: var(--muted); letter-spacing: .1em; }
.lead { font-size: 1.12rem; color: var(--text); }
.accent { color: var(--sky); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .01em; line-height: 1.2;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s; white-space: nowrap;
}
.btn i { font-size: .9em; transition: transform .25s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }
.btn-primary { background: var(--sky); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 166, 255, .7); }
.btn-primary:hover { background: var(--sky-600); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-lg { padding: 17px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .92rem; }
.link-arrow i { transition: transform .25s var(--ease); color: var(--sky); }
.link-arrow:hover i { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Announcement + topbar ---------- */
.announce { background: var(--sky); color: #fff; font-size: .88rem; font-weight: 500; position: relative; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; padding-right: 52px; text-align: center; }
.announce a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.announce-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; }
.announce-close:hover { background: rgba(255,255,255,.15); }
.topbar { background: var(--navy-900); color: rgba(255,255,255,.75); font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 20px; }
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-info a, .topbar-info span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-info i { color: var(--sky); }
.topbar a:hover { color: #fff; }
.social { display: flex; gap: 6px; }
.social a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; transition: background .2s, color .2s; }
.social a:hover { background: var(--sky); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(11, 37, 72, .35); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; transition: height .3s; }
.site-header.scrolled .header-inner { height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 54px; height: 54px; border-radius: 50%; transition: width .3s, height .3s; }
.site-header.scrolled .brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1rem; letter-spacing: -.01em; }
.brand-tag { font-size: .64rem; letter-spacing: .18em; color: var(--sky-600); font-weight: 600; margin-top: 4px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > ul { display: flex; list-style: none; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 10px 12px; white-space: nowrap; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--navy); transition: background .2s, color .2s; }
.nav-link:hover, .nav-link.active { background: var(--sky-50); color: var(--sky-600); }
.nav-link .fa-chevron-down { font-size: .65rem; transition: transform .2s; }
.has-mega { position: relative; }
.has-mega:hover .fa-chevron-down, .has-mega:focus-within .fa-chevron-down { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px); width: min(880px, 92vw);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 28px; display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 24px;
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega h5 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.mega ul { list-style: none; display: grid; gap: 2px; margin-bottom: 18px; }
.mega ul a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: .88rem; font-weight: 500; color: var(--navy); }
.mega ul a i { color: var(--sky); width: 18px; text-align: center; }
.mega ul a:hover { background: var(--bg-soft); }
.mega-cta { background: var(--navy); color: rgba(255,255,255,.8); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.mega-cta h4 { color: #fff; font-size: 1.1rem; margin: 0; }
.mega-cta p { font-size: .85rem; margin: 0; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 1.15rem; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(7, 26, 53, .55); opacity: 0; transition: opacity .3s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff; transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; overflow-y: auto; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-close { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; color: var(--navy); }
.drawer nav { padding: 12px; }
.drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px; border-radius: 10px; font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.drawer nav a:hover, .drawer nav a.active { background: var(--sky-50); color: var(--sky-600); }
.drawer-foot { margin-top: auto; padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: rgba(255,255,255,.8); overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(0,166,255,.35), transparent 65%); z-index: -1; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(0,166,255,.18), transparent 65%); z-index: -1; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(110px, 12vw, 150px); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 4.25rem); margin-bottom: 22px; }
.hero h1 .accent { color: var(--sky); }
.hero-sub { font-size: clamp(1rem, 1.4vw, 1.16rem); max-width: 600px; margin-bottom: 34px; }
.hero-slides { position: relative; min-height: 420px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease), visibility .7s; }
.hero-slide.active { opacity: 1; visibility: visible; transform: none; position: relative; }
.hero-dots { display: flex; gap: 8px; margin-top: 40px; }
.hero-dots button { width: 34px; height: 4px; border-radius: 4px; border: 0; background: rgba(255,255,255,.25); padding: 0; transition: background .3s, width .3s; }
.hero-dots button.active { background: var(--sky); width: 56px; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: .9rem; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--navy); margin-left: -10px; display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff; background: var(--sky); }
.hero-trust .avatars span:first-child { margin-left: 0; }
.hero-trust .avatars span:nth-child(2) { background: #3b82f6; } .hero-trust .avatars span:nth-child(3) { background: #1e40af; } .hero-trust .avatars span:nth-child(4) { background: #0ea5e9; }
.hero-trust strong { color: #fff; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.hero-crest { width: min(380px, 80%); aspect-ratio: 1; border-radius: 50%; position: relative; display: grid; place-items: center; }
.hero-crest::before { content: ""; position: absolute; inset: -26px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.22); animation: spin 60s linear infinite; }
.hero-crest::after { content: ""; position: absolute; inset: -64px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.hero-crest img { width: 100%; border-radius: 50%; box-shadow: 0 40px 80px -20px rgba(0,0,0,.5), 0 0 0 10px rgba(255,255,255,.06); }
@keyframes spin { to { transform: rotate(360deg); } }
.float-card { position: absolute; background: #fff; color: var(--navy); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; animation: float 6s ease-in-out infinite; }
.float-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-50); color: var(--sky-600); font-size: 1.1rem; flex-shrink: 0; }
.float-card strong { display: block; font-family: var(--font-head); font-size: 1.05rem; line-height: 1.1; }
.float-card small { color: var(--muted); font-size: .76rem; }
.float-card.fc-1 { top: 6%; left: -2%; }
.float-card.fc-2 { bottom: 10%; right: -4%; animation-delay: -2s; }
.float-card.fc-3 { bottom: -2%; left: 4%; animation-delay: -4s; }
.float-card.fc-1 .ic { background: var(--navy); color: var(--gold); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Stats strip overlapping hero */
.stats-wrap { position: relative; z-index: 5; margin-top: -72px; }
.stats { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); }
.stat { padding: 30px 28px; border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--navy); line-height: 1; letter-spacing: -.03em; }
.stat-num span { color: var(--sky); }
.stat-label { font-size: .9rem; color: var(--muted); margin-top: 8px; font-weight: 500; }
.stat i { position: absolute; right: 24px; top: 28px; color: var(--sky-100); font-size: 1.6rem; }

/* ---------- Intro / 25 years ---------- */
.years-badge { position: relative; background: var(--navy); border-radius: var(--radius-lg); padding: clamp(32px, 4vw, 52px); color: rgba(255,255,255,.8); overflow: hidden; isolation: isolate; }
.years-badge .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(7rem, 15vw, 12rem); line-height: .85; color: transparent; -webkit-text-stroke: 2px var(--sky); letter-spacing: -.01em; }
.years-badge .big sup { font-size: .35em; -webkit-text-stroke: 0; color: var(--sky); vertical-align: top; position: relative; top: .25em; }
.years-badge h3 { color: #fff; font-size: 1.6rem; margin: 18px 0 8px; }
.years-badge::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(0,166,255,.35), transparent 70%); z-index: -1; }
.years-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: 12px; overflow: hidden; margin-top: 28px; }
.years-timeline div { background: var(--navy); padding: 16px; }
.years-timeline strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.15rem; }
.years-timeline small { font-size: .78rem; }
.check-list { list-style: none; display: grid; gap: 12px; margin: 24px 0 32px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--sky-50); color: var(--sky-600); display: grid; place-items: center; font-size: .7rem; margin-top: 3px; }
.check-list.two-col { grid-template-columns: 1fr 1fr; }
.bg-navy .check-list li::before { background: rgba(0,166,255,.15); color: var(--sky); }

/* ---------- Program cards ---------- */
.program-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; display: flex; flex-direction: column; overflow: hidden; }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.program-card .num { position: absolute; top: 22px; right: 26px; font-family: var(--font-head); font-weight: 800; color: var(--line); font-size: 2.6rem; line-height: 1; transition: color .35s; }
.program-card:hover .num { color: var(--sky-100); }
.icon-box { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--sky-50); color: var(--sky-600); font-size: 1.45rem; margin-bottom: 22px; transition: background .3s, color .3s; }
.program-card:hover .icon-box { background: var(--navy); color: #fff; }
.program-card .grades { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-600); margin-bottom: 6px; }
.program-card h3 { margin-bottom: 10px; }
.program-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.program-card .link-arrow { margin-top: 10px; }

/* ---------- Course cards ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; align-items: center; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--navy); transition: all .2s; }
.chip:hover { border-color: var(--sky); color: var(--sky-600); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .count { opacity: .6; margin-left: 4px; font-weight: 500; }
.search-box { position: relative; margin-left: auto; min-width: 260px; }
.search-box input { width: 100%; padding: 11px 16px 11px 42px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .9rem; }
.search-box input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-50); }
.search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.course-card:hover .course-thumb img { transform: scale(1.06); }
.course-thumb .thumb-icon { font-size: 3rem; color: #fff; position: relative; z-index: 1; transition: transform .5s var(--ease); }
.course-card:hover .thumb-icon { transform: scale(1.12) rotate(-4deg); }
.course-thumb.no-img::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; z-index: -1; }
.course-thumb.no-img::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; right: -20%; bottom: -40%; background: radial-gradient(circle, rgba(0,166,255,.55), transparent 70%); z-index: -1; }
.course-thumb.t1 { background: linear-gradient(135deg, #0B2548, #12407a); }
.course-thumb.t2 { background: linear-gradient(135deg, #0a2f5e, #0077c2); }
.course-thumb.t3 { background: linear-gradient(135deg, #071a35, #0B2548 60%, #0e4f8f); }
.course-thumb .tag { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.95); color: var(--navy); font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; z-index: 2; }
.course-thumb .tag-hot { left: auto; right: 14px; background: var(--sky); color: #fff; }
.course-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.course-body h3 a:hover { color: var(--sky-600); }
.course-body p { font-size: .9rem; color: var(--muted); margin-bottom: 18px; flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); padding-top: 16px; border-top: 1px dashed var(--line); margin-bottom: 18px; }
.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-meta i { color: var(--sky); }
.course-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.price small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); display: none; }
.empty-state i { font-size: 2.4rem; color: var(--sky-100); margin-bottom: 14px; }

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.12); border-left: 1px solid rgba(255,255,255,.12); }
.why-item { padding: 36px 32px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); transition: background .3s; }
.why-item:hover { background: rgba(255,255,255,.04); }
.why-item .n { font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: var(--sky); letter-spacing: .1em; }
.why-item i { font-size: 1.6rem; color: #fff; margin: 18px 0 16px; display: block; }
.why-item h3 { font-size: 1.15rem; }
.why-item p { font-size: .92rem; margin: 0; }

/* ---------- Testimonials ---------- */
.t-slider { position: relative; }
.t-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 4px 24px; scrollbar-width: none; }
.t-track::-webkit-scrollbar { display: none; }
.t-card { margin: 0; flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; transition: box-shadow .3s; }
.t-card:hover { box-shadow: var(--shadow); }
.t-card .stars { color: var(--gold); font-size: .85rem; display: flex; gap: 3px; margin-bottom: 18px; }
.t-card blockquote { margin: 0 0 24px; font-size: 1rem; color: var(--ink); line-height: 1.7; flex: 1; position: relative; }
.t-card blockquote::before { content: "\201C"; font-family: Georgia, serif; font-size: 4.5rem; color: var(--sky-100); position: absolute; top: -40px; right: -6px; line-height: 1; }
.t-person { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.t-person strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: .98rem; }
.t-person small { color: var(--muted); font-size: .8rem; }
.slider-nav { display: flex; gap: 10px; }
.slider-nav button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); transition: all .2s; }
.slider-nav button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Facilities ---------- */
.facility-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.facility { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); display: block; }
.facility img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.facility:hover img { transform: scale(1.06); }
.facility::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,26,53,.85), transparent 55%); }
.facility .cap { position: absolute; left: 20px; bottom: 18px; right: 20px; z-index: 2; color: #fff; }
.facility .cap strong { font-family: var(--font-head); display: block; font-size: 1.05rem; }
.facility .cap small { opacity: .8; }
.facility.big { grid-column: span 2; grid-row: span 2; }
.facility.wide { grid-column: span 2; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .icon-box { width: 48px; height: 48px; font-size: 1.1rem; margin: 0; flex-shrink: 0; border-radius: 12px; }
.feature h4 { margin-bottom: 4px; }
.feature p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- News ---------- */
.news-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-thumb { aspect-ratio: 16 / 10; background: var(--navy); position: relative; overflow: hidden; display: grid; place-items: center; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-thumb .ph { color: rgba(255,255,255,.9); font-size: 2.4rem; }
.news-thumb .date { position: absolute; left: 16px; bottom: 16px; background: #fff; border-radius: 12px; padding: 8px 12px; text-align: center; line-height: 1; font-family: var(--font-head); color: var(--navy); }
.news-thumb .date b { display: block; font-size: 1.35rem; font-weight: 800; }
.news-thumb .date small { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.news-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-cat { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-600); font-weight: 700; margin-bottom: 8px; }
.news-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.news-body h3 a:hover { color: var(--sky-600); }
.news-body p { font-size: .9rem; color: var(--muted); flex: 1; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--navy); border-radius: 28px; overflow: hidden; padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; width: 600px; height: 600px; left: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(0,166,255,.35), transparent 65%); z-index: -1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); }
.cta-band .form-card { box-shadow: none; }
.cta-contacts { display: grid; gap: 14px; margin-top: 28px; }
.cta-contacts a { display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 600; }
.cta-contacts a .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--sky); }
.cta-contacts small { display: block; color: rgba(255,255,255,.6); font-weight: 400; font-size: .78rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card h3 { margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: .92rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-softer); font-size: .93rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230B2548' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 4px var(--sky-50); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .78rem; margin-top: 4px; display: none; }
.field.invalid .err { display: block; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill span { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--navy); cursor: pointer; transition: all .2s; }
.radio-pill input:checked + span { border-color: var(--sky); background: var(--sky-50); color: var(--sky-600); }
.radio-pill input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.form-success { display: none; text-align: center; padding: 32px 10px; }
.form-success .ic { width: 76px; height: 76px; border-radius: 50%; background: #e7f8ee; color: var(--success); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 18px; }
.form-card.done form { display: none; }
.form-card.done .form-success { display: block; animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
.btn[disabled] { opacity: .7; pointer-events: none; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: .9rem; margin-bottom: 16px; }
.alert-error { background: #fdecec; color: #a42a2e; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; transition: transform .3s var(--ease), box-shadow .3s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card h4 { margin: 18px 0 8px; }
.contact-card p, .contact-card a { color: var(--muted); font-size: .92rem; margin: 0; display: block; }
.contact-card a:hover { color: var(--sky-600); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 420px; height: 100%; background: var(--bg-soft); }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.home-contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.info-stack { display: grid; gap: 14px; }
.info-row { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); align-items: flex-start; }
.info-row .icon-box { width: 48px; height: 48px; margin: 0; font-size: 1.1rem; border-radius: 12px; flex-shrink: 0; }
.info-row h4 { margin: 0 0 2px; font-size: .95rem; }
.info-row p, .info-row a { margin: 0; color: var(--muted); font-size: .9rem; }
.info-row a:hover { color: var(--sky-600); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--navy); color: rgba(255,255,255,.78); padding: clamp(56px, 8vw, 96px) 0 clamp(52px, 7vw, 84px); overflow: hidden; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(0,166,255,.32), transparent 65%); z-index: -1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 860px; margin-bottom: 14px; }
.page-hero p { max-width: 680px; font-size: 1.08rem; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; margin-bottom: 20px; list-style: none; color: rgba(255,255,255,.6); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a:hover { color: #fff; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: .85rem; font-weight: 500; }
.pill i { color: var(--sky); }

/* ---------- Course detail ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.detail-main > section { margin-bottom: 56px; scroll-margin-top: 110px; }
.detail-main h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 18px; }
.detail-nav { position: sticky; top: calc(var(--header-h) - 8px); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.detail-nav ul { display: flex; gap: 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.detail-nav a { display: block; padding: 16px 14px; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.detail-nav a.active, .detail-nav a:hover { color: var(--navy); border-color: var(--sky); }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.learn-item { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--bg-soft); font-size: .93rem; color: var(--ink); }
.learn-item i { color: var(--sky); margin-top: 5px; }
.modules { counter-reset: mod; display: grid; gap: 12px; }
.module { display: grid; grid-template-columns: 64px 1fr; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.module::before { counter-increment: mod; content: counter(mod, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; color: var(--sky); background: var(--sky-50); height: 100%; display: grid; place-items: center; font-size: 1.05rem; }
.module div { padding: 16px 20px; }
.module strong { display: block; color: var(--navy); font-family: var(--font-head); }
.module span { font-size: .88rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { padding: 9px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .85rem; font-weight: 500; }
.tags.light span { background: var(--sky-50); color: var(--navy); }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.info-card h4 { display: flex; align-items: center; gap: 10px; }
.info-card h4 i { color: var(--sky); }
.info-card ul { list-style: none; display: grid; gap: 8px; font-size: .92rem; }
.info-card li { padding-left: 18px; position: relative; }
.info-card li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.sidebar-card { position: sticky; top: 100px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.sidebar-card .course-thumb { aspect-ratio: 16/9; }
.sidebar-body { padding: 26px; }
.sidebar-price { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--navy); line-height: 1; }
.sidebar-price small { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; margin-top: 6px; }
.facts { list-style: none; display: grid; margin: 22px 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.facts li span { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.facts li span i { color: var(--sky); width: 16px; }
.facts li strong { color: var(--navy); text-align: right; }
.sidebar-body .btn + .btn { margin-top: 10px; }

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: 12px; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: box-shadow .3s; }
.acc-item.open { box-shadow: var(--shadow); border-color: transparent; }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; background: none; border: 0; text-align: left; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1rem; }
.acc-btn i { width: 30px; height: 30px; border-radius: 50%; background: var(--sky-50); color: var(--sky-600); display: grid; place-items: center; font-size: .75rem; flex-shrink: 0; transition: transform .3s, background .3s, color .3s; }
.acc-item.open .acc-btn i { transform: rotate(45deg); background: var(--sky); color: #fff; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- Academic program detail ---------- */
.program-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.program-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; padding: clamp(36px, 5vw, 60px) 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.program-block:first-of-type { border-top: 0; }
.program-block .icon-box { width: 70px; height: 70px; font-size: 1.7rem; }
.program-aside { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 32px; }
.program-aside h4 { margin-bottom: 14px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Faculty ---------- */
.faculty-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; display: flex; flex-direction: column; }
.faculty-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.faculty-photo { aspect-ratio: 1 / 1; background: linear-gradient(160deg, var(--navy), #13457f); display: grid; place-items: center; position: relative; overflow: hidden; }
.faculty-photo img { width: 100%; height: 100%; object-fit: cover; }
.faculty-photo .ini { font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; color: #fff; letter-spacing: -.02em; position: relative; }
.faculty-photo .ini::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 36px; height: 4px; border-radius: 4px; background: var(--sky); transform: translateX(-50%); }
.faculty-photo .exp { position: absolute; right: 14px; top: 14px; background: rgba(255,255,255,.95); color: var(--navy); border-radius: 999px; padding: 5px 12px; font-size: .75rem; font-weight: 700; }
.faculty-body { padding: 22px; flex: 1; }
.faculty-body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.faculty-body .role { color: var(--sky-600); font-weight: 600; font-size: .85rem; margin-bottom: 14px; }
.faculty-body dl { margin: 0; display: grid; gap: 8px; font-size: .85rem; }
.faculty-body dt { font-weight: 600; color: var(--navy); display: inline; }
.faculty-body dd { display: inline; margin: 0; color: var(--muted); }

/* ---------- Gallery + lightbox ---------- */
.gallery-grid { columns: 3 300px; column-gap: 16px; }
.g-item { break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; background: var(--navy); display: block; width: 100%; border: 0; padding: 0; }
.g-item img { width: 100%; transition: transform .6s var(--ease), opacity .3s; }
.g-item:hover img { transform: scale(1.05); }
.g-item .cap { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(to top, rgba(7,26,53,.9), transparent); color: #fff; text-align: left; opacity: 0; transform: translateY(10px); transition: all .35s var(--ease); }
.g-item:hover .cap, .g-item:focus-visible .cap { opacity: 1; transform: none; }
.g-item .cap strong { display: block; font-family: var(--font-head); }
.g-item .cap small { opacity: .75; font-size: .78rem; }
.g-item.hidden { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(5, 16, 34, .94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.open { display: flex; animation: pop .3s var(--ease); }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox figcaption { color: #fff; margin-top: 16px; font-family: var(--font-head); font-weight: 600; }
.lightbox figcaption small { display: block; color: rgba(255,255,255,.6); font-weight: 400; font-family: var(--font-body); }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-size: 1.1rem; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: var(--sky); border-color: var(--sky); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 32px; left: 28px; color: rgba(255,255,255,.7); font-size: .85rem; }

/* ---------- Article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.prose { font-size: 1.06rem; color: var(--text); }
.prose h2 { font-size: 1.6rem; margin: 1.6em 0 .6em; }
.prose h3 { margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--sky-600); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 4px solid var(--sky); padding: 8px 20px; margin: 1.5em 0; background: var(--bg-soft); border-radius: 0 12px 12px 0; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; }
.side-box { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 24px; }
.side-box h4 { margin-bottom: 14px; }
.side-list { list-style: none; display: grid; gap: 14px; }
.side-list a { display: block; font-weight: 600; color: var(--navy); font-size: .92rem; line-height: 1.4; }
.side-list a:hover { color: var(--sky-600); }
.side-list small { color: var(--muted); font-size: .78rem; }
.share { display: flex; gap: 8px; margin-top: 32px; align-items: center; flex-wrap: wrap; }
.share a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--navy); transition: all .2s; }
.share a:hover { background: var(--sky); color: #fff; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination a:hover { border-color: var(--sky); color: var(--sky-600); }

/* ---------- Mission / values ---------- */
.mv-card { padding: 36px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; }
.mv-card.dark { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,.8); }
.mv-card.dark h3 { color: #fff; }
.mv-card .icon-box { margin-bottom: 18px; }
.mv-card.dark .icon-box { background: rgba(0,166,255,.15); color: var(--sky); }
.timeline { position: relative; display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding-bottom: 32px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 110px; top: 10px; bottom: -10px; width: 2px; background: var(--line); transform: translateX(13px); }
.tl-item:last-child::before { display: none; }
.tl-year { font-family: var(--font-head); font-weight: 800; color: var(--sky-600); font-size: 1.2rem; text-align: right; }
.tl-body { position: relative; padding-left: 36px; }
.tl-body::before { content: ""; position: absolute; left: 6px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--sky); }
.tl-body h4 { margin-bottom: 4px; }
.tl-body p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Landing page ---------- */
.landing-header { background: #fff; border-bottom: 1px solid var(--line); }
.landing-header .container { display: flex; justify-content: space-between; align-items: center; min-height: 76px; }
.landing-hero { background: var(--navy); position: relative; overflow: hidden; color: rgba(255,255,255,.8); isolation: isolate; padding: clamp(48px, 7vw, 96px) 0; }
.landing-hero h1 { color: #fff; }
.countdown { display: flex; gap: 10px; margin: 24px 0; }
.countdown div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 10px 14px; text-align: center; min-width: 70px; }
.countdown b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: #fff; line-height: 1; }
.countdown small { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.68); position: relative; overflow: hidden; }
.footer-top { padding: 72px 0 48px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.3fr; gap: 40px; }
.footer-brand img { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 18px; }
.footer-brand .tagline { font-family: var(--font-head); font-weight: 700; letter-spacing: .14em; color: var(--sky); font-size: .78rem; text-transform: uppercase; }
.footer-brand .milestone { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; font-size: .82rem; font-weight: 600; }
.footer-brand .milestone i { color: var(--gold); }
.footer-brand p { font-size: .9rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; letter-spacing: .02em; }
.footer-links { list-style: none; display: grid; gap: 10px; font-size: .9rem; }
.footer-links a { transition: color .2s, padding .2s; }
.footer-links a:hover { color: var(--sky); padding-left: 4px; }
.footer-contact { list-style: none; display: grid; gap: 14px; font-size: .9rem; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact i { color: var(--sky); margin-top: 5px; width: 16px; }
.footer-contact a:hover { color: #fff; }
.newsletter { display: flex; margin-top: 18px; background: rgba(255,255,255,.06); border-radius: 999px; padding: 5px; border: 1px solid rgba(255,255,255,.1); }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; padding: 10px 14px; color: #fff; font-size: .88rem; }
.newsletter input::placeholder { color: rgba(255,255,255,.45); }
.newsletter input:focus { outline: none; }
.newsletter button { border: 0; border-radius: 999px; background: var(--sky); color: #fff; width: 42px; height: 42px; flex-shrink: 0; }
.newsletter-msg { font-size: .8rem; margin-top: 8px; min-height: 1.2em; }
.site-footer .social a { background: rgba(255,255,255,.06); width: 40px; height: 40px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .84rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }
.footer-watermark { position: absolute; right: -40px; bottom: -60px; font-family: var(--font-head); font-weight: 800; font-size: 14rem; color: rgba(255,255,255,.025); line-height: 1; pointer-events: none; letter-spacing: -.05em; }

/* ---------- Floating buttons ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 950; }
.wa-btn { width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 12px 28px -8px rgba(37,211,102,.7); border: 0; position: relative; transition: transform .25s var(--ease); }
.wa-btn:hover { transform: scale(1.07); }
.wa-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; animation: ping 2.2s cubic-bezier(0,0,.2,1) infinite; z-index: -1; }
@keyframes ping { 75%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-pop { position: absolute; right: 0; bottom: 74px; width: 300px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: bottom right; transition: all .3s var(--ease); }
.wa-float.open .wa-pop { opacity: 1; visibility: visible; transform: none; }
.wa-pop-head { background: #075E54; color: #fff; padding: 18px; display: flex; gap: 12px; align-items: center; }
.wa-pop-head img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.wa-pop-head strong { display: block; font-size: .95rem; }
.wa-pop-head small { opacity: .8; font-size: .76rem; }
.wa-pop-body { padding: 16px; background: #ece5dd; }
.wa-bubble { background: #fff; padding: 10px 14px; border-radius: 0 12px 12px 12px; font-size: .86rem; color: #333; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-pop-actions { padding: 14px; display: grid; gap: 8px; }
.wa-pop-actions a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--bg-soft); font-size: .88rem; font-weight: 600; color: var(--navy); }
.wa-pop-actions a:hover { background: #e7f8ee; color: #128C7E; }
.wa-pop-actions a i { color: #25D366; font-size: 1.1rem; }
.to-top { position: fixed; right: 30px; bottom: 96px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; z-index: 940; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); box-shadow: var(--shadow); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.mobile-cta { display: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 3000; opacity: 0; visibility: hidden; transition: all .3s var(--ease); font-size: .92rem; display: flex; gap: 10px; align-items: center; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-code { font-family: var(--font-head); font-weight: 800; font-size: clamp(7rem, 22vw, 14rem); line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--navy); letter-spacing: -.06em; }
.error-code span { color: var(--sky); -webkit-text-stroke: 0; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-top > :last-child { grid-column: span 2; }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .t-card { flex-basis: calc((100% - 24px) / 2); }
  .detail-layout, .article-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .program-block { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .home-contact { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 15px; padding-bottom: 64px; }
  .container { padding: 0 18px; }
  .topbar { display: none; }
  .header-cta .btn { display: none; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: .88rem; }
  .brand-tag { font-size: .56rem; }
  :root { --header-h: 70px; }
  .grid-2, .grid-3, .grid-4, .form-grid, .learn-grid, .info-cards, .feature-list, .check-list.two-col { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .t-card { flex-basis: 88%; }
  .contact-cards { grid-template-columns: 1fr; }
  .facility-grid { grid-auto-rows: 160px; }
  .facility.big { grid-column: span 2; grid-row: span 1; }
  .search-box { margin-left: 0; min-width: 100%; order: -1; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-top > :last-child { grid-column: auto; }
  .stat { padding: 22px 18px; }
  .stat i { display: none; }
  .hero-slides { min-height: 0; }
  .hero-inner { padding-bottom: 110px; padding-top: 48px; }
  .btn-row .btn { flex: 1 1 auto; }
  .tl-item { grid-template-columns: 70px 1fr; gap: 14px; }
  .tl-item::before { left: 70px; }
  .lightbox { padding: 60px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .wa-float { bottom: 78px; right: 16px; }
  .to-top { display: none; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 960; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(11,37,72,.25); }
  .mobile-cta a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 64px; font-size: .72rem; font-weight: 600; color: var(--navy); }
  .mobile-cta a i { font-size: 1.1rem; color: var(--sky); }
  .mobile-cta a.apply { background: var(--sky); color: #fff; font-size: .9rem; flex-direction: row; gap: 8px; font-family: var(--font-head); }
  .mobile-cta a.apply i { color: #fff; }
  .years-timeline { grid-template-columns: 1fr; }
}

/* ---------- Fixes / overrides ---------- */
.cta-band .form-card p { color: var(--muted); }
.form-card form > p:first-of-type { color: var(--muted); font-size: .92rem; }
.drawer { overflow: hidden; }
body { overflow-x: clip; }
.detail-layout.side-400 { grid-template-columns: minmax(0, 1fr) 400px; }
@media (max-width: 1024px) { .detail-layout.side-400 { grid-template-columns: 1fr; } }
.cta-band.compact { grid-template-columns: 1fr auto; padding: 40px; }
@media (max-width: 760px) { .cta-band.compact { grid-template-columns: 1fr; padding: 28px; } }
.crumbs { padding: 0; }

/* ---------- Certificate search ---------- */
.cert-search { position: relative; z-index: 3; margin-top: -48px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.cs-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.cs-tabs a { flex: 1; text-align: center; padding: 16px; font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--muted); border-bottom: 3px solid transparent; }
.cs-tabs a.active { background: #fff; color: var(--navy); border-color: var(--sky); }
.cs-tabs a i { color: var(--sky); margin-right: 6px; }
.cs-form { padding: clamp(22px, 4vw, 40px); }
.cs-form label { display: block; font-family: var(--font-head); font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.cs-row { display: flex; gap: 12px; }
.cs-input { position: relative; flex: 1; }
.cs-input i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--sky); font-size: 1.1rem; }
.cs-input input { width: 100%; height: 60px; padding: 0 20px 0 54px; border: 2px solid var(--line); border-radius: 16px; font-size: 1.25rem; font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; color: var(--navy); background: var(--bg-softer); }
.cs-input input:focus { outline: none; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 5px var(--sky-50); }
.cs-input input::placeholder { color: #b5c0cf; }
.cs-note { font-size: .84rem; color: var(--muted); margin: 12px 0 0; }
.cs-results { margin-top: 36px; }
.cs-results h2 { font-size: 1.4rem; margin-bottom: 18px; }
.cs-results h2 small { font-family: var(--font-body); font-weight: 500; font-size: .9rem; color: var(--muted); margin-left: 8px; }
.cs-card { display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 14px; transition: box-shadow .3s, transform .3s var(--ease); }
.cs-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cs-card.revoked { opacity: .7; }
.cs-ic { width: 60px; height: 60px; border-radius: 16px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.cs-info { flex: 1; min-width: 0; }
.cs-type { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-600); }
.cs-info h3 { margin: 2px 0 2px; font-size: 1.15rem; }
.cs-info p { margin: 0 0 8px; color: var(--text); font-size: .93rem; }
.cs-info ul { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; color: var(--muted); }
.cs-info ul i { color: var(--sky); margin-right: 4px; }
.cs-info .ok { color: var(--success); font-weight: 600; } .cs-info .ok i { color: var(--success); }
.cs-info .bad { color: var(--danger); font-weight: 600; } .cs-info .bad i { color: var(--danger); }
.cs-act { display: flex; gap: 10px; flex-shrink: 0; }
.cs-empty { text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 48px 24px; }
.cs-empty > i { font-size: 2.6rem; color: var(--sky-100); margin-bottom: 12px; }
.cs-empty p { color: var(--muted); max-width: 520px; margin: 0 auto 20px; }
@media (max-width: 760px) {
  .cs-row { flex-direction: column; }
  .cs-card { flex-wrap: wrap; }
  .cs-act { width: 100%; } .cs-act .btn { flex: 1; }
  .cs-tabs a { font-size: .8rem; padding: 14px 8px; }
}
