body.turbo-hide-theme-header header.appstechy-custom-header {
    display: block !important;
}

.appstechy-custom-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    font-family: 'Montserrat', 'Lato', sans-serif;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.error404 .appstechy-custom-header {
	position: relative;
}
.appstechy-custom-header *,
.appstechy-custom-header *::before,
.appstechy-custom-header *::after {
    box-sizing: border-box;
}

/* ── TOP BAR STYLES ── */
.appstechy-top-bar {
    background-color: #272222;
    color: #ffffff;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    max-height: 50px;
}

.appstechy-header-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.appstechy-top-bar-left,
.appstechy-top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.appstechy-top-bar-left .top-bar-text {
	text-decoration: underline;
}

.top-bar-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease;
	font-size: 12px;
	line-height: 30px;
	font-weight: 400;
	font-family: "Lato", Sans-serif;
}

.top-bar-item:hover {
    color: #fff;
}

.top-bar-icon {
	display: inline-flex;
	align-items: center;
	color: #fff;
	width: 16px;
	height: 16px;
}

/* ── MAIN HEADER STYLES ── */
.appstechy-main-header {
    background-color: transparent;
    padding: 20px 0;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.appstechy-logo-col {
    flex: 0 0 auto;
}

.appstechy-logo-img {
    max-height: 78px;
    display: block;
    transition: height 0.3s ease, width 0.3s ease;
}

.appstechy-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 1px;
}

.appstechy-menu-col {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 30px;
}

/* ── DESKTOP NAVIGATION ── */
.appstechy-desktop-nav {
    display: block;
}

.appstechy-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
}

.appstechy-nav-menu>li {
    position: relative;
    padding: 10px 0;
}

.appstechy-nav-menu a {
    text-decoration: none;
    color: #444 !important;
    font-size: 14px;
    line-height: 30px;
    font-weight: 500;
    font-family: "Montserrat", Sans-serif;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.appstechy-nav-menu li:hover a,
.appstechy-nav-menu .current-menu-item>a {
    color: #0176ab !important;
}

/* Dropdown styling */
.appstechy-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f4f4f4;
    min-width: 220px;
    box-shadow: 0 10px 30px 0 rgba(45,45,45,.2);
    border-radius: 0;
    border: 1px solid #dadada;
    padding: 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
     display: grid;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
}

.appstechy-nav-menu li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.appstechy-nav-menu .sub-menu li {
    position: relative;
}

.appstechy-nav-menu .sub-menu a {
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
  display: block;
  color: #000000 !important;
  background: transparent;
  text-transform: none;
  padding: 6px 10px;
  letter-spacing: 1px;
  font-family: "Montserrat", Sans-serif;
}

.appstechy-nav-menu .sub-menu a:hover {
    background-color: transparent;
    color: #707070 !important;
}

/* ── CTA BUTTON ── */
.appstechy-cta-col {
    flex: 0 0 auto;
}

