/*
 * ==========================================================================
 * Нийтийн сайтын гол stylesheet (Багахангайн ҮТП)
 * ----------------------------------------------------------------------------
 * Агуулга: CSS хувьсагчид, суурь layout, hero/цэс, нүүрний блокууд,
 * дотор хуудас (inner-page), footer, зургийн цомог/lightbox, дэвсгэрийн pattern.
 * Vendor: theme.min.css (өмнө нь ачаалагдана). Засвар үед энд нэмнэ.
 * ==========================================================================
 */
/* reset check */
:root { --ok: 1; }
/* =========================================================
   TOKENS / VARIABLES
   ========================================================= */
:root {
  --color-primary: #0d4a92;
  --color-primary-dark: #07325f;
  --color-surface: #ffffff;
  --color-text: #1f2937;
  --color-accent-strong: #eabe6c;
  --color-border: #d9dde5;
  --color-soft-bg: #eef1f5;
  /* Давтагдах үүлний дүрс — more/site/img/background/pattern.jpg */
  --site-bg-pattern: url("../img/background/pattern.jpg");
  /* Хээ: жижигрүүлсэн давталт = илүү тод харагдана (хэт томруулбал бүдэг харагдана) */
  --site-bg-pattern-size: 300px auto;
  /*
   * Цайвар давхарга: өмнө 0.93+ байсан тул хээ бараг алга болсон.
   * ~0.55–0.72 = хээ тод, гэхдээ нүдэнд зөөлөн.
   */
  --site-pattern-fade-page: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.58) 0%,
    rgba(247, 249, 252, 0.64) 45%,
    rgba(241, 244, 249, 0.7) 100%
  );
  --site-pattern-fade-park: linear-gradient(
    180deg,
    rgba(243, 245, 250, 0.52) 0%,
    rgba(236, 240, 247, 0.62) 100%
  );
  --site-pattern-fade-news: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.56) 0%,
    rgba(248, 250, 254, 0.65) 100%
  );
  /* Маш сул — зөвхөн зөөлөн өнгийн нэгдэл */
  --site-pattern-glow: linear-gradient(
    125deg,
    rgba(13, 74, 146, 0.02) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(234, 190, 108, 0.018) 100%
  );
  --color-overlay-dark: rgba(0, 0, 0, 0.35);
  --font-base: "Roboto", sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --radius-sm: 4px;
  --radius-pill: 999px;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --inner-prose-max: 48rem;
  --inner-section-gap: 1.25rem;
  --inner-radius: 10px;
  --inner-shadow-soft: 0 4px 14px rgba(7, 50, 95, 0.07);
}

/* =========================================================
   BASE
   ========================================================= */
html,
body {
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  font-family: var(--font-base);
  color: var(--color-text);
}

/* Homepage: theme / scroll-header scripts may add body padding for fixed nav; our header is absolute inside main, so that becomes a white strip above the bar */
body.home-page {
  margin: 0 !important;
  padding-top: 0 !important;
}

/* Inner pages should not reserve extra top space */
body.inner-page {
  margin: 0 !important;
  padding-top: 0 !important;
}

.page-wrapper {
  overflow-x: hidden;
  position: relative;
  z-index: 1;
  background-color: #ffffff;
  background-image: none;
}

/* Left fixed Mongol background text (png) */
.side-mongol-text-bg{
  position: fixed;
  left: -150px;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  height: min(72vh, 520px);
  width: auto;
  opacity: 0.34;
  z-index: 9999;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25));
  pointer-events: none;
  user-select: none;
}

@media (max-width: 991px){
  .side-mongol-text-bg{
    left: -120px;
    right: auto;
    opacity: 0.28;
    height: min(50vh, 420px);
  }
}

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

img { border: none; max-width: 100%; }
[pf] { position: fixed; }
[w1] { width: 100%; }

/* =========================================================
   LAYOUT
   ========================================================= */
.hero-topbar { position: relative; z-index: 1100; }

/* Topbar + navbar share one wrapper (see menus.php .site-header-stack) */
.site-header-stack {
  position: relative;
  z-index: 1100;
}

body.home-page main.page-wrapper {
  position: relative;
  margin: 0 !important;
  padding-top: 0 !important;
  display: flow-root;
}

