/* ============================================================
   education-detail.css — Боловсролын хөтөлбөрийн дэлгэрэнгүй
   ed2- prefix. Хүүхэд/багш/эцэг эхэд ойлгомжтой.
   ============================================================ */

.ed2-body { background: #faf8f3; }


/* ─── BREADCRUMB STRIP ─── */
.ed2-crumb-strip {
  padding: 14px 0;
  background: #fff;
  border-bottom: 1px solid #ece6d4;
}

/* ─── BREADCRUMB ─── */
.ed2-breadcrumb { font-size: .82rem; }
.ed2-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ed2-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.ed2-breadcrumb a:hover { color: var(--navy); }
.ed2-breadcrumb [aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
}
.ed2-breadcrumb i { font-size: .55rem; color: #bbb; }


/* ─── HERO ─── */
.ed2-hero {
  padding: 50px 0 0;
  background: linear-gradient(135deg, var(--navy) 0%, #022954 60%, var(--navy) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ed2-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(233,21,24,.18) 0%, transparent 70%);
  pointer-events: none;
}

.ed2-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ed2-hero-text { padding-bottom: 50px; }
.ed2-hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.ed2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
  color: #fff;
}
.ed2-badge i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
}
.ed2-badge-aud { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); }
.ed2-badge-cat { background: var(--red); }

.ed2-hero-title {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: .005em;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #fff;
}
.ed2-hero-tagline {
  font-size: 1.02rem;
  color: rgba(255,255,255,.85);
  margin: 0 0 22px;
  line-height: 1.65;
}

