/* --- 1. Hero Slider --- */
.hero-section {
    position: relative;
    width: 100%; /* หรือ 60% ตามที่คุณเลือก */
    margin: 0 auto; /* หรือ 20px auto */
    height: 450px;
    overflow: hidden;
    background-color: #000;
}

#heroSlider, .hero-slide {
    width: 100%; height: 100%; position: absolute; top: 0; left: 0;
    background-size: cover; background-position: center;
    transition: opacity 1s ease-in-out;
}

.hero-content {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; width: 80%; z-index: 10; color: #fff;
}
.hero-title {
    font-family: 'Noto Serif Thai', serif; font-size: 3rem; font-weight: 700;
    line-height: 1.4; margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}
.hero-subtitle, .hero-description {
    font-family: 'Prompt', sans-serif; font-size: 1.1rem; font-weight: 400;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* จุด Slider (สีเหลือง) */
.slider-dots {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 11; display: flex; gap: 10px;
}
.slider-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: 0.3s;
}
.slider-dot.active {
    background: #FFC107; /* [แก้] สีเหลือง */
    transform: scale(1.2);
}

/* --- 2. Tutor Cards --- */
.tutor-section { background-color: #f9f9f9; }

.section-title {
    font-size: 2.5rem; font-weight: bold; font-family: 'Noto Serif Thai', serif; color: #1a1a1a;
}
/* ขีดคั่นใต้หัวข้อ (สีเหลือง) */
.section-divider {
    width: 60px; height: 3px;
    background: #FFC107; /* [แก้] สีเหลือง */
    margin: 15px auto;
}

.tutor-card {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: all 0.3s ease;
    height: 100%; border: 1px solid #eee;
}
.tutor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #FFC107; /* [แก้] ขอบเหลืองตอนชี้ */
}

.tutor-img-wrapper { width: 100%; height: 280px; overflow: hidden; }
.tutor-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s; }
.tutor-card:hover .tutor-img { transform: scale(1.05); }
.tutor-info { padding: 20px; text-align: center; }
.tutor-name { font-size: 1.2rem; font-weight: bold; color: #1a1a1a; margin-bottom: 5px; }

/* ชื่อมหาลัย (สีเหลืองเข้มหน่อยจะได้อ่านง่ายบนพื้นขาว) */
.tutor-uni {
    font-size: 0.9rem;
    color: #e6ac00; /* [แก้] ใช้เหลืองเข้มอมส้มหน่อย เพื่อให้อ่านง่าย */
    font-weight: 600; margin-bottom: 2px;
}
.tutor-faculty { font-size: 0.85rem; color: #666; margin-bottom: 15px; }
.tutor-rating { color: #FFC107; font-size: 0.9rem; } /* ดาวสีเหลืองอยู่แล้ว */

/* --- 3. Subject Categories --- */
.subject-header-bar {
    background-color: #161615; padding: 25px 0; text-align: center; margin-bottom: 40px;
}
.subject-header-title {
    font-size: 1.6rem; font-weight: 600; color: #ffffff; margin: 0; font-family: var(--font-body);
}

.cat-title {
    font-size: 1.2rem; font-weight: bold; color: #1a1a1a; margin-bottom: 15px;
    border-bottom: 2px solid #FFC107; /* [แก้] ขีดเส้นใต้สีเหลือง */
    display: inline-block; padding-bottom: 5px;
}

.subject-list { list-style: none; padding: 0; margin: 0; }
.subject-list li { margin-bottom: 10px; }
.subject-link {
    color: #444; text-decoration: none; font-size: 0.95rem; transition: color 0.2s; display: block; padding: 2px 0;
}
.subject-link:hover {
    color: #d19c00; /* [แก้] สีเหลืองเข้มตอนชี้ */
    padding-left: 5px;
}
/* เปลี่ยนลูกศรหน้าลิงก์วิชาให้เป็นเหลืองด้วย (ต้องแก้ใน HTML หรือแก้ class text-danger เป็น text-warning) */
/* แต่ถ้าจะแก้ด้วย CSS ให้เติมอันนี้ครับ */
.subject-link i { color: #FFC107 !important; }

/* ปุ่มดูเพิ่มเติม */
.btn-see-more {
    display: inline-block; background-color: #fff;
    color: #333; /* [แก้] ตัวหนังสือดำ */
    font-size: 0.85rem; padding: 6px 15px; border-radius: 50px; text-decoration: none; margin-top: 15px; transition: all 0.2s;
    border: 1px solid #FFC107; /* [แก้] ขอบเหลือง */
}
.btn-see-more:hover {
    background-color: #FFC107; /* [แก้] พื้นเหลือง */
    color: #000; /* [แก้] ตัวหนังสือดำ */
}

/* --- 4. Widget Tags --- */
.sidebar-widget {
    background: #fff; padding: 25px; border: 1px solid #eee; border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 30px;
}
.widget-title {
    font-size: 1.3rem; font-family: 'Noto Serif Thai', serif; font-weight: 700; color: #1a1a1a;
    border-left: 4px solid #FFC107; /* [แก้] ขีดหน้าสีเหลือง */
    padding-left: 15px; margin-bottom: 20px;
}
.btn-tag {
    background: #fff; border: 1px solid #e0e0e0; color: #666;
    font-size: 0.9rem; padding: 6px 14px; border-radius: 4px; transition: all 0.3s;
}
.btn-tag:hover {
    background: #FFC107; /* [แก้] พื้นเหลือง */
    color: #000;         /* [แก้] ตัวหนังสือดำ */
    border-color: #FFC107;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section { width: 100%; border-radius: 0; margin: 0; height: 250px; }
    .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 1.8rem; }
}