/* Home: single overlay block above full-viewport hero — no negative hero margin */
body.home-page .site-header-stack {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

body.home-page .hero-topbar {
  position: relative;
  background: rgba(14, 77, 145, 0.78) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body:not(.home-page) header.navbar.site-header {
  position: relative !important;
  top: 0 !important;
  left: 0;
  width: 100%;
  z-index: 1100;
  background: var(--color-primary) !important;
  border: 0 !important;
  box-shadow: 0 6px 18px rgba(7, 50, 95, 0.2) !important;
}

body.home-page .site-header-stack header.site-header.navbar {
  position: relative !important;
  top: 0 !important;
  left: 0;
  width: 100%;
  z-index: 1100;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

header.navbar.site-header .container {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.site-logo {
  width: 320px;
  max-width: 100%;
  height: auto;
  display: block;
}

header.navbar.site-header .navbar-brand {
  margin-right: var(--space-2);
  flex: 0 0 auto;
  overflow: visible;
  align-self: center;
}

header.navbar.site-header .navbar-collapse,
body.home-page .site-header .navbar-collapse {
  flex: 1 1 auto;
  justify-content: center;
  min-height: 60px;
  padding: 14px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

/* Inner page navbar must stay readable */
body:not(.home-page) .site-header .navbar-collapse {
  background: rgba(13, 74, 146, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body:not(.home-page) .site-header .nav-link,
body:not(.home-page) .site-header .navbar-nav .nav-link,
body:not(.home-page) .site-header .dropdown-toggle {
  color: #fff !important;
}

header.navbar.site-header .navbar-nav { align-items: center; gap: var(--space-1); }

.hero-slider-wrap {
  position: relative;
  z-index: 1;
}

body.home-page .hero-slider-wrap {
  margin: 0;
  padding: 0;
  display: flow-root;
}

.hero-slider,
.hero-slider .tns-outer,
.hero-slider .tns-ovh,
.hero-slider .tns-inner,
.hero-slider .tns-item,
.hero-slide {
  height: 100svh !important;
  min-height: 100svh !important;
}

@supports (height: 100dvh) {
  .hero-slider,
  .hero-slider .tns-outer,
  .hero-slider .tns-ovh,
  .hero-slider .tns-inner,
  .hero-slider .tns-item,
  .hero-slide {
    height: 100dvh !important;
    min-height: 100dvh !important;
  }
}

.hero-slide {
  position: relative;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 33, 66, 0.22) 0%,
    rgba(4, 33, 66, 0.34) 52%,
    rgba(2, 18, 39, 0.5) 100%
  );
}

.hero-overlay-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 84px;
  z-index: 5;
  color: var(--color-surface);
}

.hero-content-inner {
  max-width: 760px;
}

/* Паркийн танилцуулга — ЭрдэнэтМС (erdenetmc.mn) танилцуулгын тороос санаа авсан 2×3 тор */
.park-intro-section {
  /* Цагаан хуудаснаас зөөхөн ялгагдах — шилэн картууд backdrop-д харагдана */
  background-color: #f3f6fb;
  background-image: none;
  border-top: 1px solid rgba(13, 74, 146, 0.08);
  border-bottom: 1px solid rgba(13, 74, 146, 0.08);
}

.park-intro-grid {
  --park-intro-teal-1: #14b8a6;
  --park-intro-teal-2: #0f766e;
}

.park-intro-item {
  min-height: 100%;
  padding: 18px 16px;
  border-radius: 18px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(248, 251, 255, 0.52) 45%,
    rgba(237, 245, 252, 0.42) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 1px 0 rgba(13, 74, 146, 0.06),
    0 10px 32px rgba(13, 74, 146, 0.08),
    0 2px 10px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(14px) saturate(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.06);
  isolation: isolate;
}

.park-intro-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--park-intro-teal-1) 0%, var(--park-intro-teal-2) 100%);
  color: #fff !important;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow:
    0 4px 16px rgba(15, 118, 110, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.park-intro-icon i {
  color: inherit !important;
  opacity: 1 !important;
}

.park-intro-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.4rem;
  line-height: 1.3;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.park-intro-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #3d4a5a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.park-intro-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  margin-top: 0.15rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(248, 251, 255, 0.42) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 18px rgba(13, 74, 146, 0.07);
  backdrop-filter: blur(10px) saturate(1.04);
  -webkit-backdrop-filter: blur(10px) saturate(1.04);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.park-intro-more-link:hover {
  color: var(--color-primary);
  text-decoration: none;
  border-color: rgba(13, 74, 146, 0.15);
  box-shadow: 0 8px 24px rgba(13, 74, 146, 0.1);
  transform: translateY(-1px);
}

@media (max-width: 575px) {
  .park-intro-icon {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }

  .park-intro-title {
    font-size: 1rem;
  }
}

/* =========================================================
   COMPONENTS
   ========================================================= */
/* Navbar utility bar */
.hero-topbar-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
  color: #fff;
}

.hero-topbar-item {
  opacity: 0.95;
  white-space: nowrap;
}

.hero-topbar-sep {
  opacity: 0.55;
}

.hero-topbar-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.hero-topbar-link:hover,
.hero-topbar-link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* Navbar + dropdown refinements */
header.navbar.site-header .navbar-collapse {
  padding-top: 10px;
  padding-bottom: 10px;
}

.main-nav-list .nav-item {
  position: relative;
}

/* 11-10 / 110 гомдол мэдээлэл — улаан дэвсгэр (.nav-item-complaint-110 — menus.php) */
.site-header .nav-item-complaint-110 > .nav-link,
.site-header .nav-item-complaint-110 > .dropdown-toggle {
  background-color: #c62828 !important;
  color: #fff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.site-header .navbar-nav .nav-link,
.site-header .navbar-nav .dropdown-toggle,
header.navbar.site-header i {
  color: var(--color-surface) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 0.2px;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .dropdown-toggle:hover,
header.navbar.site-header .nav-link:hover,
header.navbar.site-header .dropdown-toggle:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.14);
}

.site-header .nav-item-complaint-110 > .nav-link:hover,
.site-header .nav-item-complaint-110 > .nav-link:focus-visible,
.site-header .nav-item-complaint-110 > .dropdown-toggle:hover,
.site-header .nav-item-complaint-110 > .dropdown-toggle:focus-visible,
.site-header .nav-item-complaint-110.show > .dropdown-toggle {
  background-color: #b71c1c !important;
  color: #fff !important;
}

.site-header .navbar-nav .nav-link.active,
.site-header .navbar-nav .dropdown-toggle.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
}

.site-header .navbar-nav .nav-link:focus-visible,
.site-header .navbar-nav .dropdown-toggle:focus-visible,
.site-header .dropdown-menu .dropdown-item:focus-visible,
.site-header .navbar-toggler:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
}

/* Ерөнхий .navbar-nav .nav-link (color !important) дараа — 110 товчны улаан/цагаан */
.site-header .navbar-nav .nav-item.nav-item-complaint-110 > .nav-link,
.site-header .navbar-nav .nav-item.nav-item-complaint-110 > .dropdown-toggle {
  background-color: #c62828 !important;
  color: #fff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.site-header .navbar-nav .nav-item.nav-item-complaint-110 > .nav-link:hover,
.site-header .navbar-nav .nav-item.nav-item-complaint-110 > .nav-link:focus-visible,
.site-header .navbar-nav .nav-item.nav-item-complaint-110 > .dropdown-toggle:hover,
.site-header .navbar-nav .nav-item.nav-item-complaint-110 > .dropdown-toggle:focus-visible,
.site-header .navbar-nav .nav-item.nav-item-complaint-110.show > .dropdown-toggle {
  background-color: #b71c1c !important;
  color: #fff !important;
}

/* Desktop: нэг мөр — дүрмүүдийн дараа (14px нь дээрх 16px-ийг дарна) */
@media (min-width: 992px) {
  header.navbar.site-header .main-nav-list {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
  }

  header.navbar.site-header .main-nav-list > .nav-item {
    flex-shrink: 0;
  }

  .site-header .main-nav-list .nav-link,
  .site-header .main-nav-list .dropdown-toggle {
    font-size: 14px !important;
    padding: 8px 9px !important;
    white-space: nowrap;
  }

  .site-header .main-nav-list .nav-home-item .nav-link {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* 110 товч: дээрх 14px дүрмийг давж улаан дэвсгэр хадгална */
  .site-header .main-nav-list .nav-item.nav-item-complaint-110 > .nav-link,
  .site-header .main-nav-list .nav-item.nav-item-complaint-110 > .dropdown-toggle {
    background-color: #c62828 !important;
    color: #fff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  }
  .site-header .main-nav-list .nav-item.nav-item-complaint-110 > .nav-link:hover,
  .site-header .main-nav-list .nav-item.nav-item-complaint-110 > .dropdown-toggle:hover,
  .site-header .main-nav-list .nav-item.nav-item-complaint-110.show > .dropdown-toggle {
    background-color: #b71c1c !important;
    color: #fff !important;
  }
}

header.navbar.site-header .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4) !important;
  padding: 10px 12px;
  min-width: 44px;
  min-height: 44px;
}

header.navbar.site-header .navbar-toggler-icon { filter: brightness(0) invert(1); }

.site-header .dropdown-menu {
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  padding: 6px;
  min-width: 230px;
}

/* Desktop hover safety: prevent dropdown from disappearing on small mouse gaps */
@media (min-width: 992px) {
  .site-header .dropdown-menu {
    margin-top: 0 !important;
    z-index: 2050;
  }
  .site-header .nav-item.dropdown:hover > .dropdown-menu {
    display: block !important;
  }
  .site-header .dropdown-menu .dropdown:hover > .dropdown-menu {
    display: block !important;
  }
}

.site-header .dropdown-menu .dropdown-item {
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
}

.site-header .dropdown-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-home-item .nav-home-link {
  min-width: 42px;
  justify-content: center;
}

.hero-overlay-content h1 {
  color: var(--color-surface);
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 4px 24px var(--color-overlay-dark);
}

.hero-overlay-content p {
  color: var(--color-surface);
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: 1.45;
  margin: 0 0 18px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.24);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
}

