/* =========================
   HEADER RESPONSIVE FIX
   inspired by blog theme
   ========================= */

body.ovr-hiddn,
body.overflw {
    overflow: hidden;
}

@media (max-width: 1200px) {

    header.desktop-head .main-header {
        padding: 14px 0;
    }

    header.desktop-head .main-header .container {
        position: relative;
    }

    header.desktop-head .main-header .row {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        margin-left: 0;
        margin-right: 0;
    }

    header.desktop-head .logo-box {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
        z-index: 3;
    }

    header.desktop-head .logo img {
        max-width: 130px;
        height: auto;
    }

    header.desktop-head .menu-box-new {
        flex: 0 0 0 !important;
        width: 0 !important;
        max-width: 0 !important;
        padding: 0 !important;
        overflow: visible;
    }

    header.desktop-head .main-header .col-md-3 {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        margin-left: auto;
        padding-left: 0;
        padding-right: 56px;
        display: flex;
        justify-content: flex-end;
    }

    ul.header-cta-new {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        margin: 0;
        padding: 0;
    }

    ul.header-cta-new li {
        margin: 0;
    }

    ul.header-cta-new li a {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        white-space: nowrap;
        color: #fff !important;
        font-size: 16px;
        font-weight: 600;
        line-height: 1;
        text-align: right;
    }

    ul.header-cta-new li a i {
        padding-right: 0 !important;
        font-size: 15px;
    }

    .menu-Bar {
        display: block !important;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        height: 20px;
        z-index: 100001;
    }

    .menu-Bar span {
        height: 3px;
        background: #ffffff !important;
        border-radius: 50px;
    }

    .menuWrap {
        position: fixed;
        left: -110%;
        top: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 110px 20px 30px;
        background: #000000;
        display: block;
        overflow-y: auto;
        overflow-x: hidden;
        transition: left 0.35s ease;
        z-index: 100000;
    }

    .menuWrap.open {
        left: 0;
        display: block;
    }

    .menuWrap .menu {
        width: 100%;
        max-width: 920px;
        margin: 0 auto;
        padding: 0;
    }

    .menuWrap .menu > li {
        display: block;
        margin: 0 0 12px !important;
        padding: 0 !important;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 16px;
        overflow: hidden;
    }

    header.desktop-head .main-header ul.menu > li {
        border-bottom: 0;
        margin-right: 0;
    }

    .menuWrap .menu > li > a {
        position: relative;
        display: block;
        margin: 0 !important;
        padding: 18px 60px 18px 18px !important;
        color: #ffffff !important;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.3;
        text-align: left;
        text-transform: none;
    }

    .menuWrap .menu > li > a:before,
    .menuWrap .menu > li > a:after {
        display: none !important;
    }

    header.desktop-head span.dp {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        transition: all 0.25s ease;
    }

    header.desktop-head .dropdown-nav.active > a .dp {
        background: #c79a43;
        border-color: #c79a43;
        color: #ffffff;
        transform: translateY(-50%) rotate(180deg);
    }

    header.desktop-head .dropdown_mega,
    header.desktop-head .dropdown_mega_two,
    header.desktop-head .dropdown-nav:hover .dropdown_mega {
        position: static !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        min-height: auto;
        background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
        padding: 14px;
        margin: 0;
        display: none;
        flex-wrap: wrap;
        gap: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: none;
        z-index: 1;
    }

    header.desktop-head .dropdown-nav.active .dropdown_mega,
    header.desktop-head .dropdown-nav.active .dropdown_mega_two {
        display: flex !important;
    }

    header.desktop-head .dropdown_mega ul,
    header.desktop-head .dropdown_mega .first_ul,
    header.desktop-head .dropdown_mega .second_menu_ul,
    header.desktop-head .dropdown_mega_two ul,
    header.desktop-head .dropdown_mega_two .first_ul,
    header.desktop-head .dropdown_mega_two .second_menu_ul {
        width: calc(50% - 6px) !important;
        margin: 0;
        padding: 0;
        list-style: none;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        overflow: hidden;
    }

    header.desktop-head .dropdown_mega .first_ul,
    header.desktop-head .dropdown_mega_two .first_ul {
        border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    header.desktop-head .dropdown_mega ul li,
    header.desktop-head .dropdown_mega_two ul li {
        width: 100%;
        text-align: left;
        margin: 0;
    }

    header.desktop-head .dropdown_mega ul li a,
    header.desktop-head .dropdown_mega_two ul li a {
        display: flex !important;
        align-items: center;
        gap: 12px !important;
        margin: 0 !important;
        padding: 14px 16px !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.4;
        text-align: left !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: transparent !important;
        transition: all 0.25s ease;
    }

    header.desktop-head .dropdown_mega ul li:last-child a,
    header.desktop-head .dropdown_mega_two ul li:last-child a {
        border-bottom: 0;
    }

    header.desktop-head .dropdown_mega ul li a:hover,
    header.desktop-head .dropdown_mega_two ul li a:hover {
        background: rgba(255, 255, 255, 0.06) !important;
        padding-left: 20px !important;
    }

    header.desktop-head .dropdown_mega ul li a img,
    header.desktop-head .dropdown_mega_two ul li a img {
        width: 22px;
        min-width: 22px;
        max-height: 22px;
        object-fit: contain;
    }
}


@media (max-width: 991.98px) {
    .menuWrap {
        padding: 95px 14px 24px;
    }

    .menuWrap .menu {
        max-width: 100%;
    }

    .menuWrap .menu > li {
        margin-bottom: 10px !important;
    }

    .menuWrap .menu > li > a {
        padding: 16px 52px 16px 16px !important;
        font-size: 16px;
    }

    header.desktop-head .dropdown_mega,
    header.desktop-head .dropdown_mega_two {
        padding: 10px;
        display: none;
        flex-wrap: nowrap !important;
        gap: 10px;
    }

    header.desktop-head .dropdown-nav.active .dropdown_mega,
    header.desktop-head .dropdown-nav.active .dropdown_mega_two {
        display: block !important;
    }

    header.desktop-head .dropdown_mega ul,
    header.desktop-head .dropdown_mega .first_ul,
    header.desktop-head .dropdown_mega .second_menu_ul,
    header.desktop-head .dropdown_mega_two ul,
    header.desktop-head .dropdown_mega_two .first_ul,
    header.desktop-head .dropdown_mega_two .second_menu_ul {
        width: 100% !important;
        display: block;
    }

    header.desktop-head .dropdown_mega .first_ul,
    header.desktop-head .dropdown_mega_two .first_ul {
        margin-bottom: 10px;
        border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    header.desktop-head .dropdown_mega ul li a,
    header.desktop-head .dropdown_mega_two ul li a {
        font-size: 13px !important;
        padding: 12px 14px !important;
    }
}

@media (max-width: 767px) {
    header.desktop-head .main-header {
        padding: 12px 0;
    }

    header.desktop-head .logo img {
        max-width: 110px;
    }

    header.desktop-head .main-header .col-md-3 {
        padding-right: 50px;
    }

    ul.header-cta-new li a {
        font-size: 14px;
    }

    .menuWrap {
        padding: 95px 14px 24px;
    }

    .menuWrap .menu > li > a {
        padding: 16px 52px 16px 16px !important;
        font-size: 16px;
    }

    header.desktop-head .dropdown_mega,
    header.desktop-head .dropdown_mega_two {
        padding: 10px;
    }

    header.desktop-head .dropdown_mega ul,
    header.desktop-head .dropdown_mega .first_ul,
    header.desktop-head .dropdown_mega .second_menu_ul,
    header.desktop-head .dropdown_mega_two ul,
    header.desktop-head .dropdown_mega_two .first_ul,
    header.desktop-head .dropdown_mega_two .second_menu_ul {
        width: 100% !important;
    }

    header.desktop-head .dropdown_mega ul li a,
    header.desktop-head .dropdown_mega_two ul li a {
        font-size: 13px !important;
        padding: 12px 14px !important;
    }
}

@media (max-width: 1200px) {
    .menu-Bar {    
        right: 20px;
    }
}

/* =========================
   SITE-WIDE FIXED SHRINK HEADER
   ========================= */
html {
    scroll-padding-top: var(--tac-header-height, 118px);
}

body.tac-fixed-header {
    padding-top: var(--tac-header-height, 118px);
}

body.tac-fixed-header header.desktop-head {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    transition: transform .28s ease, box-shadow .28s ease, background-color .28s ease;
}

body.tac-fixed-header header.desktop-head .main-header {
    background: rgba(13, 13, 13, .98) !important;
    border-bottom: 1px solid rgba(201, 168, 76, .22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    transition: padding .28s ease, min-height .28s ease, box-shadow .28s ease, background-color .28s ease;
}

body.tac-fixed-header header.desktop-head .main-header .row {
    transition: min-height .28s ease;
}

body.tac-fixed-header header.desktop-head .logo img {
    width: auto;
    max-width: 135px;
    max-height: 108px;
    transition: max-width .28s ease, max-height .28s ease, transform .28s ease;
}

body.tac-fixed-header header.desktop-head .main-header ul.menu > li > a,
body.tac-fixed-header header.desktop-head ul.header-cta-new li a {
    transition: padding .28s ease, font-size .28s ease, line-height .28s ease, color .28s ease;
}

body.tac-header-scrolled header.desktop-head .main-header {
    padding: 4px 0 !important;
    background: rgba(13, 13, 13, .99) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

body.tac-header-scrolled header.desktop-head .logo img {
    max-width: 86px !important;
    max-height: 64px !important;
}

body.tac-header-scrolled header.desktop-head .main-header ul.menu > li > a {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    font-size: 15px;
    line-height: 1.2;
}

body.tac-header-scrolled header.desktop-head ul.header-cta-new li a {
    font-size: 17px;
    line-height: 1.1;
}

@media (max-width: 1200px) {
    body.tac-fixed-header header.desktop-head .logo img {
        max-width: 120px;
        max-height: 82px;
    }

    body.tac-header-scrolled header.desktop-head .main-header {
        padding: 6px 0 !important;
    }

    body.tac-header-scrolled header.desktop-head .logo img {
        max-width: 82px !important;
        max-height: 54px !important;
    }

    body.tac-header-scrolled .menuWrap {
        padding-top: 86px;
    }
}

@media (max-width: 767px) {
    body.tac-fixed-header header.desktop-head .logo img {
        max-width: 104px;
        max-height: 72px;
    }

    body.tac-header-scrolled header.desktop-head .logo img {
        max-width: 76px !important;
        max-height: 48px !important;
    }

    body.tac-header-scrolled header.desktop-head ul.header-cta-new li a {
        font-size: 13px;
    }
}

/* Light redesigned pages already include their own top spacing under the header. */
body.tac-fixed-header:has(main.home-light-version),
body.tac-fixed-header:has(main.bookx-page) {
    padding-top: 0;
}
