/*--=====*** Header CSS Start Here ***=====--*/
html {
    scroll-behavior: smooth;
}

button.mgbutton {
    border-radius: 8px !important;
    font-size: 18px !important;
}

button.mgbutton:hover {
    background-color: #08868a !important;
    border-color: #08868a !important;
    color: #fff !important;
}

.no-collapse summary {
    display: none;
}

section.ctrust-instagram-sec .ti-header {
    display: none !important;
}

/* Search bar CSS HERE  */
nav.navigation.posts-navigation>.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-weight: 600;
}

nav.navigation.posts-navigation>.nav-links>.nav-previous>a {
    padding-left: 25px;
    position: relative;
}

nav.navigation.posts-navigation>.nav-links>.nav-previous>a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: rotate(180deg) translateY(-50%);
    transform-origin: top;
    background: url(../svg/right-arrow-circle.svg) center left / contain no-repeat;
    width: 20px;
    height: 20px;
}

nav.navigation.posts-navigation>.nav-links a:hover {
    color: var(--secondary);
}

nav.navigation.posts-navigation>.nav-links>.nav-next>a {
    padding-right: 25px;
    background: url(../svg/right-arrow-circle.svg) center right / contain no-repeat;
    position: relative;
}

.search-header {
    width: 57px;
    padding-inline: 20px;
    border-left: 1px solid rgb(112 112 112 / 30%);
    align-items: center;
    display: flex;
    height: 30px;
    cursor: pointer;
}

.search-bar-header:not(.active) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    top: 85%;
}

.search-bar-header {
    position: absolute;
    top: 100%;
    width: 100%;
    left: 0;
    background: #fff;
    transition: all .3s ease;
}

.search-header:not(.active) .close-searchbar,
.search-header.active img:not(.close-searchbar) {
    display: none;
}

body .search-bar-header .wp-block-search__inside-wrapper {
    padding-block: 10px 20px;
    border: 0;
    position: relative;
}

body .search-bar-header .wp-block-search__inside-wrapper .wp-block-search__input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

.search-bar-header .wp-block-search__inside-wrapper button.wp-block-search__button {
    margin: 0;
    width: 50px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    background: #8a2a82;
    border-color: #8a2a82;
}

.search-bar-header .wp-block-search__inside-wrapper button.wp-block-search__button>svg {
    filter: brightness(100) invert(1);
}

span.close-searchbar {
    position: absolute;
    line-height: 20px;
    width: 20px;
    height: 20px;
    text-align: center;
    top: 0;
    right: 0;
}

@media (max-width:991.98px) {
    .search-header {
        border: 0;
        padding-left: 0;
    }

    .search-header {
        width: 40px;
    }

    .search-header.wp-block-image img {
        max-width: 20px;
        max-height: 20px;
        object-fit: contain;
    }
}

/* Top Header */
header.site-header {
    position: relative;
    z-index: 3;
}

.top-header-inner .contact-links {
    --space-10: clamp(8px, 1.6vw, 27px);
}

.top-header-inner .contact-links .wp-block-media-text {
    background-color: transparent !important;
    display: flex;
    align-items: center;
    grid-gap: clamp(6px, 0.8vw, 10px);
}

.top-header-inner .contact-links .wp-block-media-text figure img {
    max-width: clamp(16px, 1.5vw, 18px);
}

.top-header-inner .contact-links .wp-block-media-text .wp-block-media-text__content {
    padding: 0;
}

.top-header-inner .contact-links .wp-block-media-text .wp-block-media-text__content a {
    color: var(--white);
    font-size: var(--fs-16);
    display: block;
    line-height: 1.2;
    letter-spacing: 0.32px;
}

.top-header-inner .contact-links .wp-block-media-text .wp-block-media-text__content a:hover {
    color: var(--tertiary);
}

/* Right Side Top Header */
.nav-right .wp-element-button:hover,
.page-template-contact-us-template .nav-right .wp-element-button {
    background-color: var(--primary) !important;
}

.top-header-inner .social-links {
    flex: 1;
    width: 100%;
    --space-10: clamp(8px, 1.2vw, 16px);
}

.top-header-inner .social-links .social-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    grid-gap: clamp(8px, 1.5vw, 20px);
}

.top-header-inner .social-links .social-icons img {
    transition: all .5s ease-in-out;
    filter: brightness(0) invert(1);
    max-width: clamp(14px, 1.5vw, 16px);
}

.top-header-inner .social-links .social-icons a:hover img {
    filter: brightness(1) invert(0);
    transform: translateY(-2px);
}

