:root {
    --blue: #25aae1;
    --dark-blue: #004c6b;
    --dark-blue2: #004c6a;
    --dark-cyan: #155c78;
    --black: #000;
    --custom-black: #0d0d11;
    --custom-black2: #111117;
    --light-blue: #c1e3f1;
    --new-black: #22254c;
    --new-black2: #171813;
    --new-black3: #00131b;
    --red: #e83d53;
    --yellow: #fed168;
    --menu-accent: #42a9a6;
    --primary: #a40a2a;
    --primary-hover: #7b081f;
    --primary-light: #ffe5eb;
    --secondary: #ffffff;
    --secondary-hover: #fba558;
    --secondary-light: #fffcf3;
    --accent: #4775a3;
    --dark: #1a242f;
    --modal-accent: #cacdf2;
    --light: #f8f8f8;
    --white: #ffffff;
    --light-grey: #f6f6f6;
    --grey: #d9d9d9;
    --font-dark: #3d3d3d;
    --font-light: #ffffff;
}

/* ------------------ Upper Header ------------------------ */

.ps-30 {
    padding-left: 30px;
}

.current-lang {
    cursor: pointer;
}

.current-lang-mobile {
    cursor: pointer;
}

.current-lang:hover {
    color: var(--light);
    cursor: pointer;
}

.br-bottom-1 {
    border-bottom: 1px solid var(--white);
}

.lang-list,
.lang-list-mobile {
    background-color: var(--white);
    z-index: 10000;
    position: absolute;
    padding: 0.2rem 0.5rem;
    list-style: none;
    border-radius: 10px;
    margin-top: 0.2rem;
}

.lang-list {
    right: 0;
}

.lang-list-mobile {
    right: 60px;
}

.lang-list > li,
.lang-list-mobile > li {
    margin: 0 0 0.2rem 0;
}

.lang-list > li > a,
.lang-list-mobile > li > a {
    color: var(--font-dark);
}

.lang-list > li > a:hover,
.lang-list-mobile > li > a:hover {
    color: var(--grey);
}

.lang-list > li .custom-select-wrapper,
.lang-list-mobile > li .custom-select-wrapper {
    position: relative;
    width: 200px;
    font-family: "Source Sans 3", sans-serif;
}

.search-icon {
    position: absolute;
    color: var(--grey);
    right: 16px;
    top: 8px;
}

#mobileSearchDropdown {
    position: absolute;
    top: 45px;
    /* left: 0; */
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px;
    z-index: 1000;
}

.nav-container-p {
    margin: 0.5rem 0;
}

.nav-container-p-secondary {
    margin: 0 0 0.5rem 0;
}

.search-input-desktop {
    padding: 0.2rem 0.5rem;
    border: none;
    /* border: 1px solid #ddd; */
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    background-color: var(--white);
}

.search-input::placeholder {
    color: var(--grey);
    font-style: italic;
    opacity: 1; /* Optional: Adjust the opacity as needed */
}

.search-input:focus {
    outline: none;
}

.upper-header {
    background-color: var(--blue);
    width: 100%;
    color: var(--white) !important;
    /* padding-top: 10px;
			padding-bottom: 14px; */
    padding-top: 3px;
    /* padding-bottom: 7px;  */
    padding-bottom: 3px;
    display: block;
}

.navmenu-row {
    /* background-color: var(--grey); */
    display: flex;
}

.navmenu-row-container {
    border-radius: 25px;
    margin-top: 0.5rem;
    background-color: var(--grey);
}

.navmenu-row-big {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 75%;
}

.secondary-nav-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.5rem;
}

.navmenu-row-small {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 24%;
    /* min-width: fit-content; */
}

#navSearchForm {
    /* width: 100%; */
    flex: 1;
    position: relative;
    margin-right: 0.5rem;
}

#navSearchForm > div {
    position: relative;
    width: 100%;
}

#navSearchForm > div > input {
    width: 100%;
}

.upper-header-nav,
.main-header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding-bottom: 0.2rem; */
    /* padding-top: 0.2rem; */
}

.upper-header-left-text,
.upper-header-left-custom-text {
    font-family: "Source Sans 3", sans-serif;
    font-size: 12px;
}

