
/* โครงสร้างหลัก */
.committee-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.committee-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    font-family: "Prompt", sans-serif;
    color: #f0f0f0;
}

/* หัวข้อใหญ่ */
.committee-section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
    color: #d4af37; /* gold */
    letter-spacing: 1px;
}

/* กล่องเนื้อหาแต่ละหมวด */
.committee-block {
    background: rgba(255,255,255,0.05);
   /* border-left: 4px solid #d4af37;*/
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 6px;
}

/* หัวข้อย่อย */
.committee-block h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ffd86b;
}

/* รายการ bullet */
.committee-list li {
    margin: 6px 0;
    font-size: 18px;
}

/* GRID รายชื่อสมาชิก */

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 15px;
    justify-items: center; /* ⭐ จัดกึ่งกลางทุกการ์ด */
}

/* การ์ดสมาชิก */
.committee-member-card {
    background: rgba(255,255,255,0.08);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(212,175,55,0.4);
}

.committee-member-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.committee-member-card h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #fff;
}

.committee-member-card .committee-role {
    font-size: 16px;
    color: #ffd86b;
    margin-bottom: 8px;
}

.committee-member-card .committee-desc {
    font-size: 15px;
    opacity: 0.9;
}

/* ========== Desktop (จอใหญ่) ========== */
.committee-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

/* ========== Tablet (601px – 900px) ========== */
@media (max-width: 900px) {

    .committee-section-title {
        font-size: 28px;
    }

    .committee-block {
        padding: 18px 22px;
    }

    .committee-block h3 {
        font-size: 22px;
    }

    .committee-list li,
    .committee-block p {
        font-size: 17px;
    }

    /* GRID ปรับให้การ์ดไม่แคบเกินไป */
    .committee-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
    }

    .committee-member-card img {
        height: 200px;
    }
}

/* ========== Mobile (≤ 600px) ========== */
@media (max-width: 600px) {

    .committee-section {
        padding: 15px;
        margin: 25px auto;
    }

    .committee-section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .committee-block {
        padding: 16px 18px;
        border-radius: 6px;
    }

    .committee-block h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .committee-block p,
    .committee-list li {
        font-size: 15px;
        line-height: 1.55;
    }

    /* GRID มือถือ = 1 คอลัมน์เต็มจอ */
    .committee-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .committee-member-card img {
        height: 180px;
    }

    .committee-member-card h4 {
        font-size: 18px;
    }

    .committee-role {
        font-size: 15px;
    }

    .committee-desc {
        font-size: 14px;
    }
}
/*--แก้จอเอียง--*/
/* ============================
   ⭐ Tablet (≤ 900px)
============================ */
@media (max-width: 900px) {

    .committee-wrapper {
        max-width: 95%;
    }

    .committee-section-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .committee-block {
        padding: 18px 20px;
    }

    .committee-block h3 {
        font-size: 21px;
    }

    .committee-list li {
        font-size: 16px;
    }

    .committee-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
    }

    .committee-member-card img {
        height: 190px;
    }
}

/* ============================
   ⭐ Mobile (≤ 600px)
============================ */
@media (max-width: 600px) {

    .committee-wrapper {
        max-width: 95%;
        padding: 0 10px;
    }

    .committee-section {
        padding: 15px;
        margin: 20px auto;
    }

    .committee-section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .committee-block {
        padding: 15px 16px;
    }

    .committee-block h3 {
        font-size: 19px;
    }

    .committee-list li {
        font-size: 15px;
        line-height: 1.55;
    }

    .committee-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .committee-member-card img {
        height: 170px;
    }

    .committee-member-card h4 {
        font-size: 17px;
    }

    .committee-role {
        font-size: 14px;
    }

    .committee-desc {
        font-size: 13px;
    }
}

/* ============================
   ⭐ Mobile Landscape (เอียงจอ)
   ความสูงน้อย → ลด padding + ลดขนาดการ์ด
============================ */
@media (max-height: 500px) and (max-width: 1024px) {

    .committee-wrapper {
        max-width: 95%;
        padding: 0 10px;
    }

    .committee-section-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .committee-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .committee-member-card {
        padding: 12px;
    }

    .committee-member-card img {
        height: 150px;
    }

    .committee-member-card h4 {
        font-size: 16px;
    }

    .committee-role {
        font-size: 14px;
    }

    .committee-desc {
        font-size: 13px;
    }
}