.hero-cta-primary {
  background: var(--color-surface);
  border: 1px solid var(--color-surface);
  color: var(--color-primary-dark);
}

.hero-cta-primary:hover {
  background: #f4f7fb;
  color: var(--color-primary-dark);
}

.hero-cta-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--color-surface);
}

.hero-cta-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-surface);
}

.hero-cta-btn:active {
  opacity: 0.94;
}

.hero-cta-btn:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
}

.hero-slider .tns-nav {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 10;
}

.hero-slider .tns-nav button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: var(--radius-pill);
  margin: 0 5px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-slider .tns-nav .tns-nav-active { background: var(--color-surface); width: 28px; }

.btn-standard,
.featured-news-btn {
  display: inline-block;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-surface);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  transition: opacity 0.2s ease;
}

.btn-standard:hover,
.featured-news-btn:hover { color: var(--color-surface); opacity: 0.92; }

.featured-news-btn:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
}

.card-standard,
.news-grid-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  height: 100%;
}

.featured-news-box {
  background: var(--color-surface);
  border: 1px solid #e4e8ef;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(7, 50, 95, 0.07);
}

.featured-news-image-wrap {
  position: relative;
  height: 100%;
  overflow: hidden;
  max-height: 220px;
}

.featured-news-image {
  width: 100%;
  height: 220px;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid rgba(13, 74, 146, 0.12);
  letter-spacing: 0.02em;
}

.featured-news-content {
  height: 100%;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-news-title {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.featured-news-title a { color: var(--color-primary-dark); text-decoration: none; font-weight: 700; }
.featured-news-title a:hover { color: var(--color-primary); }
.featured-news-title a:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
  border-radius: 2px;
}

.home-news-section-tight {
  margin-top: -6px;
}

/* Мэдээний блок */
section.home-news-section {
  background-color: #ffffff;
  background-image: none;
}

@media (min-width: 992px) {
  .featured-news-image-wrap {
    max-height: 260px;
  }

  .featured-news-image {
    height: 260px;
  }
}

.featured-news-desc {
  margin-bottom: 12px;
  color: #313a46;
  font-size: 14px;
  line-height: 1.55;
}

.featured-news-date {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  color: #5f6b78;
  font-size: 12.5px;
  font-weight: 500;
}

.news-tab-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: var(--color-soft-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.news-tab-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 500;
  color: #23395d;
  text-decoration: none;
  border-right: 1px solid #d8dde6;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.news-tab-bar a:last-child {
  border-right: none;
}

.news-tab-bar a:hover:not(.active) {
  background: rgba(13, 74, 146, 0.07);
  color: var(--color-primary-dark);
}

.news-tab-bar a:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: -2px;
  z-index: 1;
}

.news-tab-bar a.active {
  background: var(--color-primary);
  color: var(--color-surface);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 rgba(234, 190, 108, 0.9);
}

.news-tab-bar a:active:not(.active) {
  background: rgba(13, 74, 146, 0.1);
}

.news-grid-image-wrap { width: 100%; height: 220px; overflow: hidden; }
.news-grid-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.news-grid-body { padding: 16px 18px; }
.news-grid-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-color: #e2e7ee;
  box-shadow: 0 6px 14px rgba(10, 32, 62, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-grid-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(10, 32, 62, 0.1);
}

.news-grid-image-wrap {
  height: 210px;
  aspect-ratio: 4 / 3;
}

.news-grid-title {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.4;
}
.news-grid-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 600;
}
.news-grid-title a:hover {
  color: var(--color-primary);
}
.news-grid-title a:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
  border-radius: 2px;
}

.news-grid-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-grid-date {
  color: #5f6b78;
  font-size: 12.5px;
  font-weight: 500;
}

.meta-label {
  color: #3d4f67;
  font-weight: 600;
}

.news-grid-link {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.news-grid-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.news-grid-link:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
  border-radius: 2px;
}

.featured-news-btn,
.news-grid-link {
  letter-spacing: 0.15px;
}

/* Нүүр — зургийн цомог + видео (slide1–3 фон, 2 багана) */
.home-gallery-showcase {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 520px;
  padding: 2.25rem 0 2.75rem;
  overflow: hidden;
}

.home-gallery-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-gallery-bg-slider .tns-outer,
.home-gallery-bg-slider .tns-ovh,
.home-gallery-bg-slider .tns-inner,
.home-gallery-bg-carousel {
  height: 100%;
  min-height: 520px;
}

.home-gallery-bg-slide {
  min-height: 520px;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.home-gallery-showcase__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, rgba(7, 50, 95, 0.88) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.55) 100%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(13, 148, 136, 0.18), transparent 55%);
  pointer-events: none;
}

.home-gallery-showcase__content {
  position: relative;
  z-index: 2;
}

.home-gallery-showcase__title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  margin-bottom: 0.35rem;
}

.home-gallery-showcase__title-line {
  color: #f8fafc;
}

.home-gallery-showcase__title-accent {
  color: #5eead4;
}