.upper-header-left-text {
    font-weight: 700;
}

.upper-header-left-custom-text {
    font-weight: 900;
}

.upper-header-right-text {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 300;
    font-size: 15px;
}

.upper-header-right span {
    margin-inline: 3px;
}

.upper-header-right i {
    font-size: 17px !important;
    color: var(--grey) !important;
}

.upper-header-right .fa-envelope,
.upper-header-right .fa-phone-alt,
.upper-header-right .fa-facebook-messenger {
    vertical-align: -1px;
}

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

.main-header {
    width: 100%;
    background-color: var(--light);
    color: var(--white);
    display: flex;
    align-items: center;
    position: -webkit-sticky;
    position: sticky;
    z-index: 999 !important;
    top: 0;
    /* padding: 1rem 0; */
    margin-bottom: -1rem;
    transition: all 0.3s ease;
    /* height: 75px; */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sticky {
    background-color: var(--primary) !important;
    top: 0;
}

.main-link-xs {
    min-width: min-content;
    width: 19%;
    text-align: start;
    /* border: 1px solid blue; */
}

.main-link-sm {
    min-width: min-content;
    width: 16%;
    text-align: start;
    /* border: 1px solid red; */
}

.secondary-link-sm {
    min-width: min-content;
    width: 12%;
    text-align: start;
}

.main-link-md {
    min-width: min-content;
    width: 19%;
    text-align: start;
    /* border: 1px solid yellow; */
}

.main-link-mg {
    min-width: min-content;
    width: 19%;
    text-align: start;
    /* border: 1px solid green; */
}

.main-link-lg {
    min-width: min-content;
    width: 19%;
    text-align: start;
    /* border: 1px solid cyan; */
}

.main-link-xl {
    min-width: min-content;
    width: 19%;
    text-align: start;
    /* border: 1px solid brown; */
}

.icon-link {
    font-weight: 400;
    color: var(--white);
    font-size: 18px;
    text-decoration: none !important;
}

.icon-link:hover {
    color: var(--secondary);
}

.date-label-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    border-radius: 20px;
    padding: 0.2rem 2.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.date-label {
    font-size: 16px;
    font-weight: 600;
}

.date-label-container-white {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 20px;
    color: var(--secondary);
    font-weight: 500;
    font-size: 12px;
    padding: 0.2rem 0.4rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.main-header-link:link,
.main-header-link:visited,
.main-header-link:active {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    /* min-width: 126px; */
    color: var(--font-dark);
    font-size: 16px;
    text-decoration: none !important;
    /* border-radius: 20px; */
    padding: 0.2rem 1.5rem;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}

.main-header-link-sm {
    min-width: 50px !important;
}

.main-header-link-white {
    background-color: var(--light) !important;
}

.main-header-link-secondary {
    background-color: var(--secondary) !important;
}

.main-header-link-secondary:hover {
    background-color: var(--secondary-hover) !important;
}

.main-header-link-white:hover {
    color: var(--primary);
    /* background-color: var(--light-grey) !important; */
}

.hamburger-icon {
    width: 20px;
    height: 20px;
}

.main-header-link i {
    font-size: 12px !important;
    margin-left: 0.2rem;
    /* right: 8px;
    position: absolute;
    top: 4px; */
}

.main-header-service-chevron-cont {
    vertical-align: 1px;
}

.main-header-service-chevron-cont i {
    /* color: var(--white); */
    font-size: 24px !important;
    transition: all 0.4s;
}

.main-header-link .main-header-service-chevron-cont i {
    font-size: 14px !important;
    /* color: var(--grey) !important; */
}

#mobile-menu-services-box-btn > span,
#mobile-menu-services-box-btn i {
    pointer-events: none;
}

#mobile-menu-services-box-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 15px;
}

#mobile-menu-services-box-btn.active .main-header-service-chevron-cont i {
    color: var(--grey);
    transform: rotate(180deg);
}

#mobile-menu-services-box-btn:hover {
    color: var(--grey) !important;
}

.lato-700 {
    font-weight: 700 !important;
}

.header-btn {
    background-color: var(--blue);
    border-radius: 20px;
    padding: 1px 15px 1px;
    display: inline-block;
    transition: all 250ms ease-in-out;
}

