/*
 * Олон нийтэд харагдах хуудсуудын нийтлэг загвар.
 * Бүх хуудас: ижил өргөнтэй контейнер -> breadcrumb -> [гарчгийн блок + агуулга | хажуугийн цэс].
 * Хажуугийн цэсийн дээд ирмэг гарчгийн блокийн дээд ирмэгтэй нэг түвшинд эхэлнэ.
 */
:root {
    --pub-navy: #0a2945;
    --pub-blue: #164360;
    --pub-teal: #11bbaa;
    --pub-ink: #17334c;
    --pub-muted: #678096;
    --pub-line: #e0eaf0;
    --pub-soft: #f3f8fa;
    --pub-header-offset: 104px;
}

/* ---------- Контейнер ---------- */
.pub-page {
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 24px 48px 56px;
}

.pub-page>.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Хажуугийн цэс: бүх хуудсанд ижил байрлал, desktop дээр гүйлгэхэд дагаж үлдэнэ. */
@media (min-width: 1200px) {
    .pub-side-sticky {
        position: sticky;
        top: var(--pub-header-offset);
    }
}

@media (max-width: 991.98px) {
    .pub-page {
        padding: 18px 24px 44px;
    }
}

@media (max-width: 575.98px) {
    .pub-page {
        padding: 14px 16px 36px;
    }
}

/* ---------- Breadcrumb ---------- */
.pub-crumb {
    margin: 0 0 18px;
}

.pub-crumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--pub-muted);
}

.pub-crumb li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.pub-crumb li+li::before {
    content: "\f105";
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    font-size: 11px;
    margin: 0 10px;
    color: #a9bac7;
}

.pub-crumb a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--pub-ink);
    font-weight: 600;
    text-decoration: none;
}

.pub-crumb a:hover,
.pub-crumb a:focus-visible {
    color: #078b80;
    text-decoration: underline;
}

.pub-crumb a i {
    color: #078b80;
    font-size: 14px;
}

.pub-crumb li[aria-current="page"] span {
    color: var(--pub-muted);
    font-weight: 500;
}

/* ---------- Гарчгийн блок ---------- */
.pub-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 150px;
    margin: 0 0 24px;
    padding: 30px 34px;
    border-radius: 22px;
    background: linear-gradient(112deg, #0a2947 0%, #164360 60%, #07746e 100%);
    color: #fff;
    box-shadow: 0 17px 39px rgba(11, 52, 82, .14);
}

.pub-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -110px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    pointer-events: none;
}

.pub-hero-body {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.pub-hero .pub-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: #6ee7d8;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pub-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 2.4vw, 36px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.pub-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    line-height: 1.6;
}

.pub-hero-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
    color: #6ee7d8;
    font-size: 25px;
}

@media (max-width: 575.98px) {
    .pub-hero {
        min-height: 0;
        padding: 22px 20px;
        border-radius: 17px;
    }

    .pub-hero-icon {
        display: none;
    }
}

/* ---------- Нийтлэг карт (хуучин хавтасны хуудас г.м.) ---------- */
.pub-card {
    overflow: hidden;
    margin: 0 0 20px;
    border: 1px solid var(--pub-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(11, 40, 70, .06);
}

.pub-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--pub-line);
}

.pub-card-title {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0;
    color: var(--pub-ink);
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.pub-card-title i {
    color: #078b80;
}

.pub-card-body {
    padding: 18px 20px;
}

.pub-card-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
}

.pub-btn-soft {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid #c9ece7;
    border-radius: 10px;
    background: #ecfaf8;
    color: #08776e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.pub-btn-soft:hover,
.pub-btn-soft:focus-visible {
    background: #d8f5f1;
    color: #055e57;
}

.pub-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px;
    border: 1px dashed #c8d8e2;
    border-radius: 18px;
    background: var(--pub-soft);
    color: var(--pub-muted);
}

.pub-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 14px;
}

.pub-section-head h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--pub-ink);
    font-size: 18px;
    font-weight: 750;
}

.pub-section-head h2 i {
    color: #078b80;
}

.pub-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #c9ece7;
    border-radius: 999px;
    background: #ecfaf8;
    color: #08776e;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}
