/* ===========================================================
   NAVBAR
   =========================================================== */
.topbar{
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
  padding: 9px 0;
}
.topbar .container{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  flex-wrap:wrap;
}
.topbar-left{ display:flex; gap:24px; align-items:center; flex-wrap:wrap; }
.topbar-left a{ display:inline-flex; align-items:center; gap:7px; color:inherit; transition:color .25s; }
.topbar-left a:hover{ color:#8FE0C4; }
.topbar-social{ display:flex; gap:14px; align-items:center; }
.topbar-social a{ color:rgba(255,255,255,0.75); transition: color .25s, transform .25s; }
.topbar-social a:hover{ color:#8FE0C4; transform: translateY(-2px); }

.navbar{
  position: sticky; top:0; z-index:50;
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s ease, border-color .35s ease, padding .35s ease;
  isolation: isolate;
}
.navbar::before{
  content:'';
  position:absolute; inset:0; z-index:-1;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.navbar.scrolled{
  box-shadow: 0 6px 24px rgba(8,32,58,0.08);
  border-bottom-color: var(--line-soft);
}
.navbar .container{
  display:flex; align-items:center; justify-content:space-between;
  height: var(--nav-h);
  transition: height .35s ease;
  gap: 24px;
  min-width:0;
}
.navbar.scrolled .container{ height: 70px; }

.brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.brand-mark{
  width:46px; height:46px; border-radius:13px;
  background: var(--grad-primary);
  display:flex; align-items:center; justify-content:center;
  color:#fff; flex-shrink:0;
  box-shadow: var(--shadow-glow-blue);
}
.brand-mark--seal{
  background: transparent;
  box-shadow: none;
  border-radius: 50%;
  overflow: hidden;
}
.brand-mark--seal img,
.brand-mark--seal .custom-logo{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-mark--on-dark{
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.brand-text{ line-height:1.15; min-width:0; overflow:hidden; }
.brand-text strong{ display:block; font-family:var(--font-head); font-weight:700; font-size:1.06rem; color:var(--ink); letter-spacing:-0.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.brand-text span{ display:block; font-size:0.68rem; color: var(--green-deep); font-weight:600; letter-spacing:0.05em; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.brand-text .brand-short{ display:none; }
@media (max-width: 1280px){
  .brand-text .brand-full{ display:none; }
  .brand-text .brand-short{ display:block !important; }
}

.nav-links{ display:flex; align-items:center; gap:2px; }
.nav-links > li{ position:relative; }
.nav-links > li > a{
  display:flex; align-items:center; gap:5px;
  padding: 30px 16px;
  font-family: var(--font-btn);
  font-size: 0.84rem; font-weight:600;
  letter-spacing:0.02em;
  color: var(--text);
  transition: color .25s ease;
}
.navbar.scrolled .nav-links > li > a{ padding: 24px 16px; }
.nav-links > li > a::after{
  content:''; position:absolute; left:16px; right:16px; bottom:22px; height:2px;
  background: var(--grad-primary); border-radius:2px;
  transform: scaleX(0); transform-origin:left; transition: transform .3s ease;
}
.navbar.scrolled .nav-links > li > a::after{ bottom:16px; }
.nav-links > li > a:hover,
.nav-links > li.active > a{ color: var(--blue); }
.nav-links > li > a:hover::after,
.nav-links > li.active > a::after{ transform: scaleX(1); }

.nav-cta{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.nav-phone{
  display:flex; align-items:center; gap:9px;
  font-size:0.84rem; font-weight:600; color:var(--ink);
}
.nav-phone .ic{
  width:34px; height:34px; border-radius:50%;
  background: rgba(10,143,106,0.1); color: var(--green-deep);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}

.burger{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:42px; height:42px; border-radius:10px;
  background: var(--mist);
}
.burger span{ width:20px; height:2px; background:var(--ink); margin:0 auto; border-radius:2px; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity:0; }
.burger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px){
  .nav-phone{ display:none; }
  .nav-links{
    position:fixed; top: var(--nav-h); left:0; right:0; bottom:0;
    background: var(--white);
    flex-direction:column; align-items:stretch;
    padding: 14px 24px 30px;
    overflow-y:auto;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
  }
  .navbar.scrolled .nav-links{ top:70px; }
  .nav-links.open{ transform:none; }
  .nav-links > li{ display:block; width:100%; }
  .nav-links > li > a{ padding: 16px 6px; width:100%; justify-content:space-between; border-bottom:1px solid var(--line-soft); }
  .nav-links > li > a::after{ display:none; }
  .burger{ display:flex; flex-shrink:0; }
  .nav-cta .btn span{ display:none; }
  .nav-cta .btn{ padding: 12px 14px; }
  .navbar .container{ gap:10px; }
  .brand-text span{ display:none; }
  .brand-text .brand-full{ display:none; }
  .brand-text .brand-short{ display:block !important; }
  .brand-text{ flex-shrink:0; width:auto; }
  .brand{ flex-shrink:0; }
}
@media (max-width: 480px){
  .topbar-left span{ display:none; }
  .topbar-left{ gap:14px; }
  .topbar .container{ flex-wrap:nowrap; overflow-x:auto; -ms-overflow-style:none; scrollbar-width:none; }
  .topbar .container::-webkit-scrollbar{ display:none; }
  .brand-mark{ width:38px; height:38px; }
  .brand-text strong{ font-size:0.92rem; }
  .brand-text .brand-short{ display:block !important; }
  .nav-cta{ gap:8px; }
  .theme-toggle{ width:38px; height:38px; }
}

/* Dropdown (desktop) */
.has-dropdown > .dropdown{
  position:absolute; top:100%; left:0;
  background:#fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  min-width:240px; padding:10px;
  opacity:0; visibility:hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.has-dropdown:hover > .dropdown{ opacity:1; visibility:visible; transform:none; }
.dropdown li a{ display:block; padding:11px 14px; border-radius:8px; font-size:0.86rem; font-weight:500; color:var(--text); }
.dropdown li a:hover{ background: var(--mist); color: var(--blue); }
@media (max-width: 1180px){
  .has-dropdown > .dropdown{ position:static; box-shadow:none; opacity:1; visibility:visible; transform:none; display:none; padding-left:14px; }
  .has-dropdown.open > .dropdown{ display:block; }
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer{ background: var(--grad-deep); color: rgba(255,255,255,0.85); position:relative; overflow:hidden; }
.footer-top{ height:48px; }
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-lg);
  padding: var(--sp-xl) 0 var(--sp-lg);
}
.footer h5{ color:#fff; font-size:1.02rem; margin-bottom:22px; font-weight:600; }
.footer-about .brand-text strong{ color:#fff; }
.footer-about p{ margin-top:18px; font-size:0.92rem; line-height:1.75; color: rgba(255,255,255,0.7); }
.footer-social{ display:flex; gap:12px; margin-top:22px; }
.footer-social a{
  width:38px; height:38px; border-radius:10px;
  background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.14);
  display:flex; align-items:center; justify-content:center; color:#fff;
  transition: background .25s, transform .25s;
}
.footer-social a:hover{ background: var(--green); transform: translateY(-3px); }
.footer-links li{ margin-bottom:13px; }
.footer-links a{ font-size:0.9rem; color: rgba(255,255,255,0.7); display:inline-flex; align-items:center; gap:8px; transition: color .25s, padding-left .25s; }
.footer-links a:hover{ color:#8FE0C4; padding-left:4px; }
.footer-contact li{ display:flex; gap:12px; margin-bottom:18px; font-size:0.9rem; color: rgba(255,255,255,0.78); line-height:1.6; }
.footer-contact .ic{ width:34px; height:34px; border-radius:9px; background: rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:#8FE0C4; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
  font-size:0.84rem; color: rgba(255,255,255,0.62);
}
.footer-bottom a{ color: rgba(255,255,255,0.62); }
.footer-bottom a:hover{ color:#fff; }
.footer-legal{ display:flex; gap:20px; }

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

/* ===========================================================
   BREADCRUMB / PAGE HERO (inner pages)
   =========================================================== */
.page-hero{
  position:relative;
  background: var(--grad-deep);
  color:#fff;
  padding: 64px 0 80px;
  overflow:hidden;
}
.page-hero::before{
  content:'';
  position:absolute; inset:0;
  background-image: radial-gradient(circle at 15% 20%, rgba(10,143,106,0.25), transparent 45%),
                     radial-gradient(circle at 85% 80%, rgba(15,76,129,0.3), transparent 50%);
}
.page-hero .container{ position:relative; }
.breadcrumb{ display:flex; align-items:center; gap:10px; font-size:0.86rem; color: rgba(255,255,255,0.65); margin-bottom:18px; }
.breadcrumb a{ color: rgba(255,255,255,0.85); }
.breadcrumb a:hover{ color:#8FE0C4; }
.page-hero h1{ color:#fff; max-width:780px; }
.page-hero .lede{ color: rgba(255,255,255,0.78); margin-top:14px; }

/* ===========================================================
   SHARED CARD / GRID COMPONENTS
   =========================================================== */
.icon-tile{
  width:58px; height:58px; border-radius:16px;
  background: var(--grad-primary);
  display:flex; align-items:center; justify-content:center;
  color:#fff; margin-bottom:20px; flex-shrink:0;
  box-shadow: var(--shadow-glow-blue);
}
.icon-tile.green{ background: linear-gradient(115deg, var(--green) 0%, var(--blue) 100%); box-shadow: var(--shadow-glow-green); }
.icon-tile.outline{ background: var(--mist); color: var(--blue); box-shadow:none; }

/* Stat band */
.stat-band{
  display:grid; grid-template-columns: repeat(4,1fr);
  gap: var(--sp-md);
}
.stat-item{ text-align:center; }
.stat-num{
  font-family: var(--font-head); font-weight:700;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  background: linear-gradient(135deg,#fff 0%, #8FE0C4 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stat-label{ font-size:0.88rem; color: rgba(255,255,255,0.72); font-weight:500; margin-top:6px; letter-spacing:0.02em; }
@media (max-width: 760px){ .stat-band{ grid-template-columns: repeat(2,1fr); gap: var(--sp-lg) var(--sp-md); } }

/* Section divider wave (subtle, used sparingly) */
.curve-divider{ display:block; width:100%; height:70px; }

/* FAQ Accordion */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding: 22px 4px; cursor:pointer;
  font-family: var(--font-head); font-weight:600; font-size:1.04rem; color: var(--ink);
}
.faq-q .plus{
  width:30px; height:30px; border-radius:50%; background: var(--mist); color:var(--blue);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  transition: transform .35s ease, background .35s ease, color .35s ease;
}
.faq-item.open .faq-q .plus{ transform: rotate(135deg); background: var(--grad-primary); color:#fff; }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .4s ease; }
.faq-a-inner{ padding: 0 4px 22px; color: var(--text-muted); line-height:1.75; font-size:0.96rem; max-width:760px; }

/* Modal / popup */
.modal-overlay{
  position:fixed; inset:0; z-index:200;
  background: rgba(8,32,58,0.62); backdrop-filter: blur(4px);
  display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:0; visibility:hidden; transition: opacity .35s ease, visibility .35s ease;
}
.modal-overlay.show{ opacity:1; visibility:visible; }
.modal-box{
  background:#fff; border-radius: var(--r-lg); max-width:480px; width:100%;
  padding: 2.6rem 2.2rem; position:relative; box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  max-height: 90vh; overflow-y:auto;
}
.modal-overlay.show .modal-box{ transform:none; }
.modal-close{
  position:absolute; top:18px; right:18px; width:36px; height:36px; border-radius:50%;
  background: var(--mist); display:flex; align-items:center; justify-content:center; color:var(--text);
  transition: background .25s, transform .25s;
}
.modal-close:hover{ background:#fee2e2; color:#dc2626; transform: rotate(90deg); }

/* Form elements */
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; margin-bottom:16px; }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:0.82rem; font-weight:600; color:var(--ink); margin-bottom:7px; }
.field input, .field select, .field textarea{
  width:100%; padding:13px 16px; border-radius:10px; border:1.5px solid var(--line);
  font-size:0.94rem; color:var(--text); background:#fff;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15,76,129,0.1); outline:none;
}
.field textarea{ resize:vertical; min-height:110px; }
.field-error{ font-size:0.78rem; color:#dc2626; margin-top:6px; display:none; }
.field.invalid input, .field.invalid select, .field.invalid textarea{ border-color:#dc2626; }
.field.invalid .field-error{ display:block; }
.field-success{
  display:flex; align-items:center; gap:12px;
  background: rgba(10,143,106,0.08); color: var(--green-deep);
  padding:16px 18px; border-radius:12px; font-size:0.9rem; font-weight:600;
}

/* Lightbox */
.lightbox{
  position:fixed; inset:0; z-index:300; background: rgba(4,12,22,0.94);
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transition: opacity .35s ease, visibility .35s ease;
}
.lightbox.show{ opacity:1; visibility:visible; }
.lightbox img{ max-width:88vw; max-height:82vh; border-radius:12px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox-close, .lightbox-nav{
  position:absolute; color:#fff; width:48px; height:48px; border-radius:50%;
  background: rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:center;
  transition: background .25s;
}
.lightbox-close:hover, .lightbox-nav:hover{ background: rgba(255,255,255,0.22); }
.lightbox-close{ top:24px; right:24px; }
.lightbox-nav.prev{ left:24px; top:50%; transform: translateY(-50%); }
.lightbox-nav.next{ right:24px; top:50%; transform: translateY(-50%); }

/* Dark mode toggle */
.theme-toggle{
  width:42px; height:42px; border-radius:50%; background: var(--mist);
  display:flex; align-items:center; justify-content:center; color: var(--blue);
  transition: background .25s, transform .25s;
  flex-shrink:0;
}
.theme-toggle:hover{ transform: rotate(20deg); }

/* Dark mode (applies subtle inversion) */
html.dark body{ background: #0B1622; color: #D7E2EC; }
html.dark .navbar::before{ background: rgba(11,22,34,0.92); }
html.dark .navbar .nav-links{ background:#0B1622; }
html.dark .nav-links > li > a{ color:#D7E2EC; }
html.dark .brand-text strong{ color:#fff; }
html.dark h1, html.dark h2, html.dark h3, html.dark h4{ color:#fff; }
html.dark .section--mist{ background:#0F1D2C; }
html.dark .chart-card, html.dark .glass, html.dark .course-mini, html.dark .doc-card, html.dark .mv-card, html.dark .message-card, html.dark .fac-card, html.dark .blog-card, html.dark .admission-form-wrap, html.dark .contact-info-card{ background:#13233570; border-color:#1f3145; color:#D7E2EC; }
html.dark .lede, html.dark p{ color:#A9BACB; }
html.dark .btn-ghost{ background:transparent; color:#fff; border-color:#2a3f55; }
html.dark .zigzag-feats li{ color:#E4ECF4; }
html.dark .zigzag-visual{ background: rgba(255,255,255,0.04); }
html.dark .tag{ background: rgba(255,255,255,0.08); color:#9FD8C2; }
html.dark .tag.green{ background: rgba(143,224,196,0.12); color:#9FD8C2; }
html.dark .course-mini-feats li, html.dark .course-feat-grid li, html.dark .footer-links a{ color:#E4ECF4; }
html.dark .duration-badge strong, html.dark .course-meta-item strong{ color:#8FE0C4; }
html.dark .elig, html.dark .elig-line, html.dark .muted, html.dark .testi-role, html.dark .blog-meta{ color:#8FA3B8; }
html.dark .field input, html.dark .field select, html.dark .field textarea{ background:#0F1D2C; border-color:#2a3f55; color:#E4ECF4; }
html.dark .field label{ color:#E4ECF4; }
html.dark .testi-track-outer{ background:#13233570; }
html.dark .testi-quote, html.dark .testi-name{ color:#fff; }
html.dark table.compare td{ border-color:#1f3145; color:#D7E2EC; }
html.dark table.compare tbody tr:hover{ background:#0F1D2C; }
html.dark table.compare tbody td:first-child{ color:#fff; }
html.dark .cv-item{ background:#13233570; }
html.dark .cv-item h4{ color:#E4ECF4; }

/* Cursor glow (subtle, desktop only, decorative) */
.cursor-glow{
  position:fixed; width:380px; height:380px; border-radius:50%; pointer-events:none; z-index:1;
  background: radial-gradient(circle, rgba(10,143,106,0.07), transparent 70%);
  transform: translate(-50%,-50%);
  transition: opacity .3s ease;
  display:none;
}
@media (min-width: 1024px){ .cursor-glow{ display:block; } }
