* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Sans Thai", sans-serif;
}



body {
    background: rgb(255, 255, 255);
    /* Typography */

    /* Heading Base */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin: 0 0 .65em;
        line-height: 1.18;
        letter-spacing: -0.025em;
    }

    /* Hero / Main Title */
    h1 {
        font-size: clamp(2.1rem, 5vw, 2.5rem);
        font-weight: 700;
    }

    /* Section Title */
    h2 {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
        font-weight: 700;
    }

    /* Card / Content Title */
    h3 {
        font-size: clamp(1.45rem, 3vw, 2rem);
        font-weight: 700;
    }

    /* Sub Heading */
    h4 {
        font-size: clamp(1.2rem, 2.5vw, 1.8rem);
        font-weight: 600;
    }

    h5 {
        font-size: clamp(1.05rem, 2vw, 1.35rem);
        font-weight: 600;
    }

    h6 {
        font-size: clamp(1);
        font-weight: 600;
    }

    /* Paragraph */
    p {
        font-size: clamp(1rem);
        line-height: 1.85;
        margin: 0 0 1.2em;
    }

    /* Lead Text */
    .lead {
        font-size: clamp(1.08rem, 1.5vw, 1.28rem);
        line-height: 1.9;
    }

}

.navbar {
    display: flex;
    position: sticky;
    background: rgb(255, 255, 255);
    top: 0;
    z-index: 999;
    backdrop-filter: blur(16px);
    transition:
        background 0.3s ease,
        backdrop-filter 0.3s ease,
        box-shadow 0.3s ease;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 1280px;
    margin: auto;
    padding: 18px 0;
}

.nav-top {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
}

.nav-top .logo {
    flex-grow: 1;
}


/* scroll */
nav.scrolled a {
    color: #334155;
}

nav.scrolled .cta-btn {
    color: #ffffff;
}

.logo {
    font-weight: 800;
    color: #111827;
    letter-spacing: -1px;
}

.logo span {
    color: #0084ff;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-bar li {
    list-style: none;
    position: relative;
}

.nav-bar a {
    text-decoration: none;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.nav-bar a:hover {
    color: #0084ff;
}

/* link */

.dropdown>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* arrow */

.dropdown>a::after {
    content: ">";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #0084ff;
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    transition: 0.3s ease;
    flex-shrink: 0;
}

@media (min-width: 1025px) {
    .dropdown:hover>a::after {
        transform: rotate(90deg);
    }
}

@media (max-width: 1024px) {
    .dropdown.active>a::after {
        transform: rotate(90deg);
    }
}

/*language-switcher*/
.language-switcher {

    display: flex;

    align-items: center;

    padding: 4px;

    background: rgba(0, 132, 255, 0.08);

    border-radius: 16px;

    gap: 4px;

}


/* button */

.lang-btn {
    border: none;
    background: transparent;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #0084ff;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s ease;
}

/* active */

.lang-btn.active {
    background: #0084ff;
    color: white;
    box-shadow:
        0 6px 16px rgba(0, 132, 255, 0.2);
}

/* hover */

.lang-btn:hover {

    background: rgba(0, 132, 255, 0.12);
}


.dropdown-menu {
    position: absolute;
    top: 170%;
    left: 50%;

    min-width: 260px;
    padding: 14px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);

    border: 1px solid rgba(0, 132, 255, 0.08);
    border-radius: 22px;

    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);

    box-shadow: 0 24px 50px rgba(0, 132, 255, 0.14);

    transition: 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 14px;

    color: #334155;
    font-size: 14px;
    font-weight: 500;

    border-radius: 14px;
}

.dropdown-menu a:hover {
    background: rgba(0, 132, 255, 0.08);
    color: #0084ff;
}

.cta-btn {
    padding: 12px 12px;
    background: #0084ff;
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 132, 255, 0.22);
    transition: 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0, 132, 255, 0.32);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #0084ff;
    border-radius: 20px;
}




/* Mobile */

@media (max-width: 1024px) {

    nav {
        padding: 16px 20px;
    }

    .language-switcher {

        order: 0;
    }

    /* toggle */

    .menu-toggle {
        display: flex;
        order: 2;
    }

    /* menu */


    .nav-container.active {
        display: flex;
    }

    /* scrollbar */

    .nav-container::-webkit-scrollbar {
        width: 6px;
    }

    .nav-container::-webkit-scrollbar-thumb {
        background: rgba(0, 132, 255, 0.25);
        border-radius: 20px;
    }

    /* nav */



    .nav-bar a:hover,
    .nav-bar a:focus-visible {

        background: rgba(0, 132, 255, 0.08);

        outline: none;
    }

    /* dropdown */

    .dropdown-menu {

        display: none;

        position: static;

        opacity: 1;
        visibility: visible;

        transform: none;

        width: 100%;

        margin-top: 8px;

        padding: 10px;

        background: #f4f8ff;

        border-radius: 18px;

        border: 1px solid rgba(0, 132, 255, 0.06);

        box-shadow: none;
    }

    /* active */

    .dropdown.active .dropdown-menu {

        display: flex;

        flex-direction: column;

        gap: 6px;
    }

    .dropdown-menu a {

        padding: 12px 14px;

        border-radius: 12px;
    }

    .dropdown-menu a:hover {

        background: rgba(0, 132, 255, 0.08);
    }

    /* button */

    .cta-btn {

        text-align: center;
    }

}