/* Dropdown general styles */
.dropdown {
    z-index: 1051;
}

.dropdown-submenu {
    position: relative;
    cursor: pointer;
}

/* Main dropdown menu styles */
.courses-dropdown-menu {
    position: relative;
    z-index: 1050 !important;
    max-height: 75vh;
    overflow-y: auto;
    background-color: var(--white);
    margin-top: 0.5rem !important;
}

/* Main dropdown menu styling */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #212529;
    list-style: none;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

.dropdown-menu.show {
    display: block;
}

/* Show the submenu when hovering over the parent category */
.dropdown-submenu:hover + .submenu-dropdown {
    display: none; /* This selector is now irrelevant since the submenu is no longer a sibling */
}

/* New: Show the submenu based on data-parent-id when hovering over the corresponding parent */
.dropdown-submenu:hover {
    background-color: var(--light);
}

/* New selector to display submenu based on parent hover */
.dropdown-submenu:hover ~ .submenu-dropdown[data-parent-id] {
    display: none; /* To prevent interference with hover */
}

/* Find the submenu based on the data attribute */
.dropdown-submenu:hover ~ .submenu-dropdown[data-parent-id="PARENT_ID"] {
    display: block;
}

/* Ensure the submenu dropdown is displayed properly next to the main menu */
.submenu-dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    /* top: 135% !important; */
    /* left: 26% !important; Align it next to the parent */
    z-index: 1501;
    min-width: 200px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0 6px 6px 6px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Ensure the parent category is clickable and submenu appears on hover */
.dropdown-submenu:hover > .dropdown-item {
    background-color: var(--light) !important;
    color: var(--grey) !important;
}

/* Dropdown item styles */
.dropdown-item {
    color: var(--grey);
    font-size: 16px !important;
    font-weight: 400;
    border-radius: 5px;
}

/* Active and focused dropdown item styles */
.dropdown-item:active,
.dropdown-item:focus {
    background-color: var(--light) !important;
    color: var(--grey) !important;
}

.chevron-toggle {
    color: var(--grey);
    cursor: pointer;
}

.chevron-toggle:hover {
    color: var(--primary);
}

