/* ============================================================
   Хонгор сум - Main Stylesheet
   Colors: Green #1a5c2e, Gold #d4a017, White #fff
   ============================================================ */

:root {
    --primary: #1a5c2e;
    --primary-dark: #0f3d1e;
    --primary-light: #2a7a42;
    --gold: #c8960c;
    --gold-light: #f0b429;
    --gold-pale: #fff8e6;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-card: #ffffff;
    --shadow: 0 2px 12px rgba(26,92,46,0.08);
    --shadow-md: 0 4px 24px rgba(26,92,46,0.12);
    --radius: 10px;
    --radius-sm: 6px;
    --transition: 0.25s ease;
    --font-heading: 'Playfair Display', 'Times New Roman', serif;
    --font-body: 'Inter', 'Helvetica Neue', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    background: var(--gold);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.topbar a {
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity var(--transition);
}
.topbar a:hover { opacity: 0.7; }
.topbar i { font-size: 12px; }
.visitor-count { display: flex; align-items: center; gap: 5px; }
.visitor-count small { opacity: 0.7; font-size: 11px; }
.admin-link {
    background: var(--primary);
    color: white !important;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
    transition: background var(--transition);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 20px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo-emblem .emblem-circle {
    width: 54px; height: 54px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
}
.emblem-circle i { color: var(--gold); font-size: 22px; }
.logo-img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.logo-text { display: flex; flex-direction: column; }
.logo-aimag { font-size: 11px; color: rgba(255,255,255,0.75); letter-spacing: 0.5px; }
.logo-sum { font-size: 18px; font-weight: 700; color: white; letter-spacing: 0.3px; }

/* Nav */
.main-nav { flex: 1; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: center;
    flex-wrap: wrap;
}
.nav-item { position: relative; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.15);
    color: var(--gold-light);
}
.nav-arrow { font-size: 10px; transition: transform var(--transition); }
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: white;
    min-width: 220px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--gold);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    z-index: 100;
}
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-size: 14px;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}
.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary);
    border-left-color: var(--gold);
    padding-left: 22px;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.search-toggle, .mobile-toggle {
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.search-toggle:hover, .mobile-toggle:hover { background: rgba(255,255,255,0.25); }
.mobile-toggle { flex-direction: column; gap: 5px; display: none; }
.mobile-toggle span {
    display: block; width: 22px; height: 2px;
    background: white; border-radius: 2px;
    transition: all var(--transition);
}

/* Search Overlay */
.search-overlay {
    position: fixed; inset: 0;
    background: rgba(15,61,30,0.95);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all var(--transition);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-box {
    position: relative;
    width: 90%; max-width: 600px;
    transform: scale(0.9);
    transition: transform var(--transition);
}
.search-overlay.active .search-box { transform: scale(1); }
.search-box form {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.search-box input {
    flex: 1; border: none; outline: none;
    padding: 18px 24px; font-size: 18px;
    font-family: var(--font-body);
    color: var(--text);
}
.search-box button[type=submit] {
    background: var(--gold);
    border: none;
    padding: 0 24px;
    color: white;
    font-size: 18px;
    cursor: pointer;
}
.search-close {
    position: absolute; top: -50px; right: 0;
    background: rgba(255,255,255,0.2);
    border: none; color: white;
    width: 40px; height: 40px;
    border-radius: 50%; font-size: 18px;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center;
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker-wrap {
    background: var(--gold-pale);
    border-bottom: 1px solid rgba(200,150,12,0.2);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 40px;
}
.ticker-label {
    background: var(--primary);
    color: white;
    padding: 0 16px;
    height: 100%;
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600;
    white-space: nowrap; flex-shrink: 0;
}
.ticker-track {
    flex: 1; overflow: hidden; height: 100%;
    display: flex; align-items: center;
}
.ticker-items {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    padding-left: 20px;
}
.ticker-item {
    font-size: 13px; color: var(--text);
}
.ticker-item a { color: var(--primary); }
.ticker-item::before { content: '◆ '; color: var(--gold); margin-right: 4px; }
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.ticker-controls {
    display: flex; height: 100%;
    flex-shrink: 0;
}
.ticker-controls button {
    background: var(--gold);
    border: none;
    color: white;
    padding: 0 10px;
    cursor: pointer;
    font-size: 12px;
    transition: background var(--transition);
}
.ticker-controls button:hover { background: var(--primary); }

/* ============================================================
   HERO / SLIDER
   ============================================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 480px;
    background: var(--primary-dark);
}
.slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 0.8s ease;
}
.slide.active { opacity: 1; }
.slide-img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(10,40,20,0.75) 0%, rgba(10,40,20,0.3) 60%, transparent 100%);
}
.slide-content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 60px;
    color: white;
}
.slide-content h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.slide-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 500px;
}
.slider-dots {
    position: absolute; bottom: 24px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 8px;
    z-index: 10;
}
.slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}
.slider-dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}
.slider-arrow {
    position: absolute; top: 50%; z-index: 10;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); }
.slider-prev { left: 24px; }
.slider-next { right: 24px; }

/* Hero without slider */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 8px;
    position: relative;
}
.page-hero p {
    opacity: 0.85; font-size: 1rem;
    position: relative;
}
.hero-banner-img {
    width: 100%; height: 280px;
    object-fit: cover; object-position: center;
    display: block;
    position: absolute; inset: 0;
    z-index: 0;
}
.page-hero-inner { position: relative; z-index: 1; }

/* ============================================================
   STATISTICS BAR
   ============================================================ */
.stats-bar {
    background: var(--primary);
    padding: 24px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    overflow: hidden;
}
.stat-item {
    background: var(--primary);
    padding: 20px 24px;
    text-align: center;
    color: white;
    transition: background var(--transition);
}
.stat-item:hover { background: var(--primary-light); }
.stat-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
}
.stat-icon i { color: var(--gold-light); font-size: 18px; }
.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-light);
    display: block;
}
.stat-label {
    font-size: 12px;
    opacity: 0.8;
}

