/*
Theme Name: HACOSNC
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Fresh Digital
Author URI: https://freshdigital.co.th/
Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 3.4.9.1784255116
Updated: 2026-07-17 02:25:16

*/
html,
body {
    overflow-x: hidden;
}

body {
    max-width: 1920px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/***
* class: .sticky-header
*/
header.sticky-header {
    --header-height: 150px;
    --shrink-header-to: 0.6;
    --transition: all 0.2s ease-out;
    background-color: rgba(255, 255, 255, 1);
    transition: background-color var(--transition),
        backdrop-filter var(--transition),
        box-shadow var(--transition);
}

/***
* Sticky header activated
*/
header.sticky-header.elementor-sticky--effects {
    background-color: rgba(255, 255, 255, .8) !important;
    box-shadow: 0px 4px 33px 1px rgba(0, 0, 0, .07);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

header.sticky-header.elementor-sticky--effects .contact-btn {
    transition: all 0.3s ease-in-out;
    padding-top: 10px;
    padding-bottom: 10px;
}

header.sticky-header>.e-con-inner {
    min-height: var(--header-height);
    transition: min-height var(--transition);
}

header.sticky-header.elementor-sticky--effects>.e-con-inner {
    min-height: calc(var(--header-height) * var(--shrink-header-to));
}

/***
* Shorter header on mobile (70px instead of 100px)
*/
@media only screen and (max-width: 767px) {
    header.sticky-header {
        --header-height: 70px;
    }

    header.sticky-header.elementor-sticky--effects .logo img {
        max-width: 60px;
    }
}

/***
* class: .logo
*/
header.sticky-header .logo img {
    transition: var(--transition);
}

header.sticky-header.elementor-sticky--effects .logo img {
    transform: scale(.8);
}

.elementor-widget-icon .elementor-icon-wrapper {
    line-height: 0;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px #FFFFFF;
    text-stroke: 2px #FFFFFF;
}

.e-loop-item .elementor-widget-image a {
    width: 100%;
}

.single-post .elementor-widget-theme-post-content .wp-block-paragraph a{
    color: inherit;
    text-decoration: underline;
    transition: all 0.3s ease-in-out;
}

.single-post .elementor-widget-theme-post-content .wp-block-paragraph a:is(:hover, :focus, :active){
    color: var(--e-global-color-accent) !important;
}

p,
a {
    text-underline-offset: 2px;
}

.stat-years {
    font-size: 75px;
}

.text-highlight {
    color: var(--e-global-color-accent);
}

.icon-list-bg .elementor-icon-list-items .elementor-icon-list-item {
    background-color: #ffffff;
    border-radius: 50px;
    box-shadow: 0 0 6px 0 rgba(26, 38, 62, 0.10);
    padding: 8px !important;
}

.elementor-widget-text-editor *:last-child {
    margin-bottom: 0 !important;
}

/* Custom GTranslate (Float widget) */
@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gtranslate_wrapper,
.gtranslate_wrapper #gt_float_wrapper,
.gtranslate_wrapper .gt_float_switcher,
.gtranslate_wrapper .gt_float_switcher .gt-selected,
.gtranslate_wrapper .gt_float_switcher .gt-selected .gt-current-lang {
    height: 100%;
	display: flex !important;
}

.gtranslate_wrapper .gt_float_switcher .gt-selected {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.gt_float_switcher {
    width: max-content !important;
    font-family: inherit !important;
    font-size: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    position: relative;
}

.gt_float_switcher img {
    border-radius: 50% !important;
    object-fit: cover !important;
    width: 22px !important;
    height: 22px !important;
    vertical-align: middle;
}

.gt_float_switcher .gt-selected .gt-current-lang {
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
    font-weight: bold !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 8px !important;
    background: transparent !important;
    width: max-content !important;
    cursor: pointer;
}

.gt_float_switcher .gt-selected .gt-lang-code {
    color: var( --e-global-color-primary ) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}

.gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow {
    position: relative !important;
    right: auto !important;
    margin-left: 0 !important;
    width: 15px !important;
    height: 24px !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a263e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
    background-position: 50% !important;
    background-size: 14px !important;
    background-repeat: no-repeat !important;
    transform: rotate(0deg) !important;
    transition: transform 0.25s ease !important;
}

.gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow.gt_arrow_rotate {
    transform: rotate(-180deg) !important;
}

.gt_float_switcher .gt_options {
    position: absolute !important;
    top: 100%;
    left: auto !important;
    right: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background-color: #ffffff !important;
    border: 1px solid #eeeeee !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    border-radius: 4px !important;
    min-width: max-content !important;
    margin-top: 15px !important;
    z-index: 9999 !important;
}

.gt_float_switcher .gt_options.gt-open {
    animation: slideFadeIn 0.25s ease-out forwards !important;
}

.gt_float_switcher .gt_options a.nturl {
    font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
    font-weight: normal !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 12px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    background: transparent !important;
}

.gt_float_switcher .gt_options a.nturl:hover {
    background-color: #f5f5f5 !important;
    color: #000000 !important;
}

.gt_float_switcher .gt_options a.gt-current {
    font-weight: bold !important;
}

/* Class: .marquee-track */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Modern Hover Effect Blog Loop Item */
.elementor-widget-loop-grid .blog-item {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
    will-change: transform;
}

.elementor-widget-loop-grid .blog-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
}

.elementor-widget-loop-grid .blog-item .elementor-widget-theme-post-featured-image {
    overflow: hidden;
    display: block;
}

.elementor-widget-loop-grid .blog-item .elementor-widget-theme-post-featured-image img {
    width: 100%;
    aspect-ratio: 469 / 269;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.elementor-widget-loop-grid .blog-item:hover .elementor-widget-theme-post-featured-image img {
    transform: scale(1.08);
}

.elementor-widget-loop-grid .blog-item .elementor-widget-theme-post-title .elementor-heading-title a {
    transition: color 0.3s ease;
}

.elementor-widget-loop-grid .blog-item:hover .elementor-widget-theme-post-title .elementor-heading-title a {
    color: var(--e-global-color-accent);
}

.elementor-widget-loop-grid .blog-item a {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.elementor-widget-loop-grid .blog-item .elementor-post-info__terms-list-item {
    transition: all 0.3s ease-in-out;
}

.elementor-widget-loop-grid .blog-item .elementor-post-info__terms-list-item:is(:hover, :focus, :active) {
    color: var(--e-global-color-accent) !important;
}

.elementor-widget-loop-grid .blog-item:hover a {
    transform: translateX(4px);
}

/* Project Loop Item Style */
.elementor-widget-loop-grid .project-item {
    position: relative;
    aspect-ratio: 14 / 9;
    overflow: hidden;
}

.elementor-widget-loop-grid .project-item .elementor-widget-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.elementor-widget-loop-grid .project-item .elementor-widget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.elementor-widget-loop-grid .project-item .elementor-widget-image img {
    transition: transform 0.4s ease;
}

.elementor-widget-loop-grid .project-item:hover .elementor-widget-image img {
    transform: scale(1.1);
}

.elementor-widget-loop-grid .project-item .elementor-heading-title {
    transition: color 0.3s ease;
}

.elementor-widget-loop-grid .project-item:hover .elementor-heading-title {
    color: var(--e-global-color-accent) !important;
}

/* Hotspot Style */
.elementor-widget-hotspot .e-hotspot__label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    margin-inline-start: 0;
    transform: scale(.85);
    transform-origin: left center;
    transition: opacity .25s ease, transform .25s ease;
}

.elementor-widget-hotspot .e-hotspot__button.hacosnc-active .e-hotspot__label {
    opacity: 1;
    margin-inline-start: 10px;
    transform: scale(1);
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

.elementor-widget-hotspot .e-hotspot__button.hacosnc-flip .e-hotspot__icon {
    order: 2;
}

.elementor-widget-hotspot .e-hotspot__button {
    grid-gap: 0 !important;
}

.elementor-widget-hotspot,
.elementor-widget-hotspot .elementor-widget-container,
.elementor-widget-hotspot .e-hotspot__wrapper {
    overflow: visible !important;
}

.elementor-widget-hotspot .e-hotspot {
    z-index: 1;
}

.elementor-widget-hotspot .e-hotspot__button {
    position: relative;
    z-index: 1;
}

.elementor-widget-hotspot .e-hotspot:has(.e-hotspot__button.hacosnc-active) {
    z-index: 999;
    width: max-content;
    max-width: none;
}

.elementor-widget-hotspot .e-hotspot__button.hacosnc-active {
    z-index: 999;
    width: max-content;
    max-width: none;
    padding-right: 20px !important;
}

/* Products Tab Style */
.service-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
    gap: 9px;
}

.service-tabs__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    background-color: rgba(255, 255, 255, .1);
    color: #fff;
    font-family: inherit;
    font-weight: 300;
    font-size: 20px;
    text-transform: capitalize;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}

.service-tabs__item:is(:hover, :focus, :active) {
    color: #fff;
    background-color: rgba(255, 255, 255, .5);
}

.service-tabs__icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter .2s ease;
}

.service-tabs__item.is-active {
    background-color: #fff;
    color: var(--e-global-color-primary) !important;
    font-weight: 700;
}

.service-tabs__item.is-active .service-tabs__icon {
    filter: none;
}

#service-tab-content.is-loading {
    opacity: .4;
    pointer-events: none;
    transition: opacity .2s ease;
}

