/*
Theme Name: NDT Thai Service
Theme URI: https://freshdigital.co.th/web-design/
Template: hello-elementor
Author: Fresh Digital
Author URI: https://freshdigital.co.th/
Description: Theme for NDT Thai Service
Version: 1.0.0.1668417399
Updated: 2024-08-13 10:27:39

*/

html,
body {
    overflow-x: hidden;
}

#head-sticky,
#head-sticky .head-contact,
#head-sticky .elementor-widget-theme-site-logo img {
    transition: all 0.3s ease-out;
}

#head-sticky.head-sticky-active {
    background-color: #000000b2;
    box-shadow: 0px 32px 80px -32px rgba(0, 0, 0, 0.66)
}

#head-sticky.head-sticky-active .head-contact {
    display: none;
}

#head-sticky .head-contact > div {
    overflow: visible !important;
}

#head-sticky.head-sticky-active .elementor-widget-theme-site-logo img  {
    max-width: 50px;
}

header .header-button-cta .elementor-button {
    clip-path: polygon(10% 0%, 100% 0, 100% 100%, 0% 100%);
}


a.contact-detail {
    display: inline !important;
    color: inherit !important;
}

.wpml-ls-statics-shortcode_actions {
    background-color: transparent !important;
}

.wpml-ls-legacy-dropdown-click {
    width: auto !important;
    max-width: 100%;
}

.mobile-wpml-switcher .wpml-ls-legacy-dropdown-click {
    width: 6em !important;
    max-width: 100%;
    font-size: 14px;
}

.wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle {
    background: transparent !important;
    color: #fff !important;
    border: 0;
	gap: 5px;
}

.homepage-slider .swiper-slide-inner {
    width: 96% !important;
    max-width: var(--container-max-width) !important;
}

.homepage-slider .swiper-slide-contents {
    width: 100% !important;
    max-width: 350px !important;
}

.homepage-slider .elementor-swiper-button.elementor-swiper-button-prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3C!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--%3E%3Cpath fill='%23ffffff' d='M177.5 414c-8.8 3.8-19 2-26-4.6l-144-136C2.7 268.9 0 262.6 0 256s2.7-12.9 7.5-17.4l144-136c7-6.6 17.2-8.4 26-4.6s14.5 12.5 14.5 22l0 72 288 0c17.7 0 32 14.3 32 32l0 64c0 17.7-14.3 32-32 32l-288 0 0 72c0 9.6-5.7 18.2-14.5 22z'/%3E%3C/svg%3E");
    background-color: #ff0e0e78;
    background-repeat: no-repeat;
    background-size: 16px;
    background-position: center;
}

.homepage-slider .elementor-swiper-button.elementor-swiper-button-next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3C!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--%3E%3Cpath fill='%23fafafa' d='M334.5 414c8.8 3.8 19 2 26-4.6l144-136c4.8-4.5 7.5-10.8 7.5-17.4s-2.7-12.9-7.5-17.4l-144-136c-7-6.6-17.2-8.4-26-4.6s-14.5 12.5-14.5 22l0 72L32 192c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l288 0 0 72c0 9.6 5.7 18.2 14.5 22z'/%3E%3C/svg%3E");
    background-color: #ff0e0e78;
    background-repeat: no-repeat;
    background-size: 16px;
    background-position: center;
}

.homepage-slider .elementor-swiper-button.elementor-swiper-button-prev svg,
.homepage-slider .elementor-swiper-button.elementor-swiper-button-next svg {
    visibility: hidden;
}

.intro-tabs .elementor-tabs-wrapper {
    background-color: #F3F3F3;
}

.intro-tabs .elementor-tabs-wrapper > .elementor-tab-title {
    position: relative;
    text-align: center;
}

.intro-tabs .elementor-tabs-wrapper > .elementor-tab-title.elementor-active {
    font-weight: 900 !important;
    border-top: 2px solid #ff1313 !important;
}