.dropdown-mobile-cat-img {
    display: inline-block;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    min-width: 28px;
    margin-right: 0.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.profile-dropdown-btn {
    border-radius: 50%;
    border: 3px solid var(--primary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-circle-btn {
    /* border: 2px solid var(--primary); */
    border-radius: 50%;
    /* width: 40px; */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.profile-circle-btn .profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-circle-btn .profile-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary);
    font-size: 20px;
    font-weight: bold;
}

.profile-dropdown-btn > i {
    font-size: 30px;
}

.profile-dropdown-menu {
    z-index: 1050 !important;
    background-color: var(--font-light);
}

.profile-img {
    width: 39px;
    border-radius: 50%;
}

.dropdown-item {
    color: var(--grey) !important;
    font-size: 16px !important;
}

.dropdown-username {
    font-size: 18px !important;
    font-weight: 500 !important;
}

.dropdown-toggle::after {
    content: none;
}

.dropdown-toggle {
    border: none;
    background-color: var(--white) !important;
}

.dropdown-serv {
    padding-bottom: 1px;
    position: relative;
}

.dropdown-menu-serv {
    position: absolute;
    background-color: transparent !important;
    top: 20px;
    left: 0;
    width: max-content !important;
    opacity: 0;
    transition: opacity 150ms ease-in-out;
    pointer-events: none;
    margin: 0 auto !important;
    z-index: 15;
}

.dropdown-menu-serv-content-box {
    margin-top: 10px;
    background-color: var(--dark-blue2);
    border-radius: 5px;
    border: 2px solid #045577;
    width: max-content !important;
}

.dropdown-menu-serv.active {
    opacity: 1;
    pointer-events: auto;
}

.dropdown-menu-serv-inner {
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 10px 0;
}

.dropdown-menu-serv-inner form {
    width: 100%;
    margin: 0 !important;
}

.dropdown-menu-serv-link-desktop {
    font-weight: 500;
    font-size: 16px;
    line-height: 32px;
    color: var(--grey) !important;
    display: block;
    padding: 0 15px;
    width: max-content;
}

.dropdown-link {
    font-weight: 500;
    font-size: 16px;
    line-height: 35px;
    color: var(--grey) !important;
    display: block;
    padding-left: 30px;
    border-radius: 0px 10px 10px 0px;
    width: 100%;
    margin: 0.5rem 0;
}

.dropdown-link-icon:hover,
.dropdown-link:hover {
    color: var(--light) !important;
}

.dropdown-menu-serv-link {
    font-weight: 600;
    font-size: 16px;
    line-height: 25px;
    color: var(--font-dark) !important;
    display: block;
    padding-left: 30px;
    border-radius: 0px 10px 10px 0px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.dropdown-menu-serv-link:link,
.dropdown-menu-serv-link:visited,
.dropdown-menu-serv-link:active,
.dropdown-menu-serv-link:hover,
.dropdown-menu-serv-link-desktop:link,
.dropdown-menu-serv-link-desktop:visited,
.dropdown-menu-serv-link-desktop:active,
.dropdown-menu-serv-link-desktop:hover {
    text-decoration: none;
    padding-top: 0.5rem;
    padding-right: 0.5rem;
}

.dropdown-menu-serv-link:active,
.dropdown-menu-serv-link:hover {
    color: var(--primary) !important;
}
.dropdown-menu-serv-link-desktop:active,
.dropdown-menu-serv-link-desktop:hover {
    color: var(--secondary) !important;
}

.dropdown-menu-serv-link.active {
    background-color: var(--light-grey);
}

.serv-link-secondary {
    color: var(--secondary) !important;
}

.serv-link-secondary:hover {
    color: var(--secondary-hover) !important;
}

.lato-400-18 {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 32px;
}

.main-header-right-mobile,
.main-header-center-mobile {
    display: none;
}

.navbar-light {
    background-color: transparent !important;
}

.fa-bars {
    color: var(--grey) !important;
    font-size: 26px !important;
}

.secondary-nav {
    padding: 0 0.5rem;
    border-radius: 60px;
    background-color: inherit; /* This will make it use the same background as the parent */
}

.navmenu-row {
    /* width: 100%; */
}

.dropdown-menu-mobile {
    position: fixed;
    background: var(--secondary);
    background-size: 100% 100%;
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
    padding: 8px 8px 0;
    -webkit-overflow-scrolling: touch;
    left: 0;
    top: 0;
    /* opacity: 0; */
    transition: all 250ms ease-in-out;
    pointer-events: none;
    z-index: 100;
    max-width: 360px;
    transform: translateX(-100%);
}

.dropdown-menu-mobile .blank-link {
    width: max-content !important;
    display: inline-block;
}

#mobile-menu-toggler i {
    color: var(--grey) !important;
    font-size: 40px !important;
}

.mobile-menu-item-list {
    /* padding-bottom: 100px; */
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    height: 100%;
}

.mobile-menu-question-box-outer {
    padding-left: 30px;
}

.container-main.container-mobile-menu {
    padding-left: 0;
    padding-right: 0;
    height: auto;
    margin-top: 0.5rem;
}

.container-main.container-mobile-menu .row {
    margin: 0;
    height: 100%;
}

.container-main.container-mobile-menu .row > div {
    padding-left: 0;
    padding-right: 0;
}

.header-logo-img {
    margin-top: 3px;
    height: 40px;
}

.header-logo-img-nav-mobile {
    margin-top: 3px;
    height: 40px;
}

.header-logo-img-mobile {
    margin-top: 3px;
    margin-right: 1.5rem;
    height: 40px;
    /* width: 84px; */
}

.logout-form {
    display: inline-flex;
}

.main-header-right {
    width: 100%;
    padding: 0 0.5rem;
    /* margin-bottom: -1rem;
    padding-bottom: 1rem; */
}

.main-header-right > .main-header-link:first-child {
    padding-top: 1px;
}

.mobile-menu-left {
    padding-left: 22px;
}

.mobile-menu-services-list-box {
    padding-left: 10px;
    padding-top: 5px;
    margin: 0 0 1rem 10px;
    animation: fade-in 500ms forwards;
    border-radius: 10px;
    background-color: var(--light-grey);
}

.mobile-menu-services-list-box.d-none {
    animation: fade-out 500ms forwards;
}

.mobile-menu-services-list-box .dropdown-menu-serv-link {
    background-color: var(--light-grey);
    border-radius: 10px !important;
    border: none !important;
    margin: 5px 0;
    padding: 0.5rem 0;
}

.mobile-menu-question-box {
    border-radius: 10px;
    padding: 10px 20px;
    margin-top: 10px;
    border: 2px solid rgba(37, 170, 225, 0.5);
    background: rgba(37, 170, 225, 0.1);
}

.mobile-menu-question-text {
    color: var(--grey);
    font-size: 16px;
    font-weight: 700;
}

.mobile-menu-question-flex-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-question-flex-item img {
    width: 20px;
}

.mobile-menu-question-flex-item span {
    color: var(--grey);
    font-size: 16px;
    font-weight: 500;
}

.mobile-menu-question-box > .mobile-menu-question-flex-item:first-of-type {
    margin-top: 5px;
    margin-bottom: 5px;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    100% {
        opacity: 0;
    }
    0% {
        opacity: 1;
    }
}

@media (max-width: 810px) {
    .logout-btn-mobile {
        display: inline-block;
        border-radius: 5px;
        font-size: 20px !important;
        text-decoration: none !important;
        color: var(--grey) !important;
        padding: 10px 50px 13px;
        background-color: var(--primary);
    }

    .date-label {
        font-size: 12px;
    }

    .logout-btn-mobile-box {
        width: max-content;
        margin: 50px auto 50px;
    }

    #mobile-menu-bg {
        display: none;
        position: fixed;
        z-index: 19;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        animation: fade-in 250ms forwards;
    }

    .dropdown-menu-mobile.active {
        /* opacity: 1; */
        transform: translateX(0);
        pointer-events: auto;
    }

    .mobile-menu-flex {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 0;
        margin-bottom: 0;
    }

    .mobile-menu-header {
        /* padding: 10px 0; */
        /* margin-bottom: 20px; */
        height: auto;
        padding-bottom: 62px;
        /* border: 1px solid red; */
        /* display: flex; */
        /* align-items: center; */
    }

    #mobile-menu-close {
        background: none;
        border: none;
        outline: none;
        color: var(--primary);
        display: flex;
    }

    #mobile-menu-close:hover {
        color: var(--primary-hover);
    }

    #mobile-menu-close i {
        font-size: 22px;
    }

    .mobile-menu-item {
        background-color: var(--primary);
        border-radius: 10px;
        width: 300px;
        margin: 20px auto;
        text-align: center;
        padding: 15px 0;
    }

    .mobile-menu-item p {
        text-align: center;
        text-transform: uppercase;
        color: var(--grey) !important;
        margin-top: 15px;
        margin-bottom: 0 !important;
        font-size: 21px !important;
    }

    .mobile-menu-item i {
        font-size: 75px !important;
        color: var(--grey) !important;
    }
}
.main-header-desktop {
    display: block;
    padding: 0 0.5rem;
}

