/* Submenu link color (Normal, Hover, Focus & Active state) */
.main-header-menu .sub-menu .menu-link,
.main-header-menu .sub-menu .menu-link:hover,
.main-header-menu .sub-menu .menu-link:focus,
.main-header-menu .sub-menu .current-menu-item > .menu-link,
.main-header-menu .sub-menu .current_page_item > .menu-link,
.main-header-menu .sub-menu .current-menu-ancestor > .menu-link {
    color: #000000 !important;
}

/* Base styles for both menu buttons */
.main-header-menu .btn-take-action > a,
.main-header-menu .btn-donate > a {
    /* Fixed Dimensions */
    width: 6rem !important;
    height: 3rem !important;
    min-width: 6rem !important;
    max-width: 6rem !important;
    min-height: 3rem !important;
    max-height: 3rem !important;

    /* Shape & Typography */
    border-radius: 1rem !important;
    font-size: 0.8125rem !important;    /* ~13px text */
    font-weight: 800 !important;
    letter-spacing: 0.02rem;
    text-align: center;

    /* Centering text inside fixed box */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0.5rem !important;       /* Horizontal padding only */
    margin: 0 0.25rem !important;

    /* Prevent text wrapping */
    white-space: nowrap !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease !important;
}

/* 1. TAKE ACTION BUTTON (Yellow background, Blue text) */
.main-header-menu .btn-take-action > a {
    background-color: #ffcc00 !important;
    color: #003399 !important;
}

.main-header-menu .btn-take-action > a:hover {
    background-color: #e6b800 !important;
    color: #002266 !important;
}

/* 2. DONATE BUTTON (Vivid Green background, White text) */
.main-header-menu .btn-donate > a {
    background-color: #00c853 !important;
    color: #ffffff !important;
}

.main-header-menu .btn-donate > a:hover {
    background-color: #00a844 !important;
    color: #ffffff !important;
}

/* --- STICKY HEADER STYLES --- */

/* 1. Base Sticky Header (Initial state) */
.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    min-height: 55px !important;
    max-height: 55px !important;
    background: #ffffff;
    box-shadow: none;
    transition: all 0.4s ease-in-out !important;
}

/* 2. Header Content Padding Adjustments */
.site-header .main-header-bar {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    transition: all 0.4s ease-in-out !important;
}

/* 3. Scrolled State (Triggered via JavaScript) */
.site-header.scrolled {
    min-height: 65px !important;
    max-height: 65px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 244, 248, 0.98) 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(8px);
}

/* Offset for WordPress Admin Bar when logged in */
.logged-in .site-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .logged-in .site-header {
        top: 46px !important;
    }
}