/*---------------------------------------
     GENERAL & TYPOGRAPHY             
-----------------------------------------*/
/* 1. Import Roboto (English) and Siemreap (Khmer) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Siemreap&display=swap');

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    background: #ffffff;
    /* THE FIX: Roboto for English, Siemreap for Khmer! */
    font-family: 'Roboto', 'Siemreap', sans-serif; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: 70px;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    /* Roboto for English Headings, Siemreap for Khmer Headings */
    font-family: 'Roboto', 'Siemreap', sans-serif;
    font-weight: 700;
    line-height: inherit;
    -webkit-font-smoothing: antialiased;
}

h1 { color: #252525; font-size: 3em; }
h2 { color: #353535; font-size: 2em; padding-bottom: 10px; }
p { color: #757575; font-size: 14px; line-height: 24px; }

a {
    color: #252525;
    text-decoration: none !important;
    transition: 0.5s;
}

a:hover { color: #147bd7; }

/*---------------------------------------
   NAVIGATION MENU FONT OVERRIDE             
-----------------------------------------*/
.navbar-brand, 
.navbar-brand span,
.nav li a, 
.navbar-nav > li > a, 
.dropdown-menu > li > a,
.mobile-signin {
    /* Apply the split fonts to the header menu */
    font-family: 'Roboto', 'Siemreap', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

/*---------------------------------------
   FONTAWESOME PROTECTION (DO NOT REMOVE)             
-----------------------------------------*/
.fa, .fas, .fab, .far, i[class*="fa-"], .fa:before, .fa:after {
    font-family: "FontAwesome" !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    -webkit-font-smoothing: antialiased;
}


/*---------------------------------------
     MENU & NAVIGATION              
-----------------------------------------*/
.custom-navbar {
    background: #022865; 
    padding: 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    width: 100%;
    height: 120px; 
    z-index: 1000;
    border-bottom: 5px solid rgba(9, 145, 249, 0.5); 
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.3); 
}

.custom-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px; 
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Muli', sans-serif;
    font-size: 32px;
    letter-spacing: -0.5px;
    font-weight: 800;
    color: #ffffff !important;
}

.brand-logo-img {
    height: 100px; 
    width: auto;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar-brand:hover .brand-logo-img {
    transform: scale(1.08) rotate(-2deg); 
}

.custom-navbar .nav li a {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #ffffff !important; 
    padding: 10px 16px;
    margin: 0 4px;
    border-radius: 6px; 
    position: relative;
    background: transparent !important;
    transition: all 0.2s ease-in-out;
}

.custom-navbar .nav > li > a:hover,
.custom-navbar .nav > li.active > a {
    background-color: #0f75ea !important; 
    color: #ffffff !important; 
}

/* =========================================
   DROPDOWN MENUS 
   ========================================= */
.custom-navbar .dropdown-menu {
    border: none;
    border-radius: 8px;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 10px 0;
    margin-top: 10px; 
    z-index: 9999 !important; 
}

.custom-navbar .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.custom-navbar .dropdown-menu > li > a {
    display: block !important; 
    color: #3b3c3c !important;
    font-weight: 600;
    font-size: 13px;
    text-transform: none; 
    padding: 10px 20px;
    background-color: transparent !important;
    transition: all 0.2s ease;
}

.custom-navbar .dropdown-menu > li > a:hover,
.custom-navbar .dropdown-menu > li > a:focus {
    background-color: #0f75ea !important; 
    color: #ffffff !important; 
    padding-left: 26px !important; 
}

.navbar-nav > li.dropdown:hover > a {
    background-color: #0f75ea !important;
    color: #ffffff !important;
}

.navbar-nav > li.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 5px; 
}

.user-profile .dropdown-header {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888888; 
    padding: 10px 20px;
}

/* =========================================
   MULTI-LEVEL DROPDOWNS (Nested Submenus)
   ========================================= */
.custom-navbar .dropdown-submenu {
    position: relative;
}

.custom-navbar .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%; 
    margin-top: -10px;
    margin-left: 0; 
    border-radius: 8px;
}

.custom-navbar .dropdown-submenu > .dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -20px; 
    width: 20px;
    background: transparent; 
}

.custom-navbar .dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.custom-navbar .dropdown-submenu:hover > a {
    background-color: #0f75ea !important; 
    color: #ffffff !important; 
}

/* =========================================
   DESKTOP ONLY: User Profile Box 
   ========================================= */
@media (min-width: 768px) {
    .user-profile > a.dropdown-toggle {
        background-color: white !important;
        padding: 8px 18px !important;
        margin-top: 8px;
        display: flex !important;
        align-items: center;
        transition: all 0.3s ease;
    }
    
    .user-profile > a.dropdown-toggle .fa-user-circle,
    .user-profile > a.dropdown-toggle span,
    .user-profile > a.dropdown-toggle .caret {
        color: #ffffff !important; 
        transition: color 0.3s ease;
    }
    
    .user-profile:hover > a.dropdown-toggle {
        background-color: #147bd7 !important;
        transform: translateY(-2px); 
    }
    
    .user-profile:hover > a.dropdown-toggle .fa-user-circle,
    .user-profile:hover > a.dropdown-toggle span,
    .user-profile:hover > a.dropdown-toggle .caret {
        color: #ffffff !important; 
    }
}

/* Donate Button */
.nav-donate a {
    background-color: #147bd7 !important;
    color: #ffffff !important;
    border-radius: 30px; 
    padding: 10px 24px !important;
    margin-left: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.nav-donate a:hover {
    background-color: #0d62ab !important; 
    transform: translateY(-2px); 
    color: #ffffff !important;
}

.navbar-toggle {
    border: none;
    background-color: transparent !important;
    margin-top: 20px;
}

.navbar-toggle .icon-bar {
    background: #147bd7 !important;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle:hover .icon-bar {
    background: #0d62ab !important; 
}

/*---------------------------------------
     MAIN HERO SLIDER SECTION              
-----------------------------------------*/
.main-hero-slider {
    position: relative;
    height: 80vh; 
    min-height: 400px;
    width: 100%;
    overflow: hidden;
}

.main-hero-slider .carousel,
.main-hero-slider .carousel-inner,
.main-hero-slider .item {
    height: 100% !important; 
    width: 100%;
}

.main-hero-slider .item {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.main-hero-slider .carousel-control {
    z-index: 4;
    background-image: none !important; 
    width: 5%;
}

.main-hero-slider .carousel-control i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px; 
    z-index: 5;
    pointer-events: auto; 
}
.main-hero-slider .carousel-control.left i { left: 40%; }
.main-hero-slider .carousel-control.right i { right: 40%; }

/* =========================================
   CAROUSEL FADE TRANSITION 
   ========================================= */
.carousel-fade .carousel-inner .item {
    transition-property: opacity;
    transition-duration: 1.5s; 
    transition-timing-function: ease-in-out;
}

.carousel-fade .carousel-inner .item,
.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
    opacity: 0;
}

.carousel-fade .carousel-inner .active,
.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right {
    opacity: 1;
}

.carousel-fade .carousel-inner .next,
.carousel-fade .carousel-inner .prev,
.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
    left: 0;
    transform: translate3d(0, 0, 0) !important;
}