@media (max-width: 1024px) {
    nav {
        padding: 16px 20px;
    }


    .nav-top .logo {
        flex-grow: 1;
    }

    .nav-container {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: calc(100% + 10px);
        right: 10px;
        width: calc(100% - 20px);
        max-width: 500px;
        max-height: 80vh;
        overflow-y: auto;

        padding: 24px;
        gap: 24px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(20px);
        border-radius: 24px;

        box-shadow:
            0 20px 40px rgba(0, 132, 255, 0.12);
    }

    .nav-container::-webkit-scrollbar {
        width: 6px;
    }

    .nav-container::-webkit-scrollbar-thumb {
        background: rgba(0, 132, 255, 0.3);
        border-radius: 20px;
    }

    .nav-container.active {
        display: flex;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translate(-0%, 0);
    }

    /* scrollbar */

    .nav-container::-webkit-scrollbar {
        width: 4px;
    }

    .nav-container::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-container::-webkit-scrollbar-thumb {
        background: rgba(0, 132, 255, 0.25);
        border-radius: 20px;
    }

    .nav-container::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 132, 255, 0.45);
    }

    /* nav */

    .nav-bar {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav-bar li {
        width: 100%;
    }

    .nav-bar a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 14px 16px;
        border-radius: 14px;
    }

    .nav-bar a:hover {
        background: rgba(0, 132, 255, 0.08);
    }

    /* dropdown */

    .dropdown-menu {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        margin-top: 8px;
        padding: 10px;
        background: #f4f8ff;
        border-radius: 18px;
        box-shadow: none;
    }

    /* active dropdown */

    .dropdown.active .dropdown-menu {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
}

/**primary css**/
.btn-primary {
    padding: 12px 12px;
    background: #fff;
    color: #0084ff;
    text-decoration: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 132, 255, 0.22);
    transition: 0.3s ease;
}

.btn-primary:hover {
    padding: 12px 12px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 132, 255, 0.22);
    transition: 0.3s ease;
}


/*index page*/
/**section hero**/

.hero {
    background: linear-gradient(90deg, #0084ff 0%, #0084ff 48%, #dff1ff 100%);
    height: 80vh;
    display: flex;
    background-image: url("images/images/home-scaled.avif");
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-grid {
    display: flex;
    width: 100%;
    max-width: 1280px;
    margin: auto;
    justify-content: flex-start;
}

.hero-content {
    color: white;
}

.hero-content p {
    color: white;
    width: 50%;
}



@media (max-width: 992px) {

    .hero {
        background-image: url("images/images/home-mb-scaled.avif");
        height: 100vh;
        background-size: cover;
        background-position: top;
        background-repeat: no-repeat;
    }

    .hero-grid {
        display: flex;
        width: 100%;
        margin-top: 24px;
        text-align: center;
        padding: 12px 20px;
    }

    .hero-content p {
        color: white;
        width: 100%;
    }
}


@media (max-width: 700px) {
    .hero {
        height: 70vh;
    }
}

/**end section hero**/


/* ==================================
   SERVICE SECTION
================================== */

.service-section {
    padding-top: 50px;
    padding-bottom: 0;
    background: linear-gradient(120deg, #f4f9f4, #edf1ef, #ffffff);
    overflow: hidden;
    text-align: center;

    h2 {
        margin-bottom: 1.2rem;
    }

    .content {
        color: #000;

    }
}

.inner-service-section {
    max-width: 1280px;
    margin: auto;
}

.section-title {
    text-align: center;
    color: #111827;
    margin-bottom: 50px;
}

/* ==================================
   CAROUSEL
================================== */

.carousel-wrapper {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    overflow: visible;
}

.carousel {
    width: 100%;
    padding-bottom: 50px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.track {
    display: flex;
    gap: 16px;
}

/* desktop */
.slide {
    flex: 0 0 calc((100% - 32px) / 4);
}


/* ปุ่ม */
.prev,
.next {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 20;
}

.prev {
    left: -25px;
}

.next {
    right: -25px;
}

@media (max-width: 700px) {

    .inner-service-section {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .carousel-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .carousel {
        width: 100%;
        padding-left: 16px;
        overflow-x: auto;
        box-sizing: border-box;
    }

    .track {
        gap: 12px;
    }

    .carousel-wrapper .carousel .track .slide {
        flex: 0 0 78%;
    }

    .prev,
    .next {
        display: none;
    }
}

/* ==================================
   CARD
================================== */

.fb-card {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
    transition: .25s ease;
}

.fb-card:hover {
    transform: translateY(-1px);
}

.card-service {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
}

/* ==================================
   IMAGE
================================== */

.card-service-1 {
    position: relative;
}

.service-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #0084ff;
    color: #fff;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .35s ease;
}

.fb-card:hover .service-image img {
    transform: scale(1.05);
}

/* ==================================
   CONTENT
================================== */

.card-service-2 {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
    line-height: 1.3;
}

.service-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 22px;
    flex: 1;
}

.service-price {
    font-size: 30px;
    font-weight: 700;
    color: #0084ff;
    margin-bottom: 22px;
}

/* ==================================
   BUTTON
================================== */

.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: 14px;
    background: #0084ff;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: .25s ease;
}

.service-btn:hover {
    background: #0084ff;
}

/* ==================================
   NAV BUTTON
================================== */

.prev,
.next {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 10;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: #0084ff;
    color: #fff;

    font-size: 28px;
    cursor: pointer;

    transition: .25s ease;
}

.prev:hover,
.next:hover {
    background: #0084ff;
}

.prev {
    left: -25px;
}

.next {
    right: -25px;
}

/* ==================================
   DOTS
================================== */

.dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: .25s ease;
}

.dot.active {
    background: #0084ff;
    transform: scale(1.15);
}

/* ==================================
   TABLET
================================== */

@media (max-width: 992px) {

    .service-hero {
        padding: 60px 30px;
    }

    .slide {
        flex: 0 0 calc((100% - 24px) / 2);
    }

    .prev {
        left: -10px;
    }

    .next {
        right: -10px;
    }
}



/*==================================
section ผลงานตัวอย่าง
==================================*/
.work-section {
    padding: 70px 20px;
}

.work-inner {
    max-width: 1280px;
    margin: auto;
}

.work-heading {
    align-items: center;
    text-align: center;
    max-width: 1280px;
    margin-bottom: 50px;
}

.work-heading span {
    display: inline-block;
    background: #dbeafe;
    color: #0084ff;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 16px;
    margin-bottom: 12px;
}

.work-heading h2 {
    color: #111827;
}

.work-heading p {
    color: #6b7280;
}

.work-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
    align-items: start;
}