.home-gallery-showcase__lede {
  color: rgba(248, 250, 252, 0.82);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.home-gallery-showcase__split {
  margin-top: 0.25rem;
}

.home-gallery-panel {
  height: 100%;
  padding: 1.1rem 1.15rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-gallery-panel__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
}

.home-gallery-panel__ratio iframe {
  border-radius: 10px;
}

.home-gallery-panel__placeholder {
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  padding: 1.25rem 1rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-gallery-panel__empty {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.home-gallery-grid--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(110px, 1fr) minmax(110px, 1fr);
  gap: 10px;
  min-height: 240px;
}

.home-gallery-grid--split .home-gallery-item {
  min-height: 110px;
}

.home-gallery-item {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.home-gallery-item--empty {
  opacity: 0.45;
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

.home-gallery-item__media {
  position: absolute;
  inset: 0;
}

.home-gallery-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.home-gallery-item:hover .home-gallery-item__media img {
  transform: scale(1.06);
}

.home-gallery-item__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0.65rem 0.5rem 0.45rem;
  font-size: 0.7rem;
  line-height: 1.3;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.35) 70%, transparent 100%);
}

@media (max-width: 991.98px) {
  .home-gallery-showcase {
    min-height: 0;
    padding: 1.75rem 0 2rem;
  }

  .home-gallery-bg-slide,
  .home-gallery-bg-slider .tns-outer,
  .home-gallery-bg-slider .tns-ovh,
  .home-gallery-bg-slider .tns-inner,
  .home-gallery-bg-carousel {
    min-height: 420px;
  }

  .home-gallery-grid--split {
    min-height: 260px;
    grid-template-rows: minmax(130px, 1fr) minmax(130px, 1fr);
  }

  .home-gallery-grid--split .home-gallery-item {
    min-height: 130px;
  }
}

/* (Хуучин .livebox02 — одоо home-transparency-card__inner ашиглана) */

.tamga a {
  display: inline-block;
  margin-bottom: 6px;
  color: #1f2f43;
}

.tamga a:hover {
  color: var(--color-primary);
}

/* Мэдээллийн ил тод байдал — товч холбоосууд */
.home-transparency-links {
  padding-top: 1.25rem;
  padding-bottom: 1.75rem;
}

.home-transparency-links__head {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(6, 68, 122, 0.15);
  border-left: 4px solid #fedf2b;
  padding-left: 1rem;
}

.home-transparency-links__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #06447a;
  line-height: 1.3;
}

.home-transparency-links__grid {
  --transparency-min-h: 5.5rem;
}