.ed2-hero-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.ed2-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ed2-info-item > i {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.ed2-info-item span {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.ed2-info-item strong {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
}

.ed2-hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.ed2-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.ed2-btn-primary:hover { background: #c81e21; }
.ed2-btn-primary i { color: #fff; }
.ed2-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  padding: 13px 26px;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.ed2-btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.ed2-btn-outline i { color: var(--gold-light); }

.ed2-hero-img {
  aspect-ratio: 4/5;
  background: #faf8f3;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 4px solid rgba(255,255,255,.12);
}
.ed2-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}


/* ─── QUICK ANCHOR NAV ─── */
.ed2-anchor-nav {
  background: #fff;
  border-bottom: 1px solid #ece6d4;
  position: sticky;
  top: 64px;
  z-index: 50;
}
.ed2-anchor-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  overflow-x: auto;
}
.ed2-anchor {
  display: inline-block;
  padding: 16px 22px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.ed2-anchor:hover { color: var(--navy); }
.ed2-anchor.active {
  color: var(--navy);
  border-bottom-color: var(--red);
}


/* ─── SECTIONS ─── */
.ed2-section {
  padding: 70px 0;
  background: #faf8f3;
  scroll-margin-top: 130px;
}
.ed2-section-white { background: #fff; }

.ed2-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ece6d4;
}
.ed2-section-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ed2-section-icon i { color: #fff; }
.ed2-section-head h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}


/* ─── ABOUT SECTION ─── */
.ed2-about p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 16px;
}
.ed2-about p strong { color: var(--navy); }
.ed2-about p em { color: var(--red); font-style: italic; }
.ed2-about h2, .ed2-about h3, .ed2-about h4 { color: var(--navy); margin: 24px 0 10px; }
.ed2-about ul, .ed2-about ol { margin: 0 0 16px; padding-left: 22px; line-height: 1.7; color: var(--text); }
.ed2-about li { margin: 4px 0; }
.ed2-about-empty { color: var(--muted, #6b7280); font-style: italic; }

/* Хэнд зориулсан — DB tag-уудаас (audience/group/interest) */
.ed2-whom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.ed2-whom-block {
  background: #fff;
  border: 1px solid #ece6d6;
  border-radius: 14px;
  padding: 20px;
}
.ed2-whom-block h4 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ed2-whom-block h4 i { color: var(--gold-deep); }
.ed2-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ed2-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cream, #f6f1e6);
  border: 1px solid #e4dcc7;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}


/* ─── HIGHLIGHTS (what kids/students learn) ─── */
.ed2-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.ed2-hl {
  background: #fff;
  border: 1px solid #ece6d4;
  border-radius: 8px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .2s;
}
.ed2-hl:hover { border-color: var(--red); transform: translateY(-2px); }
.ed2-hl > i {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.ed2-hl > i { color: #fff; }
.ed2-hl h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.ed2-hl p {
  font-size: .85rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}


/* ─── STEPS (how it works) ─── */
.ed2-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 880px;
}
.ed2-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid #ece6d4;
  border-left: 3px solid var(--red);
  border-radius: 6px;
  padding: 20px 24px;
  align-items: flex-start;
  transition: all .2s;
}
.ed2-steps li:hover { border-left-color: var(--gold-deep); transform: translateX(2px); }
.ed2-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ed2-steps strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
}
.ed2-steps p {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}


/* ─── FOR WHOM (audience cards) ─── */
.ed2-audiences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ed2-aud-card {
  background: #fff;
  border: 1px solid #ece6d4;
  border-radius: 8px;
  padding: 22px 22px 24px;
  position: relative;
  overflow: hidden;
}
.ed2-aud-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.ed2-aud-card-children::before { background: #3aa055; }
.ed2-aud-card-teachers::before { background: #0a66c2; }
.ed2-aud-card-parents::before  { background: var(--red); }

.ed2-aud-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}
.ed2-aud-card h4 i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: #fff;
}
.ed2-aud-card-children h4 i { background: #3aa055; }
.ed2-aud-card-teachers h4 i { background: #0a66c2; }
.ed2-aud-card-parents h4 i  { background: var(--red); }
.ed2-aud-card p {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 14px;
}
.ed2-aud-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .85rem;
  color: var(--text);
}
.ed2-aud-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.ed2-aud-card ul li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}


/* ─── FAQ ─── */
.ed2-faq { max-width: 880px; }
.ed2-faq details {
  background: #fff;
  border: 1px solid #ece6d4;
  border-radius: 6px;
  padding: 0;
  margin-bottom: 10px;
  transition: border-color .2s;
}
.ed2-faq details[open] { border-color: var(--navy); }
.ed2-faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-size: .98rem;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ed2-faq summary::-webkit-details-marker { display: none; }
.ed2-faq summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--red);
  transition: transform .2s;
}
.ed2-faq details[open] summary::after { content: '−'; }
.ed2-faq p {
  padding: 0 22px 18px;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}


/* ─── BOOKING CTA ─── */
.ed2-cta {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--navy) 0%, #022954 100%);
  color: #fff;
  text-align: center;
}
.ed2-cta h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
}
.ed2-cta p {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.ed2-cta-buttons {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}


/* ─── RELATED PROGRAMS ─── */
.ed2-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ed2-rel {
  background: #fff;
  border: 1px solid #ece6d4;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
}
.ed2-rel:hover {
  transform: translateY(-3px);
  border-color: var(--navy);
  box-shadow: 0 14px 28px rgba(3,31,62,.1);
}
.ed2-rel-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray);
}
.ed2-rel-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s;
}
.ed2-rel:hover .ed2-rel-img img { transform: scale(1.05); }
.ed2-rel-body { padding: 14px 18px 16px; }
.ed2-rel-aud {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.ed2-rel h4 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}


/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .ed2-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .ed2-hero-img { aspect-ratio: 16/10; max-width: 480px; }
  .ed2-highlights { grid-template-columns: repeat(2, 1fr); }
  .ed2-audiences { grid-template-columns: 1fr; }
  .ed2-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ed2-hero { padding: 32px 0 0; }
  .ed2-hero-text { padding-bottom: 32px; }
  .ed2-hero-info { grid-template-columns: 1fr; gap: 10px; }
  .ed2-section { padding: 48px 0; }
  .ed2-anchor-nav { top: 0; }
  .ed2-anchor { padding: 12px 14px; font-size: .72rem; }
  .ed2-highlights { grid-template-columns: 1fr; }
  .ed2-steps li { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .ed2-related-grid { grid-template-columns: 1fr; }
}
