/*
 * ══════════════════════════════════════════════════════════
 *  БОР-ӨНДӨР МБС — Үндсэн CSS файл
 *  Зохиогч: PoRoRo  |  Огноо: 2025
 *
 *  ТЭМДЭГЛЭЛ:
 *  Bootstrap 5 нь CDN-ээр ачааллагдаж байгаа тул
 *  энэ файлд зөвхөн сайтын өөрийн custom стилүүд бий.
 *  Bootstrap 3-ийн давхардсан код бүрэн арилгагдсан.
 * ══════════════════════════════════════════════════════════
 */

/* ══════════════════════════════════════════
   1. ДИЗАЙН СИСТЕМИЙН ХУВЬСАГЧИД (CSS Variables)
══════════════════════════════════════════ */
:root {
  /* Өнгөний систем */
  --navy:        #0f2547;
  --navy-mid:    #1a3a6b;
  --blue:        #2563eb;
  --sky:         #3b82f6;
  --gold:        #f59e0b;
  --gold-lite:   #fef3c7;
  --red:         #ef4444;
  --green:       #16a34a;
  --white:       #ffffff;
  --off-white:   #f0f4ff;
  --text:        #1e293b;
  --muted:       #64748b;
  --border:      #e2e8f0;

  /* Сүүдэр */
  --shadow-sm:   0 2px 8px rgba(15,37,71,.08);
  --shadow-md:   0 4px 24px rgba(15,37,71,.10);
  --shadow-lg:   0 16px 48px rgba(15,37,71,.18);

  /* Border radius */
  --radius:      16px;
  --radius-sm:   10px;
  --radius-xs:   6px;

  /* Фонт */
  --font:        'Lexend', 'Segoe UI', sans-serif;
  --font-mng:    'Mongolian Baiti', 'Noto Sans Mongolian', serif;

  /* Шилжилт */
  --transition:  all 0.28s ease;
}

/* ══════════════════════════════════════════
   2. RESET & ҮНДСЭН ТОХИРГОО
══════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--navy);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

p {
  margin-bottom: 1rem;
}

/* Монгол бичиг */
.mng {
  font-family: var(--font-mng);
  writing-mode: vertical-lr;
  text-orientation: mixed;
  display: inline-block;
}

/* ══════════════════════════════════════════
   3. SCROLL-TO-TOP ТОВЧ
══════════════════════════════════════════ */
#scrollTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollTop.show {
  opacity: 1;
  pointer-events: all;
}

#scrollTop:hover {
  transform: translateY(-4px);
  background: var(--navy);
}

/* ══════════════════════════════════════════
   4. HEADER
══════════════════════════════════════════ */
.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1e4fa0 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

/* ─── Лого блок ─── */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--white);
  text-decoration: none;
}

.brand-logo {
  height: 52px;
  width: 52px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255,255,255,.12);
  padding: 4px;
  transition: transform 0.3s;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.brand-mng {
  font-family: var(--font-mng);
  writing-mode: vertical-lr;
  text-orientation: mixed;
  font-size: 16px;
  height: 52px;
  color: rgba(255,255,255,.72);
  border-left: 1px solid rgba(255,255,255,.22);
  padding-left: 11px;
  line-height: 1.25;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--white);
  line-height: 1;
}

.brand-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,.78);
  margin-top: 5px;
}

/* ─── Header баруун контрол ─── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255,255,255,.82);
  font-size: 0.87rem;
}

.header-contact i {
  color: var(--gold);
}

.header-contact a {
  color: inherit;
  transition: color 0.2s;
}

.header-contact a:hover {
  color: var(--gold);
}

.header-social {
  display: flex;
  gap: 0.55rem;
}

.header-social a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.header-social a:hover {
  background: var(--blue);
  transform: translateY(-2px);
  color: var(--white);
}

/* Товч */
.btn-register {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700;
  font-size: 0.87rem;
  padding: 0.52rem 1.15rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245,158,11,.35);
  text-decoration: none;
}