.home-transparency-card {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.home-transparency-card:hover .home-transparency-card__inner {
  box-shadow: 0 8px 22px rgba(7, 50, 95, 0.22);
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.home-transparency-card:focus-visible {
  outline: 2px solid #fedf2b;
  outline-offset: 3px;
  border-radius: 14px;
}

.home-transparency-card__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--transparency-min-h);
  height: 100%;
  margin: 0;
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(180deg, #104a87 0%, #0c3d6e 100%);
  box-shadow: 0 4px 14px rgba(7, 50, 95, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.home-transparency-card__label {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

@media (min-width: 576px) {
  .home-transparency-links__grid {
    --transparency-min-h: 6rem;
  }

  .home-transparency-card__label {
    font-size: 0.88rem;
  }
}

@media (min-width: 992px) {
  .home-transparency-card__label {
    font-size: 0.9rem;
  }
}

/* ----- Site footer ----- */
.site-footer {
  position: relative;
  overflow: hidden;
  background-color: #0d4a92 !important;
  border-top: 3px solid rgba(234, 190, 108, 0.65);
}

.site-footer::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(13, 74, 146, 0.92) 0%, rgba(13, 74, 146, 0.95) 100%),
    url("../img/background/slide2.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

/* Keep footer content above the background image */
.site-footer > .container,
.site-footer-inner,
.site-footer-copy{
  position: relative;
  z-index: 1;
}

.site-footer-inner {
  padding-top: 2rem;
}

.site-footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.site-footer-contact-list {
  margin: 0;
  padding: 0;
}

.site-footer-contact-list li {
  margin-bottom: 0.6rem;
  padding-left: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  max-width: 36rem;
}

.site-footer-contact-list li:last-child {
  margin-bottom: 0;
}

.site-footer .sticky-icon.site-footer-social-rail {
  position: static;
  width: auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.site-footer .sticky-icon.site-footer-social-rail a {
  transform: none;
  margin: 0;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-base);
  text-transform: none;
  letter-spacing: 0.02em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-footer .sticky-icon.site-footer-social-rail a:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

.site-footer .sticky-icon.site-footer-social-rail a i {
  width: 32px;
  height: 32px;
  line-height: 32px;
  margin-right: 10px;
  font-size: 14px;
}

.site-footer .Facebook.site-footer-social-link i.fa-facebook-f {
  color: #1877f2;
}

.site-footer .Youtube.site-footer-social-link i.fa-youtube {
  color: #c00;
}

.site-footer-icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer-icon-btn:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
}

.site-footer-copy {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Optional back-to-top helper (previously inline in master) */
#myBtn {
  height: 50px;
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  padding: 10px;
  line-height: 40px;
  text-align: center;
  border: none;
  background-color: #1e88e5;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
}

#myBtn:hover {
  background-color: #555;
}

.fa-arrow-circle-up {
  font-size: 30px;
}

.mbrow {
  z-index: 1000;
  left: 0;
  bottom: 0;
  display: none;
  background: var(--color-surface);
  border-top: 4px solid var(--color-accent-strong);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mbrow section { width: 25%; padding: 10px 0; }
.mbrow section i { width: 25px; height: 20px; margin: 0 auto; font-size: 15px; color: #040435; }
.mbrow section h1 { font-size: 14px; color: #040435; }

/* Legacy compatibility (kept for current templates) */
.menuppbg{height:100%;background:rgba(0,0,0,0.4);top:0;left:0;z-index:1004;display:none;}
.helpbg{height:100%;background:rgba(0,0,0,0.4);top:0;left:0;z-index:1004;display:none;}
.closemenu{width:50px;height:50px;top:0;right:0;font-size:16px;}
.usertop{border-bottom:1px solid var(--color-accent-strong);padding:20px 0;margin-bottom:10px;}
.usertop h1{font-size:17px;font-weight:700;padding:10px 10px 10px 50px;}
.usertop h1 i{left:0;top:0;font-size:20px;width:40px;height:40px;background:#ffc14e;border-radius:50%;color:#fff;}
.menupmb{text-align:left;position:fixed;width:300px;height:100%;z-index:1011;background:#fff;top:0;right:0;overflow-y:auto;box-shadow:0 0 10px -1px rgba(0,0,0,0.5);padding:10px 25px 10px 20px;display:none;}
.menuul ul{padding:5px 0;list-style:none;margin:0;}
.menuul ul li ul{padding:5px 0 5px 25px;display:none;}
.menuul ul li a{display:block;padding:8px 0;font-size:17px;position:relative;width:100%;}
.menuul ul li .insub:after{content:"\e903";font-family:icomoon;position:absolute;right:0;top:8px;color:var(--color-accent-strong);}
.hddnpc,.mblogo,.showmb,.filterLw,.clocepp,.filterLwb,.clocepb,.swipeTh{display:none;}
.filterLw{width:45px;height:42px;left:0;top:50%;transform:translateY(-50%);background:#fff;border-radius:5px;color:#051550;font-size:17px;}
.filterLwb{width:45px;height:42px;left:-20px;top:50%;transform:translateY(-50%);background:#fff;border-radius:5px;color:#051550;font-size:17px;}
.clocepp,.clocepb{width:100%;position:sticky;top:0;z-index:15;}
.clocepp a,.clocepb a{width:45px;height:45px;background:rgba(255,255,255,0.5);margin-right:-15px;}
.swipeTh{position:absolute;top:90px;z-index:4;width:0;height:0;right:0;animation:swipe 8s infinite linear;background:rgba(255,255,255,0.5);}
@keyframes swipe{0%{width:0;height:0;}1%{width:80px;height:80px;}70%{width:80px;height:80px;}71%{width:0;height:0;}}
.descnews{background:#f2f2f2;border-radius:4px;width:100%;max-width:1180px;margin:30px auto 0;}
.descnews .descna{background:#05054d;width:215px;border-radius:4px 0 0 4px;}
.descnews .descnb{width:calc(100% - 215px);padding:20px 0 35px 25px;overflow:hidden;}

/* =========================================================
   INNER PAGES — shared layout & components (gov / formal)
   body.inner-page is set in master.php; use .inner-container + .inner-card
   ========================================================= */

/* --- Layout layer --- */
body.inner-page main.page-wrapper {
  padding-top: 0;
}

@media (max-width: 991px) {
  body.inner-page main.page-wrapper {
    padding-top: 0;
  }
}

.inner-page-container,
.inner-container {
  padding-bottom: 2.5rem;
}

/* --- Page heading (list / section titles) --- */
.inner-page-header {
  margin-bottom: var(--inner-section-gap);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.inner-page-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
}

.inner-page-lead {
  font-size: 0.875rem;
  color: #5f6b78;
  margin-top: 0.35rem;
}

.inner-breadcrumb-nav {
  margin-bottom: 0;
}

.inner-breadcrumb-nav .breadcrumb {
  background: var(--color-soft-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 9px 13px;
  margin-bottom: 1.1rem;
  font-size: 0.84375rem;
  flex-wrap: wrap;
  line-height: 1.45;
}

.inner-breadcrumb-nav .breadcrumb-item a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.inner-breadcrumb-nav .breadcrumb-item a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.inner-breadcrumb-nav .breadcrumb-item.active {
  color: #5f6b78;
}

.inner-breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
  color: #9aa5b1;
}

/* --- Card / page shell --- */
.inner-page-shell,
.inner-card {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--inner-radius) !important;
  /* Бүдэг дэвсгэр дээр контент картууд илүү тод салангид харагдана */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 28px rgba(13, 74, 146, 0.09),
    0 2px 10px rgba(31, 41, 55, 0.05);
  padding: 1.5rem 1.25rem 1.75rem !important;
  border-bottom: 1px solid var(--color-border) !important;
}

@media (min-width: 768px) {
  .inner-page-shell,
  .inner-card {
    padding: 1.75rem 2rem 2rem !important;
  }
}

.inner-page-prose,
.inner-prose,
.inner-page-shell .inner-page-prose,
.inner-card .inner-page-prose {
  max-width: var(--inner-prose-max);
  line-height: 1.65;
  color: var(--color-text);
}

.inner-page-shell .inner-page-prose p,
.inner-page-shell p.fs-sm {
  margin-bottom: 0.75rem;
}

.inner-page-shell .inner-page-prose p:last-child,
.inner-page-shell p.fs-sm:last-child {
  margin-bottom: 0;
}

/* Article (single) */
.inner-article-title {
  font-size: 1.28rem;
  line-height: 1.32;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.65rem;
}

.inner-article-meta {
  border-bottom-color: var(--color-border) !important;
  color: #5f6b78;
  font-size: 0.84375rem;
  padding-bottom: 0.85rem !important;
  margin-bottom: 1.1rem !important;
}

.inner-article-body {
  max-width: var(--inner-prose-max);
}

.inner-article-body .inner-video-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
}

.inner-article-body .inner-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.inner-main {
  min-width: 0;
}

.inner-page-content p {
  max-width: var(--inner-prose-max);
  line-height: 1.65;
  color: var(--color-text);
}

.inner-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Sidebar widgets */
.inner-page-sidebar .card.card-flush {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(7, 50, 95, 0.06);
  overflow: hidden;
  background: var(--color-surface);
}

.inner-page-sidebar .card.card-flush .card-body > h3,
.inner-page-sidebar .card.card-flush .card-body > h4 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.inner-page-sidebar .inner-sidebar-link {
  font-weight: 400 !important;
  color: var(--color-primary-dark) !important;
}

.inner-page-sidebar .inner-sidebar-link:hover {
  color: var(--color-primary) !important;
}

.inner-page-sidebar .nav-link:not(.inner-sidebar-link) {
  color: var(--color-primary-dark) !important;
  font-weight: 600;
}

.inner-page-sidebar .nav-link:not(.inner-sidebar-link):hover {
  color: var(--color-primary) !important;
}

.inner-page-sidebar .tns-carousel-controls button {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-primary);
  width: 36px;
  height: 36px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.inner-page-sidebar .tns-carousel-controls button:hover {
  background: var(--color-soft-bg);
  border-color: var(--color-primary);
}

/* News list / category grid */
.inner-news-search {
  max-width: 28rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.inner-news-search .input-group {
  flex: 1 1 220px;
}

.inner-news-card.card {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--inner-radius) !important;
  box-shadow: 0 4px 12px rgba(7, 50, 95, 0.06) !important;
  overflow: hidden;
}

.inner-news-card .tns-carousel-wrapper.card-img-top,
.inner-news-card .tns {
  overflow: hidden;
}

.inner-news-card .tns img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.inner-news-cat-badge {
  background: rgba(7, 50, 95, 0.82) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 5px 9px;
}

.inner-news-card .card-body {
  padding: 0.75rem 0.85rem 0.35rem !important;
}

.inner-news-card .card-body .h6,
.inner-news-card .card-body h3 {
  font-size: 1rem !important;
  line-height: 1.35 !important;
}

.inner-news-card .card-footer {
  font-size: 0.8125rem !important;
  color: #5f6b78 !important;
  border-top: 1px solid var(--color-border) !important;
  background: var(--color-soft-bg) !important;
}

.inner-news-card .card-footer span {
  font-size: inherit !important;
}

/* Pagination (news list) */
.inner-pagination {
  float: none !important;
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.inner-pagination nav {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.inner-pagination .pagination {
  margin-bottom: 0 !important;
}

.inner-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.inner-pagination .page-item {
  padding: 0;
  margin: 0;
}

.inner-pagination .page-item a,
.inner-pagination .page-item span,
.inner-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-primary-dark) !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.875rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.inner-pagination .page-item.active a,
.inner-pagination .page-item.active span,
.inner-pagination .page-item.active .page-link {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff !important;
}

.inner-pagination .page-item a:hover,
.inner-pagination .page-link:hover {
  background: var(--color-soft-bg);
  border-color: var(--color-primary);
  color: var(--color-primary) !important;
}

.inner-pagination .page-item a:focus-visible,
.inner-pagination .page-link:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
}

.inner-pagination .page-item.disabled a,
.inner-pagination .page-item.disabled span {
  opacity: 0.45;
  pointer-events: none;
}

/* --- Forms & buttons (inner pages) --- */
body.inner-page .inner-news-search .form-control {
  border-color: var(--color-border);
  font-size: 0.9375rem;
  min-height: 38px;
}

body.inner-page .inner-news-search .form-control:focus,
body.inner-page .inner-news-search .form-control:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 74, 146, 0.12);
}

body.inner-page .inner-news-search .input-group-text {
  border-color: var(--color-border);
  background: var(--color-soft-bg);
  color: #5f6b78;
}

body.inner-page .inner-news-search .btn {
  min-height: 38px;
  padding-left: 1rem;
  padding-right: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

body.inner-page .inner-news-search .btn:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
}

/* --- Inner pages phase 2: contact, site tree, fees, templates --- */
body.inner-page .inner-page-contact .inner-page-header.section-title {
  border-bottom: none;
}

.inner-contact-map-wrap {
  border-radius: var(--inner-radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--inner-shadow-soft);
  background: var(--color-soft-bg);
  line-height: 0;
}

.inner-contact-map {
  display: block;
  width: 100%;
  min-height: 300px;
}

.inner-contact-info {
  border: 1px solid var(--color-border);
  border-radius: var(--inner-radius);
  background: var(--color-surface);
  box-shadow: var(--inner-shadow-soft);
  padding: 1.2rem 1.25rem;
}

.inner-contact-info > div {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.inner-contact-info > div:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.inner-contact-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.3rem;
}

.inner-contact-info p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text);
}

.inner-contact-info .bi {
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 1.1rem;
  line-height: 1.3;
  margin-top: 0.1rem;
}

/* Site structure */
.inner-site-tree-wrap {
  max-width: 52rem;
}

.inner-site-tree-nested {
  margin-left: 1.75rem !important;
}

.inner-site-tree .inner-site-tree-steps .step a {
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 500;
}

.inner-site-tree .inner-site-tree-steps .step a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.inner-site-tree .steps.steps-vertical.steps-light .step:not(.active) .step-progress-end::before {
  background-color: var(--color-border) !important;
}

.inner-site-tree .step-number.bg-primary {
  background-color: var(--color-primary) !important;
}

/* Fees */
.inner-fees-page .inner-page-title {
  font-size: 1.15rem;
  padding-bottom: 0.75rem !important;
  margin-bottom: 1.25rem !important;
  border-color: var(--color-border) !important;
}

.inner-fees-callout {
  background: rgba(13, 74, 146, 0.07);
  border: 1px solid rgba(13, 74, 146, 0.14);
  border-radius: var(--inner-radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text);
}

.inner-fees-justify {
  text-align: justify;
  margin-bottom: 0.65rem;
  line-height: 1.6;
}

.inner-fees-content .inner-fees-justify:last-child {
  margin-bottom: 0;
}

.inner-fees-table {
  width: 100%;
  max-width: 100%;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  color: var(--color-text);
  border-color: var(--color-border) !important;
}

.inner-fees-table th,
.inner-fees-table td {
  border: 1px solid var(--color-border) !important;
  padding: 0.65rem 0.75rem;
  vertical-align: top;
  line-height: 1.45;
}

.inner-fees-table tbody tr:first-child th {
  background: var(--color-soft-bg);
  color: var(--color-primary-dark);
}

body.inner-page .inner-fees-form .form-control {
  border-color: var(--color-border);
  min-height: 38px;
}

body.inner-page .inner-fees-form .form-control:focus,
body.inner-page .inner-fees-form .form-control:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 74, 146, 0.12);
}

body.inner-page .inner-fees-form .input-group-text {
  border-color: var(--color-border);
  background: var(--color-soft-bg);
}

body.inner-page .inner-fees-form .btn:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
}

/* Templates */
.inner-templates-page .inner-templates-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-block;
  padding: 2px 0;
  border-radius: 2px;
}

.inner-templates-page .inner-templates-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.inner-templates-page .inner-templates-link.is-active {
  color: var(--color-primary-dark);
  font-weight: 700;
  border-left: 3px solid var(--color-accent-strong);
  padding-left: 0.5rem;
  margin-left: -0.2rem;
}

.inner-templates-nav-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary-dark);
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
  border-color: var(--color-border) !important;
}

