/* =========================================
   style.css - ThaiAirCareer Premium Theme
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #050505;          /* พื้นหลังหลัก สีดำสนิท */
    --bg-card: #111111;          /* พื้นหลังการ์ด สีเทาดำเข้ม */
    --gold-primary: #d4af37;    /* สีทองพรีเมียม */
    --gold-hover: #f1c40f;      /* สีทองสว่าง */
    --text-white: #ffffff;      /* สีตัวอักษรหลัก */
    --text-muted: #cccccc;      /* สีตัวอักษรรอง (ปรับให้สว่างขึ้น) */
    --border-color: #222222;    /* สีเส้นขอบ */
}

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

body {
    font-family: 'Sarabun', sans-serif;
    line-height: 1.7;
    color: var(--text-white);
    background-color: var(--bg-dark);
}

a { color: inherit; text-decoration: none; transition: 0.3s; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.gold-text { color: var(--gold-primary) !important; }
p { color: #dddddd; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: var(--text-white) !important; }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.main-header {
    background: linear-gradient(145deg, rgba(28, 28, 28, 0.95) 0%, rgba(5, 5, 5, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* รองรับ Safari */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo a { display: flex; align-items: center; }
.main-logo { height: 80px; width: auto; object-fit: contain; transition: 0.3s; }
.main-logo:hover { transform: scale(1.02); }

/* Desktop Menu */
.nav-menu ul { list-style: none; display: flex; gap: 30px; align-items: center; margin: 0; padding: 0; }
.nav-menu a { color: var(--text-white); font-size: 1rem; font-weight: 400; transition: 0.3s ease; position: relative; }
.nav-menu a:hover, .nav-menu a.active { color: var(--gold-primary); font-weight: 600; }

/* ปุ่ม ติดต่อ / สมัครเรียน (Desktop) */
.nav-menu li.apply a { background: var(--gold-primary); color: #000; padding: 10px 24px; border-radius: 6px; font-weight: 700; }
.nav-menu li.apply a:hover { background: var(--gold-hover); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); transform: translateY(-2px); }

/* =========================================
   MOBILE MENU FIX (แก้กระจกเบลอ 100%)
   ========================================= */
.menu-toggle { display: none; font-size: 1.8rem; color: var(--gold-primary); cursor: pointer; }
/* Hero */
.hero { background: linear-gradient(to right, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 100%), url('images/307846_0.jpg') no-repeat center center/cover; padding: 150px 0; border-bottom: 2px solid var(--border-color); }
@media (max-width: 991px) {
    .main-logo { height: 60px; }
    .menu-toggle { display: block; }
    
    /* ปลดล็อคกรงขัง: ปิดกระจกเบลอในมือถือ */
    .main-header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #050505 !important;
        overflow: visible !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 81px; 
        left: -120%; 
        width: 100%;
        height: calc(100vh - 81px);
        background: rgba(5, 5, 5, 0.98); 
        transition: 0.4s ease-in-out;
        border-top: 1px solid var(--gold-primary);
        z-index: 9999;
        overflow-y: auto;
    }
    
    .nav-menu.active, .nav-menu.showing { left: 0; }
    
    .nav-menu ul { flex-direction: column; padding: 40px 20px; gap: 25px; align-items: center; margin: 0; }
    .nav-menu a { font-size: 1.3rem; display: block; width: 100%; text-align: center; color: #fff; }
    .nav-menu li.apply { width: 80%; margin-top: 20px; }
    .nav-menu li.apply a { padding: 15px; }
}

/* =========================================
   หน้า INDEX (รวม CSS จากทุกกล่องมาไว้ที่นี่)
   ========================================= */
.section-title { text-align: center; margin-bottom: 40px; color: var(--gold-primary); font-weight: 700; text-transform: uppercase; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-top: -30px; margin-bottom: 40px; }
.gold-divider { width: 60px; height: 3px; background: var(--gold-primary); margin: 20px auto; }
.btn-secondary { background-color: var(--gold-primary); color: #000; border: 2px solid var(--gold-primary); font-weight: 700; padding: 12px 30px; border-radius: 4px; display: inline-block; text-align: center; }
.btn-secondary:hover { background-color: var(--gold-hover); border-color: var(--gold-hover); box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); color: #000; }
.btn-primary { background: transparent; border: 2px solid #aaa; color: #fff; padding: 12px 30px; border-radius: 4px; display: inline-block; font-weight: bold; }
.btn-primary:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }

/* Pain Points */
.pain-points { background: #050505; border-bottom: 1px solid #1a1a1a; }
.pain-card { background: #111; border-left: 3px solid #dc3545; padding: 25px; border-radius: 8px; transition: 0.3s; height: 100%; }
.pain-card:hover { background: #1a1a1a; transform: translateX(10px); border-color: var(--gold-primary); }
.pain-icon { color: #dc3545; font-size: 2rem; margin-bottom: 15px; }

/* Solution */
.solution-section { background: #0a0a0a; }
.check-list-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; background: #111; padding: 20px; border-radius: 10px; border: 1px solid #222; }
.check-icon { background: rgba(212, 175, 55, 0.1); color: var(--gold-primary); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Mentor Profile */
.premium-section { background: #050505; border-top: 1px solid #1a1a1a; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-weight: 700; color: #fff; }
.expert-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.img-card { border-radius: 8px; overflow: hidden; position: relative; border: 1px solid #222; }
.img-card img { width: 100%; height: 200px; object-fit: cover; transition: 0.5s; filter: grayscale(15%); }
.img-card:hover img { filter: grayscale(0%); transform: scale(1.05); }
.img-card.large img { height: 415px; }

/* Features & Courses */
.features-grid, .courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; padding: 40px 0; }
.feature-item, .course-item { background: var(--bg-card); padding: 30px; border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 5px 15px rgba(0,0,0,0.5); text-align: center; transition: 0.3s; }
.feature-item:hover, .course-item:hover { transform: translateY(-5px); border-color: var(--gold-primary); }
.feature-icon { font-size: 2.5em; color: var(--gold-primary); margin-bottom: 20px; }
.course-price { font-size: 1.8em; font-weight: 700; color: var(--gold-primary); margin: 20px 0; }
.course-item.premium { border: 2px solid var(--gold-primary); }

/* Reviews */
.review-bg { background: radial-gradient(circle at center, #111 0%, #050505 100%); }
.review-card-mini { background: #0a0a0a; border: 1px solid #1a1a1a; border-radius: 15px; padding: 40px 30px 30px; position: relative; margin-top: 40px; transition: 0.4s ease; height: calc(100% - 40px); }
.review-card-mini:hover { border-color: var(--gold-primary); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(212,175,55,0.1); }
.review-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-primary); position: absolute; top: -40px; left: 30px; background: #000; }
.quote-icon { position: absolute; top: 15px; right: 20px; font-size: 3rem; color: rgba(212, 175, 55, 0.05); }

/* Footer */
footer { background-color: #050505; padding: 60px 0 30px; border-top: 1px solid var(--border-color); margin-top: 50px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-section h4 { color: var(--gold-primary); font-size: 1.1rem; margin-bottom: 20px; text-transform: uppercase; border-bottom: 1px solid #333; padding-bottom: 10px; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section li { margin-bottom: 12px; }
.footer-section a { color: var(--text-muted); font-size: 0.95rem; transition: 0.3s; }
.footer-section a:hover { color: var(--gold-primary); padding-left: 5px; }
.social-links { display: flex; gap: 15px; }
.social-link { font-size: 1.5rem; color: var(--text-muted); transition: 0.3s; }
.social-link:hover { color: var(--gold-primary); transform: translateY(-3px); }
.copyright { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--border-color); color: #555; font-size: 0.85rem; }