:root {
    --primary-color: #004e92;
    --secondary-color: #000428;
    --accent-color: #f1c40f;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-light: #ffffff;
    --bg-dark: #000428;
    --font-heading: 'Work Sans', sans-serif;
    --font-body: 'Work Sans', sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    color: var(--text-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* =========================================
   Header & Navigation
   ========================================= */

/* Top Notification Bar */
.top-bar {
    background: linear-gradient(90deg, #f1c40f 0%, #f39c12 100%);
    /* Gold/Orange Gradient */
    color: #000428;
    /* Dark Text for visibility on Gold */
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    /* Highest z-index */
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.top-bar a {
    color: #000428;
    text-decoration: underline;
}

.top-bar a:hover {
    color: #000;
}

/* Main Navbar */
.site-nav {
    background-color: var(--secondary-color) !important;
    /* Dark Navy matches footer */
    padding: 15px 0 !important;
    position: fixed !important;
    /* Force fixed to ensuring it stays top */
    top: 41px;
    /* Height of Top Bar approx */
    left: 0;
    right: 0;
    z-index: 1020;
    /* Higher z-index to ensure it sits above everything */
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* Stronger shadow for separation */
}

/* Offset for Fixed Header (TopBar + Navbar) */
body {
    padding-top: 125px;
    /* Adjust based on combined height (41 + ~84) */
}

/* Handle WordPress Admin Bar */
body.admin-bar .top-bar {
    top: 32px;
}

body.admin-bar .site-nav {
    top: 73px;
    /* 32 + 41 */
}

@media screen and (max-width: 782px) {
    body.admin-bar .top-bar {
        top: 46px;
    }

    body.admin-bar .site-nav {
        top: 87px;
        /* 46 + 41 */
    }
}

/* Logo Styling */
.navbar-brand,
.navbar-brand:hover,
.navbar-brand:focus {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-weight: 800;
    color: #ffffff !important;
    /* Force White */
    font-size: 24px;
    text-transform: uppercase;
    text-decoration: none;
}

/* Nav Link Styles - Targeting Generic WordPress Menu Structure */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Add gap between items using Flexbox gap */
}

.navbar-nav li {
    list-style: none;
    /* Ensure no bullets */
    margin: 0;
    /* Let gap handle spacing */
    position: relative;
}

.navbar-nav li a {
    color: #ffffff !important;
    /* Force White High Contrast */
    font-weight: 500;
    font-size: 16px;
    font-family: var(--font-body);
    text-transform: capitalize;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 0;
    display: block;
    /* Ensure hit area is good */
    opacity: 1 !important;
    /* Prevent any transparency overrides */
}

/* Hover States */
.navbar-nav li a:hover,
.navbar-nav li.current-menu-item>a,
.navbar-nav li.active>a {
    color: var(--accent-color) !important;
    /* Gold on hover */
    opacity: 1 !important;
}

/* Underline Effect */
.navbar-nav li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
    margin-top: 4px;
}

.navbar-nav li a:hover::after,
.navbar-nav li.current-menu-item>a::after {
    width: 100%;
}

/* Action Buttons & Icons */
.header-actions .action-icon {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.header-actions .action-icon:hover {
    color: #fff;
}

.btn-cta {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    font-weight: 700;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #ffeaa7;
    /* Lighter gold */
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.btn-outline-light {
    border-width: 1px;
    font-weight: 600;
    padding: 8px 20px;
    font-size: 14px;
}

/* Navbar Toggler */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* =========================================
   Footer (Aggressive Fixes)
   ========================================= */
.site-footer {
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
    padding: 80px 0 40px;
    font-size: 15px;
    position: relative;
    margin-top: 50px;
}

/* Force ALL text in footer to be white by default */
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer div {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Headings */
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer .widget-title {
    color: #ffffff !important;
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

/* Links */
/* Links - High Specificity */
.site-footer a,
.site-footer a:link,
.site-footer a:visited,
.site-footer .widget a,
.site-footer .menu-item a {
    color: #ffffff !important;
    /* Pure White for maximum visibility */
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    opacity: 0.9;
}

.site-footer a:hover,
.site-footer a:active,
.site-footer a:focus,
.site-footer .widget a:hover,
.site-footer .menu-item a:hover {
    color: var(--accent-color) !important;
    /* Gold to Match Header */
    padding-left: 5px;
    text-decoration: none;
    text-shadow: none;
    /* Removed glow to keep it clean */
    opacity: 1;
}

.site-footer ul {
    padding-left: 0;
    list-style: none;
}

.site-footer ul li {
    margin-bottom: 12px;
}

.site-footer .widget {
    margin-bottom: 40px;
}

/* Copyright Section */
.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 40px;
    font-size: 14px;
}

.footer-copyright strong {
    color: #fff !important;
}

/* Responsive adjustments */
/* Mobile Menu Styling */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--secondary-color);
        /* Match header background */
        padding: 20px;
        position: absolute;
        /* Take out of flow to overlay properly if needed, or stick to flow */
        top: 100%;
        /* Below navbar */
        left: 0;
        right: 0;
        width: 100%;
        max-height: 80vh;
        /* Allow scrolling if long */
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start !important;
        /* Left align items */
        gap: 0;
        /* Reset gap */
    }

    .navbar-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar-nav li:last-child {
        border-bottom: none;
    }

    .navbar-nav li a {
        padding: 12px 0;
        display: block;
    }

    .header-actions a {
        margin-bottom: 10px;
    }
}

/* Hero Background Responsive Fix */
.hero {
    position: relative !important;
    overflow: hidden;
    /* Ensure no spillover */
}

/* Make sure the slide/image covers the whole hero area absolutely */
.hero .hero-slide,
.hero .hero-slide .img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 0;
}

.hero .hero-slide .img {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Ensure content sits on top of the image */
.hero .container {
    position: relative;
    z-index: 2;
}

/* Mobile Specific Adjustments for Hero */
@media (max-width: 991.98px) {
    .hero {
        min-height: 500px;
        /* Force height so bg shows */
        display: flex;
        align-items: center;
        /* Center content vertically */
    }

    .hero .hero-slide .img {
        background-attachment: scroll !important;
        /* Adjust position */
        background-position: 70% top !important;
    }
}

/* Document Preview Sidebar Fix */
.sticky-top {
    z-index: 1010;
    /* Lower than header (1020) but high enough */
}

@media (max-width: 768px) {

    /* Create breathing room on mobile */
    .sticky-top {
        position: static !important;
        /* Disable sticky on mobile to prevent overlap */
        margin-top: 30px;
    }
}