.inner-templates-nav-col {
  padding-right: 1.25rem;
  border-color: var(--color-border) !important;
}

.inner-templates-body-col {
  border-left: 1px solid var(--color-border) !important;
  padding-left: 1.25rem;
}

@media (max-width: 767px) {
  .inner-templates-body-col {
    border-left: none !important;
    border-top: 1px solid var(--color-border);
    padding-left: 0;
    padding-top: 1.25rem;
    margin-top: 1rem;
  }

  .inner-templates-nav-col {
    border-right: none !important;
    padding-right: 0;
  }

  .inner-site-tree-wrap {
    padding-left: 0;
    padding-right: 0;
  }
}

/* --- Inner pages phase 3: decisions, questions, sessions --- */
.inner-session-shell {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--inner-radius) !important;
  background: var(--color-surface) !important;
}

.inner-session-table th,
.inner-session-table td {
  border-color: var(--color-border) !important;
  padding: 0.65rem 0.75rem;
}

.inner-session-title {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.inner-session-court-name {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.inner-question-hero {
  height: 260px !important;
}

@media (max-width: 575px) {
  .inner-question-hero {
    height: 200px !important;
  }
}

/* --- Inner pages: mobile width & vertical rhythm --- */
.inner-news-card.card {
  max-width: 100%;
}

@media (max-width: 767px) {
  .inner-page-container,
  .inner-container {
    padding-bottom: 2rem;
  }

  .inner-breadcrumb-nav .breadcrumb {
    padding: 8px 11px;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
  }

  .inner-article-title {
    font-size: 1.14rem;
    line-height: 1.34;
  }

  .inner-article-meta {
    font-size: 0.8125rem;
    margin-bottom: 1rem !important;
  }

  body.inner-page .inner-page-container > .row.g-4 {
    --bs-gutter-y: 1.25rem;
  }

  .inner-news-card .card-footer.mx-3 {
    margin-left: 0.75rem !important;
    margin-right: 0.75rem !important;
  }

  .inner-news-card .tns img {
    height: 180px;
  }

  body.inner-page .tab-content.pt-4 {
    padding-top: 1.1rem !important;
  }
}

@media (max-width: 575px) {
  .inner-page-shell,
  .inner-card {
    padding: 1.15rem 1rem 1.35rem !important;
  }

  .inner-card .inner-page-prose.inner-prose,
  .inner-page-shell .inner-page-prose.inner-prose {
    padding-left: 0 !important;
  }

  body.inner-page .container.inner-page-container.py-5 {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
  }

  body.inner-page .inner-page-container.inner-container.mt-4 {
    margin-top: 1.1rem !important;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .hddnpc { display: block; }
  .headMenu, .menu { display: none; }
  .mbrow { display: flex; }
}

@media (max-width: 1199px) {
  .site-logo { width: 270px; }
  header.navbar.site-header .navbar-collapse { padding: 12px 18px; border-radius: 18px; }
  .hero-overlay-content h1 { font-size: 42px; }
  .hero-overlay-content p { font-size: 18px; }
}

@media (max-width: 991px) {
  .hero-topbar-inner {
    justify-content: center;
    gap: 6px;
    row-gap: 4px;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .hero-topbar-sep {
    display: none;
  }

  body.home-page .site-header-stack {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
  }
  body.home-page .hero-topbar { position: relative; }
  header.navbar.site-header,
  body.home-page .site-header-stack header.site-header.navbar {
    position: relative !important;
    top: 0 !important;
    background: rgba(14, 77, 145, 0.92) !important;
  }
  header.navbar.site-header .container { gap: 12px; flex-wrap: wrap; }
  .site-logo { width: 220px; }
  header.navbar.site-header .navbar-collapse {
    background: rgba(14, 77, 145, 0.96) !important;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    max-height: min(70vh, 32rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .site-header .navbar-nav .nav-link,
  .site-header .navbar-nav .dropdown-toggle {
    font-size: 15px !important;
    padding: 12px 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  /* In-flow menus inside the collapsible nav (tablet/phone) */
  .site-header .main-nav-list .dropdown-menu {
    border-radius: 8px;
    min-width: 100%;
    padding: 4px;
    margin-top: 4px;
    margin-left: 0;
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
  }
  .site-header .dropdown-menu .dropdown-item {
    font-size: 14px;
    padding: 12px 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  /* Full-width stacked header: avoid pulling hero under topbar/nav */
  .hero-slider-wrap { margin-top: 0; }
  .hero-slider,
  .hero-slider .tns-outer,
  .hero-slider .tns-ovh,
  .hero-slider .tns-inner,
  .hero-slider .tns-item,
  .hero-slide {
    height: 72svh !important;
    min-height: 480px !important;
  }
  .hero-overlay-content { bottom: 56px; padding-left: 20px; padding-right: 20px; }
  .hero-overlay-content h1 { font-size: 32px; line-height: 1.2; }
  .hero-overlay-content p { font-size: 16px; }
  .hero-cta-btn {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 13px;
  }
  .featured-news-image-wrap { max-height: 220px; }
  .featured-news-image { height: 220px; min-height: 0; }
  .featured-news-title { font-size: 1.15rem; }
  .featured-news-content { padding: 14px 16px; }
  .news-grid-image-wrap { height: 190px; }
  .news-grid-title { min-height: auto; }
  .news-tab-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }
  .news-tab-bar a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    justify-content: flex-start;
    text-align: left;
    border-bottom: none;
    padding-left: 16px;
    padding-right: 16px;
  }
  .news-tab-bar a:last-child {
    border-right: none;
    padding-right: 20px;
  }
  .site-footer-main {
    row-gap: 1.75rem !important;
  }
  .site-footer .sticky-icon.site-footer-social-rail a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .site-footer-icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 700px) {
  .descnews { display: block; }
  .descnews .descna { width: 100%; border-radius: 4px 4px 0 0; padding: 15px 10px; }
  .descnews .descnb { width: 100%; padding: 20px 0 35px 17px; }
}

@media (max-width: 575px) {
  .hero-topbar {
    font-size: 0.78rem;
  }
  .site-logo { width: 180px; max-width: 72vw; }
  .hero-slider-wrap { margin-top: 0; }
  .hero-slider,
  .hero-slider .tns-outer,
  .hero-slider .tns-ovh,
  .hero-slider .tns-inner,
  .hero-slider .tns-item,
  .hero-slide {
    height: 64svh !important;
    min-height: 420px !important;
  }
  .hero-overlay-content { bottom: 32px; padding-left: 14px; padding-right: 14px; }
  .hero-overlay-content h1 { font-size: clamp(22px, 6.5vw, 28px); line-height: 1.22; }
  .hero-overlay-content p { font-size: 14px; line-height: 1.45; }
  .hero-cta-group {
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }
  .hero-cta-btn {
    width: 100%;
    max-width: none;
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
  }
  .hero-slider .tns-nav { bottom: 16px; }
  .news-tab-bar {
    border-radius: 8px;
  }
  .news-tab-bar a {
    font-size: 14px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .featured-news-title { font-size: 1.05rem; }
  .featured-news-desc { font-size: 13px; }
  .featured-news-image-wrap { max-height: 200px; }
  .featured-news-image { height: 200px; min-height: 0; }
  .featured-news-btn {
    width: 100%;
    max-width: 280px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .news-grid-title { min-height: auto; font-size: 15px; }
  .news-grid-body { padding: 14px; }
  .news-grid-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .news-grid-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .home-news-section {
    margin-top: 0 !important;
  }
  .mbrow section {
    min-height: 52px;
    padding: 12px 4px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .mbrow section h1 {
    font-size: 12px;
    line-height: 1.2;
    margin: 0;
    margin-top: 4px;
  }
  .mbrow section a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 2px;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    transition: background-color 0.2s ease;
  }
  .mbrow section a:hover,
  .mbrow section a:focus-visible {
    background: rgba(13, 74, 146, 0.08);
    outline: none;
  }
  .mbrow section a:focus-visible {
    outline: 2px solid var(--color-accent-strong);
    outline-offset: 2px;
  }
  .mbrow section[type="button"] {
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 12px 4px 10px;
  }
  .mbrow section[type="button"]:focus-visible {
    outline: 2px solid var(--color-accent-strong);
    outline-offset: -2px;
  }
}

@media (max-width: 380px) {
  .hero-cta-btn {
    flex: 1 1 100%;
    max-width: none;
  }
}

/* Home gallery lightbox (зураг дээр дарахад томордог) */
.home-gallery-clickable {
  cursor: zoom-in;
}

.home-gallery-clickable:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
  border-radius: 10px;
}

.home-gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 22px;
}

.home-gallery-lightbox.is-open {
  display: flex;
}

.home-gallery-lightbox__inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-gallery-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 24px;
  line-height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.home-gallery-lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: #0b1220;
}

.home-gallery-lightbox__caption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.35;
  width: 100%;
}

.home-gallery-lightbox__counter {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  text-align: center;
}

.home-gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000000;
  transition: background 0.15s ease;
}

.home-gallery-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.home-gallery-lightbox__nav--prev {
  left: 12px;
}

.home-gallery-lightbox__nav--next {
  right: 12px;
}

@media (max-width: 576px) {
  .home-gallery-lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .home-gallery-lightbox__nav--prev {
    left: 6px;
  }

  .home-gallery-lightbox__nav--next {
    right: 6px;
  }
}

/* Нүүр: бүх зургийг харах холбоос */
.home-gallery-more-wrap {
  margin-top: 14px;
  text-align: center;
}

.home-gallery-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.home-gallery-more-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.home-gallery-more-link__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--color-accent-strong, #c9a227);
  color: #0b1220;
}

/* Зургийн цомог — бүх зургийн хуудас */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.gallery-page-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(11, 18, 32, 0.06);
  border: 1px solid rgba(11, 18, 32, 0.08);
}

.gallery-page-item__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8ecf2;
}

