/* Compiled from SCSS to plain CSS using CSS variables */
:root {
    --blue: #00539B;
    --school-patrol: #FDB913;
    --school-garden: #4FB95E;
    --driver-education: #E36158;
    --white: #fff;
}

.hub-bar {
    width: 100%;
    background-color: var(--blue);
    color: var(--white);
    font-family: "Lato", sans-serif;
    padding: 20px 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
}

.hub-bar__container {
    max-width: 1440px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 767px) {
    .hub-bar__container {
        padding: 0 16px;
    }
}

.hub-bar__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.hub-bar__mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
    margin-left: 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.hub-bar__mobile-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hub-bar__mobile-toggle:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.hub-bar__mobile-toggle svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 767px) {
    .hub-bar__mobile-toggle {
        display: block;
    }
}

@media (max-width: 767px) {
    .hub-bar__nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--blue);
        transform: translateY(-100%);
        opacity: 0.9;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 99999;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .hub-bar__nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

.hub-bar__nav-list {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

@media (max-width: 767px) {
    .hub-bar__nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .hub-bar__nav-item {*/
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .hub-bar__nav-item:last-child {
        border-bottom: none;
    }
}

.hub-bar__nav-link {
    color: var(--white);
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    padding-bottom: 5px;
    transition: 0.1s ease all;
    font-size: 15px !important;
}

.hub-bar__nav-link:hover {
    border-bottom-width: 6px;
}

.hub-bar__nav-link.safety-patrol {
    border-bottom-color: var(--school-patrol);
}

.hub-bar__nav-link.school-garden {
    border-bottom-color: var(--school-garden);
}

.hub-bar__nav-link.driver-education {
    border-bottom-color: var(--driver-education);
}

@media (max-width: 767px) {
    .hub-bar__nav-link {
        display: block;
        padding: 15px 0;
        border-bottom: none;
        font-size: 16px;
    }
    .hub-bar__nav-link:hover {
        border-bottom-width: 3px;
    }
}

@media (max-width: 767px) {
    .hub-bar__account {
        display: flex;
        align-items: center;
    }
}

.hub-bar__account-text {
    display: block;
}

@media (max-width: 767px) {
    .hub-bar__account-text {
        display: none;
    }
}

.hub-bar a {
    color: var(--white);
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.icon-wrapper {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper__container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.icon-wrapper.white {
    color: var(--white);
}

/* Ensure rasterized/inlined SVG images render white */
/* Color inline SVG icons within white wrappers */
.icon-wrapper.white svg {
    display: block;
    width: 100%;
    height: 100%;
}
.icon-wrapper.white svg path,
.icon-wrapper.white svg rect,
.icon-wrapper.white svg circle,
.icon-wrapper.white svg polygon,
.icon-wrapper.white svg line,
.icon-wrapper.white svg polyline {
    fill: var(--white);
    stroke: var(--white);
}

/* Account icon: prefer stroke-only (no fill) with higher specificity */
.hub-bar__account-icon.icon-wrapper.white svg path,
.hub-bar__account-icon.icon-wrapper.white svg rect,
.hub-bar__account-icon.icon-wrapper.white svg circle,
.hub-bar__account-icon.icon-wrapper.white svg polygon,
.hub-bar__account-icon.icon-wrapper.white svg line,
.hub-bar__account-icon.icon-wrapper.white svg polyline {
    fill: none;
    stroke: var(--white);
    display: none;
}

.icon-wrapper svg {
    width: 100%;
    height: 100%;
}

.hub-bar .flex {
    display: flex;
}

.hub-bar .gap-3 {
    gap: 12px;
}
