/* MOSCAP Core asset — FluentSnippets "NEWS HERO + GRID SHARED (CSS)" (115-news-hero-grid-shared-css.php, run_at=wp_head)
   снипетээс 2026-11-22-нд нүүлгэсэн; includes/assets.php ачаална. Энэ толгойноос
   бусад код өөрчлөгдөөгүй.
*/

/* ============================================================
   MOSCAP — .mnews-hero / .mng-* (2026-08-27)
   FluentSnippets > NEWS HERO + GRID SHARED (CSS) > Frontend head
   /news/'s own copy of these rules lives only in that page's own
   post_content (a Custom HTML block), so it never applies on
   /category/{slug}/ (see NEWS CATEGORY TEMPLATE (PHP)), which
   renders the same .mnews-hero/.mng-* markup from PHP directly.
   Deployed sitewide so both places share one definition instead
   of two copies drifting apart. Duplicating /news/'s own inline
   copy is harmless (identical selectors, same values).
   ============================================================ */

/* =============================================
   0. MAIN PAGE BACKGROUND (2026-08-27) — light grey
      behind the hero/grid on /news/, category, and author
      archive pages (cards themselves stay dark navy,
      reverted after an earlier "light card" attempt read
      as the wrong element to recolor).
============================================= */
body.category,
body.author,
body.page-id-1250 {
    background: #f3f4f6 !important;
}
/* GeneratePress's "separate-containers" mode gives .inside-article (the
   wrapper it puts around every normal page's content) its own OPAQUE white
   background (background-color:var(--base-3)) — on /news/ (a real WP page,
   unlike the category override above which never generates this wrapper at
   all) that box covers almost the entire viewport, hiding the body color
   everywhere except a sliver of margin. Made transparent so the body color
   actually shows through. */
body.page-id-1250 .inside-article,
body.page-id-1250 .page-header {
    background-color: transparent !important;
}

/* =============================================
   1. HERO
============================================= */
.mnews-hero {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #0a1a2f;
    background-image:
        linear-gradient(to right, rgba(10,26,47,1.0) 0%, rgba(10,26,47,0.85) 20%, rgba(10,26,47,0.1) 40%, rgba(10,26,47,0.0) 100%),
        url('/wp-content/uploads/2026/06/news_hero.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 80px 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}
.mnews-hero__inner {
    max-width: 1200px;
    width: 100%;
}
.mnews-hero__text {
    min-width: 280px;
    max-width: 480px;
}
.mnews-hero__eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #006EB4;
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}
.mnews-hero__title {
    font-size: 52px !important;
    font-weight: 800 !important;
    line-height: 1.0 !important;
    color: #ffffff !important;
    margin: 0 0 20px !important;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif !important;
}
.mnews-hero__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.75;
    margin: 0;
    max-width: 360px;
}

@media (max-width: 768px) {
    .mnews-hero {
        padding: 140px 24px 60px;
        background-attachment: scroll;
        min-height: auto;
    }
    .mnews-hero__title { font-size: 38px !important; }
    .mnews-hero__text { max-width: 100%; }
    .mnews-hero__desc { max-width: 100%; }
}
@media (max-width: 480px) {
    .mnews-hero__title { font-size: 32px !important; }
}

/* =============================================
   2. GRID
============================================= */
.mng-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    font-family: 'Inter', sans-serif;
}
.mng-info {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 24px;
}
.mng-info strong { color: #0a1a2f; }

.mng-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.mng-card {
    background: #112240;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none !important;
    display: block;
    transition: transform 0.3s, background 0.3s;
    border: 1px solid rgba(255,255,255,0.06);
}
.mng-card:hover {
    transform: translateY(-4px);
    background: #163060;
    text-decoration: none !important;
}
.mng-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.mng-card__img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1e3a5f;
    display: block;
}
.mng-card__body {
    padding: 16px;
}
.mng-card__date {
    font-size: 11px;
    letter-spacing: 1px;
    color: #006EB4;
    margin-bottom: 8px;
    display: block;
}
.mng-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    margin: 0 0 8px;
    font-family: 'Inter', sans-serif;
}
.mng-card__excerpt {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin: 0;
}

.mng-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}
.mng-page-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #006EB4;
    border: 1.5px solid #006EB4;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}
.mng-page-btn:hover { background: #006EB4; color: #fff; text-decoration: none; }
.mng-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}
.mng-page-num:hover { border-color: #006EB4; color: #006EB4; text-decoration: none; }
.mng-page-num.active { background: #006EB4; border-color: #006EB4; color: #fff; }
.mng-page-dots { color: #aaa; font-size: 13px; padding: 0 4px; }

.mng-empty {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
    font-size: 15px;
}

@media (max-width: 1024px) {
    .mng-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .mng-wrap { padding: 24px 16px 40px; }
    .mng-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
    .mng-grid { grid-template-columns: 1fr; }
}

/* =============================================
   3. SINGLE-POST HEADER OVERRIDES — also needed on
      category AND author archives for the same dark
      topbar/full-width treatment (mirrors NEWS PAGE
      (CSS)'s own .single-post rules). .author added
      2026-08-27 alongside NEWS CATEGORY TEMPLATE
      (PHP)'s is_author() support.
============================================= */
.category .moscap-topbar,
.author .moscap-topbar {
    position: relative !important;
    background: #060f1e !important;
}
.category .site-header,
.author .site-header {
    position: relative !important;
    top: 0 !important;
    background: #0a1a2f !important;
}
.category .site-header::before,
.author .site-header::before { display: none !important; }
.category .page-header,
.author .page-header { display: none !important; }
.category .site-content,
.author .site-content {
    padding-top: 0 !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.category .content-area,
.category main,
.author .content-area,
.author main {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