.gallery-page-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.gallery-page-item:hover .gallery-page-item__media img {
  transform: scale(1.04);
}

.gallery-page-item__caption {
  padding: 8px 10px 10px;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: rgba(11, 18, 32, 0.75);
}

/* Нүүр: түнш ҮТП — хэсгийн дэвсгэр + гарчиг */
.home-partners-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f7fb 0%, #eef2f8 45%, #e8edf5 100%);
  border-top: 1px solid rgba(6, 68, 122, 0.08);
  border-bottom: 1px solid rgba(6, 68, 122, 0.06);
}

.home-partners-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(6, 68, 122, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 50%, rgba(253, 223, 43, 0.06), transparent 50%);
  pointer-events: none;
}

.home-partners-strip__head {
  position: relative;
  z-index: 1;
}

.home-partners-strip__eyebrow {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #06447a;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(6, 68, 122, 0.15);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(6, 68, 122, 0.06);
}

.home-partners-strip__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b1f33;
  line-height: 1.25;
}

.home-partners-strip__lede {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 0.9rem;
  color: rgba(11, 31, 51, 0.58);
}

.home-partners-strip__carousel {
  position: relative;
  z-index: 1;
}

/* Картууд */
.home-partner-park-wrap {
  padding-bottom: 0.25rem;
}

