/* ===============================================
   surgalt.css — Сургалт хуудсуудын дизайн
   =============================================== */

/* ===== COURSE SECTION ===== */
.course-section {
    padding: 60px 20px 80px;
    background: #f0f5ff;
    min-height: 60vh;
}

.course-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #003a8f;
    margin: 0 0 40px;
    font-family: 'Noto Serif', Georgia, serif;
}

/* ===== GRID ===== */
.course-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

/* ===== CARD ===== */
.course-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #cdddf5;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0, 58, 143, 0.14);
}

/* ===== ICON PLACEHOLDER ===== */
.course-img-ph {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-img-ph--blue {
    background: linear-gradient(135deg, #deeeff, #b5d4f4);
}

.course-img-ph--gold {
    background: linear-gradient(135deg, #fdf5d8, #faeeda);
}

.course-img-ph--green {
    background: linear-gradient(135deg, #e6f8ed, #c3edcf);
}

.course-img-ph--pink {
    background: linear-gradient(135deg, #fce8f3, #f7c4e1);
}

.course-ph-icon {
    font-size: 38px;
    line-height: 1;
}

.course-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

/* ===== CARD BODY ===== */
.course-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 6px;
    align-self: flex-start;
}

.course-tag-blue  { background: #e6f1fb; color: #0c447c; }
.course-tag-gold  { background: #faeeda; color: #633806; }
.course-tag-green { background: #e6f8ed; color: #1a6b35; }
.course-tag-pink  { background: #fce8f3; color: #8b1a5e; }

/* Алтан accent зураас */
.course-divider {
    width: 28px;
    height: 2px;
    background: #f5c542;
    border-radius: 2px;
    margin: 7px 0 10px;
}

.course-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: #003a8f;
    margin: 0 0 8px;
    line-height: 1.4;
}

.course-body p {
    font-size: 13px;
    line-height: 1.65;
    color: #5a6a80;
    margin: 0 0 16px;
    flex: 1;
}

/* ===== BUTTON ===== */
.course-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: #003a8f;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
    align-self: flex-start;
}

.course-btn:hover {
    background: #1a56b0;
    color: #ffffff;
    text-decoration: none;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    max-width: 860px;
    margin: 60px auto;
    padding: 36px 40px;
    border-radius: 20px;
    position: relative;
    animation: fadeInModal 0.25s ease;
    border-top: 4px solid #003a8f;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.close {
    position: absolute;
    top: 16px;
    right: 22px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    transition: color 0.15s;
}

.close:hover { color: #003a8f; }

#modalTitle {
    font-size: 20px;
    color: #003a8f;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e6f1fb;
}

.modal-body {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 28px;
    align-items: start;
}

.modal-text {
    font-size: 15.5px;
    line-height: 1.8;
    color: #333;
}

.modal-text ul {
    padding-left: 20px;
    margin: 8px 0 0;
}

.modal-text li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.modal-poster img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== INDEX ХУУДАСНЫ NEWS SECTION ===== */
.training-section {
    padding: 50px 20px;
    background: linear-gradient(180deg, #f4f8ff, #eaf1fb);
}

.training-wrap {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.training-text h2 {
    font-size: 32px;
    color: #0a3d91;
    margin-bottom: 22px;
}

.training-text ul { list-style: none; padding: 0; }
.training-text li { font-size: 15.5px; margin-bottom: 10px; }

.btn-main {
    margin-top: 28px;
    display: inline-block;
    padding: 13px 32px;
    background: #e6007e;
    color: #fff;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.btn-main:hover { background: #c4006b; }

.training-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.img-card {
    width: 100%;
    height: 360px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
    .training-wrap { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .modal-body { grid-template-columns: 1fr; }
    .modal-content { margin: 20px 16px; padding: 24px 20px; }
}

@media (max-width: 600px) {
    .course-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .course-title { font-size: 22px; }
    .training-images { grid-template-columns: 1fr; }
    .img-card { height: 220px; }
}

@media (max-width: 400px) {
    .course-grid { grid-template-columns: 1fr; }
}

/* ===== БУЦАХ ТОВЧ ===== */
.back-btn-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #003a8f;
    background: #e8f0fe;
    border: 1px solid #cdddf5;
    border-radius: 100px;
    padding: 8px 20px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.back-btn:hover {
    background: #003a8f;
    color: #ffffff;
    transform: translateX(-3px);
}
.surgalt-hero {
        background: linear-gradient(135deg, #003a8f 0%, #1a56b0 60%, #2d7dd2 100%);
        color: #fff;
        padding: 72px 24px 90px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    .surgalt-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
        background-size: 28px 28px;
        pointer-events: none;
    }
    .surgalt-hero::after {
        content: '';
        position: absolute;
        bottom: -1px; left: 0; right: 0;
        height: 56px;
        background: #f7f8fc;
        clip-path: ellipse(55% 100% at 50% 100%);
    }
    .surgalt-hero-inner { position: relative; z-index: 1; }
    .surgalt-hero-badge {
        display: inline-block;
        background: rgba(255,255,255,0.15);
        border: 1px solid rgba(255,255,255,0.3);
        font-size: 11px; font-weight: 600;
        letter-spacing: 0.1em; text-transform: uppercase;
        padding: 5px 18px; border-radius: 100px; margin-bottom: 20px;
    }
    .surgalt-hero h1 {
        font-family: 'Noto Serif', Georgia, serif;
        font-size: 40px; font-weight: 600;
        margin: 0 0 14px; line-height: 1.2;
    }
    .surgalt-hero p { font-size: 16px; opacity: 0.82; margin: 0; }

    /* ================= STATS ================= */
    .surgalt-stats {
        max-width: 900px;
        margin: -30px auto 0;
        padding: 0 24px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        position: relative;
        z-index: 2;
    }
    .surgalt-stat {
        background: #fff;
        border-radius: 14px;
        padding: 20px 16px;
        text-align: center;
        box-shadow: 0 8px 28px rgba(0,58,143,0.12);
        border: 1px solid #e8f0fe;
    }
    .surgalt-stat-num {
        font-family: 'Noto Serif', Georgia, serif;
        font-size: 28px; font-weight: 600;
        color: #003a8f; line-height: 1;
        margin-bottom: 6px; display: block;
    }
    .surgalt-stat-label { font-size: 12px; color: #888; line-height: 1.4; }

    /* ================= SECTION TITLE ================= */
    .section-heading {
        max-width: 1100px;
        margin: 60px auto 0;
        padding: 0 24px;
    }
    .section-heading h2 {
        font-family: 'Noto Serif', Georgia, serif;
        font-size: 26px; font-weight: 600;
        color: #003a8f; margin: 0 0 6px;
    }
    .section-heading p { font-size: 15px; color: #888; margin: 0; }
    .section-divider {
        width: 48px; height: 3px;
        background: #f5c542; border-radius: 2px;
        margin: 12px 0 0;
    }

    /* ================= SURGALT GRID ================= */
    .surgalt-grid {
        max-width: 1100px;
        margin: 32px auto 0;
        padding: 0 24px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 18px;
    }

    /* ================= SURGALT CARD ================= */
    .s-card {
        background: #fff;
        border: 1px solid #dde3f0;
        border-radius: 16px;
        overflow: hidden;
        transition: box-shadow 0.2s, transform 0.2s;
    }
    .s-card:hover {
        box-shadow: 0 10px 32px rgba(0,58,143,0.1);
        transform: translateY(-2px);
    }

    /* Card header — click to open */
    .s-card-header {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 18px 20px;
        cursor: pointer;
        user-select: none;
    }
    .s-card-icon {
        width: 44px; min-width: 44px; height: 44px;
        border-radius: 12px;
        display: flex; align-items: center; justify-content: center;
        font-size: 22px;
        flex-shrink: 0;
    }
    .s-card-icon.blue { background: #e8f0fe; }
    .s-card-icon.gold { background: #faeeda; }
    .s-card-icon.green { background: #eaf3de; }
    .s-card-icon.pink { background: #fbeaf0; }

    .s-card-meta { flex: 1; min-width: 0; }
    .s-card-tag {
        font-size: 10px; font-weight: 600;
        letter-spacing: 0.06em; text-transform: uppercase;
        color: #888; margin-bottom: 3px;
    }
    .s-card-title {
        font-size: 14.5px; font-weight: 600;
        color: #003a8f; line-height: 1.35;
        margin: 0;
    }
    .s-card-arrow {
        font-size: 18px; color: #ccc;
        transition: transform 0.25s, color 0.2s;
        flex-shrink: 0;
    }
    .s-card.open .s-card-arrow {
        transform: rotate(180deg);
        color: #003a8f;
    }

    /* Gold divider line */
    .s-card-divider {
        height: 2px;
        background: linear-gradient(to right, #f5c542, transparent);
        margin: 0 20px;
        display: none;
    }
    .s-card.open .s-card-divider { display: block; }

    /* Card body — accordion */
    .s-card-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.25s ease;
        padding: 0 20px;
    }
    .s-card.open .s-card-body {
        max-height: 600px;
        padding: 16px 20px 20px;
    }

    .s-card-desc {
        font-size: 13.5px; color: #666;
        line-height: 1.7; margin-bottom: 14px;
    }

    .s-card-list {
        list-style: none; padding: 0; margin: 0 0 16px;
        display: flex; flex-direction: column; gap: 8px;
    }
    .s-card-list li {
        font-size: 13.5px; color: #003a8f;
        padding: 9px 14px;
        background: #f4f7ff;
        border-radius: 8px;
        border-left: 3px solid #003a8f;
        display: flex; align-items: center; gap: 8px;
        cursor: pointer;
        transition: background 0.15s;
        text-decoration: none;
    }
    .s-card-list li:hover { background: #e8f0fe; }
    .s-card-list li a {
        color: #003a8f; text-decoration: none;
        font-size: 13.5px; flex: 1;
    }
    .s-card-list-arrow { font-size: 12px; color: #aaa; margin-left: auto; }

    .s-card-btn {
        display: inline-flex; align-items: center; gap: 6px;
        font-size: 13px; font-weight: 600;
        color: #fff; background: #003a8f;
        border: none; border-radius: 20px;
        padding: 8px 18px; cursor: pointer;
        text-decoration: none;
        transition: background 0.2s;
    }
    .s-card-btn:hover { background: #1a56b0; }

    /* ================= VIDEO SECTION ================= */
    .video-section {
        max-width: 1100px;
        margin: 60px auto 0;
        padding: 0 24px;
    }
   .video-cards {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
    .video-card {
        background: #fff;
        border: 1px solid #dde3f0;
        border-radius: 16px;
        overflow: hidden;
        transition: box-shadow 0.2s, transform 0.2s;
    }
    .video-card:hover {
        box-shadow: 0 10px 28px rgba(0,58,143,0.1);
        transform: translateY(-2px);
    }
    .video-thumb {
        position: relative;
        aspect-ratio: 16/9;
        background: linear-gradient(135deg, #0b2c4d, #1a56b0);
        display: flex; align-items: center; justify-content: center;
        cursor: pointer;
    }
    .video-thumb img {
        width: 100%; height: 100%; object-fit: cover; display: block;
    }
    .video-play {
        position: absolute;
        width: 52px; height: 52px;
        border-radius: 50%;
        background: rgba(255,255,255,0.9);
        display: flex; align-items: center; justify-content: center;
        font-size: 20px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.25);
        transition: transform 0.15s;
    }
    .video-thumb:hover .video-play { transform: scale(1.1); }
    .video-card-body { padding: 16px 18px 18px; }
    .video-tag {
        font-size: 10.5px; font-weight: 600;
        background: #e8f0fe; color: #003a8f;
        padding: 3px 10px; border-radius: 100px;
        display: inline-block; margin-bottom: 8px;
    }
    .video-card-title {
        font-size: 14.5px; font-weight: 600;
        color: #003a8f; margin: 0 0 12px; line-height: 1.4;
    }
    .video-card-link {
        font-size: 13px; font-weight: 600;
        color: #003a8f; text-decoration: none;
        display: inline-flex; align-items: center; gap: 4px;
    }
    .video-card-link:hover { text-decoration: underline; }

    /* All videos CTA */
    .video-cta {
        margin-top: 24px;
        text-align: center;
    }
    .video-cta a {
        display: inline-flex; align-items: center; gap: 8px;
        padding: 12px 28px;
        background: #003a8f; color: #fff;
        border-radius: 100px; text-decoration: none;
        font-size: 14px; font-weight: 600;
        transition: background 0.2s;
    }
    .video-cta a:hover { background: #1a56b0; }

    /* ================= SURAHIIN BAYR ================= */
    .bayr-section {
        max-width: 1100px;
        margin: 60px auto 80px;
        padding: 0 24px;
    }
    .bayr-card {
        background: linear-gradient(135deg, #003a8f, #1a56b0);
        border-radius: 20px;
        padding: 48px 44px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        align-items: center;
        color: #fff;
        position: relative;
        overflow: hidden;
    }
    .bayr-card::before {
        content: '';
        position: absolute; inset: 0;
        background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
        background-size: 22px 22px;
        pointer-events: none;
    }
    .bayr-content { position: relative; z-index: 1; }
    .bayr-badge {
        display: inline-block;
        background: #f5c542; color: #003a8f;
        font-size: 11px; font-weight: 700;
        padding: 4px 14px; border-radius: 100px;
        margin-bottom: 16px;
    }
    .bayr-content h2 {
        font-family: 'Noto Serif', Georgia, serif;
        font-size: 28px; font-weight: 600;
        margin: 0 0 14px; line-height: 1.3;
    }
    .bayr-content p {
        font-size: 15px; line-height: 1.78;
        opacity: 0.88; margin: 0 0 24px;
    }
    .bayr-btn {
        display: inline-flex; align-items: center; gap: 8px;
        padding: 12px 26px;
        background: #f5c542; color: #003a8f;
        border-radius: 100px; text-decoration: none;
        font-size: 14px; font-weight: 700;
        transition: background 0.2s;
    }
    .bayr-btn:hover { background: #ffd966; }
    .bayr-info { position: relative; z-index: 1; }
    .bayr-info-list {
        list-style: none; padding: 0; margin: 0;
        display: flex; flex-direction: column; gap: 14px;
    }
    .bayr-info-list li {
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 12px;
        padding: 14px 18px;
        font-size: 14.5px;
        display: flex; align-items: center; gap: 12px;
    }
    .bayr-info-icon { font-size: 20px; flex-shrink: 0; }

    /* ================= RESPONSIVE ================= */
    @media (max-width: 900px) {
        .surgalt-stats { grid-template-columns: repeat(2, 1fr); }
        .bayr-card { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
    }
    @media (max-width: 600px) {
        .surgalt-hero h1 { font-size: 26px; }
        .surgalt-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
        .surgalt-grid { grid-template-columns: 1fr; }
        .video-cards { grid-template-columns: 1fr; }
    }