.appstechy-cta-btn {
  font-family: "Montserrat", Sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 0px 0px 0px 0px;
  background: linear-gradient(144deg, #0176ab 0%, #575756 100%);
  line-height: 42px;
  padding: 0;
  border: none;
  width: 130px;
  height: 40px !important;
  color: #fff !important;
  padding: 0 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5), 7px 7px 20px 0px rgba(0,0,0,.1), 4px 4px 5px 0px rgba(0,0,0,.1) !important;
  outline: none;
  text-decoration: none;
  fill: #fff;
  text-align: center;
}
.appstechy-cta-btn::after, 
.appstechy-cta-btn::before {
    position: absolute;
    content: "";
    right: 0;
    bottom: 0;
    background: #0176ab;
    box-shadow: -7px -7px 20px 0px rgba(255,255,255,.9), -4px -4px 5px 0px rgba(255,255,255,.9), 7px 7px 20px 0px rgba(0,0,0,.2), 4px 4px 5px 0px rgba(0,0,0,.3);
    transition: all 0.3s ease;
}
.appstechy-cta-btn::before {
	height: 0%;
	width: 2px;
}
.appstechy-cta-btn::after {
	width: 0%;
	height: 2px;
}
.appstechy-cta-btn:hover::before {
    height: 100%;
}
.appstechy-cta-btn:hover::after {
    width: 100%;
}
.appstechy-cta-btn .borderr-after::after, 
.appstechy-cta-btn .borderr-after::before {
    position: absolute;
    content: "";
    right: 0;
    bottom: 0;
    background: #0176ab;
    box-shadow: -7px -7px 20px 0px rgba(255,255,255,.9), -4px -4px 5px 0px rgba(255,255,255,.9), 7px 7px 20px 0px rgba(0,0,0,.2), 4px 4px 5px 0px rgba(0,0,0,.3);
    transition: all 0.3s ease;
}
.appstechy-cta-btn .borderr-after::after {
    width: 0%;
    height: 2px;
} 
.appstechy-cta-btn .borderr-after::before {
    height: 0%;
    width: 2px;   
}
.appstechy-cta-btn:hover .borderr-after::after {
    width: 100%;
} 
.appstechy-cta-btn:hover .borderr-after::before {
    height: 100%;
}
.appstechy-cta-btn .cta-btn-text::after, 
.appstechy-cta-btn .cta-btn-text::before {
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    background: #0176ab;
    box-shadow: -7px -7px 20px 0px rgba(255,255,255,.9), -4px -4px 5px 0px rgba(255,255,255,.9), 7px 7px 20px 0px rgba(0,0,0,.2), 4px 4px 5px 0px rgba(0,0,0,.3);
    transition: all 0.3s ease;
}
.appstechy-cta-btn .cta-btn-text::after {
    height: 2px;
    width: 0%;
}
.appstechy-cta-btn .cta-btn-text::before {
    width: 2px;
    height: 0%;
}
.appstechy-cta-btn:hover .cta-btn-text::after {
    width: 100%;
}
.appstechy-cta-btn:hover .cta-btn-text::before {
    height: 100%;
}


.appstechy-cta-btn:hover {
    background: transparent;
    color: #0176ab !important;
}

/* Toggle Menu Button (Mobile) */
.appstechy-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
}

.appstechy-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ── STICKY STATE RULES ── */
.appstechy-custom-header.has-sticky.sticky-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.appstechy-custom-header.has-sticky.sticky-active .appstechy-top-bar {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: none;
    opacity: 0;
}

.appstechy-custom-header.has-sticky.sticky-active .appstechy-main-header {
    background-color: #ffffff;
    padding: 12px 0;
}

.appstechy-custom-header.has-sticky.sticky-active .appstechy-logo-img {
    max-height: 78px;
}

/* ── MOBILE DRAWER STYLES ── */
.appstechy-mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.appstechy-mobile-drawer.is-active {
    left: 0;
}

.appstechy-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.appstechy-drawer-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.appstechy-drawer-header {
    padding: 20px;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.appstechy-drawer-logo {
    max-height: 40px;
}

.appstechy-drawer-close {
    background: none;
    border: none;
    padding: 0;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    color: #777777;
    transition: color 0.2s ease;
    box-shadow: none;
}
.appstechy-drawer-close:focus {
    background: transparent !important;
}
.appstechy-drawer-close:hover {
    color: #333333;
}

.appstechy-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.appstechy-mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.appstechy-mobile-nav-menu li {
    position: relative;
    border-bottom: 1px solid #f5f5f5;
}

.appstechy-mobile-nav-menu a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #333333;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.appstechy-mobile-nav-menu .sub-menu {
    list-style: none;
    padding-left: 15px;
    margin: 0;
    background-color: #fbfbfb;
}

.appstechy-mobile-nav-menu .sub-menu a {
    text-transform: none;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
}

.appstechy-mobile-contact {
    margin-top: 20px;
    border-top: 1px solid #eeeeee;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 14px;
    color: #555555;
}

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

.mobile-contact-item svg {
    color: #0176ab;
}

/* ── CUSTOM POPUP MODAL STYLES ── */
.appstechy-custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.3s step-end;
}

.appstechy-custom-modal.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 99999;
    pointer-events: auto;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s;
}

.appstechy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
}

