* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: "Sarabun", sans-serif;
    font-size: 16px;
    background-color: white;
}

p {
    margin: 0;
    padding: 0;
}

body {
    padding-top: 80px;
}

@media (max-width: 1573px) {
    body {
        padding-top: 140px;
    }
}

@media (max-width: 1200px) {
    body {
        padding-top: 200px;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 50px;
    }
}

.btn {
    transition: all 0.3s ease;

}

.btn:hover {
    transform: translateY(-2px);
}

.container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

.kanit-light {

    font-weight: 300;
    font-style: normal;
}

.kanit-semibold {

    font-weight: 600;
    font-style: normal;
}

a {
    text-decoration: none;
}

ul {
    margin-bottom: 0;
}

.image-partners {
    max-width: 1100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.sum-section {
    background-image: url("/public/images/home/AnyConv.com__Group 277.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* position: relative;
    overflow: hidden; */
    width: 100%;

}

.sum-section img {
    width: 100%;
    height: auto;
    display: block;
}

.sun-info {

    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    z-index: 1;
}

.about-section {
    padding: 30px;

}

.about-section .title {
    margin-bottom: 5rem;
}

.sun-info .title,
.about-section .title {
    text-align: center;
    font-size: 32px;

    font-weight: 600;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.stats-section {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-top: 50px;

}

.stat-item {

    text-align: center;
}

.stat-item .gif {
    display: flex;
    align-items: center;
    justify-content: center;
}



.stat-item h2 {
    font-size: 32px;
    font-weight: 700;
    margin-top: 20px;
    text-align: center;


}

.stat-item p {
    font-size: 14px;
    font-weight: 400;
    min-height: 100px;
    text-align: center;

}

.stat-item img {
    width: 120px;

}

.divider {
    margin: 0 50px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFD5F799;
    z-index: 1;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 1.625rem;
    text-align: center;
    font-weight: 600;
}


.partner-section,
.doccument-section {
    padding: 50px 0;
}



.partner-section .title,
.doccument-section .title {
    text-align: center;

    font-weight: 600;
}

.image-partners img {
    width: auto;
    height: 90px;
}

.date-div {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #EAEAEA;
}

.date-div img {
    width: 20px;
}

.date-div p {
    color: #6A7282;

    font-weight: 400;
    font-size: 14px;
}

.tab-container {
    display: flex;
    margin: 50px 0px;
    box-shadow: 2px 2px 8px 2px #B7AEDE40;
    border: 1px solid #E3E3E3;
    border-radius: 10px;

}


.tab-buttons {
    display: flex;
    flex-direction: column;
    width: 20%;
    color: black;
    background-color: white;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}


.tablink {
    position: relative;
    background-color: var(--color-secondary);
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 16px;
    transition: 0.3s;
    text-align: left;

}


.tablink::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #E7C0E0;
}


.tablink.active {
    background-color: #B63D97;
    color: white !important;

}

.tab-buttons button {
    color: black;
    text-decoration: none;
}


.tabcontent {
    display: none;
    padding: 30px;
    width: 80%;
    border-left: 1px solid #E7C0E0;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
    background-color: white;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

.hero-slider-section,
.eservice,
.one-slider-section,
.about-section,
.sum-section,
.partner-section,
.doccument-section {
    opacity: 0;
}

.hero-slider-section.reveal-active,
.eservice.reveal-active,
.one-slider-section.reveal-active,
.about-section.reveal-active,
.sum-section.reveal-active,
.partner-section.reveal-active,
.doccument-section.reveal-active {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-slider-section {
    animation-delay: 0.1s;
}

.eservice {
    animation-delay: 0.2s;
}

.one-slider-section {
    animation-delay: 0.3s;
}

.about-section {
    animation-delay: 0.4s;
}

.about-row {
    margin-bottom: 4rem;
    opacity: 0;
}

.about-row.reveal-active {
    animation: fadeInUp 0.8s ease-out forwards;

}

/* .about-row:nth-of-type(1) {
    animation-delay: 0.3s;
}

.about-row:nth-of-type(2) {
    animation-delay: 0.5s;
}

.about-row:nth-of-type(3) {
    animation-delay: 0.7s;
}
.about-row:nth-of-type(4) {
    animation-delay: 0.9s;
} */

.about-img {
    opacity: 0;
}

.about-row.reveal-active .about-img {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.about-text {
    opacity: 0;
}

.about-row.reveal-active .about-text {
    animation: fadeInRight 0.8s ease-out forwards;
}

.stat-item {
    opacity: 0;
}

.stat-item.reveal-active {
    animation: fadeInUp 0.8s ease-out forwards;
}


.swiper-wrapper a {
    color: black;
}


/* .service-card {
    animation-delay: 0.1s;
} */

/* 
.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card:nth-child(5) {
    animation-delay: 0.5s;
}

.service-card:nth-child(6) {
    animation-delay: 0.6s;
}

.service-card:nth-child(7) {
    animation-delay: 0.7s;
}

.service-card:nth-child(8) {
    animation-delay: 0.1s;
}

.service-card:nth-child(9) {
    animation-delay: 0.1s;
}

.service-card:nth-child(10) {
    animation-delay: 0.1s;
}

.service-card:nth-child(11) {
    animation-delay: 0.1s;
} */


.info-tab {
    margin-bottom: 10px;
}

.info-tab a {
    color: black;
}

.info-tab a:hover {
    color: #B63D97;
}

.btn-seemore {
    background-color: #B63D97;
    border-radius: 20px;
    padding: 6px 50px;
    color: white;

}

.div-btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn:hover {
    background-color: #B63D97;
    color: white;
}

.about-section {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 80px 0;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 60px;

}

.about-img {
    flex: 1;
}

.about-img img {
    width: 80%;
}

.about-text {
    flex: 1;

}

.about-text h2 {
    font-size: 32px;
    color: #B63D97;
    font-weight: 300;
    margin-bottom: 20px;

}

.about-text p {
    line-height: 1.8;
    font-weight: 400;
    font-size: 20px;
    color: #1E1E1E;
}

.btn.btn-readmore {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 16px;
    margin: 10px 0;
    padding: 0;
}

.btn-readmore:hover {
    background-color: transparent !important;
}

.hero-slider-section {
    background-color: #F9EEF7;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: auto;
}

.heroSwiper {
    width: 100%;
    padding: 20px 0;
}

.heroSwiper .swiper-slide {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    transform: scale(0.85);
    position: relative;
}

.heroSwiper .swiper-slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 39px;
    transition: opacity 0.9s ease;
    pointer-events: none;
    z-index: 1;
}

.heroSwiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.heroSwiper .swiper-slide-active::after {
    opacity: 0;
}

.heroSwiper img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 39px;
    display: block;
    transition: box-shadow 0.6s ease;
}

.hero-prev,
.hero-next,
.service-next,
.service-prev,
.one-prev,
.one-next {
    width: 45px;
    height: 45px;
    color: black;
    transition: all 0.3s ease;
    z-index: 100;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.splide__arrow {
    background: transparent !important;
    border: none !important;
}

.splide__arrow svg {
    fill: black !important;
    width: 35px !important;
    height: 35px !important;


}



.hero-prev::after,
.hero-next::after,
.service-prev::after,
.service-next::after,
.one-prev::after,
.one-next::after {
    font-size: 18px;
    font-weight: 900;
}

.hero-prev,
.one-prev {
    left: 9%;
}

.service-prev {
    left: 0;
}

.hero-next,
.one-next {
    right: 9%;
}

.service-next {
    right: 0;
}

.service-slider {
    position: relative;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}


.service-slider .splide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}


.splide__arrow--prev.service-prev {
    left: -55px !important;
}


.splide__arrow--next.service-next {
    right: -55px !important;
}


@media (max-width: 768px) {


    .splide__arrow--prev.service-prev {
        left: -0px !important;
    }

    .splide__arrow svg {
        width: 25px !important;
        height: 25px !important;
    }


    .splide__arrow--next.service-next {
        right: -0px !important;
    }

    .service-slider {
        padding: 0;
    }
}

/* Pagination Styling */
.hero-pagination {
    bottom: 30px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.hero-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #D1D5DB;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0;
}

.hero-pagination .swiper-pagination-bullet-active {
    width: 50px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.one-slider-section {
    padding: 60px 0;
    background: #F9EEF7;
    position: relative;
}

.one-slider {
    position: relative;
    width: 50%;
    margin: auto;
}

.oneSwiper {
    width: 100%;
    border-radius: 40px;
    overflow: hidden;
}

.oneSwiper img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.one-pagination {
    bottom: 20px;
}

.one-pagination .swiper-pagination-bullet-active {
    background: #B63D97;
    width: 20px;
    border-radius: 5px;
}



.eservice {
    padding: 40px 0;
    text-align: center;
    background-image: url("/public/images/home/AnyConv.com__Group 295 (1).webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.eservice-title {
    font-size: 32px;
    font-weight: 600;

    margin: 30px;
    text-align: center;
}

.serviceSwiper {
    width: 100%;
    overflow: visible;

}

.service-card {
    background: #fff;
    border-radius: 16px;
    text-align: center;
    height: 180px;
    width: 100%;
    max-width: 173px;
    margin: auto;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 2px 10px #B7AEDE73;
    border: 1px solid #EDEDED;
    box-sizing: border-box;
}

.service-card img {
    height: 70px;
    width: auto;
    margin: auto;
    object-fit: contain;
    margin-bottom: 5px;
}

.service-card p {
    font-size: 12px;
    margin: 0;
    width: 100%;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    color: #1E1E1E;
}



.service-slider {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 30px 80px;
}

.breadcrumb {
    display: flex;
    list-style: none;
    padding: 20px 0;

}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: var(--color-primary);

}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--color-primary);
}

.breadcrumb-item.active {
    color: black;
}

.news-card-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.news-divider {
    height: 1px;
    background-color: #DDDDDD;
    border: none;
    opacity: 1;
    margin: 15px 0;
}

.view-div img {
    width: 20px;
    height: 20px;
}

.view-div p {
    font-size: 14px;
    color: black;
}

.share-icon {

    background-color: var(--color-primary);
    border-radius: 50%;
    padding: 5px;
}

.news-component-footer {
    margin-bottom: 30px;
}

.breadcrumb-item {
    max-width: 900px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}


.result-image-wrapper>img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}


.result-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-image-overlay img {
    border-radius: 20px;
    width: 90%;
    height: auto;
    object-fit: contain;

}

.popup-ad-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.popup-ad-overlay.is-open {
    display: flex;
    opacity: 1;
}

.popup-ad-box {
    position: relative;
    max-width: 400px;
    width: 100%;
    background: #fff;

    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.popup-ad-overlay.is-open .popup-ad-box {
    transform: scale(1);
}

.popup-ad-close {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: transparent;
    color: white;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.popup-ad-close:hover {
    color: black;
}

.popup-ad-link {
    display: block;
}

.popup-ad-link img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 576px) {
    .popup-ad-box {
        max-width: 92%;

    }

    .popup-ad-close {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}

.one-slider img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 40px;
}