
/***** Header *****/
header {
    font-family: Kanit;
    position: fixed;
    top: 0px;
    z-index: 3;
    width: 100%;
    padding-top: 20px;
}

header.scrolled {
    box-shadow: 0 4px 24px 0 rgba(33, 40, 47, .05);
}

header .container {
    display: flex;
    width: 1440px;
}

header #logo_container {
    width: 100%;
    float: left;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    margin-right: 32px;
}

header #logo_container a {
    display: flex;
    align-items: center;
}

header.scrolled #logo {
    opacity: 0;
    position: absolute;
}

header #logo_container img{
	max-width: 400px;
}

header.is-sticky #logo{
    display: none;
}

header.is-sticky #logo_mobile{
    display: block;
}

header.is-sticky .mobile li a{
    color: #323232;
}

header #site_logo_sticky {
    transition-duration: 0;
    opacity: 0;
    position: absolute;
    transition-delay: 0;
}

header.scrolled #site_logo_sticky {
    position: static;
    opacity: 1;
    transition-duration: 0.5s;
    transition-delay: 0.5s; 
}

header .mobile {
    display: none;
    background: #fff;
    border-radius: 8px;
    margin: 10vh auto;
    overflow: hidden;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 2;
    padding-top: 80px;
    margin-top: 0;
}

header .mobile .mobile-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 20px;
}

header .mobile .mobile-controls button {
    background: none;
    border: 1px solid #404041;
    border-radius: 8px;
    color: #fff;
    height: 40px;
    padding: 0 15px;
    margin: 10px 15px;
}

header .mobile .mobile-menu {
     display: none;
     height: 100%;
     left: 0;
     position: absolute;
     width: 100%;
     z-index: 10;
}

header .mobile ul {
     margin: 0;
     padding: 0;
     width: 100%;
     position: absolute;
     transition: 0.25s;
}

header .mobile li {
    display: flex;
}

header .menu-item {
    margin: 0 28px;
}

header .menu-item a {
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    text-decoration: none;
    transition-duration: 0.75s;
}

header.scrolled .menu-item a {
    color: #21282F;
    transition-duration: 0.75s;
}

header .cta_button.menu-item a {
    transition-duration: 0.75s;
}

