/* ============================================================
   history.css — history.html хуудасны стиль
   ============================================================ */

body {
  background-image: url('/img/logo/pattern_grey_color.png');
  background-size: 320px auto;
  background-repeat: repeat;
  background-attachment: fixed;
}

/* ── Hero ── */
.hist-hero {
  background:
    linear-gradient(to bottom, rgba(17,46,80,0.72) 0%, rgba(17,46,80,0.45) 60%, rgba(17,46,80,0.85) 100%),
    url('/img/history/history_hero.jpg') center / cover no-repeat;
  min-height: 52vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
}
.hist-hero-content { padding: 0 var(--space-5); }
.hist-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: var(--weight-black);
  color: #fff; line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
  margin-bottom: var(--space-4);
}
.hist-hero-content h1 em { color: var(--color-accent); font-style: normal; }
.hist-hero-content .hero-eyebrow { margin-bottom: var(--space-5); }

/* ── Sections ── */
.hist-section     { padding: 80px var(--space-5); background: rgba(255,255,255,0.94); }
.hist-section--alt { background: rgba(240,244,251,0.93); }

/* ── Mission ── */
.hist-mission {
  background: var(--color-primary);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-10) var(--space-12);
  position: relative; overflow: hidden;
  margin-top: 40px;
}
.hist-mission::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../img/logo/pattern_blue_color.png');
  background-size: 200px; opacity: 0.07;
}
.hist-mission p {
  font-size: var(--text-xl); font-weight: var(--weight-light);
  color: rgba(255,255,255,0.92); line-height: 1.75;
  position: relative; z-index: 1;
}

/* ── Body text ── */
.hist-body p {
  font-size: var(--text-lg); font-weight: var(--weight-regular);
  color: var(--color-text); line-height: 1.8;
  margin-bottom: var(--space-5);
}

/* ── Two col ── */
.hist-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start; margin-top: 40px;
}
.hist-stats-box {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border: var(--border-thin);
}
.hist-stat-item {
  padding: var(--space-6) var(--space-5); text-align: center;
  border-right: 1px solid rgba(29,67,130,0.1);
  border-bottom: 1px solid rgba(29,67,130,0.1);
  background: var(--color-surface);
}
.hist-stat-item:nth-child(2n)   { border-right: none; }
.hist-stat-item:nth-last-child(-n+2) { border-bottom: none; }
.hist-stat-num   { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: var(--weight-black); color: var(--color-primary); display: block; line-height: 1; margin-bottom: var(--space-1); }
.hist-stat-label { font-size: var(--text-sm); font-weight: var(--weight-medium); letter-spacing: var(--tracking-wide); color: var(--color-text); text-transform: uppercase; }

/* ── Timeline ── */
.hist-timeline { margin-top: 48px; position: relative; }
.hist-timeline::before {
  content: ''; position: absolute; left: 80px; top: 0; bottom: 0;
  width: 2px; background: var(--color-primary-pale);
}
.hist-timeline-item {
  display: flex; gap: 40px; align-items: center;
  margin-bottom: var(--space-8); position: relative;
}
.hist-timeline-year {
  font-family: var(--font-display); font-size: var(--text-sm);
  font-weight: var(--weight-black); color: var(--color-primary);
  min-width: 80px; text-align: right; 
  flex-shrink: 0; padding-top: 0;
  display: flex; align-items: center;
  justify-content: flex-end; align-self: stretch;
}
.hist-timeline-content {
  background: rgba(255,255,255,0.96);
  border: var(--border-thin);
  padding: var(--space-6) var(--space-7);
  flex: 1;
  position: relative;
}

.hist-timeline-content::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background: var(--color-primary);
}
.hist-timeline-content h4 {
  font-family: var(--font-display); font-size: var(--text-base);
  font-weight: var(--weight-bold); color: var(--color-surface-dark);
  margin-bottom: var(--space-2);
}
.hist-timeline-content p {
  font-size: var(--text-md); color: var(--color-text); line-height: 1.6;
}

/* ── CTA ── */
.cta-block           { text-align: center; margin-top: 20px; }
.cta-block__title    { font-family: var(--font-display); font-size: clamp(1.6rem,3.5vw,2.8rem); font-weight: var(--weight-bold); color: var(--color-surface-dark); margin-bottom: var(--space-5); }
.cta-block__title em { color: var(--color-primary); font-style: normal; }
.cta-block__subtitle { font-size: var(--text-lg); color: var(--color-text-muted); font-weight: var(--weight-medium); max-width: 560px; margin: 0 auto var(--space-8); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hist-two-col { grid-template-columns: 1fr; }
  .hist-timeline::before { left: 60px; }
}
@media (max-width: 600px) {
  .hist-timeline-year { min-width: 50px; font-size: var(--text-xs); }
  .hist-timeline::before { left: 50px; }
  .hist-mission { padding: var(--space-8) var(--space-6); }
}

/* ============================================================
   PRINCIPLE CARDS (program.css-аас авсан, history-д хэрэглэнэ)
   ============================================================ */
.principle-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6); margin-top: 48px;
}
.principle-card {
  background: var(--color-primary);
  padding: var(--space-8) var(--space-7);
  position: relative;
}
.principle-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--color-accent);
}
.principle-card h3 {
  font-family: var(--font-display); font-size: var(--text-sm);
  font-weight: var(--weight-bold); color: var(--color-accent);
  margin-bottom: var(--space-3); letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}
.principle-card p {
  font-size: var(--text-md); color: rgba(255,255,255,0.88);
  font-weight: var(--weight-light); line-height: 1.6;
}

/* ============================================================
   SCOUT LAW LIST
   ============================================================ */
.law-bullet-list {
  list-style: none; margin: 40px 0 0;
  padding: var(--space-6) var(--space-8);
  background: rgba(255,255,255,0.96); border: var(--border-thin);
  columns: 2; column-gap: 48px;
}
.law-bullet-list li {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(29,67,130,0.07);
  break-inside: avoid;
}
.law-bullet-list li:last-child { border-bottom: none; }
.law-num {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: var(--weight-black); color: var(--color-primary);
  opacity: 0.28; line-height: 1; flex-shrink: 0; min-width: 28px;
}
.law-text {
  font-size: var(--text-md); font-weight: var(--weight-regular);
  color: var(--color-text); line-height: 1.5;
}

@media (max-width: 900px) {
  .principle-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .law-bullet-list { columns: 1; }
}