/* ============================================================
   program.css — program.html-д л хамаарах стиль
   ============================================================ */

/* ── Site-wide background pattern ── */
body {
  background-image: url("/img/logo/pattern_grey_color.png");
  background-size: 320px auto;
  background-repeat: repeat;
  background-attachment: fixed;
}

/* ============================================================
   HERO
   ============================================================ */
.prog-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/program/buunuuruu_alhah.jpg") center / cover no-repeat;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  position: relative;
}
.prog-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--space-5);
}
.prog-hero-content .hero-eyebrow {
  margin-bottom: var(--space-5);
}
.prog-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);
}
.prog-hero-content h1 em {
  color: var(--color-accent);
  font-style: normal;
}

/* ============================================================
   STICKY TAB NAV
   ============================================================ */
.prog-tabs-bar {
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  background: var(--color-surface-dark);
  border-bottom: 2px solid var(--color-primary);
  overflow-x: auto;
  touch-action: pan-x;
}
.prog-tabs {
  display: flex;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-8);
  gap: 0;
  touch-action: pan-x;
}
.prog-tab {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: var(--space-4) var(--space-6);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition:
    color 0.2s,
    border-color 0.2s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  text-decoration: none;
  display: block;
}
.prog-tab:hover {
  color: rgba(255, 255, 255, 0.85);
}
.prog-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.prog-section {
  padding: 80px var(--space-5);
  background: rgba(255, 255, 255, 0.94);
}
.prog-section--alt {
  background: rgba(240, 244, 251, 0.93);
}
.section-block {
  margin-top: 60px;
}

/* ============================================================
   INTRO GRID
   ============================================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  margin-top: 40px;
}
.intro-left {
  display: flex;
  flex-direction: column;
}
.intro-right {
  display: flex;
  flex-direction: column;
}
.intro-body {
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

/* "Ready for life" quote */
.intro-quote {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-6);
}
.intro-quote__icon {
  flex-shrink: 0;
}
.intro-quote__text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  font-style: italic;
  color: var(--color-primary);
  line-height: 1.2;
}
.intro-quote__sub {
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  color: var(--color-text-muted);
  margin-left: 4px;
}

/* Intro right-column highlight — stretches to match left height */
.intro-highlight {
  background: var(--color-primary);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
}
.intro-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/logo/pattern_blue_color.png");
  background-size: 200px;
  opacity: 0.07;
}
.intro-highlight p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  font-weight: var(--weight-regular);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* ============================================================
   HIGHLIGHT BOX (badges / curriculum sections)
   ============================================================ */
.highlight-box {
  background: var(--color-primary);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-8) var(--space-10);
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}
.highlight-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/logo/pattern_blue_color.png");
  background-size: 200px;
  opacity: 0.07;
}
.highlight-box p {
  font-size: var(--text-lg);
  font-style: normal;
  color: rgba(255, 255, 255, 0.9);
  font-weight: var(--weight-regular);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.highlight-box__cite {
  text-align: right;
  margin-top: 12px;
}

/* ============================================================
   PRINCIPLE CARDS
   ============================================================ */
.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-regular);
  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;
}

/* ============================================================
   AGE STAGES
   ============================================================ */
.age-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: 48px;
}
.age-stage {
  border: var(--border-thin);
  background: rgba(255, 255, 255, 0.97);
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.age-stage:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.age-stage-header {
  padding: var(--space-7) var(--space-6) var(--space-5);
  position: relative;
}
.age-stage-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.age-stage--cub .age-stage-header {
  background: #1a3a6b;
}
.age-stage--cub .age-stage-header::after {
  background: #f5a623;
}
.age-stage--scout .age-stage-header {
  background: #1e4c97;
}
.age-stage--scout .age-stage-header::after {
  background: #4caf50;
}
.age-stage--venture .age-stage-header {
  background: #1e4c97;
}
.age-stage--venture .age-stage-header::after {
  background: #4caf50;
}
.age-stage--rover .age-stage-header {
  background: #0d1f3c;
}
.age-stage--rover .age-stage-header::after {
  background: #9c27b0;
}
.age-stage--leader .age-stage-header {
  background: #2d0d4e;
}
.age-stage--leader .age-stage-header::after {
  background: #e91e8c;
}

.age-stage-icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-3);
  display: block;
}
.age-stage-range {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}
.age-stage-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: #fff;
  margin-bottom: var(--space-2);
}
.age-stage-mn {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  font-weight: var(--weight-regular);
}
.age-stage-body {
  padding: var(--space-6);
}
.age-stage-body p {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}
.age-stage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.age-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 4px var(--space-3);
  border: 1px solid rgba(29, 67, 130, 0.2);
  color: var(--color-primary);
  background: var(--color-primary-pale);
}

