body { 
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;  */
    padding-top: 90px; 
    background-color: #f8f9fa; 
}

.navbar { 
    box-shadow: 0 2px 15px rgba(0,0,0,0.1); 
    z-index: 1030;
    padding: 0.8rem 0;
    background-color: #fff !important;
    transition: all 0.3s ease;
    height: 90px;
}

.navbar-brand {
    /* font-weight: 800; */
    font-size: 1.2rem;
    color: #1a6d9c !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    font-size: 1.5rem;
    color: #ff7e30;
}
.navbar-brand img {
  max-height: 60px;
  width: auto;
}

.navbar-brand .site-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: #000;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #2c3e50 !important;
    padding: 0.8rem 1rem !important;
    transition: all 0.2s ease;
    font-size: 1.05rem;
}

.navbar-nav .nav-link:hover {
    color: #1a6d9c !important;
    background-color: rgba(26, 109, 156, 0.05);
    border-radius: 4px;
}

/* Search button styling */
.btn-search {
    background-color: transparent;
    border: 2px solid #1a6d9c;
    color: #1a6d9c;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background-color: #1a6d9c;
    color: white;
    transform: scale(1.05);
}

/* Mega Menu */
.dropdown-mega { position: static; }

.dropdown-menu-mega {
  position: absolute;
  top: calc(100%);
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
  border: none;
  border-radius: 0 0 8px 8px;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 0.5rem 0;
  min-height: 380px;
}

.dropdown-menu-mega.show { 
    display: flex; 
    opacity: 1; 
}

.mega-menu-container { 
    display: flex; 
    max-width: 1200px; 
    margin: 0 auto; 
    width: 100%; 
    height: 100%; 
    padding: 25px;
}

.mega-menu-left {
  width: 240px;
  border-right: 1px solid #eaeaea;
  padding: 0.5rem 1.5rem 0.5rem 0;
  display: flex;
  flex-direction: column;
}

.mega-menu-left a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  color: #2c3e50;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  line-height: 1.3;
  transition: all 0.15s ease;
  border-radius: 5px;
  margin-bottom: 5px;
}

.mega-menu-left a:hover { 
    background-color: #f0f7ff; 
    color: #1a6d9c; 
    padding-left: 1.2rem; 
}

.mega-menu-right {
  flex: 1;
  padding: 0.5rem 1rem;
  display: none;
  overflow-y: auto; 
  max-height: 500px; 
  transition: all 0.25s ease-in-out;
  padding-right: 15px;
}

.mega-menu-right.active { 
    display: flex; 
    flex-direction: column; 
    animation: fadeIn 0.25s ease-in-out; 
}

/* Submenu Sections */
.submenu-section { margin-bottom: 1.5rem; }

.submenu-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1a6d9c;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eaeaea;
  line-height: 1.3;
}

/* Grid: 10 items per column */
.submenu-columns {
  display: grid;
  grid-auto-flow: column;               
  grid-template-rows: repeat(10, auto);
  grid-auto-columns: minmax(150px, auto); 
  gap: 0.5rem 20px;                    
  width: auto;                          
}

.submenu-columns a {
  display: block;
  margin: 0.2rem 0;
  color: #4a5568;
  font-size: 14px;
  text-decoration: none;
  padding: 0.3rem 0;
  line-height: 1.4;
  transition: all 0.15s ease;
}

.submenu-columns a:hover { 
    color: #1a6d9c; 
    padding-left: 5px; 
    font-weight: 500;
}

.nav-link i { font-size: 0.7rem; margin-left: 5px; }

.mobile-back-btn {
  display: none;
  background: none;
  border: none;
  padding: 12px 15px;
  font-weight: 600;
  color: #1a6d9c;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-back-btn:hover {
  background-color: #f0f7ff;
  color: #1a6d9c;
}

