/* ==========================================================================
   Sun Rise Sr. Sec. School - Navbar & Header Stylesheet
   Uniform Dark Navy Blue (#001129 / #0B2647) & Gold (#C9A24B) Design System
   ========================================================================== */

/* Main Header Container */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999 !important;
  background-color: #ffffff;
  border-bottom: 1px solid #E5E2DA;
  box-shadow: 0 4px 18px rgba(0, 17, 41, 0.08);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

/* Page Main Container: Responsive Top Offset matching Fixed Navbar */
main {
  padding-top: 122px !important;
}

@media (min-width: 480px) {
  main {
    padding-top: 125px !important;
  }
}

@media (min-width: 640px) {
  main {
    padding-top: 130px !important;
  }
}

@media (min-width: 1024px) {
  main {
    padding-top: 136px !important;
  }
}

/* Top Utility Bar (Green Theme) */
.top-utility-bar {
  background-color: #1a6b2e;
  color: #f1f5f9;
  padding: 0.85rem 0;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  transition: all var(--transition-normal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-family: 'Inter', sans-serif;
  overflow-x: clip;
}

@media (min-width: 640px) {
  .top-utility-bar {
    padding: 0.9rem 0;
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .top-utility-bar {
    padding: 0.95rem 0;
    font-size: 15px;
  }
}

.top-bar-inner {
  max-width: 90rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .top-bar-inner {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    gap: 0.75rem;
  }
}

@media (min-width: 640px) {
  .top-bar-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .top-bar-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Left Utility Links */
.top-bar-left-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

@media (min-width: 860px) {
  .top-bar-left-links {
    display: flex;
  }
}

.top-nav-item {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.top-nav-item:hover,
.top-nav-item.active {
  color: #C9A24B;
}

/* Right Information & Continuous Blinking Elements */
.top-bar-right-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
}

@media (min-width: 860px) {
  .top-bar-right-info {
    width: auto;
    justify-content: flex-end;
    gap: 1.35rem;
  }
}

/* Continuous Blinking Online Registration Badge */
.top-nav-blink-registration {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.16rem 0.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  animation: blink-registration-badge 1.8s infinite ease-in-out;
  border: 1px solid #C9A24B;
  transition: transform 0.15s ease, background-color 0.15s ease;
  flex-shrink: 0;
  line-height: 1.35;
}

@media (min-width: 480px) {
  .top-nav-blink-registration {
    font-size: 11.5px;
    padding: 0.18rem 0.6rem;
    gap: 0.4rem;
  }
}

@media (min-width: 640px) {
  .top-nav-blink-registration {
    font-size: 12px;
    padding: 0.2rem 0.65rem;
    gap: 0.45rem;
    letter-spacing: 0.01em;
  }
}

/* Hide 'Online ' word prefix on screens under 380px so badge fits seamlessly at 320px */
.top-utility-bar .top-nav-reg-prefix {
  display: none;
}

@media (min-width: 380px) {
  .top-utility-bar .top-nav-reg-prefix {
    display: inline;
  }
}

.top-nav-blink-registration:hover {
  animation: none !important;
  transform: translateY(-1px) scale(1.04);
  background: linear-gradient(135deg, #FFDF73 0%, #D4AF37 50%, #B8860B 100%) !important;
  color: #001129 !important;
  border-color: #FFDF73 !important;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.9), 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.top-nav-blink-registration:hover * {
  color: #001129 !important;
}

.top-nav-blink-registration:hover .blink-dot {
  background-color: #001129 !important;
  box-shadow: 0 0 6px rgba(0, 17, 41, 0.7) !important;
  animation: none !important;
}

.top-nav-blink-registration .blink-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: #fbbf24;
  display: inline-block;
  box-shadow: 0 0 6px #fbbf24;
  animation: blink-dot-pulse 1.2s infinite ease-in-out;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .top-nav-blink-registration .blink-dot {
    width: 7px;
    height: 7px;
  }
}

@keyframes blink-registration-badge {
  0%, 100% {
    color: #ffffff;
    background-color: rgba(201, 162, 75, 0.25);
    border-color: #C9A24B;
    box-shadow: 0 0 12px rgba(201, 162, 75, 0.55), inset 0 0 6px rgba(255, 255, 255, 0.15);
    opacity: 1;
  }
  50% {
    color: #fef08a;
    background-color: transparent;
    border-color: rgba(201, 162, 75, 0.35);
    box-shadow: none;
    opacity: 0.45;
  }
}

@keyframes blink-dot-pulse {
  0%, 100% {
    transform: scale(1.2);
    opacity: 1;
  }
  50% {
    transform: scale(0.65);
    opacity: 0.3;
  }
}

.top-nav-info-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  transition: color 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .top-nav-info-link {
    font-size: 12px;
  }
}

.top-nav-info-link:hover {
  color: #C9A24B;
}

.top-nav-info-link .material-symbols-outlined {
  color: #C9A24B;
  font-size: 14px;
}

@media (min-width: 640px) {
  .top-nav-info-link .material-symbols-outlined {
    font-size: 15px;
  }
}

/* Responsive visibility for email to prevent 320px mobile overflow */
.top-bar-email {
  display: none;
}

@media (min-width: 720px) {
  .top-bar-email {
    display: inline-flex;
  }
}

.top-bar-phone {
  display: inline-flex;
  letter-spacing: -0.01em;
}

/* Main Navigation Bar Container */
.nav-container {
  height: 4.25rem;
  max-width: 90rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .nav-container {
    height: 4.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    padding-left: 2rem;
    padding-right: 2rem;
    gap: 1rem;
  }
}

/* Brand Logo & Title */
.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 1023px) {
  .brand-logo-link {
    max-width: calc(100% - 90px);
  }
}

@media (min-width: 1024px) {
  .brand-logo-link {
    flex: 0 0 auto;
    gap: 0.75rem;
    max-width: none;
  }
}

.brand-logo-img {
  height: 2.65rem;
  width: 2.65rem;
  min-width: 2.65rem;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

@media (min-width: 640px) {
  .brand-logo-img {
    height: 2.85rem;
    width: 2.85rem;
    min-width: 2.85rem;
  }
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-logo-text-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  justify-content: center;
}

/* St. Joseph Pattern Institutional Typography Lockup - Exact Proportions */
.brand-stj-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  min-width: 0;
  user-select: none;
}

.brand-stj-top {
  display: flex;
  align-items: baseline;
  font-family: 'Cinzel', 'Playfair Display', Georgia, 'Times New Roman', serif;
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.brand-stj-drop {
  font-family: 'Cinzel', 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 3.6vw, 2.35rem);
  font-weight: 900;
  color: #001129;
  line-height: 0.85;
  margin-right: 0.5px;
  letter-spacing: -0.01em;
  display: inline-block;
  transform: translateY(1.5px);
}

.brand-stj-rest {
  font-family: 'Cinzel', 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 900;
  color: #001129;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}

.brand-stj-bottom {
  font-family: 'Cinzel', 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(0.62rem, 1.35vw, 0.76rem);
  font-weight: 700;
  color: #001129;
  letter-spacing: 0.23em;
  text-transform: uppercase;
  margin-top: 3.5px;
  padding-left: 1px;
  white-space: nowrap;
  line-height: 1;
  display: block;
}

@media (max-width: 480px) {
  .brand-stj-drop {
    font-size: 1.55rem;
  }
  .brand-stj-rest {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
  }
  .brand-stj-bottom {
    font-size: 0.54rem;
    letter-spacing: 0.16em;
    margin-top: 2px;
  }
}

.brand-logo-line1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.06rem, 2.3vw, 1.25rem);
  font-weight: 900;
  color: #000c1e;
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1.1;
}