.intro-tabs .elementor-tabs-wrapper > .elementor-tab-title:not(:last-of-type):before {
    content: "";
    display: inline-block;
    width: 2px !important;
    height: 30px !important;
    background-color: #dedede;
    position: absolute;
    top: 50%;
    right: 0 !important;
    transform: translateY(-50%);
}

.intro-tabs .elementor-tab-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 8px !important;
}

.homepage-slider .elementor-slide-button {
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    padding: 12px 35px !important;
    transition: all 0.3s ease-out;
}

.homepage-slider .elementor-slide-button:hover {
    transform: translateY(-8px);
}

.button-skew .elementor-button {
    position: relative;
    text-align: center;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

.section-content.services-homepage-list article {
    display: flex;
    background-color: #fff;
    clip-path: polygon(0 0, 90% 0%, 100% 50%, 100% 100%, 0% 100%);
    padding: 10px;
    margin-bottom: 20px;
    min-height: 50px;
    align-items: center;
    transition: all 0.3s ease-out;
}

.section-content.services-homepage-list article:hover {
    background-color: var( --e-global-color-accent );
    /* transform: scale(1.1); */
    transform: translateY(-8px);
    box-shadow: 0 0 0 #000;
}

.section-content.services-homepage-list article .entry-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--e-global-color-primary);
    line-height: 1;
    margin: 0;
}

.section-content.services-homepage-list article:hover .entry-title {
    color: #fff;
}

.section-content.services-homepage-list article .entry-title a {
    color: inherit;
}

.why-us-item {
    border: 1px solid #011837;
    border-top: 0;
    padding: 45px 30px 45px;
    transition: all 0.3s ease-out;
}

.why-us-item.style2 {
    border: 2px solid #011837;
    border-top: 0;
}

.why-us-item:hover {
    box-shadow: 0px 32px 80px -32px rgba(0, 0, 0, 0.4)
}

.why-us-item .elementor-icon-box-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 20px;
    margin-bottom: 25px;
    text-transform: uppercase;
    position: absolute;
    width: 100%;
    top: -23px;
    left: 0;
}

.why-us-item .elementor-icon-box-title:before {
    display: block;
    content: "";
    flex-grow: 1;
    border-top: 1px solid #011837;
}

.why-us-item .elementor-icon-box-title:after {
    display: block;
    content: "";
    border-bottom: 0;
    flex-grow: 10;
    border-top: 1px solid #011837;
}

.why-us-item.style2 .elementor-icon-box-title:before,
.why-us-item.style2 .elementor-icon-box-title:after {
    border-top: 2px solid #011837;
}

.why-us-item.style2 .elementor-icon-box-title:after {
    flex-grow: 1;
}

.about-intro {
    background-size: 50% 100% !important;
}

.logo-gallery .elementor-image-gallery .gallery {
    display: flex;
    flex-wrap: wrap;
}

.logo-gallery .elementor-image-gallery .gallery-item {
    max-width: 33.33% !important;
}

.cer-gallery .gallery-item img {
    box-shadow: 0 1px 7px 0 #0000003b;
    transition: all 0.3s ease-out;
}

.cer-gallery .gallery-item img:hover {
    box-shadow: 0px 32px 80px -32px rgba(0, 0, 0, 0.4)
}

.blog-grid-wrapper article {
    padding-bottom: 25px !important;
    border-bottom: 1px solid #b5b5b5;
}

.blog-grid-wrapper article .elementor-post__thumbnail,
.blog-grid-wrapper article .elementor-post__read-more {
    display: block;
    transition: all 0.4s ease;
}

.blog-grid-wrapper article:hover .elementor-post__thumbnail {
    box-shadow: 0px 32px 80px -32px rgba(0, 0, 0, 0.5);
}

.blog-grid-wrapper article .elementor-post__read-more:hover {
    transform: translateY(-8px);
}

.contact-sidebar {
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0% 100%);
}

.terms_list.terms-sidebar {
    list-style: none;
    padding: 0;
}

.terms_list.terms-sidebar > li {
    position: relative;
    font-weight: 700;
    background-color: #fff;
    color: var(--e-global-color-primary);
    padding: 10px 15px;
    border: 2px solid #cbcbcb;
    margin-bottom: 15px;
    transition: all 0.3s ease-out;
}

