/* ============================================================
   NAVBAR  —  3 bands: Topbar · College Header · Main Nav
   ============================================================ */
#navbar-wrapper {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: box-shadow 0.3s;
}
#navbar-wrapper.scrolled { box-shadow: 0 4px 30px rgba(11,31,58,0.15); }

/* ---------- 1. TOPBAR ---------- */
.topbar { background: var(--navy); padding: 7px 0; }
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.topbar-contacts { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tb-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  font-size: 12.5px; font-weight: 500;
  padding: 5px 13px; border-radius: 999px;
  text-decoration: none; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.tb-pill:hover { background: rgba(200,165,75,0.18); border-color: var(--gold); }
.tb-ic { font-size: 12px; line-height: 1; }

.topbar-notice {
  display: flex; align-items: center; gap: 10px; flex: 1;
  min-width: 0; overflow: hidden;
}
.notice-label {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  font-size: 12px; font-weight: 600;
  padding: 5px 13px; border-radius: 999px;
  white-space: nowrap; flex-shrink: 0;
}
.marquee-wrap { overflow: hidden; flex: 1; min-width: 0; position: relative; }
.marquee-track {
  display: inline-flex; white-space: nowrap;
  animation: marqueeScroll 26s linear infinite;
  color: rgba(255,255,255,0.72); font-weight: 500; font-size: 12.5px;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- 2. COLLEGE HEADER ---------- */
.college-header { background: var(--white); border-bottom: 1px solid var(--cream-dark); }
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.logo-icon {
  width: 58px; height: 58px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
}
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; min-width: 0; }
.logo-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 24px; line-height: 1.12; color: var(--navy);
}
.logo-tagline {
  font-size: 12.5px; font-weight: 500; color: var(--gold-dark);
  margin-top: 4px; line-height: 1.3;
}

.header-badges { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.hdr-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 11px 22px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(239,106,22,0.28);
  white-space: nowrap;
}
.badge-ic { font-size: 13px; line-height: 1; }

