/* ═══════════════════════════════════════════
   ОЙН ГАЗАР — Нийтийн сайт  |  web_sys.css
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    color: #1E2129;
    background: #fff;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* Container */
.ws-container,
.ws-section-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─────────────────────────────────
   Дээд зурвас
───────────────────────────────── */
.ws-topstrip {
    background: #004a30;
    color: rgba(255,255,255,0.7);
    font-size: 11.5px;
    padding: 5px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ws-topstrip-portal {
    color: #A1CD46;
    font-weight: 600;
    font-size: 11.5px;
    transition: color 0.15s;
}
.ws-topstrip-portal:hover { color: #c5e466; }

/* ─────────────────────────────────
   Header
───────────────────────────────── */
.ws-header {
    background: #fff;
    border-bottom: 1px solid #E4E6EF;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.ws-header-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.ws-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.ws-logo-sep {
    width: 1px;
    height: 32px;
    background: #E4E6EF;
    flex-shrink: 0;
}
.ws-logo-text { display: flex; flex-direction: column; }
.ws-logo-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #00593A;
    letter-spacing: 0.6px;
    line-height: 1.2;
}
.ws-logo-sub {
    font-size: 10px;
    color: #7E8299;
    line-height: 1.3;
    white-space: nowrap;
}
.ws-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}
.ws-nav-link {
    padding: 7px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: #1E2129;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.ws-nav-link:hover { background: #F5F5F5; color: #00593A; }
.ws-nav-link.active { color: #00593A; font-weight: 600; }
.ws-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #00593A;
    color: #fff;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 0.15s;
}
.ws-btn-login:hover { background: #004a30; color: #fff; }

/* ─────────────────────────────────
   Main
───────────────────────────────── */
.ws-main { min-height: calc(100vh - 160px); }

/* ─────────────────────────────────
   Hero
───────────────────────────────── */
.ws-hero {
    background-color: #005939;
    color: #fff;
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}
.ws-hero-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
    padding: 40px 44px;
}
.ws-hero-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: center;
}
.ws-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(161,205,70,0.15);
    border: 1px solid rgba(161,205,70,0.3);
    color: #A1CD46;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.ws-hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #fff;
}
.ws-hero-title em { color: #A1CD46; font-style: normal; }
.ws-hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.78);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 540px;
}
.ws-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ws-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #A1CD46;
    color: #fff;
    border-radius: 10px;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s;
}
.ws-hero-btn-primary:hover { background: #8db83c; color: #fff; }
.ws-hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 10px;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.22);
    transition: background 0.15s;
}
.ws-hero-btn-secondary:hover { background: rgba(255,255,255,0.2); }
/* ─────────────────────────────────
   Эрхийн бичиг шалгах форм (Hero баруун тал)
───────────────────────────────── */
.ws-hero-check-form {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Animation SVG illustration (inside check card) */
.ws-hero-anim {
    width: 100%;
    margin-bottom: 2px;
}
.ws-hero-anim svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}
/* Animation caption text */
.ws-anim-caption {
    text-align: center;
    padding: 2px 4px 16px;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.12); */
    margin-bottom: 16px;
}
.ws-anim-cap-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.1px;
    margin-bottom: 5px;
}
.ws-anim-cap-sub {
    font-size: 11.5px;
    color: rgba(255,255,255,0.55);
    line-height: 1.55;
}
.ws-check-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 20px;
    padding: 28px 28px 24px;
    width: 100%;
}
.ws-check-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.ws-check-card-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(161,205,70,0.18);
    color: #A1CD46;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ws-check-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.ws-check-card-sub {
    font-size: 11.5px;
    color: rgba(255,255,255,0.55);
    margin-top: 2px;
}
.ws-check-input-wrap {
    position: relative;
    margin-bottom: 12px;
}
.ws-check-inp-ico {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.45);
    pointer-events: none;
}
.ws-check-inp {
    width: 100%;
    height: 46px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 0 14px 0 40px;
    font-size: 14px;
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}
.ws-check-inp::placeholder { color: rgba(255,255,255,0.38); }
.ws-check-inp:focus {
    border-color: #A1CD46;
    background: rgba(255,255,255,0.14);
}
.ws-check-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    height: 46px;
    background: #A1CD46;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
}
.ws-check-btn-primary:hover { background: #8db83c; }
.ws-check-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    color: rgba(255,255,255,0.3);
    font-size: 12px;
}
.ws-check-divider::before,
.ws-check-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.15);
}
.ws-check-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    height: 44px;
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}
.ws-check-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.ws-check-result {
    margin-top: 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

/* ─────────────────────────────────
   Статистик зурвас
───────────────────────────────── */
.ws-stats {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    position: relative;
    z-index: 2;
}
.ws-stats-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.ws-stat-item {
    padding: 28px 24px;
    border-right: 1px solid #E4E6EF;
    text-align: center;
}
.ws-stat-item:last-child { border-right: none; }
.ws-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #00593A;
    line-height: 1;
    margin-bottom: 7px;
    font-variant-numeric: tabular-nums;
}
.ws-stat-lbl {
    font-size: 12.5px;
    color: #7E8299;
}

