* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* outline: auto; */
}

body {
    background-color: #cccccc; /* สีพื้นหลังหลัก */
    font-family: 'Pathway Extreme', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* ดัน Footer ลงล่างสุดเสมอ */
    
}

/* =========================================
   1. SECONDARY NAVIGATION (แถบเมนูย่อยสีกรมท่า)
   ========================================= */
.full-width-nav {
    width: 100%;
    /* ปรับ margin-top ให้เหมาะสมกับ Header ของคุณ (ถ้า Fixed อาจต้องเผื่อเยอะหน่อย) */
    margin-top: 80px; 
    background-color: #1e2b40;
    padding: 25px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.nav-button-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* สถานะปุ่ม Active (สีส้มสว่าง) */
.btn-active {
    background-color: #fcae47; 
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.btn-active:hover { background-color: #ffbd66; }

/* สถานะปุ่ม Inactive (สีส้มอมน้ำตาล) */
.btn-inactive {
    background-color: #c49250; 
    color: #1e2b40;
}
.btn-inactive:hover { background-color: #d6a15a; }

/* =========================================
   2. PAGE CONTENT LAYOUT (ส่วนเนื้อหา)
   ========================================= */

/* Container ควบคุมความกว้างเนื้อหา */
.content-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- Announcement Box (กล่องประกาศ) --- */
.top-announcement {
    border: 3px solid #f2a541;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    background: white;
    max-width: 90%;
    margin: 30px auto 60px auto; /* เว้นล่างเยอะหน่อย */
}

/* --- Dual Degree Section (กล่องข้อความหลัก) --- */
.dual-section {
    max-width: 90%;
    margin: 0 auto;
    position: relative;
    padding-bottom: 40px;
}

/* หัวข้อสีส้ม (ซ้อนอยู่บน) */
.dual-title {
    background: #f2a541;
    color: white;
    font-size: 26px;
    font-weight: 700;
    padding: 25px 30px;
    border-radius: 15px;
    width: 65%;
    position: relative;
    z-index: 2; /* อยู่บนสุด */
}

/* เนื้อหาสีน้ำเงิน (ซ้อนอยู่ล่าง) */
.dual-dark {
    background: #1f2f3a;
    color: white;
    padding: 50px 30px 30px 30px;
    border-radius: 10px;
    margin-top: -20px; /* ดึงขึ้นไปซ้อนกับหัวข้อ */
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* --- Highlights Section (ไอคอน 3 อัน) --- */
.dual-highlight {
    background: #f2a541;
    border-radius: 20px;
    padding: 50px 20px;
    margin: 50px auto;
    max-width: 1060px; /* กำหนดความกว้าง */
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
}

.item {
    width: 260px;
}

/* วงกลมไอคอน (รวมทั้งแบบใส่รูปและใส่ Text) */
.icon-circle {
    width: 90px;
    height: 90px;
    background: #1f2f3a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin: 0 auto 20px;
}

.icon-circle img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* --- Why Section (ทำไมต้องเรียน...) --- */
.why-wrapper {
    position: relative;
    margin: 80px auto;
    max-width: 1060px;
}

/* หัวข้อสีส้ม (แปะมุมขวาบน) */
.why-title {
    position: absolute;
    top: -40px; /* ปรับตำแหน่งให้ลอยขึ้น */
    right: 0;
    background: #f2a541;
    color: white;
    padding: 18px 45px;
    font-size: 22px;
    font-weight: 700;
    border-radius: 10px;
    z-index: 3;
}

/* เนื้อหาสีน้ำเงิน */
.why-dark {
    position: relative;
    background: #1f2f3a;
    color: white;
    padding: 60px 30px 30px 30px;
    border-radius: 10px;
    z-index: 2; /* ให้กล่องเนื้อหาทับส่วนหางของ title */
}

/* --- Image Section (รูปภาพคู่) --- */
.image-section {
    max-width: 900px;
    margin: 60px auto;
    display: flex;
    gap: 20px;
}

.image-section img {
    flex: 1;
    width: 100%; /* แก้ไขให้ยืดหยุ่น */
    max-width: 50%;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: 0.3s;
    object-fit: cover;
}

/* =========================================
   3. RESPONSIVE (MEDIA QUERIES)
   ========================================= */

/* Tablet & Mobile (รวมกันเพื่อความกระชับ) */
@media screen and (max-width: 900px) {
    /* ปรับหัวข้อ Dual Title */
    .dual-title {
        width: 100%;
        font-size: 22px;
        text-align: center;
    }

    .dual-dark {
        padding: 40px 20px 25px 20px;
        text-align: left; /* หรือ center แล้วแต่ชอบ */
    }

    /* ปรับ Highlight (ไอคอนเรียงแนวตั้ง) */
    .dual-highlight {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        width: 90%; /* ให้มีขอบเหลือบ้างในมือถือ */
    }

    .item {
        width: 100%;
        max-width: 300px;
    }

    /* ปรับ Why Section */
    .why-title {
        position: static; /* ยกเลิกการลอย */
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: -10px; /* ให้เกยกันนิดหน่อย */
        transform: none;
        border-radius: 10px 10px 0 0;
    }
    
    .why-dark {
        border-radius: 0 0 10px 10px; /* มนแค่ล่าง */
        padding-top: 30px;
    }

    /* ปรับรูปภาพ */
    .image-section {
        flex-direction: column;
        width: 90%;
    }

    .image-section img {
        max-width: 100%;
    }
}

/* Mobile Small (ปรับปุ่ม Nav) */
@media screen and (max-width: 600px) {
    .nav-button-container {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .nav-btn {
        width: 100%;
    }
}