.terms_list.terms-sidebar > li:hover {
    transform: translateY(-8px);
}

.terms_list.terms-sidebar > li:after {
    content: '➝';
    position: absolute;
    top: 25%;
    right: 10px;
}

.terms_list.terms-sidebar > li a {
    display: block;
    color: inherit;
    width: 100%;
}

.service-box-wrap article {
    transition: all 0.3s ease-out;
}

.service-box-wrap article .elementor-post__thumbnail:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: #133da5;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 8;
    opacity: 0.5;
    transition: all 0.3s ease-out;
}

.service-box-wrap article:hover {
    box-shadow: 0px 32px 80px -32px rgba(0, 0, 0, 0.24);
}

.service-box-wrap article:hover .elementor-post__thumbnail:before {
    opacity: 0;
}

.service-box-wrap article .elementor-post__read-more {
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    padding: 9px 30px !important;
    transition: all 0.3s ease-out;
    background: var( --e-global-color-accent ) !important;
    color: #fff !important;
}

.service-box-wrap article .elementor-post__read-more:hover{
    transform: scale(1.1);
}

.project-item-wrap {
    position: relative;
    overflow: hidden;
}

.project-item-wrap .project-item-content {
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(180deg, #001337, transparent);
    padding: 15px;
    transform: translateX(-100%);
}

.project-item-wrap:hover .project-item-content {
    transform: translateX(0);
}

.homepage-tabs .e-n-tabs-heading {
    margin-top: 10px;
}

.homepage-tabs button.e-n-tab-title {
    clip-path: polygon(0 0, 90% 0%, 100% 50%, 100% 100%, 0% 100%);
}

.otgs-development-site-front-end {
    display: none !important;
}

.service-tab .premium-tabs-nav.vertical {
	background-color: #F7F7F7;
	padding: 1em 0em;
}
.service-tab .premium-content-wrap.premium-tabs-vertical {
	
}
.service-tab ul.premium-tabs-vertical li {
	background-color: #F7F7F7 !important;
	margin: 0.5em 2em !important;
}
.service-tab ul.premium-tabs-vertical li:hover {
	background-color: var(--e-global-color-primary) !important;
}

@media screen and (max-width: 767px) {
    .cer-gallery .gallery {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }
}

@media screen and (max-width: 559px) {
    .section-shape {
        clip-path: polygon(0 0, 100% 0, 100% 84%, 0% 100%);
        padding-bottom: 50px !important;
    }
}

@media screen and (min-width: 560px) {
    .section-shape {
        clip-path: polygon(0 0, 100% 0%, 85% 100%, 0% 100%);
        max-width: calc(100% - ((100% - 1140px) / 2)) !important;
    }

    .logo-gallery .elementor-image-gallery .gallery-item {
        max-width: 25% !important;
    }
}

@media screen and (min-width: 768px) { 
    .image-about-intro {
        position: absolute !important;
        height: 100%;
        width: 40vw;
        max-width: unset !important;
        right: -30%;
        top: 0;
        z-index: 0;
    }

    .image-about-intro img {
        width: 100%;
        height: 100% !important;
        object-fit: cover;
        object-position: center;
    }

    .why-us-item.style2 {
        width: calc((100% - 70px) / 3) !important;
    }

    .bg-h100 {
        background-size: 55% 100% !important;
    }

    .logo-gallery .elementor-image-gallery .gallery-item {
        max-width: 20% !important;
    }
    
    .shape-about-intro {
        clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    }
}

@media screen and (min-width: 1014px) {
    .service-box-wrap .elementor-posts-container.elementor-posts {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-box-wrap article.service {
        width: calc((100% - 60px) / 4);
    }
}

@media screen and (min-width: 1280px) {
    .section-shape {
        max-width: calc(100% - ((100% - 1280px) / 2)) !important;
    }

    .bg-h100 {
        background-size: 55% auto !important;
    }
}

