body {
  padding-top: 130px !important;
}

@media (max-width: 991px) {
  body {
    padding-top: 110px !important;
  }
}

/* Unified Monochromatic Theme Navbar Design */
.navbar-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
}

.top-bar {
  background: #003366;
  color: white;
  min-height: 42px;
  display: flex;
  align-items: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1031;
}

@media (max-width: 768px) {
  .top-bar {
    min-height: auto;
    padding: 5px 0;
  }
  .top-bar .contact-info {
    font-size: 0.75rem;
  }
}

.header-scrolled .top-bar {
  height: 0;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-100%);
}

.main-header {
  background: white;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 51, 102, 0.05);
}

@media (max-width: 991px) {
  .main-header {
    padding: 12px 0;
  }
}

.header-scrolled .main-header {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 10px 0;
  box-shadow: 
    0 10px 40px rgba(0, 51, 102, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

/* Logo Animation */
.logo img {
  max-height: 65px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 4px 8px rgba(0, 51, 102, 0.1));
}

@media (max-width: 991px) {
  .logo img {
    max-height: 45px;
  }
}

.header-scrolled .logo img {
  max-height: 50px;
}

@media (max-width: 991px) {
  .header-scrolled .logo img {
    max-height: 40px;
  }
}

/* Nav Links - Unified Theme Styling */
.navbar ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar li {
  position: relative;
  margin: 0 2px;
}

.navbar a, .navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #003366;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 50px;
}

.navbar a i {
  font-size: 14px;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

/* Unified Hover & Active States */
.navbar a:hover, .navbar .active, .navbar li:hover > a {
  color: #fff !important;
  background: #003366;
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

.navbar .active, .navbar .active:focus {
  background: #003366;
}

/* Dropdown - Unified Theme */
.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 0;
  top: calc(100% + 30px);
  margin: 0;
  padding: 15px 10px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 20px 50px rgba(0, 51, 102, 0.15);
  transition: all 0.4s ease;
  border-radius: 18px;
  border: 1px solid rgba(0, 51, 102, 0.05);
  transform: translateY(15px);
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
  transform: translateY(0);
}

.navbar .dropdown ul li {
  min-width: 220px;
  margin-bottom: 2px;
}

.navbar .dropdown ul a {
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #003366;
  border-radius: 10px;
}

.navbar .dropdown ul a:hover {
  background-color: #003366;
  color: #fff !important;
  padding-left: 25px;
}

/* Admission Button - Perfectly Matched Theme Color */
.navbar .getstarted, .navbar .getstarted:focus {
  background: #003366;
  padding: 12px 30px;
  margin-left: 20px;
  border-radius: 50px;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px rgba(0, 51, 102, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
}

.navbar .getstarted:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 51, 102, 0.3);
  background: #003366;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  color: #003366;
  font-size: 32px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: all 0.4s ease;
  padding: 8px;
  border-radius: 12px;
  background: rgba(0, 51, 102, 0.05);
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
    margin-left: auto;
  }
  .navbar ul {
    display: none;
  }
}

.mobile-nav-toggle:hover {
  background: rgba(0, 51, 102, 0.1);
  color: #003366;
}

/* Mobile Nav Active State - Fix containing block issues */
.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active .navbar-modern,
.mobile-nav-active .main-header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: none !important;
  transform: none !important;
  overflow: visible !important;
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 51, 102, 1); /* Solid background to ensure full coverage */
  transition: 0.3s;
  z-index: 999999; /* Highest priority */
  width: 100vw;
  height: 100vh;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  z-index: 1000000;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 70px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  border-radius: 12px;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  max-height: calc(100vh - 100px);
}

.navbar-mobile a, .navbar-mobile a:focus {
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #003366;
  border-bottom: 1px solid rgba(0, 51, 102, 0.05);
}

.navbar-mobile a:hover, .navbar-mobile .active, .navbar-mobile li:hover > a {
  color: #fff;
  background: #003366;
}

.navbar-mobile .getstarted, .navbar-mobile .getstarted:focus {
  margin: 15px;
  background: #003366;
  color: #fff !important;
  text-align: center;
  justify-content: center;
  display: flex;
  border-radius: 50px;
  padding: 14px;
  font-weight: 800;
  border: none;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(0, 51, 102, 0.1);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
  color: #003366;
  border: none;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover, .navbar-mobile .dropdown ul .active:hover, .navbar-mobile .dropdown ul li:hover > a {
  background: #003366;
  color: #fff;
}

.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}
