/* =========================================================
   LIGHT GREEN THEME & HEADER FIXES FOR CHECKSIM CLONE
   ========================================================= */

:root {
    --contrast: #0f291e !important;
    --contrast-2: #2d3748 !important;
    --contrast-3: #cbd5e1 !important;
    --base: #f0fdf4 !important;           /* Clean mint-tinted light background */
    --base-2: #f0fdf4 !important;
    --base-3: #dcfce7 !important;         /* Soft light green accent container */
    --base-4: #f7fee7 !important;
    --base-5: #ffffff !important;         /* Pure white cards */
    --accent: #15803d !important;         /* Forest green */
    --accent-2: #16a34a !important;       /* Vibrant light green */
    --accent-3: #bbf7d0 !important;       /* Light mint green */
    --accent-4: #22c55e !important;       /* Crisp bright green */
    --accent-5: #15803d !important;
}

body {
    background-color: #f8fafc !important;
    color: #1e293b !important;
    margin: 0;
    padding: 0;
}

/* =========================================================
   HEADER & LOGO FIXES (Eliminates duplicate controls)
   ========================================================= */
.site-header {
    background-color: #ffffff !important;
    border-bottom: 2px solid #dcfce7 !important;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.08) !important;
    padding: 10px 0 !important;
}

.inside-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1260px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    flex-wrap: nowrap !important;
}

.site-logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.site-logo a {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #15803d !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

.site-logo img,
.header-image.is-logo-image {
    max-height: 44px !important;
    width: auto !important;
    display: block !important;
    object-fit: contain !important;
}

/* =========================================================
   STRICT DEDUPLICATION FOR HEADER CONTROLS
   ========================================================= */

/* ALWAYS hide the second duplicate menu toggle inside site-navigation */
#site-navigation .menu-toggle,
.inside-navigation > .menu-toggle,
.has-sticky-branding > .inside-navigation > .menu-toggle {
    display: none !important;
}

/* Standard button styling for Search & Menu */
button.menu-toggle,
.menu-toggle,
.menu-bar-item a {
    background: #f0fdf4 !important;
    border: 1.5px solid #bbf7d0 !important;
    border-radius: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    color: #15803d !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.12) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

button.menu-toggle:hover,
.menu-toggle:hover,
.menu-bar-item a:hover {
    background: #dcfce7 !important;
    color: #166534 !important;
    border-color: #86efac !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2) !important;
}

/* Fix SVGs inside .gp-icon */
.gp-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    position: relative !important;
}

.gp-icon svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
    display: block !important;
}

/* Hide the 2nd SVG (close X icon) by default */
.gp-icon svg:nth-child(2) {
    display: none !important;
}

/* Show 2nd SVG only when menu is active/expanded */
.menu-toggle[aria-expanded="true"] .gp-icon svg:nth-child(1) {
    display: none !important;
}
.menu-toggle[aria-expanded="true"] .gp-icon svg:nth-child(2) {
    display: block !important;
}

/* DESKTOP RESPONSIVE RULES (> 800px) */
@media (min-width: 801px) {
    /* Hide the mobile control wrapper on desktop */
    .mobile-menu-control-wrapper {
        display: none !important;
    }
    
    #site-navigation {
        display: flex !important;
        align-items: center !important;
    }

    .main-navigation .main-nav,
    #primary-menu {
        display: block !important;
    }

    .main-nav ul#menu-main {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .menu-toggle {
        display: none !important;
    }
}

/* MOBILE & TABLET RESPONSIVE RULES (<= 800px) */
@media (max-width: 800px) {
    /* Hide the wide desktop navigation links */
    #primary-menu,
    .main-navigation .main-nav,
    #site-navigation:not(.slideout-navigation) {
        display: none !important;
    }

    /* Show strictly ONE clean horizontal pair on mobile: [ Search ] [ Menu ] */
    .mobile-menu-control-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        margin-left: auto !important;
    }

    .mobile-menu-control-wrapper .menu-bar-items {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
    }

    .mobile-menu-control-wrapper .menu-toggle {
        display: inline-flex !important;
    }
}

/* =========================================================
   NAVIGATION LINKS & DROPDOWNS
   ========================================================= */