.btn-register:hover {
  background: #d97706;
  transform: translateY(-2px);
  color: var(--white) !important;
  text-decoration: none;
}

.btn-phone {
  background: var(--red);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.87rem;
  padding: 0.52rem 1.05rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(239,68,68,.35);
  text-decoration: none;
}

.btn-phone:hover {
  background: #dc2626;
  transform: translateY(-2px);
  color: var(--white) !important;
  text-decoration: none;
}

/* ─── Mobile toggle ─── */
.menu-toggle {
  display: none;
  background: rgba(255,255,255,.14);
  border: none;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0 10px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--white);
  border-radius: 3px;
  transition: all 0.3s;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ══════════════════════════════════════════
   5. NAVIGATION / ЦЭС
══════════════════════════════════════════ */
.site-nav {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.nav-list {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 1rem 1.35rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.87rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  text-decoration: none;
}

.nav-mng {
  font-family: var(--font-mng);
  writing-mode: vertical-lr;
  text-orientation: mixed;
  font-size: 13px;
  height: 38px;
  color: var(--muted);
  border-right: 1px solid var(--border);
  padding-right: 9px;
  line-height: 1.3;
  transition: var(--transition);
}

.nav-link:hover .nav-mng,
.nav-link.active .nav-mng {
  color: var(--blue);
  border-right-color: var(--sky);
}

.nav-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
}

/* ─── Dropdown ─── */
.nav-dropdown,
.nav-simple-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  padding: 1.4rem;
  z-index: 500;
}

.nav-dropdown { min-width: 520px; }
.nav-simple-dropdown { min-width: 210px; padding: 0.6rem; }

.nav-item:hover > .nav-dropdown,
.nav-item:hover > .nav-simple-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(6px);
}

/* Megamenu grid */
.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dropdown-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
}

.dropdown-card:hover {
  background: #dbeafe;
  transform: translateY(-3px);
  color: var(--navy);
  text-decoration: none;
}

.dropdown-card .icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dropdown-card h5 {
  font-size: 0.93rem;
  margin-bottom: 3px;
  color: var(--navy);
}

.dropdown-card p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

/* Simple dropdown items */
.nav-simple-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}

.nav-simple-dropdown a:hover {
  background: var(--off-white);
  color: var(--blue);
  padding-left: 1.4rem;
  text-decoration: none;
}

.nav-simple-dropdown a i {
  width: 17px;
  color: var(--blue);
}

/* ══════════════════════════════════════════
   6. HERO / SLIDER ХЭСЭГ
══════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3d7b 100%);
  padding: 2.8rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.hero-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

.hero-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-card:hover .hero-img img {
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%);
}

.hero-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(245,158,11,.9);
  color: var(--navy);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
}

.hero-body {
  padding: 1.15rem 1.35rem;
  color: var(--white);
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.4rem;
}

.hero-mng {
  font-family: var(--font-mng);
  writing-mode: vertical-lr;
  font-size: 13px;
  height: 40px;
  color: rgba(255,255,255,.58);
  border-right: 1px solid rgba(255,255,255,.2);
  padding-right: 8px;
}

.hero-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}

.hero-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,.72);
  margin-top: 0.3rem;
  margin-bottom: 0;
}

/* ══════════════════════════════════════════
   7. STATS ХЭСЭГ
══════════════════════════════════════════ */
.stats-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--white);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,.14);
}

.stat-icon {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, var(--gold), #f97316);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(245,158,11,.32);
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.93rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 0;
}

.stat-sub {
  font-size: 0.77rem;
  color: rgba(255,255,255,.48);
  margin-top: 0.2rem;
  margin-bottom: 0;
}

