/* --- การตั้งค่าทั่วไป --- */
body {
    font-family: 'Sarabun', sans-serif; /* ใช้ฟอนต์ที่อ่านง่าย */
    margin: 0;
    background-color: #f4f4f4; /* สีพื้นหลังเว็บ */
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px; /* ขยายความกว้างสูงสุดเล็กน้อย */
    margin: 0 auto; /* จัดให้อยู่กึ่งกลาง */
}

.text-center {
    text-align: center;
}

.main-content h2 {
    text-align: center;
}

.main-content > p {
    text-align: center;
}

h2 {
    color: #ffffff;
}
 h3 {
    color: #004488;
}

h4 {
    color: #333;
}

hr {
    border: 1px solid #eee;
    margin: 20px 0;
}


/* --- ส่วนหัว (Header) --- */
.site-header {
    background-color: #004488; /* สีน้ำเงินเข้ม */
    color: white;
    padding: 20px 0;
    text-align: center;
}
.site-header h1 {
    margin: 0;
}

/* --- เมนูนำทาง (Navigation) --- */
.main-nav {
    background-color: #333;
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* จัดเมนูแนวนอน */
    justify-content: center;
}
.main-nav ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 15px 20px;
}
.main-nav ul li a:hover {
    background-color: #555;
}

/* --- ส่วนเนื้อหา (Content Area) --- */
.content-area {
    display: flex;
    gap: 30px; /* ระยะห่างระหว่างเนื้อหาหลักกับแถบข้าง */
    padding: 20px 0;
}
.main-content {
    flex: 3; /* ให้เนื้อหาหลักกว้างกว่า */
    background: white;
    padding: 25px;
    border-radius: 5px;
}
.sidebar {
    flex: 1; /* ให้แถบข้างกว้างน้อยกว่า */
}
.widget {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.widget h3 {
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.widget ul {
    list-style: none;
    padding: 0;
}
.widget ul li {
    margin-bottom: 10px;
}
.widget ul li a {
    text-decoration: none;
    color: #004488;
}
.widget ul li a:hover {
    text-decoration: underline;
}

/* --- สไตล์สำหรับตารางข้อมูล ITA --- */
table {
    width: 100%;
    border-collapse: collapse; /* ทำให้เส้นขอบตารางรวมเป็นเส้นเดียว */
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 0.95em;
}
th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}
thead {
    background-color: #e9f2fa; /* สีพื้นหลังหัวตาราง */
}
th {
    font-weight: bold;
}
tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* สีสลับแถว */
}
td ul {
    margin: 0;
    padding-left: 20px;
}


/* --- ส่วนท้าย (Footer) --- */
.site-footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}