

:root {
    --theme-color0: #B21E27;
}

.new-header-main .logo {
    padding-top: 50px;
}

.logo-inner {
    max-width: 120px;
    flex: 0 0 auto;
}

.new-header-main .grid-container {
    width: 1630px;
    margin: auto;
    max-width: 100%;
}

.new-header__bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
}

.new-header__right {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.navigation-new {
    flex: 1 1 auto;
    min-width: 0;
}

.header-search,
.header-cta.cta-desktop-view {
    flex: 0 0 auto;
}

.header-search {
    margin: 0;
    /* display: none; */
}

.header-cta .btn .primary {
    margin: 0;
    font-size: 14px;
    letter-spacing: normal;
}

.btn-globe .secondary {
    font-size: 14px;
    color: #fff;
    margin: 0;
    letter-spacing: normal;
    line-height: 1.2;
    padding: 4px 15px;
}

.cta-desktop-view .btn-globe .secondary img {
    margin-right: 5px;
}

.btn-globe .secondary:hover {
    background: #fff;
    color: var(--theme-color0);
}

.header-cta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}

.site-header.new-header-main {
    background: #000;
    /* box-shadow: 0 0 20px 25px rgba(0,0,0, 1); */
    top: 0;
    z-index: 9999;
    padding-top: 20px;
}

.new-header-main.sticky-header {
    background: #000;
    position: fixed !important;
    z-index: 9999;
}

body:has(#simple-banner) .site-header.new-header-main {
    position: fixed;
    padding-top: 20px;
}

@media (max-width: 991px) {
    .site-header {
        top: 20px;
    }

    .new-header-main > .grid-container {
        padding: 0;
    }

    .new-header-main > .grid-container .new-header__bar {
        padding: 0 10px;
        padding-bottom: 15px;
    }

}
@media ( min-width: 992px ) and (max-width: 1210px) {

    .admin-bar .site-header {
        margin-top: 50px;
        border-right: 0;
    }

    .site-header .navigation-new .custom-nav-menu > ul {
        margin-top: 60px;
    }
}

@media (max-width: 1024px) {
    .site-header.new-header-main {
        position: relative;
    }
    .header-cta.cta-desktop-view {
        display: none;
    }

    .header-cta.cta-mobile-view {
        flex-wrap: unset;
        gap: 0;
        align-items: stretch;
    }
    
    .header-cta.cta-mobile-view.has-no-mission {
        justify-content: right;
    }

    .header-cta.cta-mobile-view [class*='btn'] {
        width: 50%;
    }
    
    .header-cta.cta-mobile-view [class*='btn'] > a {
        width: 100%;
        min-height: 43px;
        display: block;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
}

@media (min-width: 1025px) {
    body:has(#simple-banner) .site-header.new-header-main {
        padding-top: 0;
    }
    
    .site-header.new-header-main {
        padding-top: 10px;
        padding-bottom: 15px;
    }
    .header-cta.cta-mobile-view {
        display: none;
    }
    .new-header__right {
        padding-top: 0;
    }
}
/* Base Menu Styles */
.custom-nav-menu {
    position: relative;
    z-index: 1000;
}

.custom-nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.custom-nav-menu li {
    background: none;
    position: relative;
    display: inline-block;
    line-height: 1.3;
    padding: 0;
    margin-bottom: 0;
}

.custom-nav-menu a {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-family: Sansation, sans-serif;
    text-decoration: none !important;
    color: #000;
}

.custom-nav-menu .dropdown-toggle {
    display: none;
}

/* Search Toggle Styles */
.header-search {
    position: relative;
}

.header-search-toggle {
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
    border-radius: 50%;
}

.header-search-toggle:hover {
    transform: scale(1.05);
}

.header-search-toggle img {
    transition: all 0.3s ease;
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1);
}

/* Search Form Styles */
.header-search-form {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 300px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
    overflow: hidden;
}

.header-search-form.search-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.header-search-form form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-search-form input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    outline: none;
    margin: 0;
    box-shadow: none;
    font-family: macha, sans-serif;
    font-weight: 500;
    text-transform: none;
}

