/* ============================================================
   NAVBAR — Gurukul College of Education
   Palette: White · Sky Blue · Clean Blue-Grey
   ============================================================ */

:root {
  --nb-dark:    #0d47a1;
  --nb-mid:     #1565c0;
  --nb-sky:     #1e88e5;
  --nb-sky-lt:  #42a5f5;
  --nb-accent:  #0288d1;
  --nb-light:   #e3f2fd;
  --nb-white:   #ffffff;
  --nb-muted:   rgba(255,255,255,.62);
  --nb-ease:    cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════ */
.topbar {
  background: linear-gradient(90deg, #0d47a1, #1565c0);
  border-bottom: 1px solid rgba(66,165,245,.3);
  padding: 7px 0;
}
.topbar-inner {
  max-width: 1300px; margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.topbar-left {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.topbar-left a {
  color: rgba(255,255,255,.8);
  font-size: 11.5px; font-weight: 500;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2);
  transition: color .2s, background .2s, border-color .2s;
}
.topbar-left a:hover {
  color: #fff;
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.4);
}
.topbar-sep { color: rgba(255,255,255,.25); font-size: 11px; }

/* Marquee notice */
.topbar-right { flex: 1; min-width: 0; }
.topbar-notice { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.notice-label {
  background: rgba(255,255,255,.2);
  color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 3px 11px; border-radius: 20px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.3);
}
.marquee-wrap { flex: 1; overflow: hidden; }
.marquee-track {
  display: inline-block; white-space: nowrap;
  animation: marquee 32s linear infinite;
  color: rgba(255,255,255,.7); font-size: 11.5px;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   COLLEGE HEADER — Logo, Name & Tagline
══════════════════════════════════════════ */
.college-header {
  background: #fff;
  border-bottom: 1px solid #e3f2fd;
  padding: 14px 0;
}
.college-header-inner {
  max-width: 1300px; margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
/* Center the minority badge between brand and admission banner */
.college-header-inner .minority-badge {
  position: absolute; left: 50%; transform: translateX(-50%);
}
.college-header { position: relative; }
.college-brand {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none;
}
.college-logo-wrap {
  width: 64px; height: 64px;
  border-radius: 12px;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 2px 14px rgba(21,101,192,.22);
  border: 2px solid rgba(21,101,192,.12);
}
.college-logo-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.college-text { text-align: left; }
.college-name-line {
  font-family: 'Playfair Display', serif;
  font-size: 52px; font-weight: 800; color: #0d47a1;
  line-height: 1.2;
}
.college-tagline {
  font-size: 10px; font-weight: 600; color: #1565c0;
  letter-spacing: .03em; margin-top: 3px;
}

/* Minority Institute badge — identical to admission-banner */
.minority-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, #0288d1, #29b6f6);
  color: #fff; font-size: 13px; font-weight: 800;
  letter-spacing: .03em;
  padding: 10px 20px; border-radius: 30px;
  box-shadow: 0 4px 18px rgba(2,136,209,.35);
  animation: admission-pulse 2.4s ease-in-out infinite;
  white-space: nowrap; flex-shrink: 0;
}
.minority-badge::before {
  content: '🎓';
  font-size: 15px;
}

/* Admission banner badge */
.admission-banner {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, #0288d1, #29b6f6);
  color: #fff; font-size: 13px; font-weight: 800;
  letter-spacing: .03em;
  padding: 10px 20px; border-radius: 30px;
  box-shadow: 0 4px 18px rgba(2,136,209,.35);
  animation: admission-pulse 2.4s ease-in-out infinite;
  white-space: nowrap; flex-shrink: 0;
}
.admission-banner::before {
  content: '🎓';
  font-size: 15px;
}
@keyframes admission-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(2,136,209,.35); transform: scale(1); }
  50%      { box-shadow: 0 4px 26px rgba(2,136,209,.55); transform: scale(1.035); }
}

/* ══════════════════════════════════════════
   MAIN NAV
══════════════════════════════════════════ */
#navbar-wrapper { position: sticky; top: 0; z-index: 9999; }
.main-nav {
  background: #fff;
  border-bottom: 2px solid #e3f2fd;
  box-shadow: 0 2px 16px rgba(21,101,192,.08);
  height: 68px;
  transition: background .3s var(--nb-ease), box-shadow .3s;
}
.main-nav.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 4px 28px rgba(21,101,192,.14);
}
.nav-container {
  max-width: 1300px; margin: 0 auto;
  height: 68px; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; flex-shrink: 0;
}
.logo-img-wrap {
  width: 46px; height: 46px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(21,101,192,.22);
  border: 2px solid rgba(21,101,192,.12);
}
.logo-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.logo-name {
  display: block; color: #1565c0;
  font-family: 'Playfair Display', serif;
  font-size: 13px; font-weight: 700; line-height: 1.3;
}