/* Leader full-width row */
.age-stages--leader-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

/* ============================================================
   COMPARE GRID
   ============================================================ */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: 40px;
  align-items: stretch;
}
.compare-card {
  border: var(--border-thin);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.compare-header {
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}
.compare-header--scout {
  background: var(--color-primary);
  color: #fff;
}
.compare-header--school {
  background: #f5a623;
  color: #0d1f3c;
}
.compare-body {
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.96);
  flex: 1;
}
.compare-body li {
  font-size: var(--text-md);
  color: var(--color-text);
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  border-bottom: 1px solid rgba(29, 67, 130, 0.06);
  list-style: none;
  position: relative;
}
.compare-body li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* ============================================================
   BADGE SYSTEM
   ============================================================ */
.badge-system {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: 48px;
}
.badge-intro {
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: var(--weight-regular);
  line-height: 1.7;
  margin-bottom: 32px;
}
.badge-tier {
  border: var(--border-thin);
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}
.badge-tier-header {
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.badge-tier--cub-wolf .badge-tier-header {
  background: #1a5f3f;
}
.badge-tier--cub-deer .badge-tier-header {
  background: #4a3a00;
}
.badge-tier--cub-bear .badge-tier-header {
  background: #4a1a00;
}
.badge-tier--hurel .badge-tier-header {
  background: #1a5f3f;
}
.badge-tier--mongon .badge-tier-header {
  background: #1a4a6e;
}
.badge-tier--altan .badge-tier-header {
  background: #8b5e00;
}
.badge-tier-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: #fff;
  display: flex;
  align-items: center;
}
.badge-tier-sub {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
}
.badge-tier-body {
  padding: var(--space-6);
}
.badge-tier-body p {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  font-weight: var(--weight-medium);
}
.badge-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.badge-subject {
  font-size: 0.72rem;
  font-weight: var(--weight-medium);
  padding: 3px var(--space-3);
  background: var(--color-bg-alt);
  border: 1px solid rgba(29, 67, 130, 0.15);
  color: var(--color-text);
}
.badge-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 6px;
}
.badge-dot--hurel {
  background: #2db870;
}
.badge-dot--mongon {
  background: #4b9de0;
}
.badge-dot--altan {
  background: #f0b429;
}

/* ============================================================
   BADGE INTRO GRID (text + image side by side)
   ============================================================ */
.badge-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}
.badge-intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.badge-intro-text .section-intro {
  margin-top: 0;
  margin-bottom: 0;
}
.badge-intro-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   АЛТАН ШОНХОР
   ============================================================ */
.altan-shonhor-section {
  margin-top: 72px;
  text-align: center;
}
.altan-shonhor-intro {
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: var(--weight-regular);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 32px;
}
.altan-shonhor-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  margin-top: 32px;
}
.altan-shonhor-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 8px 28px rgba(17, 46, 80, 0.22));
}

/* ============================================================
   CURRICULUM
   ============================================================ */