.service-tabs__icon,
.service-tabs__icon svg {
    display: inline-flex;
    width: 20px;
    height: 18px;
    color: #fff;
}

.service-tabs__item.is-active .service-tabs__icon * {
    color: var(--e-global-color-accent) !important;
}

/* Class: .icon-border */
.icon-border .elementor-icon-box-title::after {
    content: '';
    display: block;
    width: 41px !important;
    border-bottom: 2px solid var(--e-global-color-accent);
    padding-top: 5px;
}

/* .posts-cat-filter Style */
.posts-cat-filter__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.posts-cat-filter__item {
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.posts-cat-filter__item:last-child {
    border-bottom: none;
}

.posts-cat-filter__link {
    display: block;
    padding: 16px 0;
    font-family: "Noto Sans Thai SemiCondensed", sans-serif;
    font-size: inherit;
    color: #ffffff;
    text-decoration: none;
    transition: color .2s ease;
}

.posts-cat-filter__link:hover,
.posts-cat-filter__link.is-active {
    color: var(--e-global-color-accent);
    text-decoration: underline;
}

/* Widget text-editor table style */
.elementor-widget-text-editor:has(table) {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.elementor-widget-text-editor table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.elementor-widget-text-editor table td {
  padding: 12px 16px;
  vertical-align: top;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
    .service-tabs {
        gap: 8px;
    }

    .service-tabs__item {
        padding: 14px 18px;
        font-size: 17px;
    }

    .posts-cat-filter__link {
        padding: 12px 0;
    }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 767px) {
    .service-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }

    .service-tabs__item {
        justify-content: center;
        padding: 14px 10px;
        font-size: 15px;
        font-weight: 500;
        white-space: normal;
        text-align: center;
    }

    .service-tabs__icon,
    .service-tabs__icon svg {
        width: 18px;
        height: 16px;
        flex-shrink: 0;
    }
}

/* ===== Responsive: Small Mobile ===== */
@media (max-width: 400px) {
    .service-tabs {
        grid-template-columns: 1fr;
    }

    .service-tabs__item {
        justify-content: flex-start;
        padding: 14px 16px;
    }
}