.bottom-nav {
    display: none;
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    width: 100%;
    background-color: transparent;
    border-radius: 20px;
}
.bottom-nav-container {
    background-color: var(--accent);
    padding: 0.5rem 1rem;
    /* border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}
.bottom-nav-logo {
    width: 24px;
    height: 24px;
}

.bottom-nav-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--white);
}

.search-bubble-wrapper {
    position: fixed;
    z-index: 999;
    top: 60px; /* Adjust based on your bottom-nav height */
    left: 0;
    right: 0;
}

.search-bubble {
    display: none;
    position: fixed;
    top: 60px; /* Adjust based on your bottom-nav height */
    left: 0;
    right: 0;
    background: white;
    padding: 0.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    border-radius: 50px;
}

.search-container {
    max-width: 100%;
    /* margin: 0 1rem; */
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    /* border: 1px solid #ddd; */
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    background-color: var(--white);
}

.search-input::placeholder {
    color: var(--primary);
    font-weight: 400;
}

.search-button,
.clear-search-button {
    background-color: var(--white);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-button:hover,
.clear-search-button:hover {
    background-color: var(--light-grey);
}

.clear-search-button i {
    font-size: 22px;
    color: var(--primary);
}

.clear-search-button:hover i {
    color: var(--dark);
}

.search .search-button img {
    width: 34px;
    height: 34px;
}

@media (max-width: 810px) {
    .search-bubble {
        display: block;
    }
    .nav-container-p {
        margin: 0.5rem 0 0.5rem 0;
    }

    .nav-container-p-secondary {
        margin: 0 0 0.5rem 0;
    }

    .nav-row-container-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        background-color: var(--light);
        padding: 0.5rem 1rem;
        /* border-bottom-right-radius: 20px;
        border-bottom-left-radius: 20px; */
        box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.25);
    }

    .main-header-desktop {
        display: none;
    }

    .main-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: var(--light);
        margin-bottom: 0;
    }
    
    .main-header + .main-content {
        margin-top: 0;
        padding-top: 1rem;
    }

    .main-header-right-mobile {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        opacity: 1;
        transition: all 150ms ease-in-out;
    }

    .bottom-nav {
        display: block;
    }

    .main-header-center-mobile {
        display: block;
        margin-right: auto;
        margin-left: 2rem;
    }

    .main-header-right-mobile.inactive {
        opacity: 0;
    }

    .main-header-right {
        display: none;
    }

    .user-menu-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--white);
        border-radius: 10px;
        padding: 0.5rem;
        width: 36px;
        height: 36px;
        margin-right: 0.5rem;
    }

    .user-menu-toggler i {
        font-size: 16px;
        color: var(--primary);
    }

    .user-menu-toggler:hover {
        background-color: var(--primary);
        color: var(--white);
    }
    .user-menu-toggler:hover i {
        color: var(--white) !important;
    }

    #mobile-menu-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--white);
        border-radius: 10px;
        padding: 0.5rem;
        width: 36px;
        height: 36px;
        /* box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.25); */
    }

    #mobile-menu-toggler img {
        width: 24px;
    }

    #mobile-menu-close img {
        width: 22px;
        color: var(--grey);
    }
}

