.absolute-container {
    position: absolute;
    transition: 250ms ease-out;
    opacity: 0;
    height: 0px;
    top: -10px;
    left: -200%;
    background-color: rgba(255, 255, 255, 1);
    width: 400vw;
    box-shadow: 0 0 12px -2px rgba(0, 0, 0, 0.25);
    overflow: hidden;
} .absolute-container::before {
    content: '';
    position: absolute;
    top: 95px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
} /*.absolute-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 69%;
    width: 100%;
    background-color: #F7F8FA;
}*/

ul.sub-menu li a {
    display: flex !important;
    align-items: center;
    gap: 5px;
} ul.sub-menu li a img {
    width: 25px;
} ul.mega-menu {
    position: fixed !important;
    height: max-content;
    top: -10px !important;
    margin: 0 auto !important;
    margin-top: 10px !important;
    z-index: 1 !important;
} ul.mega-menu li {
    padding-left: 35px;
} .header-area.style-2 .menu-wrap .main-menu ul > li:hover > ul.mega-menu {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

@media only screen and (min-width: 768px) {
    ul.mega-menu {
        height: 250px;
    } .header-area.style-2 .menu-wrap .main-menu ul > li:hover > ul.mega-menu {
        padding-top: 100px !important;
        width: 850px;
        gap: 0px 25px;
        z-index: 0 !important;
    }
}

/* F1 Header */
header .header-logo img {
    position: relative;
    z-index: 3 !important;
} header .nav-right a.btn {
    position: relative;
    z-index: 3;
}
header .header-area.style-2 .menu-wrap .main-menu ul li a {
    position: relative;
    z-index: 3 !important;
}

@media only screen and (min-width: 768px) {
    /* F1 Dark Header */
    header.f1-dark-header .header-area.style-2 .menu-wrap .main-menu ul.menu-list li a {
        color: #000;
    }

    /* Prevent unrelated menu items from being affected */
    header.f1-dark-header .header-area.style-2 .menu-wrap .main-menu ul.menu-list li a {
        color: #fff; /* Default color for all links outside the scope of hover */
    }

    /* Target all sibling links when menu-item-has-children is hovered */
    header.f1-dark-header .header-area.style-2 .menu-wrap .main-menu ul.menu-list li.with-mega-menu:hover ~ li a,
    header.f1-dark-header .header-area.style-2 .menu-wrap .main-menu ul.menu-list li.with-mega-menu:hover + li a {
        color: #000; /* Set all unrelated links to black */
    }

    /* Target only the links inside the mega-menu when hovering over menu-item-has-children */
    header.f1-dark-header .header-area.style-2 .menu-wrap .main-menu ul.menu-list li.with-mega-menu:hover ul.mega-menu li a {
        color: #000; /* Change the color of links inside the mega-menu */
        font-weight: 600;
    }
}

/* Change the dropdown link itself when hovered */
header.f1-dark-header .header-area.style-2 .menu-wrap .main-menu ul.menu-list li.with-mega-menu:hover > a.drop-down {
    color: #000; /* Change the dropdown link color */
}

/* F1 Light Header */
header.f1-light-header .header-area.style-2 .menu-wrap .main-menu ul.menu-list li a {
    color: #000;
}

/* Prevent unrelated menu items from being affected */
header.f1-light-header .header-area.style-2 .menu-wrap .main-menu ul.menu-list li a {
    color: #000; /* Default color for all links outside the scope of hover */
}

/* Target only the links inside the mega-menu when hovering over menu-item-has-children */
header.f1-light-header .header-area.style-2 .menu-wrap .main-menu ul.menu-list li.with-mega-menu:hover ul.mega-menu li a {
    color: #000; /* Change the color of links inside the mega-menu */
}

/* Change the dropdown link itself when hovered */
header.f1-light-header .header-area.style-2 .menu-wrap .main-menu ul.menu-list li.with-mega-menu:hover > a.drop-down {
    color: #000; /* Change the dropdown link color */
}
@media only screen and (min-width: 991px) {
    .header-area.style-2 .menu-wrap .main-menu ul > li:hover > a.nav-link::before {
        content: '';
        position: absolute;
        top: -30px;
        left: 0;
        width: 100%;
        height: 5px;
        background: #a31e21;
    }
}

@media only screen and (max-width: 991px) {
    ul.mega-menu {
        position: static !important;
    } ul.mega-menu li {
        padding-left: auto;
    } .header-area.style-2 .menu-wrap .main-menu ul > li:hover > ul.mega-menu {
        display: block;
    } .header-area.style-2 .menu-wrap .main-menu ul > li ul.mega-menu > li {
        width: 100%;
    }
}

/* Custom Select */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-wrapper .custom-select {
    width: 100%;
    appearance: none;
    padding-right: 30px;
    background-color: white;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    transition: all 0.2s ease;
}

.custom-select-wrapper .chevron {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
}

/* On focus (open dropdown) change chevron to up */
.custom-select-wrapper .custom-select:focus + .chevron i::before,
.custom-select-wrapper .custom-select:active + .chevron i::before {
    content: '\f106 '; /* Up chevron */
}