/* ─────────────────────────────────
   Section нийтлэг
───────────────────────────────── */
.ws-section { padding: 70px 0; }
.ws-section-header { text-align: center; margin-bottom: 44px; }
.ws-section-tag {
    display: inline-block;
    background: #E8FFF3;
    color: #00593A;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.ws-section-title {
    font-size: 26px;
    font-weight: 700;
    color: #1E2129;
    margin-bottom: 10px;
    line-height: 1.3;
}
.ws-section-sub {
    font-size: 14px;
    color: #7E8299;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ─────────────────────────────────
   Портал карт
───────────────────────────────── */
.ws-portals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ws-portal-card {
    background: #fff;
    border: 1px solid #E4E6EF;
    border-radius: 16px;
    padding: 32px 28px;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.ws-portal-card:hover {
    box-shadow: 0 10px 36px rgba(0,89,58,0.11);
    border-color: #A1CD46;
    transform: translateY(-3px);
}
.ws-portal-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.ws-portal-icon.green { background: #E8FFF3; color: #00593A; }
.ws-portal-icon.lime  { background: #F3FDE8; color: #6A9928; }
.ws-portal-icon.amber { background: #FFF4DE; color: #F59120; }
.ws-portal-title {
    font-size: 17px;
    font-weight: 700;
    color: #1E2129;
    margin-bottom: 10px;
}
.ws-portal-desc {
    font-size: 13.5px;
    color: #7E8299;
    line-height: 1.75;
    flex: 1;
    margin-bottom: 24px;
}
.ws-portal-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00593A;
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
    transition: gap 0.15s;
}
.ws-portal-card:hover .ws-portal-link { gap: 10px; }

/* ─────────────────────────────────
   Тухай хэсэг
───────────────────────────────── */
.ws-info { background: #F8F9FA; }
.ws-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.ws-info-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1E2129;
    margin-bottom: 14px;
    line-height: 1.3;
}
.ws-info-content > p {
    font-size: 14px;
    color: #7E8299;
    line-height: 1.8;
    margin-bottom: 28px;
}
.ws-info-items { display: flex; flex-direction: column; gap: 12px; }
.ws-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E4E6EF;
}
.ws-info-item-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: #E8FFF3;
    color: #00593A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ws-info-item-body h4 {
    font-size: 13.5px;
    font-weight: 600;
    color: #1E2129;
    margin-bottom: 2px;
}
.ws-info-item-body p { font-size: 12.5px; color: #7E8299; }

/* ─────────────────────────────────
   Footer
───────────────────────────────── */
.ws-footer {
    background: #1a2030;
    position: relative;
}
.ws-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url(/assest/logo/back.png);
    background-repeat: repeat;
    background-position: center center;
    background-size: 300px;
    filter: brightness(0) invert(1);
    opacity: 0.01;
    pointer-events: none;
    z-index: 0;
}
.ws-hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url(/assest/logo/back.png);
    background-repeat: repeat;
    background-position: center center;
    background-size: 400px;
    /* filter: brightness(0) invert(1); */
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}
.ws-footer-inner,
.ws-footer-bottom { position: relative; z-index: 1; }
.ws-footer-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 52px 24px 36px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
}
.ws-footer-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.ws-footer-logo-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}
.ws-footer-brand p {
    font-size: 12.5px;
    color: rgba(255,255,255,0.45);
    line-height: 1.75;
    margin-bottom: 20px;
    max-width: 230px;
}
.ws-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(161,205,70,0.1);
    border: 1px solid rgba(161,205,70,0.2);
    color: #A1CD46;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.ws-footer-links { display: flex; gap: 48px; padding-top: 4px; }