@media (max-width: 810px) {
    #mobile-menu-close img {
        height: 22px !important;
        color: var(--grey);
    }

    .mobile-menu-item p {
        font-size: 18px !important;
        margin-top: 15px;
    }

    .mobile-menu-item i {
        font-size: 55px !important;
        color: var(--grey) !important;
    }

    .logout-btn-mobile-box {
        margin: 20px auto 0;
    }

    .mobile-menu-item,
    .dropdown-menu-mobile .blank-link {
        width: max-content !important;
    }

    .mobile-menu-item {
        padding: 15px 0;
    }

    /* .mobile-menu-header {
        background-color: var(--primary); 
        padding: 10px 0; 
    } */

    /* .main-header,
    .mobile-menu-header {
        height: 65px;
    } */

    /* main {
        margin-top: 65px;
    } */
}

@media (max-width: 576px) {
    .mobile-menu-item p {
        font-size: 16px !important;
    }
}
@media (max-width: 420px) {
    #mobileSearchDropdown {
        position: absolute;
        top: 45px;
        /* left: 0; */
        right: -175%;
        background: white;
        border: 1px solid #ccc;
        border-radius: 20px;
        padding: 10px;
        z-index: 1000;
    }
}

/* =================== Navigation Hover Menu Styles =================== */

.nav-menu-item-with-hover {
    position: relative;
}

.nav-hover-menu {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: -9999;
    width: calc(100% - 40px);
    max-width: var(--width-lg);
    pointer-events: none !important;
    --arrow-position: 50%;
    backface-visibility: hidden;
    will-change: opacity, visibility;
}

.nav-hover-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
    z-index: 1000;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-hover-menu * {
    pointer-events: none;
}

.nav-hover-menu.active * {
    pointer-events: auto;
}

.nav-hover-menu-content {
    display: flex;
    padding: 0.5rem;
    gap: 30px;
    contain: layout style;
}