/* Nav list */
.nav-list {
  display: flex; align-items: center; flex: 1;
  list-style: none; margin: 0; padding: 0; gap: 1px;
  justify-content: center;
}
.nav-item { position: relative; }

.nav-link, .nav-btn {
  display: inline-flex; align-items: center; gap: 4px;
  color: #1a3a6a;
  font-size: 14px; font-weight: 600;
  padding: 7px 8px; border-radius: 6px;
  letter-spacing: .02em;
  transition: color .2s, background .2s;
  text-decoration: none;
  background: none; border: none; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.nav-link:hover, .nav-btn:hover {
  color: #1565c0;
  background: #e3f2fd;
}
.nav-link.active, .nav-btn.active {
  color: #1565c0;
  background: #e3f2fd;
  position: relative;
}
.nav-link.active::after, .nav-btn.active::after {
  content: '';
  position: absolute; bottom: -2px; left: 8px; right: 8px;
  height: 2px; border-radius: 2px;
  background: #1e88e5;
}

/* Chevron */
.nav-chevron {
  width: 11px; height: 11px;
  stroke: currentColor; fill: none; stroke-width: 2.2;
  transition: transform .22s var(--nb-ease);
}
.has-dropdown:hover .nav-chevron { transform: rotate(180deg); }

/* ══════════════════════════════════════════
   STANDARD DROPDOWNS
══════════════════════════════════════════ */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 48px rgba(21,101,192,.14);
  border-top: 3px solid #1e88e5;
  min-width: 220px;
  padding: 6px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}

.dd-item {
  display: flex; align-items: center; gap: 8px;
  color: #1a3a6a; font-size: 13.5px; font-weight: 500;
  padding: 9px 12px; border-radius: 7px;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.dd-item::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: #1e88e5; flex-shrink: 0;
  opacity: .4; transition: opacity .18s, transform .18s;
}
.dd-item:hover {
  background: #e3f2fd;
  color: #1565c0;
}
.dd-item:hover::before { opacity: 1; transform: scale(1.4); }

/* ══════════════════════════════════════════
   NESTED SUB-DROPDOWNS (flyout submenus)
══════════════════════════════════════════ */
.has-subdrop {
  position: relative;
  display: block; padding: 0;
}
.has-subdrop::after {
  content: '';
  position: absolute; top: 0; left: 100%;
  width: 16px; height: 100%;
}
.has-subdrop::before { display: none; }
.has-subdrop .dd-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: #1a3a6a; font-size: 12px; font-weight: 500;
  padding: 9px 12px; border-radius: 7px;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.has-subdrop:hover > .dd-link,
.has-subdrop:focus-within > .dd-link {
  background: #e3f2fd; color: #1565c0;
}
.sub-caret { font-size: 10px; opacity: .55; transition: transform .18s; }
.has-subdrop:hover > .dd-link .sub-caret { transform: translateX(2px); }
.sub-dropdown {
  position: absolute; top: -6px; left: calc(100% + 8px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 48px rgba(21,101,192,.14);
  border-top: 3px solid #1e88e5;
  min-width: 220px;
  padding: 6px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 210;
}
.has-subdrop:hover > .sub-dropdown,
.has-subdrop:focus-within > .sub-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}