/* ============================================================
   QUICK CARDS
   ============================================================ */
.quick-cards {
    padding: 40px 0;
    background: var(--bg-light);
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.quick-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--gold);
    transition: all var(--transition);
}
.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary);
}
.quick-card h3 {
    font-size: 1rem; font-weight: 700;
    color: var(--primary); margin-bottom: 8px;
}
.quick-card p {
    font-size: 13px; color: var(--text-muted);
    margin-bottom: 14px; line-height: 1.5;
}
.card-link {
    color: var(--gold);
    font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 5px;
    transition: gap var(--transition);
}
.card-link:hover { gap: 10px; color: var(--primary); }

/* ============================================================
   NEWS SECTION
   ============================================================ */
.section {
    padding: 60px 0;
}
.section-alt { background: var(--bg-light); }
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -18px; left: 0;
    width: 50px; height: 3px;
    background: var(--gold);
    border-radius: 2px;
}
.see-all {
    color: var(--gold);
    font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 5px;
    transition: gap var(--transition);
}
.see-all:hover { gap: 10px; color: var(--primary); }

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.news-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex; flex-direction: column;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.news-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-light);
}
.news-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-img .no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: rgba(255,255,255,0.3);
    font-size: 3rem;
}
.news-card-body {
    padding: 20px;
    flex: 1;
    display: flex; flex-direction: column;
}
.news-cat {
    display: inline-block;
    background: var(--gold-pale);
    color: var(--gold);
    font-size: 11px; font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.news-card-title {
    font-size: 15px; font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-excerpt {
    font-size: 13px; color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.news-date { font-size: 12px; color: var(--text-muted); }
.news-read-more {
    color: var(--gold);
    font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 4px;
}
.news-read-more:hover { color: var(--primary); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border-bottom: 3px solid transparent;
    cursor: pointer;
}
.service-card:hover {
    border-bottom-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.service-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    transition: transform var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); }
.service-icon i { color: white; font-size: 20px; }
.service-name {
    font-size: 14px; font-weight: 600;
    color: var(--text);
}

/* ============================================================
   WEATHER WIDGET
   ============================================================ */
.weather-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 30px 0;
    color: white;
}
.weather-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 20px;
}
#weather-widget {
    display: flex; align-items: center; gap: 12px;
    font-size: 15px;
}
.weather-temp { font-size: 2rem; font-weight: 700; color: var(--gold-light); }
.weather-desc { font-size: 14px; opacity: 0.85; text-transform: capitalize; }
.weather-city { font-size: 13px; opacity: 0.7; }

