@font-face {
    font-family: kkfont;
    src: url('Athiti-Light.ttf');
}

body {
    margin: 0;
    padding: 0;
    font-family: kkfont;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

nav {
    z-index: 3;
    position: sticky;
    top: 15px;
}

.pre_image {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    margin-top: -75px;
    z-index: 1;
}

.pre_image img {
    width: 100%;
    height: 450px;
    filter: brightness(60%) blur(2px);
}

.insert_data {
    position: absolute;
    z-index: 2;
    width: 100%;
    margin-top: -25px;
    padding-left: 260px;
}

.insert_data .inser {
    background-color: antiquewhite;
    width: 700px;
    height: 60px;
    border-radius: 20px;
}

#title {
    text-align: center;
    margin-top: 80px;
}

#title h1 {
    font-size: 26px;
    font-weight: bold;
}

#title {
    font-size: 14px;
}

.card_product {
    width: 340px;
    height: 350px;
    background-color: bisque;
    border-radius: 20px;
    position: relative;
}

.card_product img {
    border-radius: 20px;
    width: 340px;
    height: 350px;
    position: absolute;
    z-index: 1;
    filter: brightness(70%);
}

.card_product .card_detail {
    border-radius: 20px;
    position: absolute;
    z-index: 2;
    background-color: white;
    opacity: 70%;
    margin-left: 10px;
    margin-top: 150px;
}

.card_product .card_detail .card_title {
    display: flex;
}

.card_product .card_detail .card_product_detail {
    display: flex;
}

.card_product .card_detail .card_product_detail h1 {
    font-size: 24px;
    font-weight: bold;
}

.card {
    overflow: hidden;
}

.card-img {
    transition: transform 0.3s ease-in-out;
}

.card:hover .card-img {
    transform: scale(1.1);
}

.zoom {
    transition: transform 0.3s ease;
}

.zoom:hover {
    transform: scale(1.1);
}

.small-img {
    width: 100px;
    height: 200px;
    margin-top: 20px;
}

.input-group-text {
    cursor: pointer;
}
.col-lg-5 {
    height: 780px !important;
}
/* ---------------- Responsive Design ---------------- */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .pre_image img {
        height: auto;
        aspect-ratio: 16/9;
    }

    .insert_data {
        padding-left: 20px;
        margin-top: 10px;
        text-align: center;
    }

    .insert_data .inser {
        width: 90% !important;
        height: auto;
    }

    #title h1 {
        font-size: 20px;
    }

    .card_product {
        width: 100% !important;
        height: auto;
    }

    .card_product img {
        width: 100% !important;
        height: auto !important;
        position: static;
    }

    .card_product .card_detail {
        margin-top: 100px;
        margin-left: auto;
        margin-right: auto;
        width: 90%;
        position: static;
    }

    .card_product .card_detail .card_product_detail h1 {
        font-size: 18px !important;
    }

    .small-img {
        width: 80px;
        height: auto;
    }
    .row {
        display: flex;
        flex-direction: column;
        padding: 0 15px;
        margin-top: 40px;
    }

    /* ให้รูปภาพ col-lg-5 แสดงก่อน */
    .col-lg-5 {
        order: 1; /* รูปภาพ แสดงก่อน */
        position: relative !important;
        width: 100% !important;
        height: 600px !important; /* กำหนดความสูงรูปภาพบนมือถือ */
        background-position: center center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        margin-bottom: 15px;
    }

    /* ข้อความ col-lg-7 แสดงหลัง */
    .col-lg-7 {
        order: 2; /* ข้อความ แสดงหลัง */
        width: 100% !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }

    /* ... ส่วนอื่น ๆ ของ CSS มือถือที่มีอยู่แล้ว ... */



    h1.display-1 {
        font-size: 2.5rem !important;
        padding-left: 0 !important;
        font-weight: 700;
        color: #4DA865;
    }

    .welcome {
        font-size: 1.75rem !important;
        height: auto !important;
        padding-left: 0 !important;
        color: #BC5686;
        font-weight: 700;
    }

    p.lead {
        font-size: 1rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        color: #4DA865;
        margin-top: 10px;
        line-height: 1.4;
    }

   

    .book-button {
        width: 100% !important;
        font-size: 1rem !important;
        line-height: 2.5rem !important;
        left: 0 !important;
        bottom: 0.5rem !important;
        border-radius: 6px !important;
    }
    
    .promotion-section {
        margin-top: 400px !important; /* ปรับระยะห่างจากส่วนก่อนหน้า */
        padding: 0 15px;
        }

    
    .col-lg-7 a.btn {
        display: block;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center;
    }

    .col-lg-7 a.btn + a.btn {
        margin-top: 10px !important;
    }

    .produc_pre {
        justify-content: center !important; /* จัดให้อยู่ตรงกลางแนวนอน */
    }

    .wow.fadeInUp {
        margin: 20px auto !important; /* ให้การ์ดอยู่ตรงกลาง */
    }
    .hide-on-mobile {
        display: none !important;
    }
    .about-img {
        text-align: center;
        padding: 20px !important;
    }

    .about-img img {
        width: auto !important;       /* ไม่ยืดเต็มจอ */
        max-width: 100%;              /* ป้องกันล้นจอ */
        height: auto;
        display: inline-block;
    }
    .col-lg-6.text-col {
        display: flex !important;
        flex-direction: column !important;
    }
    .col-lg-6.text-col .news-title {
        order: -1 !important;
    }
}

/* Desktop - ขนาดปกติ */


