/*
 * ====================================================
 * MOBILE FIRST - DEFAULT STYLES (for screens <= 768px)
 * ====================================================
 */

/* 1. Basic Setup for the Fixed Header */
#plain-responsive-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #06a3da;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
}

.header-container {
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* IMPORTANT: Add padding to main div */
#main {
    margin-top: 60px;
}

/* 2. Navigation and Branding (Mobile View) */
.site-branding a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

/* Hamburger Menu Toggle - Shown by default on mobile */
.menu-toggle {
    display: block;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px 10px;
}

/* Navigation Container (Menu) - Mobile Layout */
#site-navigation.main-navigation {
    display: none; /* HIDE menu by default */
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #091e3e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#site-navigation.main-navigation.toggled-on {
    display: block; /* SHOW menu when hamburger is clicked */
}

/* List/Items (Vertical Stack on Mobile) */
#site-navigation.main-navigation .main-menu-ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    display: flex;
    flex-direction: column; /* VERTICAL stacking is the mobile default */
    text-align: center;
}

#site-navigation.main-navigation .main-menu-ul li {
    padding: 10px;
    border-bottom: 1px solid #555;
}

#site-navigation.main-navigation .main-menu-ul li:last-child {
    border-bottom: none;
}

#site-navigation.main-navigation a {
    color: #fff;
    text-decoration: none;
    line-height: normal;
    display: block;
}

/* Style for the current page link */
#site-navigation.main-navigation .main-menu-ul li.current-menu-item a,
#site-navigation.main-navigation .main-menu-ul li.current-page-ancestor a,
#site-navigation.main-navigation .main-menu-ul li.current-post-ancestor a {
    background-color: #ffffff;
    color: #0a53be;
    border-radius: 0.5rem;
    font-weight: bold;
    border-bottom: 2px solid #ffffff;
}

/*
 * ====================================================
 * DESKTOP OVERRIDES (for screens >= 769px)
 * ====================================================
 */
@media (min-width: 769px) {
    .header-container {
        max-width: 1200px;
    }

    /* Hide the hamburger button */
    .menu-toggle {
        display: none;
    }

    /* Show the main navigation and reset positioning */
    #site-navigation.main-navigation {
        display: block !important;
        position: static;
        background-color: transparent;
        box-shadow: none;
        width: auto;
    }

    /* List/Items (Horizontal Row on Desktop) */
    #site-navigation.main-navigation .main-menu-ul {
        flex-direction: row; /* HORIZONTAL alignment is the desktop override */
        padding: 0;
    }

    #site-navigation.main-navigation .main-menu-ul li {
        border-bottom: none;
    }

    #site-navigation.main-navigation a {
        line-height: 20px;
        padding: 3px 6px; /* Horizontal spacing for desktop links */
    }

    #site-navigation.main-navigation a:hover {
        outline: 1px solid #ced4da;
        border-radius: 1rem;
        color: #0a53be;
        background-color: white;
    }

    #site-navigation.main-navigation .main-menu-ul li.current-menu-item a,
    #site-navigation.main-navigation .main-menu-ul li.current-page-ancestor a,
    #site-navigation.main-navigation .main-menu-ul li.current-post-ancestor a {
        background-color: transparent;
        color: #ffffff;
        font-weight: bold;
        border-bottom: 2px solid #ffffff;
    }
}