.brand-logo-line2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.72rem, 1.6vw, 0.82rem);
  font-weight: 800;
  color: #0a192f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  line-height: 1.15;
}

.brand-logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.95rem, 3.8vw, 1.18rem);
  font-weight: 900;
  color: #000c1e;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.brand-logo-sub {
  font-size: 0.66rem;
  color: #1e293b;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
  line-height: 1.15;
  margin-top: 1px;
}

@media (min-width: 440px) {
  .brand-logo-sub {
    display: block;
  }
}

/* Desktop Navigation Menu */
.desktop-nav-menu {
  display: none;
  align-items: center;
  gap: 0.1rem;
  height: 4.5rem;
  margin-left: auto;
  justify-content: flex-end;
}

@media (min-width: 1024px) {
  .desktop-nav-menu {
    display: flex;
    gap: 0.1rem;
  }
}

@media (min-width: 1200px) {
  .desktop-nav-menu {
    gap: 0.12rem;
  }
}

@media (min-width: 1360px) {
  .desktop-nav-menu {
    gap: 0.15rem;
  }
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #001129;
  padding: 0 0.25rem;
  position: relative;
  transition: color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 4.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (min-width: 1200px) {
  .nav-link {
    font-size: 16px;
    padding: 0 0.3rem;
    gap: 2px;
    letter-spacing: -0.012em;
  }
}

@media (min-width: 1360px) {
  .nav-link {
    font-size: 16px;
    padding: 0 0.35rem;
    gap: 2.5px;
    letter-spacing: -0.01em;
  }
}

.nav-link:hover {
  color: #C9A24B;
  background-color: transparent;
}

.nav-link .nav-arrow {
  color: #94a3b8;
  font-size: 16px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 1px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.nav-link:hover .nav-arrow {
  color: #C9A24B;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0.3rem;
  right: 0.3rem;
  height: 2.5px;
  background-color: #C9A24B;
  border-radius: 2px 2px 0 0;
  opacity: 0;
  transform: scaleX(0);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.nav-link:hover::after {
  opacity: 0.85;
  transform: scaleX(1);
}

.nav-link.active,
.nav-dropdown-wrapper.active .nav-link {
  color: #001129 !important;
  font-weight: 800;
}

.nav-link.active .nav-arrow,
.nav-dropdown-wrapper.active .nav-link .nav-arrow {
  color: #C9A24B;
}

.nav-link.active::after,
.nav-dropdown-wrapper.active .nav-link::after {
  opacity: 1;
  transform: scaleX(1);
  background-color: #C9A24B;
}

/* Dropdown Menu Component */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 4.5rem;
}

.nav-dropdown-wrapper:hover .nav-arrow,
.nav-dropdown-wrapper.open .nav-arrow {
  transform: rotate(180deg);
  color: #C9A24B;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 290px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 17, 41, 0.12), 0 2px 8px rgba(0, 17, 41, 0.04);
  border: 1px solid #E5E2DA;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu,
.nav-dropdown-wrapper.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Right-aligned dropdown handling: prevent menus near the right edge from clipping off-screen */
@media (min-width: 1024px) {
  .nav-dropdown-wrapper:nth-last-child(-n+2) .nav-dropdown-menu {
    left: auto;
    right: 0;
    transform: translateY(10px);
  }

  .nav-dropdown-wrapper:nth-last-child(-n+2):hover .nav-dropdown-menu,
  .nav-dropdown-wrapper:nth-last-child(-n+2):focus-within .nav-dropdown-menu,
  .nav-dropdown-wrapper:nth-last-child(-n+2).open .nav-dropdown-menu {
    transform: translateY(0);
  }
}

.nav-dropdown-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  color: #1a1c1a;
  transition: all 0.18s ease;
}

.nav-dropdown-item:hover {
  background-color: #F9F4E8;
  transform: translateX(2px);
}

.nav-dropdown-item.active {
  background-color: #F3EFEA;
}

.nav-dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #faf9f6;
  border: 1px solid #E5E2DA;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C9A24B;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.nav-dropdown-item:hover .nav-dropdown-icon {
  background: #001129;
  border-color: #001129;
  color: #C9A24B;
}

.nav-dropdown-item.active .nav-dropdown-icon {
  background: #001129;
  border-color: #001129;
  color: #C9A24B;
}

.nav-dropdown-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-dropdown-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #001129;
  line-height: 1.25;
}