.home-partner-carousel .home-partner-park {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 88px;
  padding: 0;
  border-radius: 14px;
  text-decoration: none;
  color: #132337;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 55%, #f0f4fa 100%);
  border: 1px solid rgba(6, 68, 122, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 28px rgba(6, 68, 122, 0.08),
    0 2px 8px rgba(31, 27, 45, 0.04);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease,
    color 0.2s ease;
}

.home-partner-carousel .home-partner-park::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fedf2b 0%, #f5c400 35%, #06447a 100%);
  opacity: 0.95;
}

.home-partner-carousel .home-partner-park__shine {
  position: absolute;
  inset: -40% -60% auto 40%;
  height: 120%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%);
  transform: translateX(-100%) rotate(8deg);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.home-partner-carousel .home-partner-park:hover .home-partner-park__shine {
  transform: translateX(120%) rotate(8deg);
}

.home-partner-carousel .home-partner-park:hover {
  border-color: rgba(6, 68, 122, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 36px rgba(6, 68, 122, 0.14),
    0 4px 12px rgba(31, 27, 45, 0.06);
  transform: translateY(-4px);
  color: #06447a;
}

.home-partner-carousel .home-partner-park:focus-visible {
  outline: 2px solid #06447a;
  outline-offset: 3px;
}

.home-partner-carousel .home-partner-park__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 88px;
  padding: 1rem 1rem 1rem 1.1rem;
}

.home-partner-carousel .home-partner-park__text {
  flex: 1;
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: left;
  letter-spacing: -0.01em;
}

.home-partner-carousel .home-partner-park__cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.85rem;
  color: rgba(6, 68, 122, 0.45);
  background: rgba(6, 68, 122, 0.06);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-partner-carousel .home-partner-park:hover .home-partner-park__cta {
  color: #06447a;
  background: rgba(6, 68, 122, 0.12);
  transform: translateX(2px);
}

@media (max-width: 575.98px) {
  .home-partner-carousel .home-partner-park__body {
    min-height: 80px;
    padding: 0.85rem 0.85rem 0.85rem 0.95rem;
  }

  .home-partner-carousel .home-partner-park__text {
    font-size: 0.78rem;
  }
}

/* Facebook (нүүр дээр) */
.home-gallery-panel--facebook {
  display: flex;
  flex-direction: column;
}

.home-gallery-facebook__embed {
  flex: 1 1 auto;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  min-height: 380px;
  height: 380px;
}

.home-gallery-facebook__embed iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.home-gallery-facebook__link {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-align: center;
}

.home-gallery-facebook__link a {
  color: var(--color-accent-strong, #c9a227);
  text-decoration: none;
  font-weight: 700;
}

.home-gallery-facebook__link a:hover {
  text-decoration: underline;
}