/* ============================================================
   ARTICLE / PAGE CONTENT
   ============================================================ */
.content-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px;
}
.article-header { margin-bottom: 32px; }
.article-cat {
    display: inline-block;
    background: var(--gold-pale);
    color: var(--gold);
    font-size: 12px; font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.article-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 12px;
}
.article-meta {
    display: flex; align-items: center; gap: 20px;
    color: var(--text-muted); font-size: 13px;
    flex-wrap: wrap;
}
.article-meta i { color: var(--gold); margin-right: 4px; }
.article-hero-img {
    width: 100%; border-radius: var(--radius);
    margin-bottom: 32px;
    max-height: 460px;
    object-fit: cover;
}
.article-body {
    font-size: 16px; line-height: 1.9;
    color: #2d3748;
}
.article-body p { margin-bottom: 20px; }
.article-body h2 { color: var(--primary); margin: 32px 0 12px; font-size: 1.4rem; }
.article-body h3 { color: var(--primary-dark); margin: 24px 0 10px; font-size: 1.2rem; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { margin-bottom: 6px; }
.article-body img { border-radius: var(--radius); margin: 20px 0; }
.article-body a { color: var(--primary); text-decoration: underline; }
.back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px; font-weight: 600;
    margin-top: 32px;
    transition: background var(--transition);
    border: none; cursor: pointer;
}
.back-btn:hover { background: var(--primary-light); color: white; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    padding: 12px 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text-muted);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

/* ============================================================
   NEWS LIST (Archive)
   ============================================================ */
.filter-tabs {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 28px;
}
.filter-tab {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px; font-weight: 600;
    cursor: pointer; border: 2px solid var(--border);
    background: white; color: var(--text);
    transition: all var(--transition);
}
.filter-tab.active, .filter-tab:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
}
.search-bar-wrap {
    display: flex; justify-content: flex-end;
    margin-bottom: 28px;
}
.search-bar {
    display: flex;
    background: white;
    border: 2px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color var(--transition);
}
.search-bar:focus-within { border-color: var(--primary); }
.search-bar input {
    border: none; outline: none;
    padding: 10px 18px; font-size: 14px;
    font-family: var(--font-body);
    width: 220px;
    background: transparent;
    color: var(--primary);
}
.search-bar input::placeholder { color: var(--primary); opacity: 0.6; }
.search-bar button {
    background: var(--primary);
    border: none;
    padding: 0 16px;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex; align-items: center; gap: 8px;
    justify-content: center;
    margin-top: 48px; flex-wrap: wrap;
}
.page-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: white; border: 2px solid var(--border);
    color: var(--text); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all var(--transition);
    text-decoration: none;
}
.page-btn:hover, .page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.page-btn.disabled { opacity: 0.4; pointer-events: none; }
.page-btn-text {
    padding: 0 16px; width: auto;
    border-radius: 50px;
    display: flex; align-items: center; gap: 6px;
    font-size: 13px;
}

/* ============================================================
   DOCUMENTS LIST
   ============================================================ */