.nav-hover-menu-left {
    flex: 0 0 290px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-hover-menu-item {
    padding: 12px 16px;
    color: var(--font-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    display: block;
    transform: translateX(0) translateZ(0);
    backface-visibility: hidden;
    pointer-events: none;
}

.nav-hover-menu.active .nav-hover-menu-item {
    pointer-events: auto;
}

.nav-hover-menu-item:hover,
.nav-hover-menu-item.active {
    background-color: var(--primary);
    color: var(--white);
    transform: translateX(4px) translateZ(0);
}

.nav-hover-menu-right {
    flex: 1;
    display: grid;
    align-items: center;
    justify-items: end;
    min-height: 280px;
    position: relative;
    contain: layout style paint;
    transform: translateZ(0);
    overflow: hidden;
    border-radius: 10px;
}

.nav-hover-menu-image {
    grid-column: 1;
    grid-row: 1;
    height: 280px;
    width: auto;
    max-width: 100%;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transition: opacity 0.15s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: opacity;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    display: block;
}

.nav-hover-menu.active .nav-hover-menu-image.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
}

/* Add a small arrow pointer to the menu */
.nav-hover-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: var(--arrow-position);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
    transition: left 0.3s ease, transform 0.3s ease;
}

/* Active state for menu item when hover menu is open */
.nav-menu-item-with-hover.menu-active > a.main-header-link {
    color: var(--primary) !important;
}

/* Active state for current page navigation item */
.main-header-link.nav-active {
    color: var(--primary) !important;
}

/* Hide hover menus on mobile/tablet */
@media (max-width: 810px) {
    .nav-hover-menu {
        display: none;
    }
}

/* =================== Mobile Menu Collapsible Styles =================== */

.mobile-menu-collapsible {
    background-color: transparent;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.mobile-menu-collapsible.active {
    background-color: var(--light-grey);
}

.mobile-menu-collapse-trigger {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-collapsible.active .mobile-menu-collapse-trigger {
    color: var(--primary) !important;
}

.mobile-menu-chevron {
    transition: transform 0.3s ease;
    font-size: 14px !important;
    margin-left: auto;
}

.mobile-menu-collapse-trigger.active .mobile-menu-chevron {
    transform: rotate(180deg);
}

.mobile-menu-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-collapse.active {
    max-height: 500px;
}

.mobile-menu-collapse-item {
    display: block;
    padding: 10px 40px;
    color: var(--font-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mobile-menu-collapse-item:hover,
.mobile-menu-collapse-item:active {
    color: var(--primary) !important;
}

.mobile-menu-divider {
    margin: 1rem 1rem;
    border-color: var(--grey);
    opacity: 0.3;
}

/* =================== User Profile Dropdown Styles =================== */

.user-profile-menu-container {
    position: relative;
}

.user-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    min-width: 200px;
    pointer-events: none;
}

.user-profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.user-profile-dropdown-content {
    padding: 0.5rem;
}

.user-profile-name {
    padding: 12px 16px;
    font-weight: 600;
    color: var(--font-dark);
    border-bottom: 1px solid var(--grey);
    margin-bottom: 0.25rem;
    font-size: 14px;
}

.user-profile-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--font-dark);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.user-profile-dropdown-item:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Arrow pointer */
.user-profile-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--white);
}

/* =================== Mobile User Profile Dropdown Styles =================== */

.user-profile-mobile-container {
    position: relative;
}

.user-profile-mobile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    min-width: 200px;
    pointer-events: none;
}

.user-profile-mobile-dropdown.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.user-profile-mobile-content {
    padding: 0.5rem;
}

.user-profile-mobile-name {
    padding: 12px 16px;
    font-weight: 600;
    color: var(--font-dark);
    border-bottom: 1px solid var(--grey);
    margin-bottom: 0.25rem;
    font-size: 14px;
}

.user-profile-mobile-item {
    display: block;
    padding: 10px 16px;
    color: var(--font-dark);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.user-profile-mobile-item:hover {
    background-color: var(--primary);
    color: var(--white);
}

.user-profile-mobile-item i {
    margin-right: 8px;
}

/* Arrow pointer */
.user-profile-mobile-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--white);
}

/* Mobile user info */
.mobile-user-info {
    padding: 1rem 1rem 0.5rem 1rem;
}

.mobile-user-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-logout-btn {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}