.carousel-fade .carousel-control {
    z-index: 5;
}

/*---------------------------------------
     THE WELCOME TEXT BLOCK             
-----------------------------------------*/
.welcome-section {
    padding: 60px 0 30px 0;
    background-color: #fcfcfc; 
    border-bottom: 1px solid #eeeeee;
}

.welcome-text-dark {
    color: #147bd7; 
    font-size: 45px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.khmer-title-dark {
    font-size: 32px;
    color: #333333; 
    margin-bottom: 15px;
    line-height: 1.5;
    font-weight: bold;
}

.english-title-dark {
    font-size: 20px;
    color: #666666; 
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Global Hero & Section Buttons */
.hero-btns .section-btn, 
.section-btn.btn-primary {
    pointer-events: auto; 
    background: #147bd7;
    border: 2px solid #147bd7;
    color: #ffffff;
    padding: 14px 40px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none; 
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 123, 215, 0.2);
}

.hero-btns .section-btn:hover, 
.section-btn.btn-primary:hover {
    background: transparent; 
    color: #147bd7; 
    border-color: #147bd7;
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(20, 123, 215, 0.3);
}
.section-btn.btn-primary:active {
    transform: translateY(-1px);
}

.button-wrapper {
    margin-top: 40px;
    padding-bottom: 20px;
}

/*---------------------------------------
     HISTORY SECTION STYLES
-----------------------------------------*/
.history-section {
    padding: 40px 0;
    background-color: #f9f9f9; 
}

.history-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 5px solid #147bd7; 
}

