/* HiTechCloud-inspired header/menu overrides */
.hitechcloud-header {
    --htc-primary: #e60000;
    --htc-primary-dark: #c40000;
    --htc-text: #1b2432;
    --htc-muted: #333333;
    --htc-border: #e8edf5;
    --htc-soft: #fff5f5;
    --htc-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    background: #ffffff;
}

.hitechcloud-header.transparent-header {
    position: relative !important;
    top: auto !important;
}

.hitechcloud-header .custom-container {
    max-width: 1280px;
}

.hitechcloud-header .tg-header__top {
    background: #ffffff !important;
    border-bottom: 1px solid var(--htc-border) !important;
    padding: 7px 0 !important;
}

.hitechcloud-header .tg-header__top .row {
    pointer-events: auto;
}

.hitechcloud-header .tg-header__top p,
.hitechcloud-header .tg-header__top li,
.hitechcloud-header .tg-header__top a {
    color: var(--htc-muted) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.35;
}

.hitechcloud-header .tg-header__top p {
    margin-bottom: 0;
}

.hitechcloud-header .tg-header__top strong {
    color: var(--htc-primary) !important;
}

.hitechcloud-header .tg-header__top ul,
.hitechcloud-header .tg-header__top .list-wrap {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: flex-end;
    margin-bottom: 0;
}

.hitechcloud-header .tg-header__top a:hover {
    color: var(--htc-primary) !important;
}

.hitechcloud-header .tg-header__area {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(232, 237, 245, 0.9) !important;
    box-shadow: none !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hitechcloud-header .tg-header__area.sticky-menu {
    background: #ffffff !important;
    border-bottom-color: transparent !important;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1) !important;
}

.hitechcloud-header .tg-header__area.sticky-menu .tgmenu__wrap,
.hitechcloud-header .tg-header__area.sticky-menu .tgmenu__nav,
.hitechcloud-header .tg-header__area.sticky-menu .tgmenu__navbar-wrap > ul > li > a {
    min-height: 66px !important;
}

.hitechcloud-header .tgmenu__wrap,
.hitechcloud-header .tgmenu__nav {
    min-height: 72px;
}

.hitechcloud-header .tgmenu__nav {
    align-items: center;
    flex-wrap: nowrap;
    gap: 24px;
    justify-content: flex-start;
}

.hitechcloud-header .tgmenu__nav .logo {
    flex: 0 0 auto;
    min-width: 150px;
}

.hitechcloud-header .tgmenu__nav .logo img {
    max-height: 44px;
    width: auto;
}

