header {
    width: 100%;
    height: fit-content;
}

header .over-header {
    width: 100%;
    height: 63px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: rgba(17, 25, 51, 1);
    padding: 0 35px;
}

header .over-header a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-family: CircularXX, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 19.2px;
    letter-spacing: 0px;
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
    padding: 20px 24px;
    box-shadow: inset 0px 0px 0px rgba(0, 0, 0, 0);
    transition: .3s;
}

.over-header .over-header-link:hover,
.over-header .over-header-link.active {
    box-shadow: inset 0px -4px 0px var(--link-color);
}

@media (max-width: 768px) {
    header .over-header {
        display: none;
    }
}


header .header-container { 
    width: 100%;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 64px;
    position: fixed;
    top: 63px;
    left: 0;
    right: 0;
    z-index: 100;
    transition: top 0.3s ease, background-color 0.3s ease;
}

header .header-container.scrolled {
    background-color: #fff;
}

header .header-container.scrolled .header-links a {
    color: var(--text-color);
}

header .header-container .header-links a.header-link-permanent {
    background-color: var(--volunteer-color);
    color: white;
    padding: 14px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-family: CircularXX, sans-serif;
    font-weight: 450;
    font-size: 16px;
    line-height: 19.2px;
    letter-spacing: 0px;
    text-align: center;
    transition: background-color 0.3s;
}

.wp-admin-bar-showing header .header-container {
    top: 95px; 
}

@media (max-width: 768px) {
    header .header-container { 
        top: 0;
    }

    .wp-admin-bar-showing header .header-container {
        top: 46px;
    }

    header .header-container .header-links a.header-link-permanent {
        padding: 8px 16px;
        font-size: 14px;
        line-height: 16.8px;
    }
}

header .header-container .header-logo { 
    width: 222px;
    height: 43px;
    position: relative;
}

header .header-container .header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

header .header-container .header-logo .scrolled-logo {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

header .header-container.scrolled .header-logo .default-logo {
    opacity: 0;
}

header .header-container.scrolled .header-logo .scrolled-logo {
    opacity: 1;
}

header .header-container.scrolled .header-logo svg path { 
    fill: var(--text-color);
}

header .header-container .header-logo svg { 
    width: 100%;
    height: 100%;
    object-fit: contain;
}

header .header-container .header-links { 
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 59px;
    /* margin-bottom: auto; */
}

header .header-container .header-links a { 
    font-family: CircularXX, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 16.8px;
    letter-spacing: 0px;
    text-align: center;
    color: rgba(251, 253, 255, 1);
    text-decoration: none;
}

header .header-container .menu-hamburger { 
    display: none;
    width: 24px;
    height: 24px;
    background: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    color: rgba(251, 253, 255, 1);
    transition: color 0.3s ease;
    z-index: 101;
    pointer-events: auto;
}

header .header-container .menu-hamburger svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

header .header-container .menu-hamburger .hamburger-icon {
    width: 24px;
    height: 16px;
}

header .header-container .menu-hamburger .close-icon {
    width: 24px;
    height: 24px;
}

header .header-container.scrolled .menu-hamburger {
    color: var(--text-color);
}

header .header-container.scrolled .menu-hamburger.active {
    color: var(--text-color);
}

@media (max-width: 1200px) {
    header .over-header a {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 992px) {
    header .header-container .header-links .header-link:not(.header-link-permanent) {
        display: none;
    }

    header .header-container .menu-hamburger {
        display: block;
    }

    header .header-container .header-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    header .header-container {
        padding: 14px 20px;
    }

    header .header-container .header-links .faq-link {
        display: none;
    }

    header .header-container .header-links {
        flex-direction: row-reverse;
        gap: 20px;
        margin-bottom: 0;
    }

    header .header-container .header-logo {
        margin-top: 0;
        width: 151px;
        height: 30px;
    }
}


.header-notification-bar {
    position: fixed;
    top: 145px;
    width: 100%;
    z-index: 3;
    background-color: rgba(114, 52, 196, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease;
}

.wp-admin-bar-showing .header-notification-bar {
    top: 177px;
}
    
.header-notification-bar.active {
    top: 82px;
}

.wp-admin-bar-showing .header-notification-bar.active {
    top: 114px;
}

@media (max-width: 992px) {
    .header-notification-bar {
        top: 82px;
   }
    .header-notification-bar.active {
        top: 82px;
   }

    .wp-admin-bar-showing .header-notification-bar {
        top: 114px;
    }

    .wp-admin-bar-showing .header-notification-bar.active {
        top: 114px; 
    }
}
.header-notification-bar .notification-bar-content-wrapper {
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    padding: 12px 24px;
}
.header-notification-bar .notification-bar-content {
    font-size: 14px;
    color: #fff;
    font-weight: 450;
    font-size: 16px;
    line-height: 150%;
    vertical-align: middle;
    text-align: left;
}
.header-notification-bar .notification-bar-content a {
    font-size: 14px;
    line-height: 1.5;
    color: white;
    text-decoration: underline;
}
.header-notification-bar .notification-bar-close {
    cursor: pointer;
    width: 50px;
    min-width: 50px;
    height: 50px;
    background: url(../icons/close-white.svg) no-repeat center center;
    background-size: contain;
}
@media (max-width: 992px) {
    .notification-bar-content-wrapper {
        align-items: flex-start;
   }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 83px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wp-admin-bar-showing .mobile-menu-overlay {
    top: 115px;
}


.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-overlay-content {
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: #fff;
    padding: 0 30px 30px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    position: relative;
}

.mobile-menu-overlay.active .mobile-menu-overlay-content {
    transform: translateX(0);
}

.mobile-menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-links li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-links li:last-child {
    border-bottom: none;
}

.mobile-menu-links a {
    display: block;
    padding: 20px 0;
    font-family: CircularXX, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color, #111933);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu-links a:hover {
    color: rgba(114, 52, 196, 1);
}

/* Ensure permanent link is always visible */
.header-link-permanent {
    display: block !important;
}

@media (max-width: 992px) {
    .mobile-menu-overlay-content {
        max-width: 100%;
    }
}