.mobile-header {
  display: none;
  font-weight: 700;
  font-size: 1.35rem;
  padding: 12px 15px;
  color: #1a6d9c;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Navigation Styles */
@media (max-width: 991.98px) {
  body { 
    padding-top: 0; 
    overflow-x: hidden;
  }
  
  .mobile-back-btn,
  .mobile-header {
    display: block;
  }
  
  /* Custom hamburger button */
  .navbar-toggler {
    border: none;
    background: transparent;
    padding: 0.5rem;
    font-size: 2.5rem;
    outline: none;
    box-shadow: none !important;
    transition: transform 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1051;
    color: #1a6d9c;
    padding-right:40px;
  }
  
  .navbar-toggler .burger-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .navbar-toggler .close-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .navbar-toggler.menu-open .burger-icon {
    opacity: 0;
    transform: rotate(90deg);
  }
  
  .navbar-toggler.menu-open .close-icon {
    opacity: 1;
    transform: rotate(0deg);
  }
  
  /* Full screen mobile menu */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Mobile menu now appears from left */
  .mobile-menu-container {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: white;
    z-index: 1050;
    overflow-y: auto;
    transition: left 0.35s ease;
    padding: 0;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
  }
  
  .mobile-menu-container.active {
    left: 0;
  }
  
  /* FIXED: Mobile menu header with logo */
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    height: 70px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
  
  .mobile-menu-logo {
    display: flex;
    align-items: center;
  }
  
  .mobile-menu-logo .navbar-brand {
    padding: 0;
    margin: 0;
    height: auto;
  }
  
  .mobile-menu-logo img {
    max-height: 40px;
    width: auto;
  }
  
  .mobile-menu-logo .site-title {
    font-size: 1.1rem;
    margin-left: 8px;
    color: #1a6d9c;
    font-weight: 700;
  }
  
  /* Enhanced close button styling */
  .mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #2c3e50;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
  }
  
  .mobile-menu-close:hover {
    transform: scale(1.1);
    color: #1a6d9c;
    background-color: rgba(26, 109, 156, 0.1);
  }
  
  /* FIXED: Mobile menu content with proper spacing */
  .mobile-menu-content {
    padding: 0;
    height: calc(100% - 70px); /* Subtract header height */
    overflow-y: auto;
  }
  
  .mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
  }
  
  .mobile-nav-item:hover {
    background-color: #f0f7ff;
  }
  
  .mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
  }
  
  .mobile-nav-link i {
    transition: transform 0.3s ease;
    color: #1a6d9c;
  }
  
  .mobile-nav-link[aria-expanded="true"] i {
    transform: rotate(180deg);
  }
  
  .mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #f9f9f9;
  }
  
  .mobile-submenu.show {
    max-height: 1000px;
  }
  
  .mobile-submenu-item {
    padding: 0;
  }
  
  .mobile-submenu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #4a5568;
    text-decoration: none;
    padding: 1rem 1.5rem 1rem 2rem;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    font-weight: 500;
  }
  
  .mobile-submenu-link:hover {
    background-color: #f0f7ff;
    color: #1a6d9c;
    padding-left: 2.2rem;
  }
  
  .mobile-tertiary-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #f0f0f0;
  }
  
  .mobile-tertiary-menu.show {
    max-height: 1000px;
  }
  
  .mobile-tertiary-item {
    padding: 0;
  }
  
  .mobile-tertiary-link {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 0.8rem 1.5rem 0.8rem 2.5rem;
    border-bottom: 1px solid #e6e6e6;
    transition: all 0.2s ease;
  }
  
  .mobile-tertiary-link:hover {
    background-color: #e8e8e8;
    color: #1a6d9c;
    padding-left: 2.7rem;
  }
  
  /* Hide desktop mega menu on mobile */
  .dropdown-menu-mega { 
    display: none !important; 
  }
  
  /* Adjust main navbar for mobile */
  .navbar-collapse {
    display: none !important;
  }
  
  .mobile-menu-actions {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    margin-top: 1rem;
    background: #f8f9fa;
  }
  
  /* NEW: Mobile menu footer styles */
  .mobile-menu-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eaeaea;
  }
  
  .mobile-menu-footer .help-section h6 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
  }
  
  .mobile-menu-footer .quick-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .mobile-menu-footer .btn-link {
    color: #1a6d9c;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
  }
  
  .mobile-menu-footer .btn-link:hover {
    color: #155d83;
    text-decoration: underline;
  }
  
  /* Improved slide transitions for submenus */
  .mobile-nav-panel {
    position: absolute;
    /* top: 0; */
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    background: white;
    overflow-y: auto;
  }
  
  .mobile-nav-panel.main-panel {
    transform: translateX(0);
  }
  
  .mobile-nav-panel.sub-panel {
    transform: translateX(100%);
  }
  
  .mobile-nav-panel.sub-panel.active {
    transform: translateX(0);
  }
  
  .mobile-nav-panel.main-panel.hidden {
    transform: translateX(-100%);
  }
  
  .mobile-submenu-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 5;
    height: 70px;
  }
  
  .mobile-submenu-back {
    background: none;
    border: none;
    margin-right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1a6d9c;
    transition: color 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
  }
  
  .mobile-submenu-back:hover {
    color: #ff7e30;
    background-color: rgba(26, 109, 156, 0.1);
  }
  
  .mobile-submenu-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
    color: #2c3e50;
  }
  
  /* Adjust navbar height for mobile */
  .navbar {
    height: 70px;
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
}

/* Desktop: hide mobile menu */
@media (min-width: 992px) {
  .mobile-menu-overlay,
  .mobile-menu-container {
    display: none !important;
  }
  
  .navbar-toggler {
    display: none;
  }
  
  .navbar-collapse {
    display: flex !important;
  }
  
  .mobile-back-btn,
  .mobile-header {
    display: none !important;
  }
  
  .mobile-nav-panel {
    display: none !important;
  }
}

/* Search modal */
.search-modal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.search-modal .modal-header {
  border-bottom: 1px solid #eaeaea;
  padding: 1.2rem 1.5rem;
}

.search-modal .modal-body {
  padding: 2rem;
}

.search-form {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  padding-right: 50px;
  border: 2px solid #eaeaea;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #1a6d9c;
  box-shadow: 0 0 0 0.25rem rgba(26, 109, 156, 0.15);
}

.search-submit {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #1a6d9c;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.search-submit:hover {
  background: #155d83;
  transform: translateY(-50%) scale(1.05);
}

/* Navbar scroll effect */
.navbar-scrolled {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  padding: 0.6rem 0;
  height: 80px;
}
/* Adjust logo size for mobile screens */
@media screen and (max-width: 768px) {
    .custom-logo {
        width: 120px;  /* Set the width to a smaller size */
        height: auto;  /* Maintain the aspect ratio */
    }
}