.work-tabs {
    background: #fff;
    border-radius: 24px;
    padding: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .06);
    position: sticky;
    top: 100px;
}

.work-tab {
    width: 100%;
    border: none;
    background: transparent;
    padding: 14px 16px;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    transition: .25s ease;
}

.work-tab:hover,
.work-tab.active {
    background: #0084ff;
    color: #fff;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

#pageNumbers {
    display: flex;
    gap: 10px;
}

.pagination button,
#pageNumbers button {
    width: 50px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;

    box-sizing: border-box;

    border-radius: 10px;

    background: #f3f4f6;

    font-weight: 600;

    cursor: pointer;
}

#pageNumbers .active {
    background: #0084ff;
    color: #fff;
}

.hide {
    display: none !important;
}

.work-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .07);
    transition: .3s ease;
}

.image-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .07);
    transition: .3s ease;
}

.image-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.image-card.hide {
    display: none;
}

.image-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .12);
}

.work-card.hide {
    display: none;
}


.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .12);
}

.work-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.work-card-content {
    padding: 22px;
}

.work-card-content span {
    display: inline-block;
    color: #0084ff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.work-card-content h3 {
    font-size: 22px;
    color: #111827;
    margin-bottom: 10px;
}

.work-card-content p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 992px) {
    .work-layout {
        grid-template-columns: 1fr;
    }

    .work-tabs {
        position: static;
        display: flex;
        gap: 10px;
        overflow-x: auto;
    }

    .work-tab {
        white-space: nowrap;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .work-section {
        padding: 70px 20px;
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .work-card img {
        height: 220px;
    }
}

/*==================================
section ผลงานตัวอย่าง
==================================*/


/* ==================================
   faq section
   =================================*/
.faq-section {
    padding: 100px 20px;
}

.faq-inner {
    max-width: 900px;
    margin: auto;
}

.faq-title {
    text-align: center;
    margin-bottom: 40px;
}

.faq-title span {
    display: inline-block;
    color: #0084ff;
    color: #fff;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 12px;
}

.accordion-item {
    background: #fff;
    border-radius: 18px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    overflow: hidden;
}

.accordion-btn {
    width: 100%;
    padding: 22px 24px;
    border: none;
    background: none;
    cursor: pointer;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 18px;
    font-weight: 700;
    text-align: left;
    color: #111827;
}

.accordion-btn span {
    font-size: 28px;
    color: #0084ff;
    transition: .25s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.accordion-content p {
    padding: 0 24px 24px;
    color: #6b7280;
    line-height: 1.8;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

.accordion-item.active .accordion-btn span {
    transform: rotate(45deg);
}

/* ==================================
   faq section
   =================================*/