.history-section .section-title h2 {
    margin-bottom: 10px;
    font-size: 28px;
    color: #252525;
}

.history-section .section-title h2 span {
    color: #147bd7;
}

.history-section .line {
    width: 60px;
    height: 3px;
    background: #147bd7;
    margin-bottom: 30px;
}

.history-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.lead-text {
    font-style: italic;
    border-left: 3px solid #eee;
    padding-left: 20px;
    margin-bottom: 30px !important;
}

.expectations-box {
    background: #c4def5; 
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.expectations-box h4 {
    color: #147bd7;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
}

.expectations-box p {
    margin-bottom: 0;
    font-weight: 600;
    color: #333;
}

/*---------------------------------------
     VISION, MISSION, VALUES
-----------------------------------------*/
.vmv-section {
    padding:  15px 0;
    background: #ffffff;
    margin: 10px 0;
}

.vmv-item {
    background: #f9f9f9;
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%; 
    border-bottom: 4px solid #eee;
    margin-bottom: 30px;
}

.active-vmv {
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-bottom: 4px solid #147bd7;
    transform: translateY(-10px);
}

.vmv-icon {
    background: #147bd7;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 30px;
    margin: 0 auto 20px auto;
}

.vmv-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #252525;
}

.vmv-item p {
    font-size: 15px;
    line-height: 26px;
    color: #666;
}

.values-list {
    padding: 0;
    list-style: none;
    text-align: left;
    display: inline-block;
}