.top-header-inner .social-links .wp-block-buttons .wp-block-button__link {
    width: 100%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-gap: clamp(6px, 0.8vw, 10px);
    letter-spacing: 0.54px;
    font-size: clamp(16px, 1.5vw, var(--fs-18));
    color: var(--black) !important;
    line-height: 1;
    font-weight: 600;
    min-height: 45px;
    background-color: var(--tertiary) !important;
    width: clamp(120px, 13vw, 162px);
}

.top-header-inner .social-links .wp-block-buttons .wp-block-button__link:hover {
    background-color: var(--secondary) !important;
    color: var(--white) !important;
}


.top-header-inner .social-links .wp-block-buttons .wp-block-button__link img {
    max-width: clamp(22px, 1.7vw, 25px);
    transition: all .5s ease-in-out;
}

.top-header-inner .social-links .wp-block-buttons .wp-block-button__link:hover img {
    filter: brightness(0) invert(1);
}

.nav-right .wp-block-button__link {
    font-size: 17px;
}

/* Main Menu */
.site-header .header-nav {
    padding: 0px 0;
}

header .custom-logo-link,
header .nav-menu .menu>.menu-item {
    padding-block: 10px;
}

.header-nav .nav-inner .custom-logo-link {
    display: block;
}

.nav-inner .custom-logo-link img {
    width: clamp(145px, 12vw, 169px);
}

.nav-inner .nav-menu .menu {
    display: flex;
    --space-10: clamp(8px, 1.5vw, 30px);
    margin-left: calc(var(--space-10)*(-1px));
    margin-right: calc(var(--space-10)*(-1px));
}

.nav-inner .nav-menu {
    --space-10: clamp(12px, 1.6vw, 29px);
    flex: 1;
}

.nav-menu .menu .menu-item {
    padding-left: var(--space-10);
    padding-right: var(--space-10);
}

.nav-menu .menu .menu-item a {
    position: relative;
    font-size: clamp(14px, 1.1vw, var(--fs-17));
    letter-spacing: 0.34px;
    font-weight: 500;
    line-height: 1.2;
    height: 100%;
    align-items: center;
    display: flex;
    color: var(--black);
}

.nav-menu .menu .menu-item a:hover,
.nav-menu .menu>.menu-item:hover>a,
.nav-menu .menu .menu-item.current-menu-item>a,
.nav-menu .menu .menu-item.current_page_parent>a {
    color: var(--secondary);
}

.nav-menu .menu>.menu-item>a::after,
.nav-menu .menu>.menu-item:hover>a::after {
    content: '';
    position: absolute;
    top: calc(100% + calc(15px / 2));
    left: 50%;
    transform: translateX(-50%);
    height: 5px;
    width: 0;
    background-color: var(--secondary);
    transition: all .5s ease-in-out;
    opacity: 0;
    z-index: 2;
}

.nav-menu .menu .menu-item a:hover::after,
.nav-menu .menu>.menu-item:hover>a::after,
.nav-menu .menu .menu-item.current-menu-item>a:after {
    opacity: 1;
    width: calc(100% + 24px);
}


/* //NEW CSS IS HERE HEADER  */
.nav-inner .nav-menu {
    padding-right: 10px;
}

.top-header .top-header-inner .contact-links .wp-block-media-text,
.top-header .top-header-inner .contact-links {
    padding-left: 18px;
}

.top-header-inner .social-links {
    padding-right: 10px;
}

/* FIX STICKY HEDARR  */
header.sticky-header nav.header-nav {
    position: fixed;
    top: 0;
}

header.sticky-header {
    transition: all .3s ease;
}

header.sticky-header nav.header-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 1px 1px 20px #A8A8A829;
    left: 0;
}

.nav-inner .custom-logo-link img {
    transition: all .3s ease;
}

header.sticky-header .nav-inner .custom-logo-link img {
    width: clamp(110px, 12vw, 120px);
    transition: all .3s ease;
}


/* DROPDOWN CSS IS HERE  */
.header-nav .menu>.menu-item-has-children {
    position: relative;
}

.header-nav .menu>.menu-item-has-children>.sub-menu li>a {
    font-weight: 400;
}

.header-nav .menu>.menu-item-has-children>.sub-menu>li {
    padding: clamp(15px, 3vw, 20px) clamp(15px, 3.5vw, 27px);
    width: 100%;
}

.header-nav .menu>.menu-item-has-children>.sub-menu>li:not(:last-child) {
    border-bottom: 1px solid #d5d5d5;
}





/*--=====*** Header CSS Close Here ***=====--*/

