/* ===============================================
   sidebar.css — Ил тод байдал, Хүний нөөц, Төлөвлөгөө
   =============================================== */

/* ── PAGE HERO ── */
.sb-hero {
    background: linear-gradient(135deg, #003a8f 0%, #1a56b0 60%, #2d7dd2 100%);
    color: #fff;
    padding: 48px 32px 56px;
    position: relative;
    overflow: hidden;
}
.sb-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;
}
.sb-hero::after {
    content: '';
    position: absolute; bottom: -1px; left: 0; right: 0;
    height: 48px; background: #f5f6fa;
    clip-path: ellipse(55% 100% at 50% 100%);
}
.sb-hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.sb-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 16px; border-radius: 100px; margin-bottom: 14px;
}
.sb-hero h1 {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 32px; font-weight: 600;
    margin: 0 0 8px; line-height: 1.25;
}
.sb-hero p { font-size: 15px; opacity: 0.82; margin: 0; }

/* ── LAYOUT ── */
.sb-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px 80px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

/* ── SIDEBAR ── */
.sb-sidebar {
    position: sticky;
    top: 88px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.sb-sidebar-title {
    background: #003a8f;
    color: #f5c542;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 18px;
}
.sb-nav { list-style: none; padding: 8px 0; margin: 0; }
.sb-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 13.5px;
    color: #374151;
    text-decoration: none;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    line-height: 1.4;
}
.sb-nav li a:hover {
    background: #f0f4ff;
    color: #003a8f;
    border-left-color: #c5d8fb;
}
.sb-nav li a.active {
    background: #e8f0fe;
    color: #003a8f;
    font-weight: 600;
    border-left-color: #003a8f;
}
.sb-nav li a .sb-icon { font-size: 15px; flex-shrink: 0; }
.sb-nav-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 6px 0;
}

/* ── MAIN CONTENT ── */
.sb-content {
    min-height: 400px;
}
.sb-content-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.sb-content-title {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    flex: 1;
}
.sb-badge {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    background: #003a8f; color: #f5c542;
    padding: 3px 12px; border-radius: 100px;
}

/* ── DOCUMENT CARDS ── */
.sb-doc-list { display: flex; flex-direction: column; gap: 10px; }

.sb-doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: all 0.18s;
    position: relative;
    overflow: hidden;
}
.sb-doc-card::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: #003a8f;
    transform: scaleY(0);
    transition: transform 0.2s;
}
.sb-doc-card:hover {
    border-color: #003a8f;
    box-shadow: 0 4px 16px rgba(0,58,143,0.1);
    transform: translateX(3px);
}
.sb-doc-card:hover::before { transform: scaleY(1); }

.sb-doc-icon {
    width: 42px; min-width: 42px; height: 42px;
    background: #e8f0fe; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
    transition: background 0.18s;
}
.sb-doc-card:hover .sb-doc-icon { background: #003a8f; }

.sb-doc-text { flex: 1; min-width: 0; }
.sb-doc-text h3 {
    font-size: 14.5px; font-weight: 600;
    color: #111827; line-height: 1.4;
    margin: 0 0 4px;
}
.sb-doc-meta {
    font-size: 12px; color: #9ca3af;
    display: flex; gap: 10px; flex-wrap: wrap;
}
.sb-doc-tag {
    font-size: 11px; font-weight: 600;
    padding: 2px 9px; border-radius: 20px;
    background: #e8f0fe; color: #1d4ed8;
}
.sb-doc-arrow {
    font-size: 20px; color: #d1d5db; flex-shrink: 0;
    transition: color 0.18s, transform 0.18s;
}
.sb-doc-card:hover .sb-doc-arrow { color: #003a8f; transform: translateX(3px); }

/* ── SEARCH ── */
.sb-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 14px;
    height: 42px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: border-color 0.2s;
}
.sb-search:focus-within { border-color: #003a8f; }
.sb-search input {
    border: none; outline: none;
    font-size: 14px; font-family: inherit;
    color: #111827; width: 100%; background: transparent;
}
.sb-search input::placeholder { color: #9ca3af; }

/* ── EMPTY STATE ── */
.sb-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    display: none;
}
.sb-empty-icon { font-size: 48px; margin-bottom: 12px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .sb-layout { grid-template-columns: 1fr; padding: 24px 20px 60px; gap: 20px; }
    .sb-sidebar { position: static; }
    .sb-nav { display: flex; flex-wrap: wrap; padding: 10px; gap: 6px; }
    .sb-nav li a {
        border-left: none; border-radius: 20px;
        padding: 7px 14px; font-size: 13px;
        border: 1.5px solid #e5e7eb;
    }
    .sb-nav li a.active { border-color: #003a8f; }
    .sb-nav-divider { display: none; }
}
@media (max-width: 600px) {
    .sb-hero { padding: 36px 20px 48px; }
    .sb-hero h1 { font-size: 24px; }
    .sb-layout { padding: 20px 16px 48px; }
}

/* ── SECTION (anchor scroll) ── */
.sb-section {
    scroll-margin-top: 100px;
    padding-bottom: 8px;
}
.sb-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 2px solid #e8f0fe;
}
.sb-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 40px 0;
}

/* ── АЖЛЫН БАЙР ЗУРАГ ── */
.ajliin-bair-wrap {
    text-align: center;
}
.ajliin-bair-img {
    width: 100%;
    max-width: 680px;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,58,143,0.13);
    display: block;
    margin: 0 auto 16px;
}
.ajliin-bair-note {
    font-size: 13.5px;
    color: #555;
    margin-top: 10px;
    line-height: 1.6;
}

/* ── VIDEO COVER (surgalt.html) ── */
.video-card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #dde3f0;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}
.video-card:hover {
    box-shadow: 0 10px 28px rgba(0,58,143,0.12);
    transform: translateY(-3px);
}
.video-thumb {
    position: relative;
    overflow: hidden;
    background: #111;
    aspect-ratio: 16/9;
}
.video-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.video-card:hover .video-cover-img { transform: scale(1.04); }
.video-thumb .video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: rgba(0,0,0,0.22);
    transition: background 0.2s;
    pointer-events: none;
}
.video-thumb .video-play::before {
    content: '';
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    position: absolute;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: transform 0.15s;
}
.video-thumb .video-play-icon {
    position: relative;
    z-index: 1;
    font-size: 20px;
    color: #003a8f;
    margin-left: 3px;
}
.video-card:hover .video-thumb .video-play { background: rgba(0,58,143,0.35); }
.video-card:hover .video-thumb .video-play::before { transform: scale(1.1); }

/* ── БУЦАХ ТОВЧ (video.html) ── */
.video-back-bar {
    max-width: 1100px;
    margin: 28px auto 0;
    padding: 0 24px;
}
.video-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #fff;
    border: 1.5px solid #dde3f0;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: #003a8f;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0,58,143,0.08);
}
.video-back-btn .back-arrow {
    font-size: 16px;
    transition: transform 0.2s;
}
.video-back-btn:hover {
    background: #003a8f;
    color: #fff;
    border-color: #003a8f;
    box-shadow: 0 4px 16px rgba(0,58,143,0.2);
}
.video-back-btn:hover .back-arrow {
    transform: translateX(-3px);
}