.values-list li {
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.values-list li::before {
    content: '\f00c'; 
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    color: #147bd7;
    font-weight: bold;
}

.vmv-item:hover {
    border-bottom: 4px solid #147bd7;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/*---------------------------------------
     COMMITTEE LEADERS STYLE
-----------------------------------------*/
.committee-section {
    padding: 50px 0;
    background: #f9f9f9;
}

.committee-thumb {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: 0.3s;
}

.committee-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.committee-image {
    position: relative;
    overflow: hidden;
}

.committee-image img {
    width: 100%;
    height: 380px; 
    object-fit: cover; 
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.committee-overlay {
    background: rgba(20, 123, 215, 0.9); 
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.committee-thumb:hover .committee-overlay {
    opacity: 1;
}

.committee-info {
    padding: 25px 20px;
}

.committee-info h3 {
    margin: 0;
    font-size: 20px;
    color: #252525;
    margin-bottom: 5px;
    padding-top: 15px;
}

.committee-info .designation {
    display: block;
    color: #147bd7;
    font-style: italic;
    margin-bottom: 10px;
}

.committee-info small {
    display: block;
    color: #147bd7;
    font-weight: 700;
    margin: 10px 0;
    letter-spacing: 1px;
}

.committee-info p {
    font-size: 14px;
    line-height: 22px;
}

.center-line {
    margin: 0 auto 40px auto;
}

.text-center {
    text-align: center;
}

/* Clamping logic */
.expand-container { position: relative; }

.expand-content {
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    line-clamp: 2; 
    -webkit-box-orient: vertical;  
    overflow: hidden;
    margin-bottom: 0 !important;
    transition: all 0.3s ease;
}

.expand-check { display: none; }

.expand-label {
    display: block;
    cursor: pointer;
    color: #147bd7; 
    font-weight: bold;
    font-size: 13px;
    margin-top: 5px;
    text-align: left;
}

.expand-label::before { content: 'more...'; }

.expand-check:checked ~ .expand-content {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

.expand-check:checked ~ .expand-label::before { content: 'less'; }

/* Committee Bio Expansion Styling */
.bio-wrapper {
    margin-top: 10px;
    padding: 0 15px 15px;
}

.bio-text {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    line-clamp: 3;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}

.bio-text.expanded {
    display: block; 
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.read-more-btn {
    display: inline-block;
    margin-top: 5px;
    color: #147bd7;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none !important;
}

.read-more-btn:hover { color: #147bd7; }

/*---------------------------------------
     ACTIVITIES GALLERY STYLE
-----------------------------------------*/
.gallery-section {
    padding: 50px 0;
    background: #ffffff;
}

.gallery-thumb {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-thumb img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 123, 215, 0.85); 
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gallery-thumb:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: #ffffff;
    padding: 20px;
}

.gallery-info i {
    font-size: 24px;
    margin-bottom: 10px;
}

.gallery-info h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 5px 0;
    font-weight: bold;
    text-transform: uppercase;
}

.gallery-info small {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gallery-button-wrapper { margin-top: 50px; }

.gallery-btn {
    background: transparent;
    border: 2px solid #147bd7; 
    color: #147bd7;
    padding: 14px 35px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
    border-radius: 5px; 
    transition: all 0.4s ease;
    display: inline-block;
    text-decoration: none !important;
}

.gallery-btn:hover {
    background: #147bd7;
    color: #ffffff;
    box-shadow: 0 8px 15px rgba(20, 123, 215, 0.3);
    transform: translateY(-2px);
}
.gallery-btn:active { transform: translateY(0); }

/*---------------------------------------
     FOOTER SECTION
-----------------------------------------*/
footer {
    background: #1a1a1a; 
    padding: 80px 0;
    color: #999;
    justify-content: center;
}

footer h2 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

footer p {
    color: #bbb;
    font-size: 15px;
    line-height: 26px;
}

footer address {
    font-style: normal;
    margin-bottom: 20px;
}

footer a {
    color: #147bd7; 
    transition: 0.3s;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline !important;
}

.footer_menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer_menu ul li { margin-bottom: 10px; }
.footer_menu ul li a { color: #bbb; text-decoration: none; }
.footer_menu ul li a:hover { color: #147bd7; padding-left: 5px; }

.social-icon {
    padding: 0;
    margin: 20px 0;
    list-style: none;
}

.social-icon li {
    display: inline-block;
    margin-right: 15px;
}

.social-icon li a {
    color: #ffffff;
    background: #333;
    width: 40px;
    height: 40px;
    line-height: 40px;
    display: block;
    text-align: center;
    border-radius: 50%;
    font-size: 18px;
    transition: 0.3s;
}

.social-icon li a:hover {
    background: #147bd7;
    color: #ffffff;
    transform: translateY(-3px);
}

.copyright-text {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.copyright-text p { font-size: 13px; }

/* Modals */
.modal { z-index: 9999 !important; }
.modal-backdrop { z-index: 9998 !important; }

/* Global spacing */
.mt-30 { margin-top: 30px; }

/*---------------------------------------
     DESKTOP / MOBILE VISIBILITY TOGGLES
-----------------------------------------*/
.desktop-only { display: none !important; }
.mobile-only { display: block !important; } 

@media (min-width: 768px) {
    .mobile-only { display: none !important; }
    .desktop-only { display: block !important; }
    .mobile-header-flex { display: block; width: auto; }
}

/*---------------------------------------
     NUCLEAR FIX: MOBILE PROFILE MENU
-----------------------------------------*/
#mob-prof-menu { display: none !important; }
#mob-prof-menu.force-show { display: block !important; }

/*---------------------------------------
     GLOBAL MOBILE RESPONSIVE FIXES (Max 767px)
-----------------------------------------*/
@media (max-width: 767px) {
    
    .page-header { margin-top: 80px; }
    
    /* Hero Slider & Text */
    .main-hero-slider {
        height: 40vh; 
        min-height: 250px;
    }
    
    .hero-inner {
        transform: translateY(0); 
        padding: 0 15px; 
    }
    
    .welcome-section {
        padding: 40px 15px;
    }
    
    .welcome-text { font-size: 32px; margin-bottom: 15px; }
    .welcome-text-dark { font-size: 28px; }
    
    .khmer-title { font-size: 20px; margin-bottom: 15px; }
    .khmer-title-dark { font-size: 20px; }
    
    .english-title { font-size: 16px; margin-bottom: 30px; }
    .english-title-dark { font-size: 16px; }
    
    /* Nested Menu Fix */
    .custom-navbar .dropdown-submenu > .dropdown-menu {
        left: 0;
        margin-left: 15px; 
        margin-top: 0;
        position: relative;
        box-shadow: none;
        border-left: 2px solid #147bd7; 
        border-radius: 0;
        display: none; 
    }
    
    /* Header Flexbox */
    .mobile-header-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .mobile-controls {
        display: flex !important; 
        align-items: center;
        gap: 15px;
        position: relative;
        z-index: 999; 
    }

    .mobile-signin {
        color: #ffffff;
        font-weight: bold;
        text-decoration: none;
        font-size: 14px;
        text-transform: uppercase;
    }

    .mobile-controls .navbar-toggle {
        display: block !important;
        margin: 0 !important;
        padding: 5px 10px;
        float: none;
        background: transparent;
    }

    .mobile-controls .navbar-toggle .icon-bar {
        display: block;
        margin: 4px 0;
        background-color: #ffffff; 
    }

    /* Compact Main Dropdown Menu */
    .navbar-collapse {
        position: absolute;
        top: 75px;        
        right: 15px;      
        left: auto;       
        width: 220px;     
        height: auto;
        background: #ffffff;
        border: 1px solid #eee;
        border-radius: 12px; 
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        z-index: 1000;
        display: none;    
        padding: 0 0 !important; 
        margin: 0 !important;
    }

    .collapse.in { display: block !important; }

    .custom-navbar .nav {
        margin: 0 !important;
        float: none !important;
        margin-bottom: 10px !important;
    }

    .custom-navbar .nav li { width: 100%; }

    .custom-navbar .nav li a {
        padding: 10px 20px !important; 
        text-align: center;
        border-bottom: none; 
        font-size: 13px;    
        font-weight: 600;
        color: #444 !important;
        transition: 0.3s;
    }

    /* --- CRITICAL FIX: Forces the white box to expand when dropdowns open --- */
    .custom-navbar .dropdown-menu {
        position: relative !important; /* Forces the box to push content down */
        float: none !important;
        background: #fcfcfc !important; /* Slightly grayer so it looks indented */
        box-shadow: none !important; /* Removes the floating shadow */
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    /* Allows the main white box to grow as tall as it needs without scrolling */
    .navbar-collapse {
        max-height: none !important; 
        overflow-y: visible !important;
    }

    .custom-navbar .nav li a:hover {
        background-color: #f7fffb;
        color: #147bd7 !important;
        padding-left: 25px !important; 
    }

    .nav-donate a {
        border: 1px solid #147bd7 !important;
        border-radius: 8px !important;
        margin: 10px 15px !important;
        background: #f0f8ff !important;
        text-align: center !important;
    }
    
    /* Adds a clean separator line between main mobile menu items */
    .custom-navbar .nav > li {
        border-bottom: 1px solid #eeeeee;
    }

    /* Removes the line from the very last item so it doesn't look weird */
    .custom-navbar .nav > li:last-child {
        border-bottom: none;
    }
}
