/* =======================
   FONT IMPORTS (at top)
   ======================= */
@font-face {
  font-family: "Arizona Flare";
  src: url("../fonts/arizona_flare_300_normal_headings_h1-h6.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Arizona Flare";
  src: url("../fonts/arizona_flare_300_italic_headings_h1-h6.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Helveesti";
  src: url("../fonts/helveesti_400_normal_body_ui.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helveesti";
  src: url("../fonts/helveesti_400_italic_body_ui.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Helveesti Bold";
  src: url("../fonts/helveesti_700_normal_body_labels.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helveesti Bold";
  src: url("../fonts/helveesti_700_italic_body_labels.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* =======================
   Why Online Education
   ======================= */

.why-online {
  /* Palette */
  --ink: #170B01;
  --bg: #F8F2E9;
  --accent: #1C1BAE;
  --soft: #BDCFFB;
  --highlight: #FDF18B;

  color: var(--ink);
  background: var(--bg);

  /* Section-scoped typography defaults */
  font-family: "Helveesti", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  font-synthesis: none;
}

/* Headings: Arizona Flare */
.why-online__title,
.why-online__stat-num {
  font-family: "Arizona Flare", serif;
  font-weight: 300;
}

/* Emphasis labels: Helveesti Bold */
.why-online__card-title {
  font-family: "Helveesti", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
}

/* ---- existing styles (unchanged except font usage above) ---- */
.why-online__head { text-align: left; margin-bottom: clamp(16px, 3vw, 28px); }
.why-online__title {
  margin: 0 0 10px;
  font-size: 30px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.3;
}
.why-online__sub { margin: 0; font-size: 18px; line-height: 1.3; }

.why-online__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}
@media (min-width: 720px) {
  .why-online__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .why-online__grid { grid-template-columns: repeat(4, 1fr); }
}

.why-online__card {
  border: 1px solid var(--soft);
  border-radius: 12px;
  background: var(--bg);
  padding: 16px;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.why-online__card:hover { transform: translateY(-2px); background: var(--soft); }

.why-online__icon { font-size: 26px; color: var(--accent); }
.why-online__card-title { margin: 10px 0 10px; font-size: 16px; }
.why-online__card-text { margin: 0; font-size: 14px; line-height: 1.3; }

.why-online__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin: 20px 0 20px;
  padding: 12px; border: 1px solid var(--soft); border-radius: 12px; background: var(--bg);
}
.why-online__stat { text-align: center; }
.why-online__stat-num { display: block; font-size: clamp(20px, 3vw, 28px); }
.why-online__stat-label { font-size: 14px; letter-spacing: .3px; }

.why-online__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.why-online__btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 10px; padding: 10px 14px; font-size: 14px;
  border: 1px solid transparent; text-decoration: none; color: var(--ink);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.why-online__btn--primary { background: var(--accent); color: #F8F2E9; border-color: var(--accent); border-radius: 3px; font-size: 16px;}
.why-online__btn--primary:hover { transform: translateY(-1px); }
.why-online__btn--ghost { background: transparent; border-color: var(--soft); border-radius: 3px; font-size: 16px;}
.why-online__btn--ghost:hover { background: var(--highlight); }

@media (max-width: 430px) {
  .why-online__title { font-size: 22px; }
  .why-online__stats { grid-template-columns: repeat(2, 2fr);}
  .why-online__btn {
    font-size: 13px;
  }
}
