/* =========================================
   Variables & Base Settings
   ========================================= */
:root {
    --primary-color: #f37021;
    --text-dark: #111111;
    --bg-light: #ffffff;
    --bg-gray: #fafafa;
}

body {
    margin: 0;
    font-family: 'Prompt', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
}

/* --- Dark Mode Base --- */
body.dark-mode,
body[data-theme="dark"] {
    background: #1a1a1a;
    color: #f5f5f5;
    --bg-light: #1a1a1a;
    --bg-gray: #222222;
    --text-dark: #f5f5f5;
}

/* =========================================
   Main Container & Title
   ========================================= */
.dual-container {
    max-width: 1200px;
    margin: 120px auto 40px; /* เว้นระยะจาก Navbar */
    padding: 0 20px;
}

/* =========================================
   Hero Banner & Title (ภาพพื้นหลังหัวข้อ)
   ========================================= */
.dual-hero {
    /* เปลี่ยน 'bg-dual.jpg' เป็นชื่อไฟล์รูปที่คุณต้องการใช้ */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('background.jpg') center/cover no-repeat;
    
    /* ปรับความสูงให้เยอะหน่อย เพราะหัวข้อหน้านี้มี 3 บรรทัด */
    height: 400px; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px; /* เว้นระยะไม่ให้ซ้อนกับ Navbar (ปรับแต่งได้ตาม Navbar จริง) */
    text-align: center;
    padding: 0 20px;
}

.dual-hero .page-title {
    color: #ffffff; /* ตัวหนังสือสีขาว */
    font-size: 3rem; /* ปรับขนาดฟอนต์ได้ตามต้องการ */
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6); /* เพิ่มเงาให้ตัวหนังสืออ่านง่ายขึ้น */
}

/* ปรับระยะขอบบนของ .dual-container ใหม่ เนื่องจากเราย้าย Title ออกไปไว้ที่ Hero แล้ว */
.dual-container {
    max-width: 1200px;
    margin: 50px auto 40px; 
    padding: 0 20px;
}

/* =========================================
   Lab Images
   ========================================= */
.lab-images-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.lab-img {
    width: 50%;
    max-width: 580px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* =========================================
   Description & Buttons
   ========================================= */
.description-section {
    max-width: 1000px;
    margin: 0 auto 60px;
}

.description-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.description-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}

body.dark-mode .description-section p {
    color: #ccc;
}

/* กลุ่มปุ่ม 3 ปุ่ม */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* ให้ปุ่มตกลงมาบรรทัดใหม่ในจอเล็ก */
}

.btn-pdf {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(243, 112, 33, 0.4);
    min-width: 200px;
}

.btn-pdf:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 112, 33, 0.6);
}

/* =========================================
   Tuition Banner (Orange Background)
   ========================================= */
.tuition-banner {
    background: var(--primary-color);
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
    color: white;
    text-align: center;
    overflow: hidden;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.robot-img {
    width: 250px;
    object-fit: contain;
}

.banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grad-icon {
    width: 80px;
    margin-bottom: 10px;
}

.banner-text h3 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
}

.banner-text .price {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.banner-text p {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 500;
}

/* =========================================
   Study Plan Section
   ========================================= */
.study-plan-section {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-light);
}

.study-plan-img {
    width: 100%;         /* บังคับให้รูปย่อ-ขยายตามขนาดหน้าจอ (สำหรับมือถือ) */
    max-width: 1000px;   /* แต่ถ้าเป็นหน้าจอคอม จะขยายใหญ่สุดแค่ 1000px */
    height: auto;        /* รักษาสัดส่วนของรูปภาพไม่ให้บิดเบี้ยว */
    display: block;      /* จัดระเบียบการแสดงผล */
    margin: 0 auto;      /* จัดให้อยู่กึ่งกลางเสมอ */
}
/* =========================================
   Contact / Footer Section
   ========================================= */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-col h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-col .sub-title {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

body.dark-mode .contact-col .sub-title { color: #aaa; }

.contact-info {
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-info i {
    color: var(--text-dark);
    margin-right: 5px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.info-grid strong {
    display: block;
    margin-bottom: 3px;
    font-weight: 600;
}

.info-grid a {
    color: var(--text-dark);
    text-decoration: none;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    .lab-images-wrapper {
        flex-direction: column;
    }
    .lab-img {
        width: 100%;
        max-width: 100%;
    }
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    .btn-pdf {
        width: 100%;
        max-width: 300px;
    }
    .hide-mobile {
        display: none;
    }
    .banner-text .price {
        font-size: 3.5rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
}