.hitechcloud-header .tgmenu__navbar-wrap {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.hitechcloud-header .tgmenu__navbar-wrap > ul.navigation {
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
    margin: 0;
}

.hitechcloud-header .tgmenu__navbar-wrap > ul > li {
    margin-inline-end: 0 !important;
}

.hitechcloud-header .tgmenu__navbar-wrap > ul > li > a {
    align-items: center !important;
    color: var(--htc-text) !important;
    display: flex !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    gap: 6px;
    line-height: 1.2;
    min-height: 72px !important;
    padding: 22px 8px !important;
    text-transform: none !important;
    white-space: nowrap;
}

.hitechcloud-header .tgmenu__navbar-wrap > ul > li > a svg,
.hitechcloud-header .tgmenu__navbar-wrap > ul > li > a img {
    max-height: 18px;
    width: auto;
}

.hitechcloud-header .tgmenu__navbar-wrap > ul > li:hover > a,
.hitechcloud-header .tgmenu__navbar-wrap > ul > li.active > a {
    color: var(--htc-primary) !important;
}

.hitechcloud-header .tgmenu__navbar-wrap > ul > li.menu-item-account > a {
    background: var(--htc-primary) !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 24px rgba(230, 0, 0, 0.22) !important;
    color: #ffffff !important;
    min-height: 40px !important;
    padding: 10px 18px !important;
}

.hitechcloud-header .tgmenu__navbar-wrap > ul > li.menu-item-account > a::after {
    color: currentColor !important;
}

.hitechcloud-header .tgmenu__navbar-wrap > ul > li.menu-item-account > a:hover {
    background: var(--htc-primary-dark) !important;
    color: #ffffff !important;
}

.hitechcloud-header .tgmenu__navbar-wrap > ul > li > .sub-menu {
    background: #ffffff !important;
    border: 1px solid var(--htc-border) !important;
    border-radius: 0 0 18px 18px !important;
    box-shadow: var(--htc-shadow) !important;
    display: grid;
    gap: 6px 10px;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    left: 50%;
    min-width: min(880px, calc(100vw - 48px));
    opacity: 0 !important;
    padding: 18px !important;
    pointer-events: none !important;
    top: 100%;
    transform: translateX(-50%) translateY(14px) !important;
    transform-origin: top center;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    visibility: hidden !important;
    z-index: 50;
}

.hitechcloud-header .tgmenu__navbar-wrap > ul > li > .sub-menu > li {
    border-radius: 14px;
    margin-inline-start: 0;
    text-align: start;
}

.hitechcloud-header .tgmenu__navbar-wrap > ul > li > .sub-menu > li > a {
    align-items: center !important;
    border-radius: 14px;
    color: #2b4a70 !important;
    display: flex !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    gap: 10px;
    line-height: 1.35;
    min-height: auto !important;
    padding: 12px 14px !important;
    text-transform: none !important;
    white-space: normal;
}

.hitechcloud-header .tgmenu__navbar-wrap > ul > li > .sub-menu > li:hover > a,
.hitechcloud-header .tgmenu__navbar-wrap > ul > li > .sub-menu > li.active > a {
    background: var(--htc-soft) !important;
    color: var(--htc-primary) !important;
    transform: none !important;
}

.hitechcloud-header .tgmenu__navbar-wrap > ul > li:hover > .sub-menu {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
    visibility: visible !important;
}

.hitechcloud-header .tgmenu__navbar-wrap ul .sub-menu .sub-menu {
    border-radius: 14px;
    box-shadow: var(--htc-shadow) !important;
    display: block;
    left: 101% !important;
    min-width: 260px;
    padding: 10px !important;
    top: 0 !important;
    transform: translateY(10px);
}

.hitechcloud-header .tgmenu__navbar-wrap ul .sub-menu .sub-menu li a {
    border-radius: 10px;
    padding: 10px 12px !important;
}

.hitechcloud-header .tgmenu__main-menu li.menu-item-has-children > a::after {
    color: currentColor !important;
    font-size: 12px;
    margin-inline-start: 5px;
}

.hitechcloud-header .tgmenu__action {
    flex: 0 0 auto;
    margin-inline-start: 0;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

.hitechcloud-header .tgmenu__action ul {
    gap: 10px;
    margin-inline-start: 0;
}

.hitechcloud-header .tgmenu__action ul li {
    margin-inline-start: 0;
}

.hitechcloud-header .tgmenu__action .header-search a,
.hitechcloud-header .tgmenu__action .header-language-switcher > a {
    align-items: center;
    border: 1px solid var(--htc-border);
    border-radius: 999px;
    color: var(--htc-text) !important;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    min-width: 40px;
    padding: 0 12px;
}

.hitechcloud-header .tgmenu__action .header-search a:hover,
.hitechcloud-header .tgmenu__action .header-language-switcher > a:hover {
    border-color: var(--htc-primary);
    color: var(--htc-primary) !important;
}

.hitechcloud-header .tgmenu__action .offCanvas-menu {
    display: none;
}

.hitechcloud-header .tgmenu__action ul .header-btn {
    display: block;
}

.hitechcloud-header .tgmenu__action ul .header-btn .btn {
    background: var(--htc-primary) !important;
    border: 1px solid var(--htc-primary) !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 24px rgba(230, 0, 0, 0.22) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 11px 18px !important;
}

.hitechcloud-header .tgmenu__action ul .header-btn .btn:hover {
    background: var(--htc-primary-dark) !important;
    border-color: var(--htc-primary-dark) !important;
    color: #ffffff !important;
}

.hitechcloud-header .tgmenu__action ul .header-btn.header-btn-two .btn.border-btn {
    background: #ffffff !important;
    box-shadow: none !important;
    color: var(--htc-primary) !important;
}

.hitechcloud-header .tgmenu__action ul .header-btn.header-btn-two .btn.border-btn:hover {
    background: var(--htc-primary) !important;
    color: #ffffff !important;
}

.hitechcloud-header .mobile-nav-toggler {
    border: 1px solid #ffd6d6;
    border-radius: 12px;
    box-shadow: none;
    color: var(--htc-primary) !important;
}

@media screen and (max-width: 1399px) {
    .hitechcloud-header .tgmenu__nav {
        gap: 16px;
    }

    .hitechcloud-header .tgmenu__navbar-wrap > ul > li > a {
        font-size: 14px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

@media screen and (max-width: 1199px) and (min-width: 992px) {
    .hitechcloud-header .tgmenu__nav {
        gap: 12px;
    }

    .hitechcloud-header .tgmenu__nav .logo {
        min-width: 130px;
    }

    .hitechcloud-header .tgmenu__navbar-wrap > ul > li > a {
        font-size: 13px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .hitechcloud-header .tgmenu__navbar-wrap > ul > li > .sub-menu {
        grid-template-columns: repeat(2, minmax(210px, 1fr));
        min-width: min(720px, calc(100vw - 32px));
    }
}

@media screen and (max-width: 991px) {
    .hitechcloud-header .tg-header__top {
        display: none;
    }

    .hitechcloud-header .tg-header__area {
        background: #ffffff !important;
        padding: 14px 0 !important;
    }

    .hitechcloud-header .tgmenu__wrap,
    .hitechcloud-header .tgmenu__nav {
        min-height: 52px;
    }

    .hitechcloud-header .tgmenu__nav {
        gap: 12px;
        justify-content: space-between;
    }

    .hitechcloud-header .tgmenu__nav .logo {
        min-width: 120px;
    }

    .hitechcloud-header .tgmenu__nav .logo img {
        max-height: 38px;
    }

    .hitechcloud-header .tgmenu__action {
        display: none !important;
    }

    .hitechcloud-header .mobile-nav-toggler {
        background: var(--htc-soft);
        display: flex;
        height: 44px;
        width: 44px;
    }
}