/* Left-opening variant (for items near the right edge of the navbar) */
.has-subdrop.sub-left > .sub-dropdown {
  left: auto; right: calc(100% + 8px);
}
.has-subdrop.sub-left::after {
  left: auto; right: 100%;
}
.has-subdrop.sub-left > .dd-link {
  justify-content: flex-start; gap: 8px;
}
.sub-caret-left {
  font-size: 10px; opacity: .55; transition: transform .18s;
}
.has-subdrop.sub-left:hover > .dd-link .sub-caret-left { transform: translateX(-2px); }

/* ══════════════════════════════════════════
   HAMBURGER
══════════════════════════════════════════ */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; cursor: pointer;
  margin-left: auto;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #1565c0; border-radius: 2px;
  transition: .28s var(--nb-ease);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ══════════════════════════════════════════
   MOBILE MENU
══════════════════════════════════════════ */
.mobile-menu {
  display: none; flex-direction: column;
  background: #fff;
  border-top: 1px solid #e3f2fd;
  box-shadow: 0 8px 24px rgba(21,101,192,.1);
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--nb-ease);
}
.mobile-menu.open { max-height: 700px; }
.mobile-item { border-bottom: 1px solid #f0f7ff; }

.mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; color: #1a3a6a;
  font-size: 13.5px; font-weight: 600;
  padding: 13px 24px;
  text-decoration: none; background: none; border: none;
  cursor: pointer; font-family: inherit;
  transition: color .2s, background .2s;
}
.mobile-link:hover, .mobile-link.active {
  color: #1565c0;
  background: #e3f2fd;
}
.mob-chev {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform .22s; flex-shrink: 0;
}
.mobile-toggle.open .mob-chev { transform: rotate(180deg); }

/* Row that splits a top-level item into a page link + a separate submenu toggle */
.mobile-link-row {
  display: flex; align-items: stretch;
}
.mobile-link-row .mobile-link {
  flex: 1; justify-content: flex-start;
}
.mobile-toggle-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; flex-shrink: 0;
  background: none; border: none; border-left: 1px solid #f0f7ff;
  color: #1a3a6a; cursor: pointer;
  transition: color .2s, background .2s;
}
.mobile-toggle-icon:hover {
  color: #1565c0; background: #e3f2fd;
}

.mobile-sub {
  max-height: 0; overflow: hidden;
  transition: max-height .32s;
  background: #f5faff;
}
.mobile-sub.open { max-height: 500px; }
.mobile-sub-link {
  display: block; color: #3a5a8a;
  font-size: 13px; padding: 10px 24px 10px 36px;
  text-decoration: none;
  border-bottom: 1px solid #e8f4fd;
  transition: color .18s, background .18s;
}
.mobile-sub-link:hover { color: #1565c0; background: #e3f2fd; }
.mobile-sub-label {
  padding: 8px 24px 3px 36px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: #1e88e5;
}

/* Nested (3rd level) mobile submenu */
.mobile-subitem { border-top: 1px solid #e8f4fd; }
.mobile-subitem .mobile-sub-link.mobile-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; cursor: pointer; background: none; border: none;
  font-family: inherit; text-align: left;
}
.mobile-sub2 {
  background: #eef6ff;
}
.mobile-sub2 .mobile-sub-link { padding-left: 48px; }

/* Overlay */
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(13,71,161,.3); z-index: 9990;
}
.mobile-overlay.visible { display: block; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 960px) {
  .topbar-left { display: none; }
  .nav-list { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
}
@media (max-width: 600px) {
  .topbar { display: none; }
  .college-header { padding: 10px 0; }
  .college-header-inner { padding: 0 16px; justify-content: flex-start; }
  .college-logo-wrap { width: 48px; height: 48px; border-radius: 9px; }
  .college-name-line { font-size: 16px; }
  .college-tagline { font-size: 10px; }
  .admission-banner { font-size: 11px; padding: 7px 14px; }
  .minority-badge { font-size: 11px; padding: 7px 14px; position: static; transform: none; }
}