.nav-dropdown-desc {
  font-size: 0.725rem;
  color: #64748b;
  margin-top: 0.15rem;
  line-height: 1.2;
  font-weight: 400;
}

.nav-dropdown-item:hover .nav-dropdown-title {
  color: #001129;
}

.nav-dropdown-item.active .nav-dropdown-title {
  color: #001129;
  font-weight: 800;
}

/* Right Actions (Enquire & Profile Portal) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  justify-content: flex-end;
}

@media (min-width: 640px) {
  .nav-actions {
    gap: 0.65rem;
  }
}

@media (min-width: 1024px) {
  .nav-actions {
    display: none;
  }
}

.btn-nav-enquire {
  display: none;
  align-items: center;
  justify-content: center;
  background-color: #C9A24B;
  color: #001129;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0 1.15rem;
  height: 2.35rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(201, 162, 75, 0.22);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

@media (min-width: 860px) {
  .btn-nav-enquire {
    display: inline-flex;
  }
}

.btn-nav-enquire:hover {
  background-color: #B38C37;
  color: #001129;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(201, 162, 75, 0.32);
}

.nav-avatar-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: #001129;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .nav-avatar-btn {
    width: 2.35rem;
    height: 2.35rem;
  }
}

.nav-avatar-btn:hover {
  background-color: #0B2647;
  transform: scale(1.05);
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 7px;
  background: #faf9f6;
  border: 1px solid #E5E2DA;
  color: #001129;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .mobile-menu-toggle {
    width: 2.35rem;
    height: 2.35rem;
  }
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle:hover {
  background-color: #efeeeb;
  border-color: #C9A24B;
}

/* Mobile Drawer Overlay & Panel */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 17, 41, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  max-width: 88vw;
  height: 100vh;
  height: 100dvh;
  background-color: #faf9f6;
  z-index: 1100;
  box-shadow: -6px 0 28px rgba(0, 17, 41, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-sizing: border-box;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-drawer-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #E5E2DA;
  margin-bottom: 1rem;
}

