/********** Template CSS **********/

@font-face {
    font-family: 'BBQPlz Sans';
    src: url('../fonts/BBQPlz-Sans-Bol.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.custom-banner-font {
    font-family: 'BBQPlz Sans', sans-serif;
}

body {
    font-family: 'MyCustomFont', 'TH Sarabun' , 'Tahoma', 'BBQ Plz Rounded', 'BBQ Plz Sans', 'BBQ Plz Script', sans-serif;
}

@media (max-width: 576px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.btn-shared {
    font-size: 1rem;
    padding: 1rem 4rem;
    font-weight: bold;
    border-radius: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: white;
    border: none;
}

.btn-shared:hover {
    transform: scale(1.05);
}

.btn-gradient {
    background: linear-gradient(90deg, #0066cc, #3399ff);
}

.btn-orange-gradient {
    background: linear-gradient(90deg, #f37021, #f7a833);
}

.btn-gradient {
    background: linear-gradient(90deg, #1593c7, #00b5d8);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 1rem 4rem;
    /* Even more padding */
    font-size: 1rem;
    /* Larger font size */
    font-weight: bold;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    background: linear-gradient(90deg, #00b5d8, #1593c7);
    color: white;
}

.text-orange {
    color: #f37021;
    /* Match to the orange in your image */
}

.btn-orange-gradient {
    background: linear-gradient(90deg, #f37021 0%, #f7a833 100%);
    border: none;
    color: white;
    font-weight: bold;
    padding: 1rem 4rem;
    /* Even more padding */
    font-size: 1rem;
    border-radius: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(243, 112, 33, 0.3);
}

.btn-orange-gradient:hover {
    transform: scale(1.05);
}

.team-item .text-center,
.team-item .text-start {
    background-color: #ffffff !important;
}

.customer-section {
    width: 100vw;
    margin: 0;
    padding: 40px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

background-image : url('img/backgroundcustomer.jpg');
background-size : cover;
background-position : center;



/* Default size (Desktop) */
.card-course p {
    font-size: 1.1rem;
}

.card-course h6 {
    font-size: 1.25rem;
}

/* Mobile size */
@media (max-width: 576px) {
    .card-course p {
        font-size: 0.7rem;
    }

    .card-course h6 {
        font-size: 0.9rem;
    }

    .card-course img {
        max-width: 100%;
        height: auto;
    }
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    background-color: #f0f0f0;
}

/* หนาเบามาก */
.mitr-extralight {
    font-family: "BBQPlz Sans";
    font-weight: 200;
    font-style: normal;
}



.mitr-extralight2 {
    font-family: "BBQPlz Sans";
    font-style: normal;
}

.mitr-extralight3 {
    font-family: "BBQPlz Sans";
    font-weight: -200;
    font-style: normal;
}



/* หนาเบา */
.mitr-light {
      font-family: "BBQPlz Sans";
    font-weight: 300;
    font-style: normal;
}

/* ความหนาปกติ */
.mitr-regular {
       font-family: "BBQPlz Sans";
    font-weight: 400;
    font-style: normal;
}

.accordion-body {
    background-color: #fffbe6;
    color: #333;
}

/* หนาปานกลาง */
.mitr-medium {
     font-family: "BBQPlz Sans";
    font-weight: 500;
    font-style: normal;
}

.mitr-medium-heading-lg {
    font-size: 3rem;
    /* Desktop */
    font-weight: 500;
    line-height: 1.2;
    color: #002147;
}

.mitr-medium-heading-md {
    font-size: 2rem;
    font-weight: 500;
    color: #002147;
}

@media (max-width: 576px) {
    .mitr-medium-heading-lg {
        font-size: 0.9rem;
    }

    .mitr-medium-heading-md {
        font-size: 0.8rem;
    }
}

/* หนามาก */
.mitr-semibold {
    font-family: "BBQPlz Sans";
    font-weight: 500;
    font-style: normal;
}

/* หนามากที่สุด */
.mitr-bold {
     font-family: "BBQPlz Sans";
    font-weight: 700;
    font-style: normal;
}

/* ฟ้อนต์ จบ */


:root {
    --primary: #005a79;
    --light: #F5F5F5;
    --dark: #353535;
}

.fw-medium {
    font-weight: 700 !important;
    /* เพิ่มความหนา */
    font-size: 1.5rem !important;
    /* ปรับขนาดตัวอักษร */
    line-height: 1.5;
    /* เพิ่มระยะห่างระหว่างบรรทัด */
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}




/*** Navbar ***/

.navbar {
    position: sticky !important;
    top: 0;
    z-index: 1030;
    background-color: white;
    /* หรือสีที่ต้องการ */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "BBQPlz Sans";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: 0;
    transition: none;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        background-color: rgba(0, 0, 0, 0.8);
        /* สีดำจาง ๆ */
        color: white;
        /* สีข้อความ */
        border-radius: 10px;
        /* ขอบม่น */
        transition: all 0.5s ease;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        opacity: 1;
        transition: all 0.5s ease;
    }

    /* ตัวหนังสือของรายการในเมนู */
    .navbar .nav-item .dropdown-menu .dropdown-item {
        color: white;
        /* สีตัวหนังสือ */
        padding: 10px 20px;
        /* ระยะห่าง */
        text-decoration: none;
        /* ไม่มีเส้นใต้ */
        border: none;
        /* ลบขอบ */
        position: relative;
        /* ตั้งค่าให้ใช้ pseudo-element */
        transition: color 0.3s ease;
    }

    .navbar .nav-item .dropdown-menu .dropdown-item:hover {
        color: #00bfff;
        /* สีฟ้าเมื่อ hover */
        background-color: transparent;
        /* ลบพื้นหลังสีขาวเมื่อ hover */
    }

    /* เส้นใต้แบบสีฟ้า */
    .navbar .nav-item .dropdown-menu .dropdown-item::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 5px;
        /* ระยะจากตัวหนังสือ */
        width: 0;
        height: 2px;
        /* ความหนาของเส้น */
        background-color: #00bfff;
        /* สีฟ้า */
        transition: width 0.3s ease;
    }

    .navbar .nav-item .dropdown-menu .dropdown-item:hover::after {
        width: 100%;
        /* ขยายเส้นเต็ม */
    }

}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        background-color: rgba(0, 0, 0, 0.8);
        color: white;
        border-radius: 10px;
        transition: all 0.5s ease;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        opacity: 1;
        transition: all 0.5s ease;
    }
}

/* สำหรับจอเล็ก dropdown จะใช้ bootstrap's collapse เลย ไม่ต้องตั้งค่า display/visibility */
@media (max-width: 991.98px) {
    .navbar .nav-item .dropdown-menu {
        position: static;
        /* ให้เมนู dropdown อยู่ใน flow ปกติ */
        background-color: white;
        color: black;
        border-radius: 0;
        box-shadow: none;
        opacity: 1 !important;
        visibility: visible !important;
    }
}




/*** Header ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: transparent;
    border: 1px solid #FFFFFF;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}




/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
.service-item img {
    transition: .5s;
    padding-bottom: 10px;
    /* เพิ่มระยะห่างระหว่างรูปกับข้อความ */
}

.service-item:hover img {
    transform: scale(1.1);
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-item img {
    transition: .5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item .portfolio-overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 0;
    bottom: 0;
    left: 50%;
    background: rgba(53, 53, 53, .7);
    transition: .5s;
}

.portfolio-item:hover .portfolio-overlay {
    width: 100%;
    height: 100%;
    left: 0;
}

.portfolio-item .portfolio-overlay .btn {
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay .btn {
    opacity: 1;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-social {
    position: absolute;
    width: 38px;
    top: 50%;
    left: -38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    transition: .5s;
}

.team-item .team-social .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item:hover .team-social {
    left: 0;
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    border: 5px solid var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 50px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/footer.jpg) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "BBQPlz Sans";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/* ปุ่มค้นหา */

.search-container {
    display: flex;
    align-items: center;
    background-color: #f4f4f4;
    border-radius: 50px;
    padding: 5px 15px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    width: fit-content;
    border: 1px solid #ddd;
}

.search-input {
    border: none;
    outline: none;
    flex: 1;
    padding: 8px 15px;
    border-radius: 50px;
    background: transparent;
    font-size: 16px;
    font-style: italic;
    color: #6c757d;
    min-width: 200px;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #0d6efd;
    font-size: 18px;
    margin-left: 10px;
}

.search-button i {
    color: #0d6efd;
    font-size: 20px;
    /* ขนาดไอคอน */
}

.language-button {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.flag-icon {
    width: 30px;
    height: auto;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* ---------------------------------- */

.gradient-text {
    display: inline-block;
    background: linear-gradient(to right, #10a2bc, #4785c7, #9461c0, #e06c8b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    text-decoration-skip-ink: none;
    caret-color: transparent;
}

.container-xxl {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* ตั้งให้ครอบคลุมความสูงของหน้าจอ */
    text-align: center;
    /* จัดข้อความให้อยู่ตรงกลาง */
}



.menu {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 10px 0;
}

.menu button {
    margin: 0 10px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.menu button:hover {
    background-color: #003f7f;
}

.section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
}

.section:nth-child(even) {
    background-color: #ddd;
}







/* BUTTON RMS */

.animated-button2 {
    display: inline-block;
    padding: 6px 20px;
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: 30px;
    background: linear-gradient(90deg, #4785c7, #9461c0, #e06c8b);
    background-size: 400% 400%;
    animation: gradientMove 3s ease infinite;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    max-width: 100%;
    white-space: nowrap;
}

.animated-button2:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* =================== Responsive =================== */
/* สำหรับมือถือ */
@media (max-width: 576px) {
    .customer-flex {
        flex-direction: column;
        /* เรียงแนวตั้งบนมือถือ */
        align-items: center;
        text-align: center;
    }

    .customer-text {
        text-align: center;
        margin-left: 0 !important;
    }

    .customer-logo {
        width: 180px;
        margin-bottom: 15px;
    }

    .customer-text {
        text-align: center;
        margin-bottom: 2rem;
        /* เพิ่มระยะห่างข้อความด้านล่าง */
    }

    .button-wrapper {
        display: flex;
        justify-content: center;
    }

    .animated-button2 {
        width: auto !important;
        max-width: none !important;
        display: inline-block !important;
        padding: 3px 9px !important;
        /* ลด padding ให้เล็กลงอีก */
        font-size: 1.2rem !important;
        /* ลด font size ให้เล็กลงอีก */
        line-height: 1 !important;
        text-align: center !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

}

/* iPad แนวตั้ง/แนวนอน (768px - 1024px) */
@media (min-width: 577px) and (max-width: 1024px) {
    .customer-section {
        padding: 30px !important;
    }

    .customer-section h1 {
        font-size: 24px;
    }

    .customer-section h6 {
        font-size: 15px;
    }

    .customer-section .row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .service-item3 img {
        width: 100%;
        height: auto;
        border-radius: 12px;
    }

    .service-item3 p {
        font-size: 14px;
        text-align: left;
        line-height: 1.5;
    }

    .animated-button2 {
        display: inline-block;
        /* เปลี่ยนจาก block เป็น inline-block */
        max-width: none;
        /* ไม่จำกัด max-width */
        width: auto;
        /* ให้ขนาดพอดีกับเนื้อหา */
        font-size: 0.85rem;
        padding: 12px 18px;
        margin: 25px auto 0;
        text-align: center;
    }
}




/* BUTTON RMS End */












/* Company Profile  GO BEYOND */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.logos {
    display: flex;
    justify-content: center;
    gap: 0px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.logo {
    text-align: center;
    max-width: 250px;
    flex: auto;
    /* ✅ ห้ามยืด/หด */
    margin: 0 -25px;
    /* ✅ เพิ่มระยะห่างซ้ายขวา */
}

.logo img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.logo p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.highlight1 {
    color: #3eacd2;
}

.shadow-img {
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.5);
}


.rounded-circle:hover {
    transform: scale(1.1);
    /* ขยายขนาด */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    /* เพิ่มเงา */
}


.bottom {
    margin-bottom: 120px;
}

/* ✅ ปรับเฉพาะหน้าจอกว้างตั้งแต่ 768px ขึ้นไป (iPad และใหญ่กว่า) */
@media (min-width: 768px) {
    .logos {
        flex-wrap: nowrap;
        /* ห้ามล่วงลง */
        justify-content: center;
    }
}

/* ✅ ปรับเฉพาะหน้าจอกว้างน้อยกว่า 768px (มือถือ) */
@media (max-width: 767px) {
    .logos {
        flex-direction: column;
        align-items: center;
    }

}











.form-section {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.form-fields {
    width: 60%;
    padding-right: 20px;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

input[type="checkbox"] {
    margin-right: 8px;
}








input[type="text"],
input[type="email"],
input[type="tel"] {
    border: none;
    /* เอาเส้นขอบออก */
    border-bottom: 3px solid #231641;
    /* เพิ่มเส้นขีดล่าง */
    width: 100%;
    /* ให้กว้างเต็ม */
    padding: 5px;
    /* เพิ่มช่องว่างภายในกล่อง */
    margin-bottom: 15px;
    /* เพิ่มช่องว่างระหว่างช่อง */
    margin-left: 15px;
    /* ขยับออกจากซ้าย */
}

label {
    display: block;
    margin-bottom: 8px;
    /* ลดช่องว่างเล็กน้อย */
    font-size: 20px;
    color: #000000;
    /* เพิ่มสีให้ข้อความ */
    margin-left: 15px;
    /* ขยับออกจากซ้าย */
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #45a049;
}





.details-container {
    width: 100%;
    max-width: 600px;
    /* จำกัดขนาด */
    margin: 0 auto;
    /* จัดให้อยู่ตรงกลาง */
    padding: 20px;
    background-color: #e0e0e0;
    /* สีพื้นหลังอ่อน */
    border-radius: 8px;
    text-align: center;
    /* จัดข้อความให้ตรงกลาง */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* เงาให้กล่อง */
}

.details-container img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-top: 50px;
    /* เพิ่มช่องว่างด้านบน */
    margin-bottom: 15px;
    border-radius: 8px;
}

.details-text {
    font-size: 14px;
    line-height: 1.6;
    color: white !important;
    /* ใช้ !important เพื่อให้การตั้งค่าสีขาวทับสไตล์เดิม */
}

.details-text h3,
.details-text h5 {
    margin: 5px 0;
}



.thumbnail {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    display: block;
    margin-top: 0;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.show {
    display: flex;
}

.lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    box-shadow: 0 0 20px #000;
}

.close {
    position: absolute;
    top: 50px;
    right: 50px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}








.certificate-left {
    text-align: left;
    margin-bottom: 30px;
}

.certificate-left img.thumbnail {
    width: 500px;
    max-width: 100%;
    border: 2px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.certificate-left img.thumbnail:hover {
    transform: scale(1.02);
}

/* สิ่งที่ผู้เรียนจะได้รับ */
.containers {
    display: flex;
    justify-content: center; /* ✅ จัดกลางแนวนอน */
    align-items: center;     /* ✅ จัดกลางแนวตั้ง (หากต้องการ) */
    width: 100%;
    max-width: 400px;
    margin: 0 auto;          /* ✅ จัด containers ให้อยู่กลางจอ (ถ้าจำเป็น) */
}

.item {
    width: 300px;
    padding: 10%;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.item img {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.certificate-img {
    max-width: 300px;
    height: auto;
    margin-bottom: 15px;
}

.item p {
    margin-top: 0;
    line-height: 1.6;
    font-size: 16px;
    /* font-weight: bold; */
}

.certificate-wrapper {
    width: 100%;
    max-width: 1000px;
    /* ปรับได้ตามต้องการ */
    margin: 0 auto;
    text-align: center;
}

.certificate-text {
    flex: 1 1 40%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 5%;
}

.certificate-text h4,
.certificate-text h6 {
    color: #003366;
    margin: 5px 0;
}

.certificate-left {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumbnail {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* ปรับ .containers ให้แสดงเป็นคอลัมน์บนหน้าจอเล็ก */
@media screen and (max-width: 768px) {
    .containers {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        width: 100%;
    }

    .item {
        width: 90%;
        padding: 10px;
        margin-bottom: 15px;
    }

    .item img {
        max-width: 120px;
    }

    .item p {
        font-size: 14px;
    }

    .certificate-text h4 {
        font-size: 18px;
        text-align: center;
    }

    .certificate-text h6 {
        font-size: 16px;
        text-align: center;
    }

    .thumbnail {
        max-width: 90%;
    }

    .certificate-left {
        flex-direction: column;
        padding-left: 0;
    }
}

/* มือถือขนาดเล็ก (≤ 576px) */
@media (max-width: 576px) {
    .containers {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        width: 100%;
    }

    .item {
        width: 100%;
        padding: 10px;
        margin-bottom: 20px;
    }

    .item img {
        max-width: 100%;
        height: auto;
    }

    .item p {
        font-size: 14px;
        line-height: 1.4;
    }

    .certificate-text {
        flex: unset;
        text-align: center;
        padding: 0;
    }

    .certificate-text h4,
    .certificate-text h6 {
        font-size: 16px;
        margin: 5px 0;
        text-align: center;
    }

    .certificate-left {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin-bottom: 20px;
    }

    .thumbnail {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

/* แท็บเล็ต (576px - 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .containers {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        width: 100%;
    }

    .item {
        width: 90%;
        padding: 10px;
        margin-bottom: 15px;
    }

    .item img {
        max-width: 100%;
        height: auto;
    }

    .item p {
        font-size: 15px;
    }

    .certificate-text {
        padding: 0;
        text-align: center;
    }

    .certificate-text h4,
    .certificate-text h6 {
        font-size: 17px;
        text-align: center;
    }

    .certificate-left {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .thumbnail {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}









.banner {
    background-image: url('your-image.jpg');
    background-size: cover;
    /* Ensures full coverage */
    background-position: center;
    /* Centers the image */
    background-repeat: no-repeat;
    /* Prevents tiling */
    min-height: 100vh;
    /* FULL vertical screen */
    display: flex;
    align-items: center;
}


.carousel-item {
    height: 100vh;
}

.hero-title-custom,
.hero-subtitle-custom {
    font-size: 4rem;
    font-weight: 500;
    color: #002147;
    text-align: center;
}

.hero-description {
    font-size: 1rem;
    font-weight: 400;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .hero-title-custom {
        font-size: 2.4rem;
    }

    .hero-subtitle-custom {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.7rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .banner img {
        width: 180px !important;
        margin-bottom: 10px;
    }


}

.stat-block3 {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.service-item3 img {
    width: 100%;
    height: auto;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
}

.image-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.image-container:hover {
    transform: scale(1.02);
}

.image-container img {
    width: 100%;
    display: block;
    border-radius: 12px 12px 0 0;
}



.caption {
    padding: 10px;
    text-align: center;
    color: #444;
    font-size: 0.95rem;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}











/* ส่วนโครงหลักของกล่องข้อมูล */
.data-section {
    background-color: #fff;
    /* พื้นหลังสีขาว */
    border-radius: 15px;
    /* ขอบมน */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    /* เงาด้านนอก */
    padding: 60px;
    /* ระยะห่างขอบใน */
    text-align: center;
    /* จัดข้อความตรงกลาง */
    width: 90%;
    /* กว้าง 90% ของพื้นที่ที่มี */
    max-width: 1200px;
    /* ความกว้างสูงสุด */
}

/* กล่องรวมสถิติต่าง ๆ */
.stats-container {
    display: flex;
    /* ใช้ Flexbox */
    justify-content: center;
    /* หรือใช้ flex-start เพื่อให้เริ่มชิดซ้าย */
    align-items: center;
    /* จัดให้อยู่ตรงกลางแนวตั้ง */
    margin-bottom: 50px;
    /* ระยะห่างด้านล่าง */
    flex-wrap: wrap;
    /* ให้พับลงเมื่อจอเล็ก */
    gap: 30px;
    /* ช่องว่างระหว่างกล่อง */
}

/* กล่องแต่ละรายการสถิติ */
.stat-block {
    background: linear-gradient(90deg, #1f72ae, #2289b5, #24a0bb);
    /* ไล่เฉด 3 สีฟ้าอ่อน */
    border-radius: 20px;
    /* ขอบโค้งมน */
    padding: 20px;
    /* ระยะขอบใน */
    box-shadow: 5px 5px 10px rgba(255, 255, 255, 0.05);
    /* เงาเบาๆ */
    text-align: center;
    /* จัดเนื้อหาตรงกลาง */
    width: 280px;
    height: 160px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* เพิ่มเอฟเฟกต์เด้งตอน hover */
}

/* เอฟเฟกต์เมื่อเอาเมาส์ไปชี้ที่กล่อง */
.stat-block:hover {
    transform: translateY(-10px) scale(1.03);
    /* ลอยขึ้นเล็กน้อยและขยาย */
}

/* ไอคอนที่ใช้แสดงในแต่ละกล่อง */
.stat-icon {
    font-size: 1em;
    /* ขนาดใหญ่ */
    color: #ffffff;
    /* สีเขียวทะเล */
    margin-bottom: 10px;
    /* เว้นระยะด้านล่าง */
    opacity: 0.9;
    /* ความโปร่งใสเล็กน้อย */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    /* เงาเข้มขึ้นเพื่อให้เด่น */
}

.stat-icon2 {
    font-size: 1.5em;
    /* ขนาดใหญ่ */
    color: #ffffff;
    margin-bottom: 1px;
    /* เว้นระยะด้านล่าง */
    opacity: 0.9;
    /* ความโปร่งใสเล็กน้อย */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    /* เงาเข้มขึ้นเพื่อให้เด่น */
}

/* ค่าตัวเลขสถิติ */
.stat-value {
    font-size: 2.3em;
    /* ขนาดใหญ่กว่าปกติ */
    font-weight: bold;
    /* ตัวหนา */
    color: #ffffff;
    /* เขียวเข้ม */
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    /* ระยะห่างระหว่างตัวอักษร */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    /* เงาเข้มขึ้นเพื่อให้เด่น */
}

/* ป้ายข้อความของแต่ละสถิติ */
.stat-label {
    color: #ffffff;
    /* สีเทาเข้ม */
    font-size: 1.2em;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    /* เงาเข้มขึ้นเพื่อให้เด่น */
}

/* ไอคอน Font Awesome (กำหนดเนื้อหาไอคอนผ่าน pseudo-element) */
.fa-users:before {
    content: "\f0c0";
}

/* ไอคอนผู้ใช้งาน */
.fa-building:before {
    content: "\f1ad";
}

/* ไอคอนอาคาร */
.fa-star:before {
    content: "\f005";
}

/* ไอคอนดาว */





.outline-text {
    color: #368db7;
    text-shadow:
        3px 3px 0 white,
        -3px 3px 0 white,
        3px -3px 0 white,
        -3px -3px 0 white;
}



/* QR ติดต่อเรา ท้ายเว็บ */
.responsive-img {
    width: 500px;
    height: auto;
    margin-right: 25px;
    border-radius: 20px;
    /* ขอบมน */

}


.phone-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    /* ลดระยะห่าง */
}

.phone-button {
    font-size: 36px;
    /* ขนาดไอคอนโทรศัพท์ */
    background: none;
    /* ไม่มีพื้นหลัง */
    border: none;
    /* ไม่มีเส้นขอบ */
    padding: 8px;
    /* เพิ่มระยะห่างภายในปุ่ม */
    color: #fff;
    /* สีไอคอนโทรศัพท์ */
    cursor: pointer;
    /* เปลี่ยนเป็นรูปมือเมื่อชี้เมาส์ */
    border-radius: 5px;
    /* ขอบมนเล็กน้อย */
    transition: background-color 0.3s ease;
    /* เอฟเฟกต์เปลี่ยนสีพื้นหลังอย่างนุ่มนวลเมื่อ hover */
}

.phone-button:hover {
    color: rgb(0, 162, 255);
    /* พื้นหลังเมื่อ hover  */
}

.dropdown-content {
    display: none;
    /* ซ่อนไว้ก่อน */
    position: absolute;
    /* ตำแหน่งแบบลอย */
    background-color: #ffffff;
    /* พื้นหลังดรอปดาวน์สีขาว */
    min-width: 180px;
    /* ความกว้างขั้นต่ำของดรอปดาวน์ */
    box-shadow: 0px 4px 8px rgba(14, 5, 44, 0.932);
    /* เงาดรอปดาวน์ */
    z-index: 999;
    /* ให้อยู่บนสุด */
    border-radius: 5px;
    /* ขอบมน */
    top: 100%;
    /* ให้ดรอปดาวน์อยู่ล่างปุ่ม */
    left: 0%;
    /* ชิดซ้ายของปุ่ม */
    transform: none;
    /* ไม่ใช้การเลื่อนตำแหน่งพิเศษ */
    margin-left: 10px;
    /* ระยะห่างด้านซ้าย */
    pointer-events: auto;
    /* ให้คลิกหรือเลือกภายในดรอปดาวน์ได้ */
}

.dropdown-content.show {
    display: block;
    /* คลาสนี้ใช้สำหรับแสดง dropdown แบบ JS toggle */
}

.phone-dropdown:hover .dropdown-content {
    display: block;
    /* แสดงดรอปดาวน์เมื่อเอาเมาส์ไปชี้ */
}

.dropdown-content a {
    color: #000000;
    /* สีข้อความลิงก์ */
    padding: 10px 12px;
    /* ระยะห่างรอบข้อความ */
    text-decoration: none;
    /* ไม่มีเส้นใต้ */
    display: block;
    /* แต่ละลิงก์แสดงแบบ block เต็มบรรทัด */
    border-bottom: 1px solid #555555;
    /* เส้นแบ่งแต่ละลิงก์ */
    font-size: 14px;
    /* ขนาดตัวอักษรเล็กลง */
}

.dropdown-content a:last-child {
    border-bottom: none;
    /* ไม่มีเส้นแบ่งอันสุดท้าย */
}

.dropdown-content a:hover {
    background-color: #bcdfff;
    /* สีพื้นหลังเมื่อ hover ลิงก์ */
}

.contact-name {
    font-weight: bold;
    /* เน้นชื่อด้วยตัวหนา */
    margin-right: 5px;
    /* เว้นระยะห่างจากเบอร์โทร */
}

.contact-number {
    color: #000;
    /* สีดำสนิท */
    font-size: 16px;
    /* เพิ่มขนาดตัวอักษร */
    font-weight: bold;
    /* ทำให้ตัวหนา */
}

.social-icon {
    font-size: 36px;
    /* ลดขนาดไอคอนโซเชียล */
    color: #fff;
    /* สีปกติ */
    margin-right: 20px;
    /* ลดระยะห่าง */
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-icon:active,
.social-icon:focus {
    color: #3700ff;
    /* เปลี่ยนสีเมื่อคลิก หรือโฟกัสเป็นสีเขียว (เปลี่ยนได้ตามต้องการ) */
    outline: none;
    /* ลบกรอบเมื่อคลิก (optional) */
}

.social-icon:hover {
    opacity: 1;
}






/* ติดต่อเรา */
.white-text-shadow {
    color: white;
    text-shadow: 1px 1px 20px black;
}


/* BUTTON 2 */
.animated-button2 {
    display: inline-block;
    /* จัดให้อยู่ในบรรทัดเดียว */
    padding: 8px 20px;
    /* เว้นระยะด้านในปุ่ม */
    font-size: 1rem;
    /* ขนาดตัวอักษร */
    color: white;
    /* สีตัวอักษร */
    text-decoration: none;
    /* ไม่ขีดเส้นใต้ */
    text-align: center;
    /* จัดข้อความกึ่งกลาง */
    border: 2px solid white;
    /* ขอบสีขาว */
    border-radius: 30px;
    /* ขอบมนแบบแคปซูล */
    background: linear-gradient(90deg, #4785c7, #9461c0, #e06c8b);
    /* ไล่สีแนวนอน */
    background-size: 400% 400%;
    /* ขยายพื้นที่พื้นหลังเพื่อให้แอนิเมชันลื่นไหล */
    animation: gradientMove 3s ease infinite;
    /* แอนิเมชันพื้นหลัง */
    cursor: pointer;
    /* เปลี่ยนเมาส์เป็นรูปมือ */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* เงาเบาๆ */
    transition: transform 0.2s ease;
    /* แอนิเมชันตอน hover */
}

.animated-button2:hover {
    transform: scale(1.05);
    /* ขยายขนาดนิดนึงเมื่อ hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    /* เพิ่มเงา */
}


/* แอนิเมชันการเคลื่อนของพื้นหลัง */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* ✅ ปรับเฉพาะขนาดบนมือถือ โดยไม่เปลี่ยนโครง layout */
@media (max-width: 480px) {
    .qr-and-social-container {
        flex-wrap: wrap;
        /* ✅ อนุญาตให้ wrap แต่ยังแนวนอน */
        justify-content: space-between;
        align-items: center;
        padding: 8px;
        gap: 8px;
    }

    .responsive-img {
        width: 150%;
        /* ✅ ย่อขนาด QR */
        height: auto;
        margin: 0 auto;
        /* กึ่งกลาง */
    }

    .social-icons a img {
        width: 2px !important;
        /* ย่อไอคอน */
        height: 2px !important;
    }
}

/* BUTTON 2 End */









/* กล่องแต่ละรายการสถิติ */
.stat-block2 {
    background: linear-gradient(90deg, #ffffff, #ffffff, #ffffff);
    /* พื้นหลังไล่เฉดสีขาว (สามารถเปลี่ยนเป็นสีอื่นได้ เช่น ฟ้าอ่อน) */

    border-radius: 20px;
    /* มุมกล่องโค้งมน */

    padding: 20px;
    /* ระยะห่างภายในกล่อง */

    box-shadow: 5px 5px 40px rgba(0, 0, 0, 0.192);
    /* เงาเบาๆ ด้านหลังกล่อง */

    text-align: center;
    /* จัดข้อความในกล่องให้อยู่ตรงกลาง (แนวนอน) */

    width: 400px;
    /* กำหนดความกว้างของกล่อง */

    height: 400px;
    /* กำหนดความสูงของกล่อง */

    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* เอฟเฟกต์เวลา hover เด้งขึ้นแบบนุ่มนวล */

    margin-bottom: 10px;
    /* เพิ่มระยะห่างด้านล่างของกล่อง */

}


/* เอฟเฟกต์เมื่อ hover กล่อง */
.stat-block2:hover {
    transform: scale(1.05);
    /* ขยายกล่องเล็กน้อยเมื่อเมาส์ชี้ */

    box-shadow: 3px 3px 5px rgba(68, 68, 68, 0.075);
    /* เพิ่มเงาให้เด่นขึ้น */
}

/* จัดรูปภาพภายในกล่องให้ไม่ล้นและปรับขนาดอัตโนมัติ */
.service-item2 img {
    max-width: 100%;
    height: auto;
}

/* รองรับหน้าจอเล็ก เช่น มือถือหรือแท็บเล็ต */
@media (max-width: 768px) {
    .stat-block2 {
        min-height: auto;
        /* ให้ความสูงปรับตามเนื้อหา */

        margin-bottom: 20px;
        /* เว้นระยะห่างด้านล่างของกล่องแต่ละอัน */
    }
}











/* กล่องแต่ละรายการสถิติ */
.stat-block3 {
    background: linear-gradient(90deg, #ffffff, #ffffff, #ffffff);
    border-radius: 25px;
    /* มุมของกล่องโค้งมน  */
    padding: 18px;
    /* เว้นขอบด้านในกล่องทุกด้าน  */
    box-shadow: 5px 5px 40px rgba(82, 82, 82, 0.349);
    text-align: center;
    width: 100%;
    max-width: 1000px;
    /* ปรับให้กล่องไม่กว้างเกิน */
    height: 350px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 30px;
    /* เพิ่มระยะห่างด้านล่างของกล่อง */
}

/* เอฟเฟกต์เมื่อ hover กล่อง */
.stat-block3:hover {
    transform: scale(1.05);
    box-shadow: 3px 3px 5px rgba(68, 68, 68, 0.075);
}

/* จัดรูปภาพภายในกล่องให้ไม่ล้นและปรับขนาดอัตโนมัติ */
.service-item3 img {
    max-width: 100%;
    height: auto;
}

/* รองรับหน้าจอเล็ก เช่น มือถือหรือแท็บเล็ต */
@media (max-width: 768px) {
    .stat-block3 {
        min-height: auto;
        margin-bottom: 25px;
        /* ลดระยะห่างด้านล่างในหน้าจอเล็ก */
    }
}

/* จัดการให้กล่องในรูปแบบของ grid เมื่อหน้าจอเล็กลง */
@media (max-width: 576px) {
    .row {
        display: flex;
        flex-direction: column;
    }

    .col-md-6,
    .col-lg-3 {
        width: 100%;
        margin-bottom: 25px;
        /* เพิ่มระยะห่างด้านล่างของกล่อง */
    }
}

.news-img-wrapper {
    height: 200px;
    /* Force same height for all images */
    overflow: hidden;
    /* Crop any overflow */
    background-color: #eee;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crop and scale to fit */
    display: block;
}

.row {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding-left: 0px;
    padding-right: 15px;
}

.popup-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.popup-box {
    background-color: #000;
    color: white;
    display: flex;
    flex-direction: row;
    gap: 30px;
    max-width: 1000px;
    width: 100%;
    padding: 30px;
    border-radius: 10px;
    align-items: flex-start;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.popup-image img {
    width: 250px;
    border-radius: 10px;
    object-fit: cover;
}


.popup-text h2 {
    font-size: 1.8rem;
      font-family: "BBQPlz Sans";
    font-weight: 600;
    margin-bottom: 0;
    color: white;
}

.popup-text h5 {
        font-family: "BBQPlz Sans";
    font-weight: 400;
    color: #ccc;
    margin-top: 10px;
}

.popup-divider {
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    margin: 20px 0;
}

.popup-text {
    flex: 1;
        font-family: "BBQPlz Sans";
    text-align: left;
    /* ✅ Align all inner content to the left */
}

.popup-list {
    padding-left: 20px;
    list-style-type: disc;
    text-align: left;
    /* ✅ Ensure bullets and text align left */
}

.popup-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: white;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .popup-box {
        flex-direction: column;
        text-align: center;
    }

    .popup-image img {
        width: 180px;
    }
}







.custom-font-block {
  font-family: 'BBQPlz Sans';
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

.custom-font-block h6 {
  font-family: 'BBQPlz Sans';
  font-size: 1.1rem;
  color: #002147;
}