* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* needed to be global */
.view-section.hidden {
    display: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
}

header {
    background: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    
}

/* removed from "header" and added here to make the header stick to the wrapper div itself*/
#header-partial {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* WordPress theme — sticky header on .site-header-wrap */
.site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
}


.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    min-height: 70px;
}

.logo-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo-section a {
    text-decoration: none;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    height: 45px;
    width: auto;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.logo-accent {
    color: var(--color-accent);
}

.tagline {
    font-size: 13px;
    color: #00A8E1;
    font-weight: 500;
}



nav,
.search-icon,
.subscribe-btn,
.desktop-search-wrapper {
    display: none;
}

nav {
    min-width: 0;

}


.nav-menu {
    list-style: none;
    display: flex;
    gap: 5px;
}


.nav-menu li {
    flex: 1;
}

.nav-menu a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 18px 20px;
    font-weight: 500;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover {
    background-color: #ffffff0d;
    border-bottom-color: var(--color-accent);
    color: var(--color-accent);

}


.header-cta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.subscribe-btn {
    background: var(--color-accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.subscribe-btn:hover {
    background: #e67e00;
}

.desktop-search-wrapper {
    position: relative;
}

.search-icon {
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    align-items: center;
    text-decoration: none;
}

.search-icon:hover {
    color: var(--color-accent);
}

.desktop-search-form {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 8px;
    z-index: 1001;
    min-width: 280px;
}

.desktop-search-form.active {
    display: flex;
    gap: 8px;
}

.desktop-search-form input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.desktop-search-form input:focus {
    border-color: var(--color-accent);
}

.desktop-search-form button[type="submit"] {
    padding: 10px 14px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.desktop-search-form button[type="submit"]:hover {
    background: #e67e00;
}



/* Resources dropdown */
.nav-dropdown {
    position: relative;
}

.nav-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-primary);
    list-style: none;
    min-width: 200px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1002;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu li {
    flex: none;
}

.dropdown-menu a {
    padding: 12px 20px;
    white-space: nowrap;
    text-align: left;
    border-bottom: none;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* WordPress menu compatibility */
.site-nav .nav-menu,
.site-nav .nav-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 1115px) {
    .site-nav .nav-menu > li {
        position: relative;
        flex: none;
    }

    .site-nav .nav-menu > li > .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--color-primary);
        min-width: 220px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 1002;
    }

    .site-nav .nav-menu > li.menu-item-has-children:hover > .sub-menu,
    .site-nav .nav-menu > li.menu-item-has-children:focus-within > .sub-menu {
        display: block;
    }

    .site-nav .nav-menu > li > .sub-menu a {
        display: block;
        padding: 12px 20px;
        white-space: nowrap;
        text-align: left;
        border-bottom: none;
        font-size: 14px;
    }

    .site-nav .nav-menu > li.menu-item-has-children > a::after {
        content: " \25BE";
        font-size: 10px;
    }
}

/* Mobile nav sub-links & heading */
.mobile-nav-heading {
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 15px 5px;
    border-bottom: none;
}

.mobile-sub-link {
    padding-left: 30px !important;
    font-size: 14px;
}

.hamburger-btn {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px 12px;
    margin-left: auto;
    order: 99;
}



/* to ensure we have a proper z-index for the mobile menu toggle */

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    z-index: 1001;
    overflow-y: auto;
    padding: 20px;
}

.mobile-menu-overlay.active {
    display: block;
}


.mobile-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
}

.mobile-search-form input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 15px;
    min-width: 0;
}

.mobile-search-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.mobile-search-form button[type="submit"] {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    padding: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.18s;
}

.mobile-search-form button[type="submit"]:hover {
    color: var(--color-accent);
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 18px 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.mobile-nav-menu a:hover {
    background: rgba(255, 140, 0, 0.1);
    color: var(--color-accent);
    padding-left: 20px;
}

.mobile-nav-menu .subscribe-btn {
    display: inline-flex;
    width: auto;
    margin: 15px;
    padding: 8px 20px;
}

.mobile-nav-menu .subscribe-btn:hover {
    padding-left: 24px;
}

.mobile-menu-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-section h4 {
    color: var(--color-accent);
    font-size: 14px;
    margin-bottom: 15px;
    padding: 0 15px;
}

.mobile-search-form {
    display: flex;
    gap: 10px;
    padding: 0 15px;
}

.mobile-search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 5px;
}

.mobile-search-form button {
    padding: 12px 20px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}



/* Tablet and up (≥641px - 768px) */
@media (min-width: 641px) {
    /* Not necessary. Decided to show nav menu only on desktop*/
    
}


/* Small desktop and up (≥769px - 1025px) */
@media (min-width: 769px) {

    /* Not necessary. Decided to show nav menu only on desktop */
}


/* Desktop only becomes visible when the nav menue fits between the logo and CTA */
@media (min-width: 1115px) {
    nav {
        display: flex;
        justify-content: center;
        flex: 1;
        min-width: 0;
    }

    .nav-menu {
        display: flex;
        justify-content: center;
        gap: 4px;
    }

    .nav-menu a {
        padding: 18px 20px;
        font-size: 15px;
    }

    .hamburger-btn {
        display: none;
    }

    .desktop-search-wrapper {
        display: block;
        position: relative;
    }

    .search-icon,
    .subscribe-btn {
        display: inline-flex;
        white-space: nowrap;
    }

    .header-container {
        justify-content: flex-start;
        gap: 24px;
    }
}
