.header-section img {
    width: 100%;
}

/************************************/

.header-section {
    position: relative;
    text-align: center;
    /* จัดตำแหน่งของข้อความหรือองค์ประกอบในภาพ */
}

.image-container {
    position: relative;
}

.img-fluid {
    width: 100%;
    height: auto;
}

/* เมนูปุ่ม */
.menu-bar-container {
    position: absolute;
    bottom: 32px;
    /* วางเมนูด้านล่างของรูป */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    /* ระยะห่างระหว่างปุ่ม */
    flex-wrap: wrap;
    /* ให้ปุ่มเลื่อนลงเมื่อพื้นที่ไม่พอ */
    justify-content: center;
    /* จัดปุ่มให้อยู่กลางเมื่อหน้าจอแคบ */
    width: 60%;
}

/* ปุ่ม */
.button-bar {
    text-align: center;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    /* สีพื้นหลังโปร่งแสง */
    border-radius: 8px;
    display: flex;
    /* ใช้ Flexbox */
    flex-direction: column;
    /* จัดข้อความในแนวตั้ง */
    justify-content: center;
    /* จัดให้อยู่ตรงกลางแนวตั้ง */
    align-items: center;
    height: auto;
    /* ปรับความสูงอัตโนมัติตามเนื้อหา */
    width: 30%;
    /* ใช้ความกว้างแบบเปอร์เซ็นต์ */
    max-width: 355px;
    /* จำกัดความกว้างสูงสุด */
    transition: transform 0.3s, background-color 0.3s;
}

.button-bar a {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-bar:hover {
    background-color: #222;
    color: black;
    transform: scale(1.05);
    border: 2px solid #ff0000;
}

/* ข้อความภาษาไทย */
.button-bar-th {
    font-size: 32px;
    font-weight: bold;
}

/* ข้อความภาษาอังกฤษ */
.button-bar-en {
    font-size: 28px;
    color: #ccc;
}

/* ปุ่มเฉพาะ */
.button-bar-left,
.button-bar-center,
.button-bar-right {
    background-color: #000;
    width: 30%;
    /* ปรับเป็นเปอร์เซ็นต์ */
    height: auto;
    /* ปรับความสูงอัตโนมัติ */
    max-width: 355px;
    /* จำกัดความกว้างสูงสุด */
    border: 2px solid #fff;
}

/* Media Query สำหรับหน้าจอเล็ก */
@media (max-width: 768px) {
    .menu-bar-container {
        position: relative;
        /* ใช้ relative เพื่อให้ปุ่มจัดตำแหน่งใน flow */
        margin-top: 30px;
        /* เพิ่มระยะห่างจากภาพ */
        display: flex;
        /* ใช้ Flexbox */
        flex-direction: column;
        /* จัดปุ่มในแนวตั้ง */
        justify-content: center;
        /* จัดให้อยู่ตรงกลางในแนวตั้ง */
        align-items: center;
        /* จัดให้อยู่ตรงกลางในแนวนอน */
        width: 100%;
        /* ใช้ความกว้างเต็มหน้าจอ */
        padding: 10px;
        /* เพิ่ม padding เพื่อเว้นพื้นที่รอบๆ */
        box-sizing: border-box;
        /* รวม padding ในความกว้าง */
    }

    .button-bar-left,
    .button-bar-center,
    .button-bar-right {
        width: 90%;
        /* ปรับปุ่มให้เต็มหน้าจอมากขึ้น */
        max-width: 400px;
        /* จำกัดความกว้างสูงสุด */
        height: auto;
        /* ปรับความสูงอัตโนมัติ */
        text-align: center;
        /* จัดข้อความในปุ่มให้อยู่ตรงกลาง */
    }

    .button-bar-th {
        font-size: 24px;
        /* ลดขนาดฟอนต์สำหรับหน้าจอเล็ก */
    }

    .button-bar-en {
        font-size: 20px;
        /* ลดขนาดฟอนต์สำหรับหน้าจอเล็ก */
    }
}