/* =====================================================
   GENERAL STYLES
===================================================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 120px; /* Adds space for taller fixed navbar */
    background-color: #f8f9fa;
    scroll-behavior: smooth;
}

/* Headings */
section h2, section h3, .card-body h5 {
    font-weight: 700;
}

/* =====================================================
   NAVBAR STYLES
===================================================== */
.navbar, .navbar-custom {
    background-color: #002789 !important; /* Dark Blue */
    color: white;
    padding: 1rem 0; /* Increased height */
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.navbar-brand img {
    height: 70px; /* Larger logo */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.navbar-nav .nav-link,
.navbar-brand,
.navbar .form-control,
.navbar .btn {
    color: white !important;
    font-family: Arial, sans-serif;
    font-size: 1.05rem;
}

.nav-link {
    font-weight: 600;
    margin-right: 12px;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    text-decoration: underline;
    color: #ffc107 !important;
}

.navbar .form-control {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    padding: 8px 12px;
}

.navbar .form-control::placeholder {
    color: white;
    opacity: 0.8;
}

/* Shrink Navbar on Scroll */
.navbar.scrolled {
    padding: 0.6rem 0;
    background-color: rgba(0, 39, 137, 0.95) !important;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* =====================================================
   DROPDOWN & MEGA MENU STYLES
===================================================== */
.dropdown-menu,
.dropdown-menu .dropdown-menu {
    background-color: #001f3f;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    border-radius: 0;
    border: none;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu .dropdown-item {
    color: white !important;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #003366;
    color: #ffc107 !important;
}

/* Submenu arrow */
.dropdown-submenu > a::after {
    content: "\f0da"; /* FontAwesome caret-right */
    float: right;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 10px;
    color: white; 
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
}

@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

/* =====================================================
   MEGA MENU
===================================================== */
/* ===== Mega Menu ===== */
.dropdown-menu.mega-menu { 
    width: 600px; 
    display: none; 
    flex-wrap: wrap; 
    padding: 1rem; 
    background-color: #001f4d !important; /* Darker blue background */
}
.nav-item.dropdown:hover > .dropdown-menu.mega-menu { 
    display: flex; 
}
.mega-menu .col { 
    flex: 1; 
    min-width: 180px; 
    margin-right: 1rem; 
}
.mega-menu .col h6 { 
    margin-bottom: 0.5rem; 
    border-bottom: 1px solid rgba(255,255,255,0.2); 
    padding-bottom: 4px; 
}
.mega-menu .col h6.school-heading { 
    color: #A07A43 !important; /* School headings color */
}
.mega-menu .col a { 
    display: block; 
    color: white !important; 
    padding: 0.2rem 0; 
    transition: color 0.3s; 
}
.mega-menu .col a:hover { 
    color: #A07A43 !important; /* Hover color matches school heading */ 
}

/* ===== Mobile adjustment ===== */
@media (max-width: 991px) {
  .dropdown-menu.mega-menu { 
      width: 100% !important; 
  }
}

/* =====================================================
   FOOTER STYLES
===================================================== */
.footer-custom, footer {
    background-color: #002789;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer a, .footer-custom a {
    color: white;
    text-decoration: none;
}

footer a:hover, .footer-custom a:hover, .footer-custom .fab:hover {
    color: #ffc107;
    text-decoration: underline;
}

footer .fab {
    font-size: 20px;
    margin: 0 8px;
}

/* =====================================================
   CARD STYLES
===================================================== */
.card img {
    height: 180px;
    object-fit: cover;
}

.card-body h5 {
    font-weight: 600;
}

.card-body p {
    min-height: 60px;
}

.card-footer {
    background: none;
    border-top: none;
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.card-title a:hover {
    text-decoration: underline;
}

/* =====================================================
   BHCM PAGE FIXES
===================================================== */
.tab-content,
.tab-pane {
    max-height: none !important;
    overflow: visible !important;
    -webkit-overflow-scrolling: auto;
}

.long-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-line;
    line-height: 1.6;
    margin-bottom: 10px;
}

.table-responsive {
    overflow-x: auto;
    overflow-y: visible !important;
}

/* =====================================================
   OPTIONAL: NAVBAR SCROLL SHRINK SCRIPT
===================================================== */
@keyframes navbarFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Small JS snippet to activate shrink on scroll */