.mobile-close-btn {
  background: #efeeeb;
  border: 1px solid #E5E2DA;
  color: #001129;
  cursor: pointer;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
}

.mobile-close-btn:hover {
  background-color: #e2e8f0;
  transform: rotate(90deg);
}

.mobile-portal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #E5E2DA;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0, 17, 41, 0.03);
}

.mobile-portal-link {
  background-color: #001129;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.mobile-portal-link:hover {
  background-color: #C9A24B;
  color: #001129;
}

.mobile-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-nav-group {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E5E2DA;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.mobile-nav-group.open {
  border-color: #C9A24B;
  box-shadow: 0 2px 8px rgba(201, 162, 75, 0.08);
}

.mobile-nav-group-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  background: transparent;
  border: none;
  color: #001129;
  font-family: 'Inter', sans-serif;
  font-size: 0.925rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
  transition: background-color 0.18s ease;
}

.mobile-nav-group-btn:hover {
  background-color: #F9F4E8;
}

.mobile-nav-group-btn.active {
  color: #001129;
}

.mobile-group-arrow {
  color: #64748b;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.mobile-nav-group.open .mobile-group-arrow {
  transform: rotate(180deg);
  color: #C9A24B;
}

.mobile-sublinks-list {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.25rem 0.5rem 0.65rem 0.5rem;
  background-color: #faf9f6;
  border-top: 1px solid #f1f5f9;
}

.mobile-sublinks-list.open {
  display: flex;
}

.mobile-sublink {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mobile-sublink:hover {
  background-color: #F9F4E8;
  color: #001129;
}

.mobile-sublink.active {
  background-color: #001129 !important;
  color: #ffffff !important;
  font-weight: 700;
}

.mobile-sublink.active .material-symbols-outlined {
  color: #C9A24B !important;
}

.mobile-drawer-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #E5E2DA;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: color 0.18s ease;
}

.mobile-footer-contact-item:hover {
  color: #001129;
}

/* ==========================================================================
   Header Interactive Modals (Student Login & Mandatory Disclosure)
   ========================================================================== */
.portal-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 17, 41, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.portal-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.portal-modal-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 17, 41, 0.25), 0 4px 12px rgba(0, 17, 41, 0.08);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  border: 1px solid #E5E2DA;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-modal-backdrop.open .portal-modal-card {
  transform: scale(1) translateY(0);
}

.portal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid #E5E2DA;
  background-color: #faf9f6;
}

.portal-modal-close {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid #E5E2DA;
  background-color: #ffffff;
  color: #001129;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.portal-modal-close:hover {
  background-color: #efeeeb;
  transform: rotate(90deg);
}

.portal-modal-form {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #001129;
}

.portal-input {
  width: 100%;
  height: 2.65rem;
  padding: 0 0.85rem;
  border-radius: 8px;
  border: 1px solid #E5E2DA;
  background-color: #f8fafc;
  font-size: 0.85rem;
  color: #001129;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}

.portal-input:focus {
  border-color: #001129;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 17, 41, 0.08);
}

.portal-btn-submit {
  width: 100%;
  height: 2.75rem;
  border-radius: 8px;
  background-color: #001129;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.15s ease;
  margin-top: 0.35rem;
}

.portal-btn-submit:hover {
  background-color: #C9A24B;
  color: #001129;
  transform: translateY(-1px);
}
