/* @import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;600&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Sarabun', sans-serif;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #3b3024; /* สีพื้นหลังโทนน้ำตาลเข้มตามรูป * /
    overflow: hidden;
} */

.expanding-cards-container {
    display: flex;
    width: 100%;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
}

.expanding-cards-container .panel {
    background-size: cover;
    background-position: center 30px;
    background-repeat: no-repeat;
    height: 550px;
    /* ความสูงของแผง */
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    flex: 0.5;
    /* ขนาดตอนหุบ */
    margin: 10px;
    position: relative;
    transition: flex 0.7s ease-in-out;
    /* Animation ยืดหด */
    -webkit-transition: all 700ms ease-in-out;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'Kanit', sans-serif;
}

/* Overlay สีดำจางๆ เพื่อให้อ่าน text ง่ายขึ้น */
.expanding-cards-container .panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.5s;
}

/* เมื่อ Active (ถูกคลิก) */
.expanding-cards-container .panel.active {
    background-position: center 30px;
    flex: 1.5;
    /* ขนาดตอนขยายใหญ่ */
    cursor: default;
}

.expanding-cards-container .panel.active::before {
    background: rgba(0, 0, 0, 0.6);
    /* มืดลงอีกนิดเพื่อให้ content เด่น */
}

/* ส่วนของ Content (ข้อความ + วิดีโอจำลอง) */
.expanding-cards-container .content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: opacity 0.3s ease-in 0.4s;
    /* ดีเลย์นิดหน่อยรอให้ยืดเสร็จ */
}

.expanding-cards-container .panel.active .content {
    opacity: 1;
}

/* ตกแต่ง Text */
.expanding-cards-container .quote-icon {
    font-size: 3rem;
    color: #ccc;
    line-height: 1;
}

.expanding-cards-container h3 {
    font-size: 24px;
    margin: 10px 0 0;
    color: #fff;
    font-family: 'Kanit', sans-serif;
    /* สีเหลืองทอง */
}

.expanding-cards-container p {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    color: #e6ac5d;
    margin: 5px 0 20px;
}

/* จำลอง Video Player */
.expanding-cards-container .video-player {
    background: #000;
    border: 2px solid #555;
    height: 200px;
    width: 100%;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.expanding-cards-container .play-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expanding-cards-container .play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #333;
    margin-left: 5px;
}

/* ซ่อน text ชื่อคนในโหมดปกติ (โชว์เฉพาะตอน active หรือจะโชว์ตลอดก็ได้) */
.expanding-cards-container .name-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 1;
    transition: opacity 0.3s;
}

/* ซ่อนชื่อมุมล่าง ถ้า active แล้ว (เพื่อไปโชว์แบบเต็มใน content แทน) */
.expanding-cards-container .panel.active .name-tag {
    opacity: 0;
}

@media (max-width: 480px) {
    .expanding-cards-container {
        width: 100vw;
    }

    .expanding-cards-container .panel:nth-of-type(4),
    .expanding-cards-container .panel:nth-of-type(5) {
        display: none;
        /* ซ่อนบางอันในมือถือ */
    }
}