/* ============================================================
   ЖОЛООНЫ КУРСЫН ВЭБСАЙТ — Custom Styles (style.css)
   ============================================================ */

/* ====== HERO SECTION ====== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

.hero-title {
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-section .btn-warning {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.hero-section .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 193, 7, 0.6);
}

/* ====== NAVBAR ====== */
.navbar {
    transition: background-color 0.3s ease;
}

/* ====== CARDS ====== */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* ====== OPTION ITEMS (шалгалтын хариулт) ====== */
.option-item label {
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-item label:hover {
    background-color: #f8f9fa;
    border-color: #ffc107 !important;
}

.option-item input[type="radio"]:checked + label {
    background-color: #fff9e6;
    border-color: #ffc107 !important;
    font-weight: 500;
}

/* ====== TIMER ====== */
#timerDisplay {
    min-width: 100px;
    text-align: center;
}

/* ====== KB TABS ====== */
#traffic-rules .nav-pills .nav-link {
    color: #1a1a2e;
    background: #fff;
    border: 1px solid #dee2e6;
    margin: 0 4px;
    border-radius: 30px;
    transition: all 0.2s;
}
#traffic-rules .nav-pills .nav-link:hover {
    border-color: #ffc107;
    background: #fff9e6;
}
#traffic-rules .nav-pills .nav-link.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #1a1a2e;
}

/* ====== TIP CARDS ====== */
.tip-card {
    transition: all 0.3s ease;
}
.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}
.tip-card .badge {
    font-size: 0.8rem;
}

/* ====== МЭДЛЭГИЙН САН (Accordion) ====== */
#traffic-rules .accordion-button {
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    box-shadow: none !important;
}
#traffic-rules .accordion-button:not(.collapsed) {
    background-color: #fff9e6;
    color: #1a1a2e;
}
#traffic-rules .accordion-button::after {
    background-size: 1rem;
}
#traffic-rules .list-group-item {
    transition: background 0.15s;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 6px !important;
}
#traffic-rules .list-group-item:hover {
    background: #f8f9fa;
}

/* ====== COURSES ====== */
.course-card {
    transition: all 0.3s ease;
}
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
}
.course-card .card-header {
    border-bottom: 3px solid #ffc107;
}
.course-card ul li {
    padding: 2px 0;
}

/* ====== DIRECTOR GREETING ====== */
.director-greeting-text {
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
    border-left: 4px solid #ffc107;
}

/* ====== TESTIMONIALS ====== */
.testimonial-card {
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12) !important;
}
.testimonial-card .bi-quote {
    line-height: 1;
}

/* ====== FOOTER ====== */
footer {
    background: #1a1a2e;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }
    .hero-title {
        font-size: 2rem;
    }
    #timerDisplay {
        font-size: 1rem !important;
    }
}

/* ====== CUSTOM SCROLLBAR ====== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}