@media (min-width: 992px) and (max-width: 1199.98px) {
    .nav-menu .menu .menu-item {
        padding-left: 5px;
        padding-right: var(--space-10);
    }
}

@media (min-width: 992px) {

    .nav-inner .nav-menu>.menu>li.menu-item-has-children {
        position: relative;
    }

    .menu-item-has-children {
        margin-right: var(--space-10);
    }

    .nav-inner .nav-menu>.menu>li.menu-item-has-children:before {
        content: "";
        width: 12px;
        height: 16px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        background: url(../png/arrowdown.png) center / 14px no-repeat;
        transition: all .5s ease-in-out;
        filter: brightness(0);
    }

    .nav-inner .nav-menu>.menu>li.menu-item-has-children:hover:before,
    .nav-inner .nav-menu>.menu>li.menu-item-has-children.current-menu-item:before,
    .nav-inner .nav-menu>.menu>li.menu-item-has-children.current_page_parent:before {
        filter: brightness(1);
    }

    .item-hide-desktop {
        display: none;
    }

    .header-nav .menu>.menu-item:not(:hover)>.sub-menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .header-nav .menu>.menu-item>.sub-menu {
        position: absolute;
        top: 100%;
        background: #fff;
        transition: all .3s ease;
        left: 12px;
        z-index: 1;
        min-width: 250px;
        width: max-content;
        display: flex;
        flex-direction: column;
        box-shadow: 1px 1px 20px #A8A8A829;
    }
}

@media (max-width: 991.98px) {
    .header-nav .nav-inner>.custom-logo-link {
        display: none;
    }

    .header-nav .menu>.menu-item>.sub-menu {
        margin-top: 20px;
    }

    .nav-inner .nav-menu>.menu:not(.active) {
        visibility: hidden;
        left: -100%;
        opacity: 0;
    }

    .menu-toggle {
        order: 13;
    }

    .header-nav .nav-inner>.nav-menu {
        justify-content: space-between;
    }

    nav.header-nav {
        position: relative;
    }

    .header-nav .nav-inner {
        align-items: center;
    }

    .nav-inner .nav-menu>.menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 85px);
        overflow: auto;
        background: #fff;
        flex-direction: column;
        gap: 20px;
        transition: all .3s ease;
        padding: 30px 20px;
        z-index: 11;
    }

    .nav-inner .nav-menu>.menu>li {
        max-width: 720px;
        margin-inline: auto;
        width: 100%;
    }

    .header-nav .menu>.menu-item>.sub-menu:not(.active-submenu) {
        display: none;
    }

    .nav-inner .nav-menu>.menu>li.menu-item-has-children {
        position: relative;
        padding-right: 65px;
    }

    .nav-inner .nav-menu>.menu>li.menu-item-has-children:before {
        content: "";
        width: 36px;
        height: 36px;
        position: absolute;
        right: 0;
        top: 0;
        background: url(../png/arrowright.png) center / 22px no-repeat;
        filter: brightness(0);
        transition: all .5s ease-in-out;
    }

    .nav-menu .menu>.menu-item>a::after {
        display: none;
    }

    .nav-inner .nav-menu>.menu>li.menu-item-has-children:hover:before,
    .nav-inner .nav-menu>.menu>li.menu-item-has-children.current-menu-item:before,
    .nav-inner .nav-menu>.menu>li.menu-item-has-children.current_page_parent:before {
        filter: brightness(1);
    }

    .nav-inner .nav-menu>.menu>li.menu-item-has-children.active-li:before {
        content: "";
        width: 36px;
        height: 36px;
        position: absolute;
        right: 0;
        top: 0;
        background-image: url(../png/arrowdown.png);
    }

    .header-nav .menu>.menu-item-has-children>.sub-menu>li {
        width: calc(100% + 55px);
    }

    .menu-toggle {
        cursor: pointer;
    }

    .nav-menu .nav-right>.wp-block-buttons {
        display: none;
    }

    .nav-menu .menu .menu-item.head-btn-secondary>a {
        border-radius: 8px;
        background-color: #8a2a82;
        display: inline-block;
        width: auto;
        color: #fff;
        box-shadow: none;
        text-decoration: none;
        padding: calc(.667em + 2px) calc(1.333em + 2px);
    }
}

@media (max-width: 767px) {

    .top-header {
        display: none;
    }

    .search-header {
        padding-right: 10px;
        justify-content: end;
    }

    .moove-gdpr-button-holder {
        justify-content: center;
    }

    .moove-gdpr-cookie-notice {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .nav-inner .nav-right {
        display: none;
    }
}