.main-navigation .main-nav ul li a {
    color: #1e293b !important;
    font-weight: 700 !important;
    transition: color 0.2s ease;
    padding: 10px 14px !important;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li a:hover {
    color: #16a34a !important;
}

/* Dropdown Sub-menus */
.main-navigation ul ul {
    background-color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px !important;
    border: 1px solid #dcfce7 !important;
    padding: 8px 0 !important;
    min-width: 250px !important;
}

.main-navigation ul ul li a {
    color: #334155 !important;
    font-size: 0.88rem !important;
    padding: 10px 20px !important;
    transition: all 0.2s ease !important;
    border-bottom: 1px solid #f1f5f9;
}

.main-navigation ul ul li:hover > a,
.main-navigation ul ul li a:hover {
    background-color: #f0fdf4 !important;
    color: #15803d !important;
    padding-left: 24px !important;
}

/* =========================================================
   VIP SEARCH WIDGET IN LIGHT GREEN
   ========================================================= */
.vip-widget .card {
    background: #ffffff !important;
    border: 2px solid #bbf7d0 !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 35px rgba(22, 163, 74, 0.12) !important;
}

.vip-widget .badge {
    background: #16a34a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3) !important;
}

.vip-widget .title {
    color: #15803d !important;
    font-weight: 800 !important;
}

.vip-widget input.vip-input {
    background: #f0fdf4 !important;
    border: 1.5px solid #86efac !important;
    color: #0f291e !important;
    font-size: 19px !important;
}

.vip-widget input.vip-input:focus {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2) !important;
    background: #ffffff !important;
}

.vip-widget .btn {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35) !important;
    font-weight: 800 !important;
    transition: all 0.2s ease !important;
}

.vip-widget .btn:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.45) !important;
}

.safe-search-notice {
    background: #f0fdf4 !important;
    border-left: 4px solid #22c55e !important;
    color: #166534 !important;
}

/* Headings & Badges */
h1, h2, h3, h4, h5, h6 {
    color: #0f291e !important;
}

.gb-text-ec35ae8d {
    color: #16a34a !important;
}

/* Callouts & Tables */
.csi-alt {
    background-color: #f0fdf4 !important;
    border-top: 1px solid #dcfce7 !important;
    border-bottom: 1px solid #dcfce7 !important;
}

.csi-table thead th {
    background-color: #15803d !important;
    color: #ffffff !important;
    font-weight: bold;
}

.csi-table tbody tr:hover {
    background-color: #f0fdf4 !important;
}

.csi-code {
    background: #dcfce7 !important;
    color: #15803d !important;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Buttons */
.wp-block-button__link,
.button,
button.btn,
a.btn-success {
    background-color: #16a34a !important;
    color: #ffffff !important;
}

.wp-block-button__link:hover,
.button:hover,
button.btn:hover,
a.btn-success:hover {
    background-color: #15803d !important;
}

/* Footer in Light Green Styling */
.gb-element-41fc3405 {
    background-color: #f0fdf4 !important;
    border-top: 2px solid #bbf7d0 !important;
}

.gb-text-55308226 {
    border-bottom: 2px solid #16a34a !important;
}

/* Mobile Slideout Menu */
#generate-slideout-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 300px !important;
    max-width: 85vw !important;
    background-color: #ffffff !important;
    z-index: 100000 !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.25) !important;
    padding: 20px !important;
    overflow-y: auto !important;
    transition: transform 0.3s ease !important;
    display: none;
    transform: translateX(-100%);
}

#generate-slideout-menu.is-open {
    display: block !important;
    transform: translateX(0) !important;
}

.slideout-exit {
    background: #f0fdf4 !important;
    color: #15803d !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #bbf7d0 !important;
    cursor: pointer !important;
    float: right !important;
    margin-bottom: 20px !important;
}

.slideout-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 40px 0 0 0 !important;
}

.slideout-navigation ul li {
    margin-bottom: 8px !important;
}

.slideout-navigation ul li a {
    display: block !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.slideout-navigation ul li:hover a,
.slideout-navigation ul li a:hover {
    background-color: #f0fdf4 !important;
    color: #16a34a !important;
}

/* Back to Top button */
a.generate-back-to-top {
    background-color: #16a34a !important;
}