/* ══════════════════════════════════════════
   8. SECTION ГАРЧИГ (ерөнхий хэв маяг)
══════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--off-white);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.32rem 0.95rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  border: 1px solid #dbeafe;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.55rem;
  line-height: 1.2;
}

.section-divider {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 4px;
  margin: 0.75rem auto 1rem;
}

.section-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   9. МЭРГЭЖЛҮҮД (COURSES)
══════════════════════════════════════════ */
.courses-section {
  padding: 5rem 0;
  background: var(--off-white);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.8rem;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid var(--blue);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Өнгөний хувилбарууд */
.course-card.c-red    { border-top-color: var(--red); }
.course-card.c-green  { border-top-color: #16a34a; }
.course-card.c-purple { border-top-color: #7c3aed; }
.course-card.c-orange { border-top-color: #ea580c; }
.course-card.c-gold   { border-top-color: var(--gold); }
.course-card.c-teal   { border-top-color: #0891b2; }

.course-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.course-card:hover .course-img img {
  transform: scale(1.07);
}

.course-body {
  padding: 1.35rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-title {
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.55rem;
  line-height: 1.35;
}

.course-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  margin-bottom: 0;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.35rem;
  border-top: 1px solid var(--border);
}

.course-duration {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.87rem;
}

.btn-detail {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0.48rem 1.05rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  font-family: var(--font);
  text-decoration: none;
}

.btn-detail:hover {
  background: var(--navy);
  transform: translateX(3px);
  color: var(--white);
  text-decoration: none;
}

.course-card.c-red    .btn-detail { background: var(--red); }
.course-card.c-green  .btn-detail { background: #16a34a; }
.course-card.c-purple .btn-detail { background: #7c3aed; }
.course-card.c-orange .btn-detail { background: #ea580c; }
.course-card.c-gold   .btn-detail { background: #d97706; }
.course-card.c-teal   .btn-detail { background: #0891b2; }

.course-card.c-red    .btn-detail:hover,
.course-card.c-green  .btn-detail:hover,
.course-card.c-purple .btn-detail:hover,
.course-card.c-orange .btn-detail:hover,
.course-card.c-gold   .btn-detail:hover,
.course-card.c-teal   .btn-detail:hover {
  background: var(--navy);
  color: var(--white);
}

/* ══════════════════════════════════════════
   10. МАНАЙ СУРГУУЛИЙН ТУХАЙ
══════════════════════════════════════════ */
.about-section {
  padding: 5rem 0;
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 4rem;
  align-items: center;
}

.about-decorbox {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s;
}

.about-img-main:hover img {
  transform: scale(1.04);
}

.about-float-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  box-shadow: 0 12px 36px rgba(0,0,0,.25);
}

.about-float-card .big {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.about-float-card .lbl {
  font-size: 0.78rem;
  color: rgba(255,255,255,.72);
}

.about-content .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--off-white);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.28rem 0.85rem;
  border-radius: 20px;
  border: 1px solid #dbeafe;
  margin-bottom: 0.9rem;
}

.about-content h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.82;
  margin-bottom: 1.4rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.astat {
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  border-bottom: 3px solid var(--blue);
  transition: var(--transition);
}

.astat:hover {
  background: #dbeafe;
  transform: translateY(-3px);
}

.astat .n {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.astat .l {
  font-size: 0.77rem;
  color: var(--muted);
}

/* ══════════════════════════════════════════
   11. ВИДЕО ХЭСЭГ
══════════════════════════════════════════ */
.video-section {
  padding: 5rem 0;
  background: var(--white);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.video-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.video-item a {
  display: block;
  position: relative;
}

.video-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.video-item:hover img {
  transform: scale(1.05);
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,37,71,.42);
  transition: background 0.25s;
}

.video-item:hover .video-play {
  background: rgba(15,37,71,.6);
}

.video-play i {
  font-size: 3rem;
  color: var(--white);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
  transition: transform 0.25s;
}

.video-item:hover .video-play i {
  transform: scale(1.15);
}

/* ══════════════════════════════════════════
   12. ДАВУУ ТАЛ (FEATURES)
══════════════════════════════════════════ */
.features-section {
  padding: 5rem 0;
  background: var(--off-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--blue);
}

.feature-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--off-white), #dbeafe);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: var(--blue);
  margin-bottom: 1.15rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
}

.feature-title {
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0;
}

.feature-mng {
  font-family: var(--font-mng);
  writing-mode: vertical-lr;
  font-size: 12px;
  height: 30px;
  color: var(--muted);
  border-left: 2px solid var(--border);
  padding-left: 7px;
  margin-left: 9px;
  line-height: 1.2;
  transition: var(--transition);
}

.feature-card:hover .feature-mng {
  color: var(--blue);
  border-left-color: var(--sky);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 0.8rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--muted);
  padding: 0.32rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li i {
  color: var(--green);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Stat box (номын сан) */
.stat-box {
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  text-align: center;
  transition: background 0.25s;
}

.stat-box:hover {
  background: #dbeafe;
}

.stat-box .num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  display: block;
}

.stat-box small {
  font-size: 0.77rem;
  color: var(--muted);
}

/* ══════════════════════════════════════════
   13. УДИРДЛАГА (LEADERSHIP)
══════════════════════════════════════════ */
.leadership-section {
  padding: 5rem 0;
  background: var(--off-white);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.leader-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.leader-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.leader-img {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.leader-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.leader-card:hover .leader-img img {
  transform: scale(1.06);
}

.leader-info {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--white);
  text-align: center;
}

.leader-info h4 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--white);
}

.leader-info span {
  font-size: 0.84rem;
  color: rgba(255,255,255,.72);
  font-style: italic;
}

/* Placeholder зурагтай удирдлага */
.leader-placeholder {
  height: 280px;
  background: linear-gradient(135deg, var(--off-white), #dbeafe);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--muted);
}

.leader-placeholder i {
  font-size: 3.5rem;
  color: var(--border);
}

.leader-placeholder p {
  font-size: 0.83rem;
  margin: 0;
}

/* ══════════════════════════════════════════
   14. МЭДЭЭ МЭДЭЭЛЭЛ (NEWS)
══════════════════════════════════════════ */
.news-section {
  padding: 5rem 0;
  background: var(--white);
}

/* Шүүлтүүр */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--muted);
  padding: 0.48rem 1.15rem;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(37,99,235,.28);
}

/* Мэдээний grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.8rem;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-thumb {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-card:hover .news-thumb img {
  transform: scale(1.06);
}

.news-category {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(37,99,235,.88);
  color: var(--white);
  font-size: 0.71rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.news-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.55rem;
  line-height: 1.42;
}

.news-title a {
  color: inherit;
  transition: color 0.2s;
}

.news-title a:hover {
  color: var(--blue);
  text-decoration: none;
}

.news-excerpt {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 0;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--border);
}

.news-date {
  font-size: 0.77rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-more {
  background: none;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-size: 0.77rem;
  font-weight: 700;
  padding: 0.33rem 0.85rem;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  text-decoration: none;
  display: inline-block;
}

.btn-more:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}

/* ══════════════════════════════════════════
   15. ШИЛЭН ДАНС
══════════════════════════════════════════ */
.transparency-section {
  padding: 4rem 0;
  background: var(--off-white);
}

.transparency-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.trans-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.trans-item:hover {
  box-shadow: var(--shadow-md);
}

.trans-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0.95rem 1.15rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.89rem;
  color: var(--navy);
  user-select: none;
  transition: background 0.2s;
  font-family: var(--font);
}

.trans-summary::-webkit-details-marker {
  display: none;
}

.trans-summary i:first-child {
  color: var(--blue);
  width: 18px;
  flex-shrink: 0;
}

.trans-summary .arrow {
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.3s;
}

details[open] > .trans-summary {
  background: var(--off-white);
}

details[open] > .trans-summary .arrow {
  transform: rotate(180deg);
}

.trans-body {
  padding: 0.8rem 1.15rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trans-body a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.38rem 0.78rem;
  border-radius: 8px;
  background: var(--off-white);
  border: 1px solid #dbeafe;
  transition: var(--transition);
  text-decoration: none;
}

.trans-body a:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  text-decoration: none;
}

/* ══════════════════════════════════════════
   16. FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.82);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.footer-desc {
  font-size: 0.84rem;
  color: rgba(255,255,255,.58);
  line-height: 1.72;
  margin-bottom: 1.2rem;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--blue);
  transform: translateY(-3px);
  color: var(--white);
}

.footer-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.15rem;
  padding-bottom: 0.58rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.48rem;
}

.footer-links a {
  font-size: 0.86rem;
  color: rgba(255,255,255,.62);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
  text-decoration: none;
}

.footer-links a i {
  width: 14px;
  color: var(--blue);
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 0.68rem;
  font-size: 0.86rem;
  color: rgba(255,255,255,.62);
  align-items: flex-start;
}

.footer-contact li i {
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
}

.footer-contact a {
  color: rgba(255,255,255,.62);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--gold);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.15rem 0;
  text-align: center;
  font-size: 0.81rem;
  color: rgba(255,255,255,.42);
}

.footer-bottom span {
  color: var(--gold);
}

/* ══════════════════════════════════════════
   17. FADE-UP АНИМЕЙШН
══════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════
   18. ДЭЛГЭРЭНГҮЙ ХУУДАС (course.html, gallery.html гэх мэт)
══════════════════════════════════════════ */

/* Page banner */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
}

.page-banner h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-banner p {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb-wrap {
  background: var(--off-white);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.84rem;
}

.breadcrumb-list li {
  color: var(--muted);
}

.breadcrumb-list li a {
  color: var(--blue);
}

.breadcrumb-list li a:hover {
  color: var(--navy);
}

.breadcrumb-list li::after {
  content: '›';
  margin-left: 0.5rem;
  color: var(--border);
}

.breadcrumb-list li:last-child::after {
  display: none;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  position: relative;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-thumb {
  height: 200px;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.06);
}

.blog-body {
  padding: 1.4rem;
}

.blog-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
  line-height: 1.38;
}

.blog-excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ══════════════════════════════════════════
   19. RESPONSIVE — ГАР УТАС / ТАБЛЕТ
══════════════════════════════════════════ */

/* Таблет (768px – 991px) */
@media (max-width: 991px) {
  /* Header */
  .header-actions {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .header-actions.open {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,.1);
  }

  /* Nav */
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; padding: 0.5rem 0; }
  .nav-link {
    justify-content: center;
    padding: 0.85rem;
    border-bottom: 1px solid var(--border);
    border-left: none;
  }
  .nav-dropdown,
  .nav-simple-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    background: var(--off-white);
    min-width: unset;
    padding: 1rem;
    margin: 0;
    border-radius: 0;
  }
  .dropdown-grid { grid-template-columns: 1fr; gap: 0.8rem; }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* About */
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-float-card { display: none; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* Video */
  .video-grid { grid-template-columns: 1fr; }

  /* Leadership */
  .leadership-grid { grid-template-columns: 1fr; }

  /* Transparency */
  .transparency-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* About stats */
  .about-stats { grid-template-columns: 1fr; }
}

/* Гар утас (767px ба доош) */
@media (max-width: 767px) {
  .section-title { font-size: 1.6rem; }
  .hero { padding: 1.5rem 0; }
  .courses-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .brand-mng { display: none; }
  .brand-name { font-size: 1.1rem; }
  .brand-sub { font-size: 0.72rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; gap: 0.75rem; }
  .stats-grid { gap: 0.75rem; }
}

/* ══════════════════════════════════════════
   20. ХЭВЛЭЛТИЙН ХЭЛБЭР (Print)
══════════════════════════════════════════ */
@media print {
  .site-header,
  .site-nav,
  #scrollTop,
  .menu-toggle,
  .filter-bar,
  .footer-social {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .site-footer {
    background: #fff;
    color: #000;
    padding: 1rem 0;
  }

  .footer-title,
  .footer-links a,
  .footer-contact li,
  .footer-contact a,
  .footer-bottom {
    color: #000 !important;
  }

  a::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #555;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: '';
  }
}