.curriculum-body {
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: var(--weight-regular);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

/* ============================================================
   TRAINING STEPS
   ============================================================ */
.training-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: 48px;
}
.training-step {
  border: var(--border-thin);
  background: rgba(255, 255, 255, 0.96);
  padding: var(--space-8);
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  transition: border-color 0.2s;
}
.training-step:hover {
  border-color: var(--color-primary);
}
.step-circle {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: #fff;
  background: var(--color-primary);
}
.step-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-3);
}
.step-content p {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.cta-block {
  text-align: center;
  margin-top: 64px;
}
.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-regular);
  max-width: 560px;
  margin: 0 auto var(--space-8);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .age-stages {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .badge-intro-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: start;
  }
  .badge-intro-img {
    max-width: 560px;
    width: 100%;
    justify-self: center;
  }
  .principle-grid,
  .badge-system {
    grid-template-columns: 1fr 1fr;
  }
  .training-steps,
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .law-bullet-list {
    columns: 1;
  }
}
@media (max-width: 600px) {
  .principle-grid,
  .age-stages,
  .badge-system {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CURRICULUM HIGHLIGHT (тусдаа, highlight-box-оос бие даасан)
   ============================================================ */
.curriculum-highlight {
  background: var(--color-primary);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-8) var(--space-10);
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}
.curriculum-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/logo/pattern_blue_color.png");
  background-size: 200px;
  opacity: 0.07;
}
.curriculum-highlight p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  font-weight: var(--weight-regular);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ============================================================
   TRAINING CARDS (зургуудтай, 3 багана тайлбар)
   ============================================================ */
.training-card {
  border: var(--border-thin);
  background: rgba(255, 255, 255, 0.97);
  overflow: hidden;
  margin-bottom: var(--space-6);
}
.training-card__header {
  background: var(--color-primary);
  padding: var(--space-6) var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  position: relative;
}
.training-card__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--weight-black);
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
  flex-shrink: 0;
}
.training-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: #fff;
  margin-bottom: var(--space-1);
}
.training-card__sub {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: var(--weight-medium);
}
.training-card__img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-left: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}
.training-card__imgs {
  display: flex;
  gap: var(--space-3);
  margin-left: auto;
  flex-shrink: 0;
}
.training-card__imgs .training-card__img {
  width: 56px;
  height: 56px;
}

.training-card__body {
  padding: var(--space-7) var(--space-8);
}
.training-card__body > p {
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: var(--weight-regular);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}
.training-card__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.training-card__col-title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-accent);
}
.training-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.training-card__list li {
  font-size: var(--text-sm);
  line-height: 1.5;
  padding-left: var(--space-4);
  position: relative;
  font-weight: var(--weight-medium);
}
.training-card__list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

@media (max-width: 900px) {
  .training-card__cols {
    grid-template-columns: 1fr;
  }
  .training-card__header {
    flex-wrap: wrap;
  }
}

/* ── Training card body-top (зураг + текст хажуу хажуугаар) ── */
.training-card__body-top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}
.training-card__body-top > p {
  flex: 1;
  margin-bottom: 0 !important;
}
.training-card__img--large {
  width: auto;
  height: 180px;
  object-fit: contain;
  flex-shrink: 0;
  padding: var(--space-2);
}
.training-card__imgs--large {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex-shrink: 0;
}
.training-card__imgs--large .training-card__img--large {
  width: 120px;
  height: 80px;
}

@media (max-width: 600px) {
  .training-card__body-top {
    flex-direction: column;
  }
  .training-card__img--large {
    width: 100%;
    height: 180px;
  }
}

/* ── Woodbadge зургууд хэвтээ мөрөнд ── */
.training-card__body-top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}
.training-card__body-top > p {
  flex: 1;
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: var(--weight-regular);
  line-height: 1.75;
  margin-bottom: 0;
}
.training-card__imgs--row {
  display: flex;
  flex-direction: row;
  gap: var(--space-3);
  flex-shrink: 0;
}
.training-card__img--row {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: var(--border-thin);
  background: var(--color-bg-alt);
}

@media (max-width: 700px) {
  .training-card__imgs--row {
    flex-direction: column;
  }
  .training-card__img--row {
    width: 100%;
    height: 160px;
  }
}