.appstechy-modal-container {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 800px;
    max-width: 90%;
    overflow: hidden;
    z-index: 10;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.appstechy-custom-modal.is-active .appstechy-modal-container {
    transform: scale(1);
}

.appstechy-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 12;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.appstechy-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.appstechy-modal-content {
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.appstechy-modal-logo {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    flex: 0 0 auto;
    padding-top: 20px;
}

.appstechy-modal-logo img {
    height: auto;
    max-width: 150px;
    display: inline-block;
}

.appstechy-modal-content iframe {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    border: none;
}

.appstechy-modal-placeholder {
    padding: 50px 30px;
    text-align: center;
    font-size: 16px;
    color: #666666;
    flex: 1;
}
#tahefobu-header.tahefobu-ready {
	top: 0 !important;
}
.appstechy-top-bar-left {
	padding-left: 10px;
}

.appstechy-drawer-close svg {
	width: 15px;
	height: 15px;
}
.appstechy-nav-menu a .ast-header-navigation-arrow {
	width: 15px;
	height: 15px;
	display: inline-block;
	margin-left: 10px;
    position: relative;
}
.appstechy-nav-menu a .ast-header-navigation-arrow::after {
    content: "";    
    width: 10px;
    height: 10px;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    transform: rotate(45deg);
    display: block;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: color 0.2s ease;
}
.appstechy-nav-menu li:hover a .ast-header-navigation-arrow::after {
    border-right: 1px solid #0176ab;
    border-bottom: 1px solid #0176ab;
}
.appstechy-nav-menu li:hover .sub-menu .menu-link {
	color: #000 !important;
}
.appstechy-nav-menu li:hover .sub-menu .menu-link:hover {
	color: #707070 !important;
}
.appstechy-nav-menu .current-menu-item > a .ast-header-navigation-arrow::after {
    border-right: 1px solid #0176ab;
    border-bottom: 1px solid #0176ab;
}

/* Mega menu css */
.appstechy-nav-menu > li.mega-menu .sub-menu {
	padding: 30px 20px;
	width: 900px;
	left: 50%;
	transform: translateX(-50%);
	margin-left: 100px;
	gap: 20px 10px;
    background: #fff url(/wp-content/uploads/2026/08/megamenu-bg-2-scaled-1.webp) no-repeat center center / cover;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1);
}
.appstechy-nav-menu > li.mega-menu .sub-menu::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 315px;
    z-index: 2;
    display: block;
    width: 16px;
    height: 16px;
    -webkit-transform: rotate(-45deg) translateY(1rem);
    -ms-transform: rotate(-45deg) translateY(1rem);
    transform: rotate(-45deg) translateY(1rem);
    border-radius: 0px;
    background: #fff;
    box-shadow: none;
}
.appstechy-nav-menu > li.mega-menu .sub-menu::after {
    content: "";
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    position: absolute;
    background-color: #FFFFFF;
    opacity: 0.78;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
    z-index: -1;
}
.appstechy-nav-menu > li.mega-menu .sub-menu li a {
	font-size: 14px;
	line-height: 22px;
	letter-spacing: normal;
	font-family: "Lato", Sans-serif;
    padding: 0;
    color: #444 !important;
}
.appstechy-nav-menu > li.mega-menu .sub-menu li a:hover {
    color: #0176AB !important;
}
/* Mega menu css */




/* ── RESPONSIVE RESPONSIVENESS ── */
@media (max-width: 1024px) {
    .appstechy-desktop-nav {
        display: none;
    }

    .appstechy-menu-toggle {
        display: flex;
    }
    .appstechy-menu-toggle:focus {
        background: transparent !important;
    }

    .appstechy-menu-col {
        padding: 0 15px;
    }

    .appstechy-top-bar {
        font-size: 12px;
    }

    .top-bar-item:not(.top-bar-office) {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .appstechy-top-bar {
        display: none;
        /* Hide top bar completely on mobile, it is packed in the drawer */
    }

    .appstechy-cta-col {
        display: none;
        /* Hide CTA button in main header, can trigger drawer instead or stack */
    }

    /* We show CTA inside drawer or keep it simple */
    .appstechy-main-header {
        padding: 15px 0;
    }

    .appstechy-logo-img {
        max-height: 40px;
        width: 80px !important;
    }

    .appstechy-modal-container {
        border-radius: 8px;
    }

    .appstechy-modal-content {
        height: 80vh !important;
        /* Force appropriate height on mobile screens */
    }
}
