/* Navigation Menu */

.nav-sticky {
    position: fixed;
    top: var(--drupal-displace-offset-top, 0px);
    z-index: 11;
    width: 100%;
    background: #fff;
}

.nav-sticky::after {
    content: "";
    position: absolute;
    background: transparent;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 1px 15px 0 rgba(18, 18, 18, 0.12);
}

body:has(.nav-sticky) {
    padding-top: calc(149px + var(--drupal-displace-offset-top, 0px)) !important;
}

.toolbar .toolbar-bar {
    position: fixed;
}

.nav-sticky .nav-block {
    max-width: 1207px;
    margin: 0 auto;
    padding: 29px 15px;
}

.nav-sticky .nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 19px;
}

.nav-sticky .get-quote-btn,
.main-cta-header .get-quote-btn {
    width: 174px;
    height: 46px;
    border-radius: 80px;
    background: #CD2026;
    color: var(--Rates-White, #FFF);
    text-align: center;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    border: none;
    cursor: pointer;
}

.nav-sticky .search-trigger {
    cursor: pointer;
}

.nav-sticky .nav-top .header-search-form {
    position: relative;
    display: none;
}

.nav-sticky .nav-top input[type="text"] {
    width: 300px;
    padding: 0 20px;
    height: 46px;
    border-radius: 100px;
    border: 1px solid #cccc;
    background: #FFF;
    color: #666;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

.nav-sticky .nav-top .header-search-form svg {
    color: #666666;
    position: absolute;
    top: 50%;
    margin-top: -8px;
    right: 25px;
    pointer-events: none;
}

.nav-sticky .hamburger {
    display: none;
    width: 38px;
    height: 38px;
    position: relative;
    cursor: pointer;
}

.nav-sticky .hamburger span {
    display: block;
    height: 5px;
    width: 24px;
    background: #000;
    border-radius: 4px;
    position: absolute;
    left: 8px;
    transform: rotate(0);
    transition: transform 0.1s ease-in-out;
}

.nav-sticky .hamburger span:nth-child(1) {
    top: 12px;
}

.nav-sticky .hamburger span:nth-child(2) {
    top: 21px;
}

.mobile-nav-unfolded .nav-sticky .hamburger span:nth-child(1) {
    top: 16.5px;
    transform: rotate(45deg);
}

.mobile-nav-unfolded .nav-sticky .hamburger span:nth-child(2) {
    top: 16.5px;
    transform: rotate(-45deg);
}

.nav-sticky nav {
    margin-top: 25px;
    position: relative;
    display: flex;
    justify-content: space-between;
    user-select: none;
}

.nav-sticky nav .get-quote-btn {
    display: none;
    width: 100%;
    margin-bottom: 15px;
}

.nav-sticky nav form {
    display: none;
    margin-bottom: 4px;
}

.nav-sticky nav input[type="text"] {
    width: 100%;
    padding: 0 20px;
    height: 48px;
    border-radius: 100px;
    border: 1px solid #cccc;
    background: #FFF;
    color: #666;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

.nav-sticky .nav-link {
    display: flex;
    align-items: baseline;
    gap: 3px;
    color: #121212;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 17px;
}

.nav-sticky .nav-link:hover {
    color: var(--color-red);
}

nav input[type="checkbox"] {
    display: none;
}

.nav-sticky nav .mobile-item {
    display: none;
    justify-content: space-between;
    align-items: center;
    color: #333;
    font-family: "Nunito Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding: 20px 0;
    cursor: pointer;
}

.mobile-item span.toggle-icon {
    display: block;
    width: 24px;
    height: 24px;
    position: relative;
}

.mobile-item .toggle-icon span {
    position: absolute;
    display: block;
    border-radius: 5.714px;
    background: var(--Rates-Red, #CD2026);
}

.mobile-item .toggle-icon span:first-child {
    left: 10.86px;
    top: 4px;
    width: 2.286px;
    height: 16px;
}

.mobile-item .toggle-icon span:last-child {
    top: 10.86px;
    left: 4px;
    height: 2.286px;
    width: 16px;
}

input[id^='show-submenu']:checked~.mobile-item .toggle-icon span:first-child {
    display: none;
}

.nav-sticky .nav-submenu {
    display: none;
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
}

.nav-submenu .content {
    background: var(--color-white);

    display: flex;
    width: 100%;
    justify-content: space-between;
}

.nav-submenu .content ul {
    list-style: none;
    margin-top: 0;
    margin-left: unset !important;
    padding-left: 0;
}

.nav-submenu .content li {
    display: list-item;
}

.nav-submenu .content .row {
    width: calc(25% - 20px);
}

.nav-submenu .content .row-30 {
    width: calc(30% - 10px);
}

.nav-submenu .content .row-70 {
    width: calc(70% - 10px);
}

.nav-submenu .content .row-100 {
    width: 100%;
}

.nav-submenu .content .row-100 .mega-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.nav-submenu .content .row-100 .mega-links li {
    flex: 1 0 calc(25% - 30px);
}

.nav-submenu .content .row-70 .mega-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.nav-submenu .content .row-70 .mega-links li {
    flex: 0 0 30%;
}

.nav-submenu .content .submenu{
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.nav-submenu .content .bolded {
    color: #333;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 17px; /* 106.25% */
}

.nav-submenu .content .bolded:hover {
    color: #dc2323; 
}

.nav-submenu .content li a {
    color: #333;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 17px; /* 106.25% */
}

.nav-submenu .content li a:hover {
    color: #dc2323;
}

.nav-submenu .content li a.active {
    font-weight: 700 !important;
    color: #dc2323;
}

.nav-submenu .content header:not(:first-child) {
    margin-top: 2rem;
}

.svg-inline--fa.fa-sort-down path {
    fill: var(--color-red);
}

nav .rates-bot-wrapper {
    display: flex;
    border-left: 1px solid #a2a2a2;
    padding-left: 20px;
    align-items: center;
}

nav .rates-bot-wrapper .copy {
    margin-left: 20px;
}

nav .rates-bot-wrapper .copy strong {
    font-weight: 700;
    display: inline-block;
    padding-bottom: 10px;
}

nav .rates-bot-wrapper .rates-bot img {
    width: 105px;
    height: 105px;
    max-height: none;
    max-width: none;
    display: block;
}

.content .row header {
    margin-bottom: 23px;
    color: #333;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 17px;
}

.content .row .mega-links {
    margin-left: -39px;
    list-style: none;
}

.row .mega-links li {
    margin: 0;
    border: none;
}

.row .mega-links li:has(.submenu) {
    margin-bottom: 0;
} 

.row .mega-links .submenu li:last-child {
    margin-bottom: 0;
} 

.row .mega-links li.no-link:hover {
    background-color: transparent;
}

.row .mega-links li:hover {
    border: none;
}

.mobile-nav-unfolded .nav-sticky::after {
    display: none;
}

@media (min-width: 1080px) {
    .nav-item:hover .nav-submenu {
        display: block;
        top: 20px;
        opacity: 1;
        visibility: visible;
        padding-top: 28px;
    }

    .nav-item:hover .content {
        padding: 34px 30px;
        border-radius: 0 0 4px 4px;
        background: #FFF;
        box-shadow: 0 1px 15px 0 rgba(0, 0, 0, 0.10);
        clip-path: inset(0 -15px -15px -15px);
    }
}

@media (max-width: 1080px) {
    html.mobile-nav-unfolded {
        overflow: hidden;
    }

    html.mobile-nav-unfolded .scroll-to-top-button {
        display: none !important;
    }

    body:has(.nav-sticky) {
        padding-top: calc(78px + var(--drupal-displace-offset-top, 0px)) !important;
    }

    .mobile-nav-unfolded .nav-sticky {
        overflow-y: scroll;
    }

    .nav-sticky .hamburger {
        display: block;
    }

    .nav-sticky .nav-block {
        padding: 0;
    }

    .nav-sticky .nav-top {
        padding: 16px 15px;
        min-height: 78px;
    }

    .mobile-nav-unfolded .nav-sticky .nav-top {
        box-shadow: 0 1px 20px rgba(18, 18, 18, 0.15);
    }

    /* .mobile-nav-unfolded .nav-sticky .nav-top .get-quote-btn {
        display: none;
    } */

    .nav-block .header-search {
        display: none;
    }

    .nav-sticky nav {
        display: none;
    }

    .mobile-nav-unfolded .nav-sticky {
        height: 100vh;
    }

    .mobile-nav-unfolded .nav-sticky nav {
        margin-top: 26px;
        padding: 0 30px 78px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .mobile-nav-unfolded .nav-sticky nav .get-quote-btn {
        display: block;
    }

    .mobile-nav-unfolded .nav-sticky nav form {
        display: block;
        position: relative;
    }

    .mobile-nav-unfolded .nav-sticky nav form svg {
        color: #666666;
        position: absolute;
        top: 50%;
        margin-top: -8px;
        right: 25px;
        pointer-events: none;
    }

    .nav-sticky nav .desktop-item {
        display: none;
    }

    .nav-sticky nav .mobile-item {
        display: flex;
    }

    .content .row header {
        margin-bottom: 14px;
    }

    .nav-sticky .nav-item {
        border-bottom: 1px solid #ccc;
    }

    input[id^='show-submenu']:checked~.nav-submenu {
        display: block;
        position: static;
    }

    .nav-submenu .content {
        box-shadow: none;
        padding: 0;
        display: block;
    }

    .nav-submenu .content .row {
        width: 100% !important;
    }

    .content .row .mega-links {
        display: block !important;
    }

    .nav-submenu .content .submenu {
        display: block;
    }

    .row .mega-links li {
        margin-bottom: 8px;
    }

    .row .mega-links li a {
        display: flex;
        align-items: center;
        height: 48px;
    }

    .row .mega-links .submenu li:last-child {
        margin-bottom: 27px;
    }
}