/* =========================================
   STYLECONTENT.CSS - MOBILE RESPONSIVE
   ========================================= */

/* 1. Global Wrapper: คุมความกว้างให้อ่านง่าย */
.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
    line-height: 1.8;
    color: #444;
    font-family: 'Sarabun', sans-serif;
}

/* 2. Descriptive Text: 1.3rem บน PC */
.content-wrapper p {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 25px;
    text-align: justify;
}

/* 3. Headings: 2.5rem บน PC */
.content-wrapper h2 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #1a3a5a;
    margin: 50px 0 25px 0;
    width: 100%;
    display: block;
    border: none;
}

.content-wrapper h2:first-child {
    margin-top: 0;
}

/* 4. Table Responsive Support */
.table-responsive-scroll {
    width: 100%;
    overflow-x: auto; /* เปิดการเลื่อนแนวนอนบนมือถือ */
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
}

/* 5. Responsive Design (Mobile Friendly) */
@media (max-width: 767px) {
    .content-wrapper {
        padding: 30px 15px; /* ลดระยะห่างขอบ */
    }

    .content-wrapper h2 {
        font-size: 1.8rem !important; /* ย่อหัวข้อลงบนมือถือ */
        margin: 30px 0 15px 0;
    }

    .content-wrapper p {
        font-size: 1.1rem; /* ย่อเนื้อหาลงเล็กน้อยเพื่อให้พอดีจอมือถือ */
        text-align: left;
    }

    /* บังคับให้ตารางมีความกว้างขั้นต่ำเพื่อให้ข้อมูลไม่เบียด */
    .table-custom {
        min-width: 800px; 
    }
}