header.scrolled .cta_button.menu-item a {
    color: #0A2134;
    background: linear-gradient(94deg, #FF9461 17.37%, #FF7533 90.35%);
    color: var(--Base-Black, #000);
    font-family: Kanit;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    border-radius: 24px;
    transition-duration: 0.75s;
}

header.scrolled .cta_button.menu-item a:hover {
    text-decoration: none;
    background-color: #22404D;
    color: #fff !important;
}

header.scrolled .hamburger .line {
    background-color: #22404D;
}

header .menu_open header.scrolled #logo {
    opacity: 1;
    position: static;
}

header .hamburger {
    position: relative;
    z-index: 4;
}

header .hamburger .line {
    width: 32px;
    height: 3px;
    background-color: #323232;
    display: block;
    margin: 8px auto;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

header .hamburger:hover {
    cursor: pointer;
}

header .hamburger.is-active .line:nth-child(2) {
    opacity: 0;
}

header .hamburger.is-active .line:nth-child(1) {
    -webkit-transform: translateY(11px) rotate(44deg);
    -ms-transform: translateY(11px) rotate(44deg);
    -o-transform: translateY(11px) rotate(44deg);
    transform: translateY(11px) rotate(44deg);
}

header .hamburger.is-active .line:nth-child(3) {
    -webkit-transform: translateY(-13px) rotate(-45deg);
    -ms-transform: translateY(-13px) rotate(-45deg);
    -o-transform: translateY(-13px) rotate(-45deg);
    transform: translateY(-13px) rotate(-45deg);
}

header .mobile.open {
    display: block;
}

header .mobile button:hover {
    cursor: pointer;
}

header .mobile .mobile-controls .back-button {
    display: none;
    align-items: center;
    flex: 1;
	background-color: transparent;
    background-image: url('/wp-content/themes/teba-child/includes/menus/back-arrow.svg');
    background-repeat: no-repeat;
    background-size: 10px;
    background-position: left;
    text-align: right;
    padding: 7.5px 15px;
    border: 0;
}

header .mobile .mobile-controls .back-button span{
	color: var(--TraceMatics-Primary-Gray-400, #404041);
	font-family: Kanit;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px;
	margin-left: 10px;
}

header .mobile .mobile-controls .back-button .fa:before, .fa:before{
	display: none;
	font-size: 14px;
}

header .mobile .fa-chevron-right {
	display: none;
    color: #21282F;
}

header .mobile li.cta_button {
    border-bottom: 0 none;
    padding-right: 0;
    margin-right: 0;
}

header .mobile li button {
	flex: 1;
	background-color: transparent;
    background-image: url('/wp-content/themes/teba-child/includes/menus/menu-arrow.svg');
    background-repeat: no-repeat;
    background-size: 24px;
    background-position: right;
    text-align: right;
    padding: 7.5px 15px;
    border: 0;
}

header .mobile li:hover > button {
    color: #fff;
}

header .mobile li button .fa:before{
	color: #131313;
	font-size: 14px;
}

header .mobile div > ul {
    top: 0;
    left: 0;
}

header .mobile div > ul ul {
    display: none;
    top: 0;
    left: 100%;
}

header .cta_button.menu-item a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    background: #FCBF14;
    color: #000;
    font-family: Kanit;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 13px 36px;
    border-radius: 8px;
}

header .cta_button.menu-item a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0;
    background: #fff;
    transition: height 0.35s ease;
    z-index: -1;
}

header .cta_button.menu-item:hover > a::before {
    height: 100%;
}

header .cta_button.menu-item:hover > a {
    background-color: #fff;
    color: #000 !important;
}

header.is-sticky .cta_button.menu-item a::before {
    background: #14133b;
}

header.is-sticky .cta_button.menu-item:hover > a {
    background-color: #14133b;
    color: #fff !important;
}



header .header_overlay {
    position: absolute;
    transform: translateY(-200px);
    transition-duration: 0.75s;
    background-color: #fff;
    width: 100%;
    height: 100%;
    left: 0;
}

header.scrolled .header_overlay {
    position: absolute;
    transform: translateY(0);
    transition-duration: 0.75s;
    background-color: #fff;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: -1;
}

header .menu_cta_container{
    display: flex;
    align-items: center;
}

header .search_icon:hover{
    cursor: pointer;
}

header .cta_menu {
    display: flex;
    list-style-type: none;
    padding-left: 24px;
}

header .cta_menu .menu-item{
    margin: 0 8px;
}

header .cta_menu .menu-item.hide{
    display: none;
}

header .cta_menu .primary{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(94deg, #FF9461 17.37%, #FF7533 90.35%);
    border: 2px solid transparent;
    border-radius: 30px;    
}

header .cta_menu .primary a{
    color: var(--Base-Black, #000);
    font-family: "IBM Plex Sans Bold";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; 
    padding: 12px 32px;
}

header .cta_menu .primary:hover{
    background: #000;
}

header .cta_menu .primary:hover > a{
    color: #fff;
}

header .cta_menu .secondary{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: transparent;
    border: 2px solid #FF7533;
    border-radius: 30px;  
}

header .cta_menu .secondary a{
    color: var(--Base-Black, #000);
    font-family: Kanit;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; 
    padding: 12px 32px;
}

header .cta_menu .secondary:hover{
    background: linear-gradient(94deg, #FF9461 17.37%, #FF7533 90.35%);
}


@media only screen and (min-width: 768px) {

    header .mobile {
        padding-top: 120px;
    }

}

@media only screen and (min-width: 1201px) {

    header {
        padding-bottom: 10px;
    }

    header #logo_container {
        max-width: fit-content;
        padding-bottom: 10px;
    }

       header .mobile {
        width: auto;
        position: static;
        display: block;
        height: auto;
        background-color: transparent;
        padding-top: 0;
        margin: 0 auto;
        margin-left: auto;
        overflow: visible;
        margin-right: 0;
    }

    header .mobile .mobile-controls,
    header .hamburger {
        display: none;
    }

    header .mobile .mobile-menu {
        display: flex;
        height: 100%;
        position: static;
    }

    header .menu {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    header .mobile ul {
        position: static;
    }

    header .mobile li {
        height: 100%;
        background-color: transparent;
        border: 0 none;
        white-space: nowrap;
        position: relative;
        margin: 0 16px;
        display: flex;
        align-items: center;
    }

    header .mobile li:hover {
        background-color: transparent;
        z-index: 2;
    }

    header .mobile li.cta_button {
        margin-left: 32px;
    }

    header .mobile li:hover > ul {
        display: block;
        position: absolute;
        top: 32px;
        left: 0;
        background-color: #fff;
        width: 100%;
        min-width: 200px;
        padding: 16px 0;
    }

    header .mobile li.menu-item li.menu-item:hover > ul {
        top: -17px;
        left: calc(100% + 1px);
    }

    header .mobile li.menu-item li.menu-item button {
        transform: rotate(0deg) scale(1);
    }

    header .mobile li.menu-item li.menu-item li.menu-item a {
        padding-bottom: 0;
    }

    header .mobile li:hover > a {
        color: #0A2134;
    }

    header .mobile li.menu-item li.menu-item li.menu-item button {
        transform: rotate(90deg) scale(1);
    }

    header .mobile li a {
        flex: auto;
        color: #FFF;
        font-family: Kanit;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    header .mobile li a:hover{
    	color: #fff;
    }

    header .menu-item a{
        padding-bottom: 5px;
    }

    header .menu-item.current_page_item a {
        border-bottom: 2px solid #FF5200;
        max-width: fit-content;
    }

    header .menu-item.current_page_item .sub-menu a{
        border-bottom: none;
    }

    header .primary.menu-item.current-menu-item a,
    header .secondary.menu-item.current-menu-item a{
        border-bottom: 2px solid transparent;
    }

    header .mobile li button {
        transform: rotate(90deg) scale(1);
        position: absolute;
        top: 12px;
        right: -10px;
    }

    header .mobile li button.arrow {
        position: relative;
        top: 0px;
        right: -8px;
        padding: 0;
    }

    header .mobile li .sub-menu button.arrow {
        right: -7px;
    }

    header .mobile li .sub-menu button.arrow .fa-chevron-right:before {
        color: #0095A9;
    }

    header .mobile ul.sub-menu {
        background-color: #fff !important;
        padding: 0px;
        border-radius: 0px;
    }

    header .mobile ul.sub-menu li {
        padding: 4px 16px;
        margin: 0;
    }

    header .mobile li:hover > ul {
        display: block;
        min-width: 250px;
        background-color: rgba(117, 188, 34, 0.75);
        padding-top: 15px;
        padding-bottom: 15px;
        top: 66px;
        left: -10px;
    }

    header .mobile ul.sub-menu li a{
     	color: #404041;
    }

    header .mobile li.level-2:hover > ul {
        top: 0;
        left: 100%;
    }

    header .mobile li.level-2 button {
        transform: rotate(0deg) scale(1);
    }

    header .mobile li.level-3 {
        padding-bottom: 0;
    }

    header .mobile li.level-3 a {
        padding-bottom: 0;
    }

    header .mobile li.level-3 button {
        transform: rotate(90deg) scale(1);
    }

    header .new.menu-item a{
        position: relative;
    }

    header .menu-item {
      position: relative;
      text-decoration: none; 
      color: inherit;        
    }

    header .menu-item:hover::after {
      width: 100%;
    }

    header .primary.menu-item:after,
    header .secondary.menu-item:after,
    header .current-menu-item:after,
    header .sub-menu .menu-item::after{
        display: none;
    }


}

@media only screen and (max-width: 1340px) {

    header .mobile {
       margin-left: 0px;
    }

}

@media only screen and (max-width: 1280px) {

    header .container {
        max-width: calc(100% - 80px);
        padding: 0 40px;
    }

    header #logo_container img {
        max-width: 200px;
    }

}

@media only screen and (max-width: 1200px) {
   
    header .container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    header #logo_container {
        display: flex;
        justify-content: center;
    }

    header .menu {
        align-items: center;
        justify-content: center;
    }

    header .mobile ul.top-menu{
        margin: 30px;
        margin-bottom: 15px;
    }

    header .menu_cta_container{
        order: 1;
    }

    header .hamburger {
        order: 2;
        margin-left: 20px;
    }

}

@media only screen and (max-width: 1200px) {

	   header {
	    padding-bottom: 10px;
	    border-bottom: 3px solid var(--TraceMatics-Primary-Yellow-400, #FCBF14);
	    background: var(--Base-White, #FFF);
	}

    header .container {
        flex-direction: row;
    }

    header #logo_container {
        justify-content: flex-start;
    }

    header .mobile ul.top-menu{
        margin: 0;
    }

    header .menu-item {
        text-align: left;
        margin: 0px 10px;
    }
    
	header .mobile li a {
	    color: var(--TraceMatics-Primary-Gray-400, #404041);
	    font-family: Kanit;
	    font-size: 20px;
	    font-style: normal;
	    font-weight: 400;
	    line-height: 24px;
	    flex: 3;
	    text-align: left;
	    text-decoration: none;
	    padding: 15px;
	    padding-left: 0;
	}

	header .mobile li.btn-nav{
		margin-top: 50px;
	}

	header .mobile li.btn-nav a{
		text-align: center;
		padding: 12px 0;
	}

    header .mobile li.cta_button {
        max-width: 90%;
        margin: 0 auto;
    }

    header .cta_button.menu-item a {
        max-width: 300px;
        margin: 20px auto;
    }

    header.scrolled .menu-item a {
        color: #fff;
    }

    header .menu-cta-menu-container{
        display: none;
    }

    .menu_open .header_container{
        height: 100vh;
    }

	   .menu_open header #logo_container {
	    z-index: 3;
	    position: absolute;
	    top: 32px;
	    left: 16px;
	    max-width: fit-content;
	}

	  .menu_open header .menu-item {
	    width: 100%;
	    max-width: 90%;
	    margin: 0 auto;
	    border-bottom: 1px solid #D9D9D9;
	}

    .menu_open .search_icon {
        position: absolute;
        top: 25px;
        right: 93px;
    }

    .menu_open header .menu_cta_container {
        display: flex;
        width: 100%;
        margin-top: auto;
        margin-bottom: 10%;
        z-index: 2;
    }

    .menu_open header .cta_menu {
        display: flex;
        list-style-type: none;
        padding-left: 24px;
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 0;
        position: absolute;
        bottom: 0;
        height: auto;
        height: 200px;
        margin-top: auto;
        margin-bottom: 35vh;
    }

    .menu_open .menu-cta-menu-container{
        width: 100%;
    }

    .menu_open header .cta_menu .menu-item {
        width: 100%;
        margin: 6px 0;
    }

    .menu_open header .cta_menu .menu-item a {
        text-align: center;
        margin: 0 auto;
    }

    .menu_open header .hamburger {
        position: absolute;
        top: 20px;
        right: 16px;
    }

    .menu_open header .hamburger .line{
        width: 35px;
        height: 4px;
    }

    .menu_open header.scrolled .menu-item a {
        color: #21282F;
    }

}

@media only screen and (max-width: 991px) {

    header .hamburger .line {
        background-color: #000;
    }

    header .container {
	    max-width: calc(100% - 32px);
	    justify-content: space-between;
	    padding: 0;
	}

}


@media only screen and (max-width: 767px) {

    #logo{
        max-width: 100px;
    }

    header.scrolled .menu-item a {
        color: #21282F;
    }

    header.scrolled .cta_button.menu-item a {
        color: #0A2134;
        border: 3px solid var(--german-uds-primary-orange-700, #fff);
        transition-duration: 0.75s;
    }

}


#logo_mobile{
            display: none;
}

@media only screen and (max-width: 1200px) {

	#logo{
		display: none;
	}

	#logo_mobile{
	            display: block;
	}

}



















/* Mega Menu */
    @media only screen and (max-width: 1200px) {
        .services_mega_menu {
            display: none !important;
        }

        header .btn-nav a {
            text-align: center;
        }

        /* Mobile: hide dummy wrapper labels, keep their children visible */
        #menu_v1 .column-wrapper > a,
        #menu_v1 .column-wrapper > .arrow {
            display: none !important;
        }

        #menu_v1 .column-wrapper > .sub-menu {
            display: block !important;
            position: static !important;
            opacity: 1 !important;
            visibility: visible !important;
            height: auto !important;
            left: 0 !important;
        }

        #menu_v1 .column-wrapper {
            border-bottom: none !important;
            margin: 0 !important;
            width: 100% !important;
        }

        #menu_v1 .column-wrapper > .sub-menu > li {
            width: 100% !important;
        }
    }

    @media only screen and (min-width: 1201px) {

        .sub-menu {
            display: none !important;
        }

        header .btn-nav {
            display: inline-block;
            margin-left: 50px !important;
        }

        header .btn-nav a {
            color: #323232 !important;
        }

        header .btn-nav a:hover {
            color: #323232 !important;
            z-index: 2;
        }

        .mega_menu.menu-item {
            background-image: url(/wp-content/themes/teba-child/includes/menus/down-arrow.png);
            background-size: 20px;
            background-repeat: no-repeat;
            background-position: right;
            padding-right: 24px;
        }

        header.is-sticky .mega_menu.menu-item {
            background-image: url(/wp-content/themes/teba-child/includes/menus/down-arrow-dark.png);
        }

        .services-column li span {
            display: block;
            min-width: 250px;
        }

        header .menu-item {
            transition: opacity 0.25s ease;
        }

        header.mega-menu-active .menu-item {
            opacity: 0.45;
        }

        header.mega-menu-active .menu-item.active-mega-item,
        header.mega-menu-active .menu-item:hover {
            opacity: 1;
        }
    }

    header {
        z-index: 10000;
        transition: background 0.3s ease, box-shadow 0.3s ease;
    }

    header.is-sticky {
        background: #FFF;
        box-shadow: 0 4px 17.5px 0 rgba(0, 0, 0, 0.20);
    }

    .services_mega_menu {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        gap: 20px;
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;
        position: fixed;
        left: 0;
        right: 0;
        z-index: 9999;
        padding: 24px;
        border-radius: 8px 8px 0 0;
        border-bottom: 2px solid #FCBF14;
        background: #FFF;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    }

    .services_mega_menu.show {
        display: flex;
    }

    .megamenu_overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(76, 48, 65, 0.6);
        z-index: 9998;
    }

    .megamenu_overlay.active {
        display: block;
    }

    .services_mega_menu .container {
        display: flex;
        width: 1200px;
        max-width: 100%;
        padding: 0;
        margin: 0;
        align-items: stretch;
    }

    .services_mega_menu .container:last-child {
        gap: 16px;
    }

    .services_mega_menu h2 {
        width: 100%;
        margin-bottom: 24px;
    }

    .services_mega_menu h2 a {
        color: #5B5B5B;
        font-family: Kanit;
        font-size: 28px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        text-decoration: none;
        position: relative;
    }

    .services_mega_menu h2::after {
        content: '';
        display: inline-block;
        width: 24px;
        height: 24px;
        background-image: url('/wp-content/themes/matrixinternet2023/images/menu-arrow-right.svg');
        background-size: contain;
        background-repeat: no-repeat;
        margin-left: 16px;
        vertical-align: middle;
    }

    .services-column {
        flex: 1 1 0;
        min-width: 0;
        border-right: 1px solid #D9D9D9;
        padding-right: 24px;
        margin-right: 0;
        display: flex;
        flex-direction: column;
    }

    .services-column:last-child {
        border-right: none;
        padding-right: 0;
    }

    .services-column h4 {
        color: #5B5B5B;
        font-family: Kanit;
        font-size: 16px;
        font-weight: 400;
        line-height: normal;
        text-transform: uppercase;
        margin: 0 0 16px;
    }

    .services-column h4 a {
        color: #5B5B5B;
        text-decoration: none;
    }

    .services-column ul {
        list-style: none;
        padding-left: 0;
        margin: 0;
    }

    .services-column li {
        margin-bottom: 12px;
    }

    .services-column li a {
        color: #323232;
        font-family: Kanit;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .services-column li a:hover {
        text-decoration: underline;
    }

    .services-column li span {
        display: block;
        margin-top: 4px;
        color: #5B5B5B;
        font-family: Kanit;
        font-size: 14px;
        line-height: 1.4;
    }

    .services-column li span.menu-item-description {
        color: #323232;
        font-family: Kanit;
        font-size: 12px;
        font-style: normal;
        font-weight: 300;
        line-height: normal;
    }

    .services-column .menu_image {
        position: relative;
        width: 178px;
        height: 213px;
        max-width: 100%;
        margin-top: 0;
    }

    .services-column .menu_image img.image_bg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .services-column .menu_image .menu_image_text {
        position: absolute;
        bottom: 0;
        padding: 24px;
    }

    .services-column .menu_image .menu_image_text a {
        display: block;
        color: #FFF;
        font-family: Kanit;
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        margin-top: 12px;
        text-decoration: none;
    }

    .services-column .mega-sub-list {
        list-style: none;
        padding-left: 0;
        margin: 8px 0 0 0;
    }

    .services-column .mega-sub-list li {
        margin-bottom: 4px;
    }

    .services-column .mega-sub-list li a {
        font-size: 16px;
        line-height: 1.6;
    }

    .services-column .mega-menu-item.depth-1 {
        margin-top: 4px;
        padding-left: 0;
    }

    .services-column .mega-menu-item.depth-1 a {
        font-weight: 400;
    }

    .services-column .mega-heading {
        color: #5B5B5B;
        font-family: Kanit;
        font-size: 16px;
        font-weight: 400;
        line-height: normal;
        text-transform: uppercase;
        margin: 0 0 16px;
    }