.header-search-form input[type="text"]:focus {
    border-color: var(--theme-color0);
}

.header-search-form input[type="text"]::placeholder {
    font-family: macha, sans-serif;
    font-weight: 500;
    text-transform: none;
}

.header-search-form button {
    padding: 12px 16px;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search-form button:hover {
    background: #9a1a22;
}

.header-search-form button img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(0);
}

.header-search-form button:hover img {
    filter: brightness(0) invert(1);
}

/* Close Icon when Search is Active */
.header-search.search-active .header-search-toggle img {
    opacity: 0;
    transform: rotate(90deg) scale(0.8);
}

.header-search.search-active .header-search-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%) rotate(0deg);
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 5L5 15M5 5L15 15' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
    transition: all 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-search-form {
        width: calc(100vw - 40px);
        max-width: 100%;
    }
    
    .header-search-form form {
        gap: 15px;
    }
    
    .header-search-form input[type="text"] {
        width: 100%;
    }
    
    .header-search-form button {
        width: 30px;
        justify-content: center;
        padding: 0;
    }
}

/* Desktop Menu Styles */
@media (min-width: 1301px) {

    .logo-inner {
        padding-top: 0;
    }


    .custom-nav-menu > ul {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .custom-nav-menu > ul > li > a {
        padding: 8px 10px;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .custom-nav-menu > ul > li > a:hover,
    .custom-nav-menu > ul > li:hover > a {
        color: var(--theme-color0);
    }
    
    /* Dropdown Arrow Indicator */
    .custom-nav-menu .menu-item-has-children > a:after {
        content: '';
        margin-left: 8px;
        transition: transform 0.3s ease;
        background-image: url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.52124 1.12714L9.0896 1.6955L9.17749 1.78436L5.00073 5.96112L4.91284 5.87225L0.912842 1.88007L0.823975 1.79218L0.911865 1.70331L1.48022 1.13593L1.56909 1.04706L1.65698 1.13593L3.02515 2.50409L5.00073 4.4787L6.97632 2.50409L8.34448 1.12811L8.43237 1.03925L8.52124 1.12714Z' fill='white' stroke='white' stroke-width='0.25'/%3E%3C/svg%3E%0A");
        width: 10px;
        height: 7px;
        display: inline-block;
    }
    
    .custom-nav-menu .menu-item-has-children:hover > a:after {
        transform: rotate(180deg);
        background-image: url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.52124 1.12714L9.0896 1.6955L9.17749 1.78436L5.00073 5.96112L4.91284 5.87225L0.912842 1.88007L0.823975 1.79218L0.911865 1.70331L1.48022 1.13593L1.56909 1.04706L1.65698 1.13593L3.02515 2.50409L5.00073 4.4787L6.97632 2.50409L8.34448 1.12811L8.43237 1.03925L8.52124 1.12714Z' fill='%23B21E27' stroke='%23B21E27' stroke-width='0.25'/%3E%3C/svg%3E%0A");
    }
    
    /* First Level Dropdown */
    .custom-nav-menu .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 265px;
        background: #FFFFFF;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1001;
        padding: 10px;
    }
    
    .custom-nav-menu li:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .custom-nav-menu .sub-menu li {
        display: block;
        width: 100%;
    }
    
    .custom-nav-menu .sub-menu a {
        padding: 12px 12px;
        color: #000000;
        font-weight: 600;
        font-size: 16px;
        border-radius: 0;
        transition: all 0.3s ease;
        font-weight: 400;
    }
    
    .custom-nav-menu .sub-menu a:hover {
        color: var(--theme-color0);
        background-color: rgba(247, 232, 233,1);
        font-weight: 900;
    }
    
    /* Second Level Dropdown */
    .custom-nav-menu .sub-menu .sub-menu {
        top: 0;
        left: 100%;
        margin-left: 10px;
    }
    
    /* Third Level Dropdown */
    .custom-nav-menu .sub-menu .sub-menu .sub-menu {
        top: 0;
        left: 100%;
        margin-left: 5px;
    }
    
    /* Dropdown indicators for nested menus */
    .custom-nav-menu .sub-menu .menu-item-has-children > a:after {
        content: '';
        float: right;
        transform: none;
        background-image: url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.52124 1.12714L9.0896 1.6955L9.17749 1.78436L5.00073 5.96112L4.91284 5.87225L0.912842 1.88007L0.823975 1.79218L0.911865 1.70331L1.48022 1.13593L1.56909 1.04706L1.65698 1.13593L3.02515 2.50409L5.00073 4.4787L6.97632 2.50409L8.34448 1.12811L8.43237 1.03925L8.52124 1.12714Z' fill='%23B21E27' stroke='%23B21E27' stroke-width='0.25'/%3E%3C/svg%3E%0A");
        width: 15px;
        background-size: cover;
        height: 9px;
        transform: rotate(-90deg);
        top: 6px;
        position: relative;
        margin: 0;
        /* opacity: 0; */
        transition: all 0.3s ease 0s;
    }
    
    .custom-nav-menu .sub-menu .menu-item-has-children:hover > a:after {
        opacity: 1;
    }

    .header-search-toggle img {
        width: 20px;
        height: 20px;
    }
    
    .header-search.search-active .header-search-toggle::after {
        width: 27px;
        height: 27px;
    }
}

/* Mobile Menu Styles */
@media (max-width: 1300px) {
    .custom-nav-menu > ul {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 80px);
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        transition: top 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform: translateZ(0);
        z-index: 999;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .custom-nav-menu.menu-open > ul {
        top: auto;
        margin-top: 102px;
    }
    
    /* Responsive adjustments for different screen sizes */
    @media (max-width: 640px) {
        .custom-nav-menu > ul {
            max-height: calc(100% - 115px);
            min-height: calc(100% - 115px);
        }
        
        .mobile-menu-overlay {
            top: 70px;
            /* height: calc(100vh - 70px); */
        }
    }
    
    /* Smooth animation for menu items when sliding down */
    .custom-nav-menu > ul > li {
        transform: translateY(-20px);
        opacity: 0;
        transition: all 0.3s ease;
        transition-delay: calc(var(--item-index, 0) * 0.05s);
    }
    
    .custom-nav-menu.menu-open > ul > li {
        transform: translateY(0);
        opacity: 1;
    }
    
    .custom-nav-menu li {
        display: block;
    }
    
    .custom-nav-menu > ul > li > a {
        padding: 18px 25px;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s ease;
        outline: none;
        border: none;
    }
    
    .custom-nav-menu > ul > li > a:hover,
    .custom-nav-menu > ul > li.current-menu-item > a {
        color: var(--theme-color0);
    }
    
    /* Mobile Dropdown Toggle */
    .custom-nav-menu .menu-item-has-children > a {
        position: relative;
        padding-right: 50px;
        border-bottom: 1px solid #ddd;
    }
    
    .custom-nav-menu .dropdown-toggle {
        position: absolute;
        right: 20px;
        top: 8px;
        width: 35px;
        height: 35px;
        border: none;
        background: #F7E8E9;
        color: var(--theme-color0);
        font-size: 0;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .custom-nav-menu .dropdown-toggle::before {
        content: '';
        background-image: url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.52124 1.12714L9.0896 1.6955L9.17749 1.78436L5.00073 5.96112L4.91284 5.87225L0.912842 1.88007L0.823975 1.79218L0.911865 1.70331L1.48022 1.13593L1.56909 1.04706L1.65698 1.13593L3.02515 2.50409L5.00073 4.4787L6.97632 2.50409L8.34448 1.12811L8.43237 1.03925L8.52124 1.12714Z' fill='%23B21E27' stroke='%23B21E27' stroke-width='0.25'/%3E%3C/svg%3E%0A");
        width: 13px;
        height: 13px;
        background-size: contain;
        background-repeat: no-repeat;
        display: block;
        top: 2px;
        position: relative;
        transition: all 0.3s ease 0s;
    }
    
    .custom-nav-menu .dropdown-toggle:hover {
        color: var(--theme-color0);
    }
    
    .custom-nav-menu .dropdown-toggle.open::before {
        transform: rotate(180deg);
        top: -3px;
    }
    
    /* Different arrow styles for different levels */
    .custom-nav-menu .sub-menu .dropdown-toggle {
    }
    
    .custom-nav-menu .sub-menu .sub-menu .dropdown-toggle {
        color: rgba(255, 255, 255, 0.6);
        font-size: 8px;
    }
    
    /* Mobile Submenus */
    .custom-nav-menu .sub-menu {
        display: none;
        margin: 0;
        padding: 0;
        animation: slideDown 0.3s ease;
    }
    
    .custom-nav-menu .sub-menu.open {
        display: block;
    }
    
    .custom-nav-menu .sub-menu a {
        padding: 15px 50px 15px 35px;
        font-size: 16px;
        position: relative;
    }
    
    .custom-nav-menu .sub-menu a:hover {
        color: #000;
        /* padding-left: 40px; */
    }
    
    /* Second level submenus */
    .custom-nav-menu .sub-menu li:has(.open) {
        background: #eee;
    }

    .custom-nav-menu .sub-menu.open.dropdown-level-1 li > a {
        border-bottom: none;
    }
    
    .custom-nav-menu .sub-menu li:has(.open) > a {
        color: var(--theme-color0);
    }
    
    .custom-nav-menu .sub-menu .sub-menu {
        background: #eee;
        border-top: 1px solid #ccc;
    }
    
    .custom-nav-menu .sub-menu .sub-menu a {
        padding-left: 45px;
        font-size: 16px;
    }
    
    
    .custom-nav-menu .sub-menu .sub-menu a:hover {
        padding-left: 50px;
    }
    
    /* Third level submenus */
    .custom-nav-menu .sub-menu .sub-menu .sub-menu {
        background: rgba(255, 255, 255, 0.12);
        border-left: 2px solid rgba(0, 102, 204, 0.5);
    }
    
    .custom-nav-menu .sub-menu .sub-menu .sub-menu a {
        padding-left: 55px;
        color: rgba(255, 255, 255, 0.75);
        font-size: 12px;
    }
    
    .custom-nav-menu .sub-menu .sub-menu .sub-menu a:before {
        content: "Ã¢â€ â€™";
        left: 40px;
        font-size: 8px;
    }
    
    .custom-nav-menu .sub-menu .sub-menu .sub-menu a:hover {
        padding-left: 60px;
        background-color: rgba(0, 102, 204, 0.15);
    }
}


/* Mobile Hamburger Button */
.mobile-menu-toggle {
    display: none;
    position: relative;
    width: 28px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle .hamburger-line {
    display: block;
    width: 29px;
    height: 3px;
    background: #fff;
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Backwards compatibility for existing span elements */
.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: #333333;
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 1299px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Accessibility improvements */

/* Mobile submenu animation */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .custom-nav-menu * {
        transition: none !important;
        animation: none !important;
    }
}

/* Loading state */
.custom-nav-menu.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animation for menu items */
@media (min-width: 1300px) {
    .custom-nav-menu > ul > li {
        animation: fadeInUp 0.6s ease forwards;
        animation-delay: calc(var(--item-index, 0) * 0.1s);
        opacity: 0;
        transform: translateY(20px);
    }
    
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Current menu item styling */
.custom-nav-menu li.current-menu-item > a,
.custom-nav-menu li.current-menu-parent > a,
.custom-nav-menu li.current-menu-ancestor > a {
    color: var(--theme-color0);
}

/* Theme integration styles */
.site-header .navigation-new .custom-nav-menu {
    width: 100%;
}

.site-header .navigation-new .custom-nav-menu > ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

/* Mobile button positioning in header */

@media (min-width: 1300px) {
    .site-header .mobile-menu-toggle {
        display: none;
    }
}

/* Hide regular menu on mobile */
@media (max-width: 1300px) {
    .site-header .navigation-new .custom-nav-menu > ul {
        justify-content: flex-start;
    }

    .new-header__right {
        flex-direction: row-reverse;
    }
}