.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-item {
    display: flex; align-items: center; gap: 14px;
    background: white; border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border-left: 4px solid var(--primary);
}
.doc-item:hover {
    transform: translateX(4px);
    border-left-color: var(--gold);
    box-shadow: var(--shadow-md);
}
.doc-icon {
    width: 44px; height: 44px;
    background: var(--gold-pale);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.doc-icon i { color: var(--gold); font-size: 20px; }
.doc-info { flex: 1; }
.doc-title { font-size: 14px; font-weight: 600; color: var(--text); }
.doc-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.doc-download {
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px; font-weight: 600;
    display: flex; align-items: center; gap: 5px;
    transition: background var(--transition);
    flex-shrink: 0;
}
.doc-download:hover { background: var(--gold); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.contact-info h2 { font-size: 1.6rem; color: var(--primary); margin-bottom: 24px; }
.contact-item {
    display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start;
}
.contact-icon {
    width: 44px; height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-icon i { color: white; font-size: 16px; }
.contact-label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.contact-value { font-size: 15px; font-weight: 600; color: var(--text); }
.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.map-embed iframe { width: 100%; height: 250px; border: none; display: block; }
.contact-form h2 { font-size: 1.6rem; color: var(--primary); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text); margin-bottom: 6px;
}
.form-control {
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font-body);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--primary); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-primary {
    background: var(--primary);
    color: white; border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); }