/* ---------- 3. MAIN NAV ---------- */
.main-nav { background: var(--white); border-bottom: 1px solid var(--cream-dark); box-shadow: 0 2px 10px rgba(11,31,58,0.04); }
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; height: 52px;
}
.nav-list { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav-item { position: relative; display: flex; align-items: stretch; }

.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 0 13px; height: 52px; font-size: 14px; font-weight: 500;
  color: var(--navy); text-decoration: none; background: none; border: none;
  cursor: pointer; font-family: var(--font-body); white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active, .nav-item.open > .nav-link {
  color: var(--navy); border-bottom-color: var(--gold); background: var(--cream);
}
.nav-chevron { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.2s; flex-shrink: 0; }
.nav-item.open .nav-chevron { transform: rotate(180deg); }

/* Dropdowns */
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--gold);
  border-radius: 0 0 10px 10px; min-width: 230px; padding: 8px;
  box-shadow: 0 12px 40px rgba(11,31,58,0.13); z-index: 500;
  animation: ddFade 0.18s ease;
}
.nav-item.open .dropdown { display: block; }
@keyframes ddFade { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.dd-item { display: block; padding: 9px 14px; border-radius: 7px; font-size: 13.5px; color: var(--text); transition: background 0.15s, color 0.15s; }
.dd-item:hover { background: var(--cream); color: var(--navy); }

/* Courses Mega */
.courses-mega { left: 0; min-width: 500px; padding: 20px; }
.mega-header { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--cream-dark); }
.mega-grid { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 16px; align-items: start; }
.mega-divider { background: var(--cream-dark); }
.mega-box-title { display: flex; align-items: center; gap: 7px; font-size: 15px; font-family: var(--font-display); font-weight: 700; color: var(--navy); margin-bottom: 12px; flex-wrap: wrap; }
.mega-box-title svg { color: var(--gold); flex-shrink: 0; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.mega-box-sub { font-family: var(--font-body); font-size: 10.5px; font-weight: 400; color: var(--text-muted); width: 100%; margin-top: -4px; padding-left: 24px; }
.mega-btn { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--cream-dark); text-decoration: none; transition: all 0.2s; margin-bottom: 8px; background: var(--white); }
.mega-btn:hover { border-color: var(--gold); background: var(--cream); transform: translateX(3px); }
.mega-btn-icon { font-size: 18px; flex-shrink: 0; }
.mega-btn-label { font-size: 13.5px; font-weight: 600; color: var(--navy); line-height: 1; margin-bottom: 2px; }
.mega-btn-desc { font-size: 11.5px; color: var(--text-muted); }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--navy); padding: 6px; margin-left: auto; }
.hamburger svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Mobile menu */
.mobile-menu { display: none; background: var(--white); border-top: 1px solid var(--cream-dark); overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
.mobile-menu.open { display: block; max-height: 80vh; overflow-y: auto; }
.mobile-item { border-bottom: 1px solid var(--cream-dark); }
.mobile-link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 20px; font-size: 15px; font-weight: 500; color: #333; text-decoration: none; background: none; border: none; cursor: pointer; font-family: var(--font-body); text-align: left; }
.mobile-link:hover { color: var(--navy); background: var(--cream); }
.mob-chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.2s; }
.mob-chev.open { transform: rotate(180deg); }
.mobile-sub { display: none; background: var(--cream); padding: 4px 0 8px; }
.mobile-sub.open { display: block; }
.mobile-sub-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); padding: 10px 28px 4px; }
.mobile-sub-link { display: block; padding: 9px 28px; font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.mobile-sub-link:hover { color: var(--navy); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 999; display: none; }
.mobile-overlay.show { display: block; }

/* ---------- Footer logo (kept) ---------- */
.footer-logo { width: 56px; height: 56px; background: transparent; overflow: hidden; border-radius: 10px; margin-bottom: 14px; }
.footer-logo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Page top padding (3 bands) ---------- */
.home-page  { padding-top: 175px !important; }
.inner-page { padding-top: 175px !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .header-badges .hdr-badge { padding: 10px 16px; font-size: 12.5px; }
  .nav-link { padding: 0 10px; font-size: 13.5px; }
}
@media (max-width: 1024px) {
  .header-badges { display: none; }
}
@media (max-width: 920px) {
  .nav-list { display: none; }
  .hamburger { display: flex; }
  .nav-container { height: 56px; }
  .topbar-contacts .tb-pill:nth-child(3) { display: none; }
}
@media (max-width: 768px) {
  .topbar-notice { display: none; }
  .logo-name { font-size: 20px; }
  .logo-icon { width: 48px; height: 48px; }
  .home-page, .inner-page { padding-top: 150px !important; }
}
@media (max-width: 560px) {
  .topbar { padding: 6px 0; }
  .topbar-contacts { gap: 7px; }
  .tb-pill { font-size: 11.5px; padding: 4px 10px; }
  .topbar-contacts .tb-pill:nth-child(2) { display: none; }
  .logo-name { font-size: 17px; }
  .logo-tagline { font-size: 11px; }
  .header-inner { padding: 10px 16px; }
  .home-page, .inner-page { padding-top: 132px !important; }
}

/* ---------- Academics sub-dropdown (Timetable) ---------- */
.dd-item.has-subdrop { position: relative; padding: 0; }
.dd-item.has-subdrop > .dd-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; border-radius: 7px; font-size: 13.5px; color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.dd-item.has-subdrop:hover > .dd-link { background: var(--cream); color: var(--navy); }
.sub-caret { font-size: 9px; color: var(--text-muted); }
.sub-dropdown {
  display: none; position: absolute; top: -8px; left: 100%;
  background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--gold);
  border-radius: 0 10px 10px 10px; min-width: 200px; padding: 8px;
  box-shadow: 0 12px 40px rgba(11,31,58,0.13); z-index: 600;
}
.dd-item.has-subdrop:hover > .sub-dropdown { display: block; }

/* ---------- Mobile link row (link + separate toggle) ---------- */
.mobile-link-row { display: flex; align-items: center; justify-content: space-between; }
.mobile-link-row .mobile-link { flex: 1; }
.mobile-toggle-icon { background: none; border: none; cursor: pointer; padding: 14px 20px; color: var(--text-muted); border-left: 1px solid var(--cream-dark); }
.mobile-toggle-icon .mob-chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.2s; }
.mobile-toggle-icon .mob-chev.open { transform: rotate(180deg); }