.ws-footer-group { display: flex; flex-direction: column; gap: 10px; }
.ws-footer-group-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}
.ws-footer-group a,
.ws-footer-group span {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    transition: color 0.15s;
}
.ws-footer-group a:hover { color: #A1CD46; }
.ws-footer-bottom {
    /* border-top: 1px solid rgba(255, 255, 255, 0.06); */
    text-align: center;
    padding: 14px 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    font-family: 'Exo 2', sans-serif;
}

/* ─────────────────────────────────
   Аймгийн график
───────────────────────────────── */
.ws-chart-section { background: #F5F5F5; }
.ws-chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}
.ws-chart-card {
    background: #fff;
    border: 1px solid #E4E6EF;
    border-radius: 14px;
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ws-chart-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E4E6EF;
    margin-bottom: 16px;
}
.ws-chart-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #1E2129;
}
.ws-chart-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11.5px;
    color: #7E8299;
    font-weight: 500;
}
.ws-legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 3px;
}
.ws-chart-body {
    position: relative;
    min-height: 260px;
    height: 260px;
}
.ws-chart-empty {
    font-size: 13px;
    color: #B5B5C3;
    text-align: center;
    padding: 32px 0;
}
@media (max-width: 900px) {
    .ws-chart-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────
   Нийтийн KPI статистик
───────────────────────────────── */
.ws-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.ws-kpi-card {
    background: #fff;
    border: 1px solid #E4E6EF;
    border-radius: 14px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ws-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,89,58,0.1);
}
.ws-kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.ws-kpi-icon.green { background: #E8FFF3; color: #00593A; }
.ws-kpi-icon.lime  { background: #F3FDE8; color: #6A9928; }
.ws-kpi-icon.teal  { background: #E0F8F7; color: #1BC5BD; }
.ws-kpi-icon.amber { background: #FFF4DE; color: #c47000; }
.ws-kpi-num {
    font-size: 38px;
    font-weight: 700;
    color: #1E2129;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ws-kpi-label {
    font-size: 14px;
    font-weight: 600;
    color: #1E2129;
    margin-top: 2px;
}
.ws-kpi-sub {
    font-size: 12px;
    color: #B5B5C3;
}
.ws-kpi-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #1BC5BD;
    font-weight: 600;
    margin-top: 8px;
}
.ws-kpi-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1BC5BD;
    animation: wsKpiPulse 1.8s infinite;
}
@keyframes wsKpiPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}
.ws-kpi-skel {
    height: 168px;
    border-radius: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: wsKpiShimmer 1.4s infinite;
}
@keyframes wsKpiShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─────────────────────────────────
   Responsive
───────────────────────────────── */
@media (max-width: 1024px) {
    .ws-portals-grid { grid-template-columns: repeat(2, 1fr); }
    .ws-kpi-row { grid-template-columns: repeat(2, 1fr); }
    .ws-info-grid { grid-template-columns: 1fr; }
    .ws-footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .ws-hero-inner { grid-template-columns: 1fr; }
    .ws-hero-check-form { display: none; }
    .ws-hero-title { font-size: 26px; }
    .ws-stats-inner { grid-template-columns: repeat(2, 1fr); }
    .ws-stat-item:nth-child(2) { border-right: none; }
    .ws-portals-grid { grid-template-columns: 1fr; }
    .ws-kpi-row { grid-template-columns: 1fr; }
    .ws-nav { display: none; }
    .ws-footer-links { flex-direction: column; gap: 24px; }
}