.alert {
    padding: 14px 18px; border-radius: var(--radius-sm);
    margin-bottom: 20px; font-size: 14px;
}
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); }
.footer-top { padding: 56px 0 40px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-logo {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
}
.emblem-circle-sm {
    width: 44px; height: 44px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.emblem-circle-sm i { color: var(--gold); font-size: 18px; }
.footer-aimag { display: block; font-size: 11px; opacity: 0.7; }
.footer-sum { display: block; font-size: 17px; font-weight: 700; color: white; }
.footer-desc { font-size: 13px; opacity: 0.65; line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; }
.social-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 14px;
    transition: all var(--transition);
}
.social-btn.facebook { background: #1877f2; }
.social-btn:hover { transform: scale(1.15) translateY(-2px); }
.footer-title {
    font-size: 13px; font-weight: 700;
    color: white; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(200,150,12,0.4);
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    transition: all var(--transition);
    display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-links i { font-size: 10px; opacity: 0.6; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: rgba(255,255,255,0.7);
}
.footer-contact i { color: var(--gold-light); margin-top: 2px; flex-shrink: 0; font-size: 13px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    font-size: 12px; opacity: 0.6;
}
.footer-bottom-inner {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap;
}
.footer-powered strong { color: var(--gold-light); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed; bottom: 28px; right: 28px;
    background: var(--primary);
    color: white;
    width: 44px; height: 44px;
    border-radius: 50%; border: none;
    font-size: 18px; cursor: pointer;
    box-shadow: 0 4px 16px rgba(26,92,46,0.3);
    transition: all var(--transition);
    opacity: 0; visibility: hidden;
    display: flex; align-items: center; justify-content: center;
    z-index: 100;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); transform: translateY(-3px); }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-body {
    font-family: var(--font-body);
    background: #f0f4f8;
    color: var(--text);
    min-height: 100vh;
}
.admin-sidebar {
    width: 250px;
    background: var(--primary-dark);
    position: fixed; top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
}
.admin-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar-header h2 {
    color: white; font-size: 16px; font-weight: 700;
}
.admin-sidebar-header small { color: rgba(255,255,255,0.5); font-size: 11px; }
.admin-nav { padding: 12px 0; }
.admin-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; color: rgba(255,255,255,0.7);
    font-size: 14px; transition: all var(--transition);
}
.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    padding-left: 26px;
}
.admin-nav a i { width: 18px; text-align: center; color: var(--gold-light); }
.admin-nav .nav-section {
    padding: 14px 20px 6px;
    font-size: 10px; font-weight: 700;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase; letter-spacing: 1px;
}
.admin-main {
    margin-left: 250px;
    min-height: 100vh;
    display: flex; flex-direction: column;
}
.admin-topbar {
    background: white;
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    position: sticky; top: 0; z-index: 50;
}
.admin-topbar h1 { font-size: 18px; font-weight: 700; color: var(--text); }
.admin-user {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-muted);
}
.admin-content { padding: 24px; flex: 1; }
.admin-card {
    background: white; border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    margin-bottom: 24px;
}
.admin-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.admin-card-header h3 { font-size: 15px; font-weight: 700; color: var(--text); }
.admin-card-body { padding: 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
    background: var(--bg-light);
    padding: 10px 14px;
    text-align: left; font-weight: 600;
    font-size: 12px; text-transform: uppercase;
    color: var(--text-muted); border-bottom: 2px solid var(--border);
}
.admin-table td {
    padding: 12px 14px; border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.admin-table tr:hover td { background: var(--bg-light); }
.badge {
    display: inline-block;
    padding: 3px 10px; border-radius: 50px;
    font-size: 11px; font-weight: 700;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-yellow { background: #fef9c3; color: #713f12; }
.btn-sm {
    padding: 6px 12px; border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 600;
    cursor: pointer; border: none;
    transition: all var(--transition); display: inline-flex;
    align-items: center; gap: 4px; font-family: var(--font-body);
}
.btn-edit { background: var(--primary); color: white; }
.btn-edit:hover { background: var(--primary-light); }
.btn-delete { background: #fee2e2; color: #991b1b; }
.btn-delete:hover { background: #fca5a5; }
.btn-add { background: var(--gold); color: white; padding: 9px 18px; border-radius: 50px; font-size: 13px; font-weight: 600; }
.btn-add:hover { background: var(--primary); }
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: white; border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
    transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card:nth-child(2) { border-top-color: var(--gold); }
.stat-card:nth-child(3) { border-top-color: #3b82f6; }
.stat-card:nth-child(4) { border-top-color: #8b5cf6; }
.stat-card-value { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card:nth-child(2) .stat-card-value { color: var(--gold); }
.stat-card:nth-child(3) .stat-card-value { color: #3b82f6; }
.stat-card:nth-child(4) .stat-card-value { color: #8b5cf6; }
.stat-card-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.admin-form-group { margin-bottom: 20px; }
.admin-form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.admin-form-group .form-control { width: 100%; }
.admin-form-group select {
    width: 100%; padding: 10px 14px;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font-body);
    background: white; color: var(--text); outline: none;
}
.admin-form-group select:focus { border-color: var(--primary); }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-save { background: var(--primary); color: white; padding: 12px 28px; border-radius: 50px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; font-family: var(--font-body); }
.btn-save:hover { background: var(--primary-light); }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { display: none; }
.toggle-slider {
    position: absolute; inset: 0;
    background: #cbd5e1; border-radius: 24px;
    cursor: pointer; transition: background var(--transition);
}
.toggle-slider::before {
    content: ''; position: absolute;
    width: 18px; height: 18px;
    background: white; border-radius: 50%;
    top: 3px; left: 3px;
    transition: transform var(--transition);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.login-card {
    background: white; border-radius: var(--radius);
    padding: 40px; width: 360px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo h1 { color: var(--primary); font-size: 1.4rem; font-weight: 800; }
.login-logo p { color: var(--text-muted); font-size: 13px; }
.login-emblem { width: 70px; height: 70px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.login-emblem i { color: white; font-size: 28px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cards-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-dark); padding: 12px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
    .main-nav.open .nav-list { flex-direction: column; gap: 0; }
    .main-nav.open .nav-link { padding: 12px 20px; border-radius: 0; }
    .main-nav.open .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,0.07); border-top: none; border-left: 3px solid var(--gold); margin-left: 20px; }
    .mobile-toggle { display: flex; }
    .site-header { position: sticky; }
    .hero-slider { height: 300px; }
    .slide-content { padding: 30px 20px; }
    .slide-content h2 { font-size: 1.6rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .news-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .admin-sidebar { width: 200px; }
    .admin-main { margin-left: 200px; }
    .form-row { grid-template-columns: 1fr; }
    .admin-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .topbar-left { flex-direction: column; gap: 4px; font-size: 11px; }
    .article-title { font-size: 1.5rem; }
    .stat-cards { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.d-flex { display: flex; }
.gap-2 { gap: 8px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

/* Animate on scroll */
.fade-up {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
