/* Нүүр хуудасны загвар. css/style.css-ийн ДАРАА ачаалагдана. */
:root {
	--pc-navy: #1a3675;
	--pc-navy-dark: #12275a;
	--pc-navy-light: #2c52a0;
	--pc-amber: #f5a623;
	--pc-ink: #1d2433;
	--pc-muted: #5f6b80;
	--pc-line: #e1e6ef;
	--pc-soft: #f4f6fb;
	--pc-display: "Manrope", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Нийтлэг ---------- */
.hp-section { padding: 4rem 0; }
.hp-head { text-align: center; margin-bottom: 2.25rem; }
.hp-eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pc-amber); font-family: var(--pc-display); }
.hp-title { font-family: var(--pc-display); font-weight: 800; color: var(--pc-navy); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; margin: .35rem 0 0; position: relative; padding-bottom: .9rem; }
.hp-head .hp-title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--pc-amber); transform: translateX(-50%); }
.hp-title.text-start::after { left: 0; transform: none; content: ""; position: absolute; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--pc-amber); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--pc-amber); outline-offset: 2px; }

/* ---------- Баннер ---------- */
#slide .carousel-item { position: relative; }
#slide .carousel-item img { width: 100%; height: auto; display: block; }
#slide .carousel-item::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(18,39,90,.6) 0%, rgba(18,39,90,0) 45%); }
#slide .carousel-caption { z-index: 2; left: 6%; right: auto; bottom: 4.5rem; max-width: 680px; text-align: left; }
#slide .carousel-caption h3 { font-family: var(--pc-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.25; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
#slide .carousel-indicators { z-index: 3; margin-bottom: 3.2rem; }

/* ---------- Элсэлтийн хөвөгч карт ---------- */
.admission-wrap { position: relative; z-index: 6; margin-top: -2.4rem; }
.admission-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border-radius: 14px; border-left: 6px solid var(--pc-amber); box-shadow: 0 14px 34px rgba(18,39,90,.18); padding: 1.15rem 1.5rem; }
.admission-kicker { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pc-amber); font-family: var(--pc-display); }
.admission-text { font-family: var(--pc-display); font-weight: 700; color: var(--pc-navy); font-size: 1.1rem; }
.admission-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.admission-phone, .admission-phone a { color: var(--pc-ink); font-weight: 600; text-decoration: none; }

/* ---------- Хурдан холбоос ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; }
.quick-tile { display: flex; flex-direction: column; align-items: center; gap: .65rem; padding: 1.1rem .5rem; background: #fff; border: 1px solid var(--pc-line); border-radius: 12px; text-decoration: none; text-align: center; transition: transform .2s, border-color .2s, box-shadow .2s; }
.quick-tile:hover { transform: translateY(-3px); border-color: var(--pc-navy); box-shadow: 0 8px 20px rgba(26,54,117,.12); }
.quick-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--pc-soft); color: var(--pc-navy); font-size: 1.15rem; transition: background .2s, color .2s; }
.quick-tile:hover .quick-icon { background: var(--pc-navy); color: #fff; }
.quick-label { font-size: .88rem; font-weight: 700; color: var(--pc-ink); line-height: 1.3; }

/* ---------- Сургалт ---------- */
.program-card { background: linear-gradient(135deg, var(--pc-navy-dark) 0%, var(--pc-navy) 55%, var(--pc-navy-light) 100%); color: #fff; border-radius: 16px; padding: 2.2rem 2rem 1.9rem; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.program-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: rgba(245,166,35,.16); }
.program-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(18,39,90,.28); }
.program-icon { position: relative; z-index: 1; width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; background: var(--pc-amber); color: var(--pc-navy-dark); font-size: 1.6rem; margin-bottom: 1.2rem; }
.program-title { position: relative; z-index: 1; font-family: var(--pc-display); font-size: 1.2rem; line-height: 1.35; font-weight: 800; margin: 0 0 .6rem; }
.program-title a { color: #fff; text-decoration: none; }
.program-sub { position: relative; z-index: 1; color: rgba(255,255,255,.82); font-size: .95rem; margin-bottom: 1.1rem; }
.program-more { position: relative; z-index: 1; font-weight: 700; font-size: .9rem; color: var(--pc-amber); }
.program-more i { transition: transform .2s; }
.program-card:hover .program-more i { transform: translateX(5px); }

/* ---------- Захирлын мэндчилгээ ---------- */
.director-sec { background: var(--pc-soft); }
.director-photo { position: relative; display: inline-block; padding: 0 0 18px 18px; }
.director-photo::before { content: ""; position: absolute; left: 0; bottom: 0; right: 18px; top: 18px; border: 3px solid var(--pc-amber); border-radius: 14px; }
.director-photo img { position: relative; border-radius: 14px; display: block; max-height: 520px; width: auto; box-shadow: 0 10px 28px rgba(18,39,90,.18); }
.director-name { margin-top: 1rem; font-family: var(--pc-display); font-weight: 800; color: var(--pc-navy); font-size: 1.1rem; }
.director-role { color: var(--pc-muted); font-size: .9rem; }
.director-text { font-size: 1.02rem; line-height: 1.8; color: var(--pc-ink); }
.director-text .readmore-btn { color: var(--pc-navy); font-weight: 700; }

/* ---------- Мэдээ ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.news-grid.has-feat { grid-template-columns: repeat(4, 1fr); }
.news-grid.has-feat .news-feat { grid-column: span 2; grid-row: span 2; }
.news-card { background: #fff; border: 1px solid var(--pc-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.news-card:hover { transform: translateY(-3px); border-color: var(--pc-navy); box-shadow: 0 10px 24px rgba(26,54,117,.12); }
.news-img { aspect-ratio: 16 / 10; background: #e9edf5; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-feat .news-img { aspect-ratio: auto; flex: 1; min-height: 260px; }
.news-body { padding: .9rem 1.05rem 1.1rem; }
.news-date { display: block; font-size: .75rem; color: var(--pc-muted); margin-bottom: .4rem; }
.news-title { font-family: var(--pc-display); font-size: .95rem; line-height: 1.4; font-weight: 700; margin: 0 0 .35rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.news-title a { color: var(--pc-ink); text-decoration: none; }
.news-card:hover .news-title a { color: var(--pc-navy); }
.news-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: .8rem; color: var(--pc-muted); margin: 0; }
.news-feat .news-title { font-size: 1.3rem; -webkit-line-clamp: 3; line-clamp: 3; }
.news-feat .news-excerpt { -webkit-line-clamp: 4; line-clamp: 4; font-size: .9rem; }
.news-sec .page-link { color: var(--pc-navy); }
.news-sec .page-item.active .page-link { background: var(--pc-navy); border-color: var(--pc-navy); color: #fff; }

/* ---------- Бидний бүтээл ---------- */
.products-sec { background: var(--pc-soft); }
.product-card { background: #fff; border: 1px solid var(--pc-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(26,54,117,.12); }
.product-img { aspect-ratio: 4 / 3; background: #f1f3f8; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-body { padding: .9rem 1.05rem 0; flex: 1; }
.product-title { font-family: var(--pc-display); font-size: .98rem; font-weight: 700; margin: 0 0 .4rem; }
.product-title a { color: var(--pc-ink); text-decoration: none; }
.product-text { font-size: .8rem; color: var(--pc-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.product-meta { display: flex; justify-content: space-between; padding: .6rem 1.05rem; border-top: 1px solid var(--pc-line); font-size: .72rem; color: var(--pc-muted); }

/* ---------- Төгсгөлийн дуудлага ---------- */
.cta-band { background: linear-gradient(120deg, var(--pc-navy-dark), var(--pc-navy)); color: #fff; padding: 3.2rem 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -80px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(245,166,35,.15); }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-title { font-family: var(--pc-display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.3; max-width: 640px; color: #fff; margin-bottom: .5rem; }
.cta-text { color: rgba(255,255,255,.85); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.cta-phone, .cta-phone a { color: #fff; font-weight: 600; text-decoration: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 991.98px) {
	.quick-grid { grid-template-columns: repeat(3, 1fr); }
	.news-grid, .news-grid.has-feat { grid-template-columns: repeat(2, 1fr); }
	.news-grid.has-feat .news-feat { grid-column: span 2; grid-row: auto; }
	.news-feat .news-img { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
	.hp-section { padding: 3rem 0; }
}
@media (max-width: 575.98px) {
	.quick-grid { grid-template-columns: repeat(2, 1fr); }
	.news-grid, .news-grid.has-feat { grid-template-columns: 1fr; }
	.news-grid.has-feat .news-feat { grid-column: auto; }
	.admission-wrap { margin-top: -1.2rem; }
	.admission-card { padding: 1rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
