:root {
  --sky: #1CA7EC;
  --sky-dark: #0D7FBF;
  --sky-light: #EAF7FF;
  --sun: #FFC93C;
  --grass: #2FBF71;
  --coral: #FF6B6B;
  --ink: #1F2937;
  --kenya-black: #121212;
  --kenya-red: #E63946;
  --kenya-green: #2FBF71;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 30px rgba(28, 167, 236, 0.15);
}

* { box-sizing: border-box; }

body {
  font-family: "Poppins", "Nunito", -apple-system, sans-serif;
  color: var(--ink);
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 10% 15%, rgba(28,167,236,0.08) 0, transparent 40%),
    radial-gradient(circle at 90% 5%, rgba(255,201,60,0.12) 0, transparent 35%);
}

h1, h2, h3, h4, .brand-font {
  font-family: "Baloo 2", "Poppins", sans-serif;
  font-weight: 700;
}

a { text-decoration: none; }

.kenya-stripe {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, var(--kenya-black) 0 33%, var(--kenya-red) 33% 66%, var(--kenya-green) 66% 100%);
}

/* Navbar */
.navbar-c4k {
  background: #ffffffee;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.navbar-c4k .navbar-brand {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--sky-dark) \!important;
}
.navbar-c4k .nav-link {
  font-weight: 600;
  color: var(--ink) \!important;
  margin: 0 4px;
}
.navbar-c4k .nav-link.active,
.navbar-c4k .nav-link:hover {
  color: var(--sky-dark) \!important;
}

.btn-cloud {
  background: var(--sky);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, background .15s ease;
}
.btn-cloud:hover { background: var(--sky-dark); color: #fff; transform: translateY(-2px); }

.btn-sun {
  background: var(--sun);
  border: none;
  color: var(--ink);
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 26px;
  transition: transform .15s ease;
}
.btn-sun:hover { transform: translateY(-2px); color: var(--ink); }

.btn-outline-cloud {
  border: 2px solid var(--sky);
  color: var(--sky-dark);
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 24px;
  background: transparent;
}
.btn-outline-cloud:hover { background: var(--sky-light); color: var(--sky-dark); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sky-light) 0%, #ffffff 60%);
  border-radius: 0 0 40px 40px;
  padding: 70px 0 90px;
}
.hero .eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--sky-dark);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-size: .85rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.1;
  color: var(--ink);
}
.hero h1 .accent { color: var(--sky-dark); }
.cloud-shape {
  position: absolute;
  opacity: .5;
}

/* Cards */
.tier-card, .course-card, .partner-card, .stat-card, .badge-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(28,167,236,0.12);
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}
.tier-card:hover, .course-card:hover, .partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(28,167,236,0.22);
}
.tier-icon, .course-icon {
  font-size: 2.4rem;
  display: inline-block;
  margin-bottom: .5rem;
}
.badge-pill {
  background: var(--sky-light);
  color: var(--sky-dark);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: .78rem;
  font-weight: 700;
}

.stat-card { text-align: center; padding: 1.75rem 1rem; }
.stat-card .stat-value {
  font-family: "Baloo 2", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--sky-dark);
}

.section-title {
  font-weight: 800;
}
.section-eyebrow {
  color: var(--sky-dark);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .8rem;
}

/* Progress */
.progress-c4k {
  height: 12px;
  border-radius: 999px;
  background: var(--sky-light);
  overflow: hidden;
}
.progress-c4k .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--grass));
  border-radius: 999px;
}

.lesson-row {
  border-radius: var(--radius-md);
  padding: .85rem 1.1rem;
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.lesson-row.done { background: #F0FBF4; border-color: rgba(47,191,113,0.35); }

footer.site-footer {
  background: var(--ink);
  color: #E5E7EB;
  padding: 50px 0 20px;
}
footer.site-footer a { color: #E5E7EB; }
footer.site-footer a:hover { color: var(--sun); }
footer.site-footer h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-band {
  background: linear-gradient(120deg, var(--sky) 0%, var(--sky-dark) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 3rem;
}

.timeline-step {
  border-left: 3px solid var(--sky);
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}
.timeline-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--sky);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  margin-left: -1.9rem;
  margin-bottom: .5rem;
}

.avatar-badge {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--sky-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--sky-dark);
}

/* Lesson content: visuals + interactive cards */
.lesson-content { font-size: 1rem; }

.lesson-visual { text-align: center; margin-bottom: 1.5rem; }
.lesson-visual-svg { max-width: 320px; width: 100%; height: auto; }
.visual-caption {
  font-size: .85rem;
  color: #6B7280;
  font-style: italic;
  margin-top: .5rem;
  margin-bottom: 0;
}

.lesson-section { margin-bottom: 1.75rem; }
.lesson-section:last-child { margin-bottom: 0; }
.section-head {
  color: var(--sky-dark);
  font-size: 1.05rem;
  margin-bottom: .7rem;
}
.hint-text {
  font-size: .72rem;
  font-weight: 500;
  color: #9CA3AF;
  text-transform: none;
  letter-spacing: 0;
  margin-left: .35rem;
}

.objective-list { list-style: none; padding-left: 0; margin-bottom: 0; }
.objective-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: .45rem;
}
.objective-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--grass);
  font-weight: 800;
}

.activity-card, .quiz-card {
  background: var(--sky-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}
.quiz-card p:first-of-type { margin-bottom: .5rem; }

.vocab-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.vocab-card {
  background: #fff;
  border: 2px solid var(--sky-light);
  border-radius: var(--radius-md);
  padding: .55rem 1rem;
  min-width: 150px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.vocab-card summary {
  font-weight: 700;
  color: var(--sky-dark);
  list-style: none;
}
.vocab-card summary::-webkit-details-marker { display: none; }
.vocab-card summary::before { content: "\1F0CF  "; font-size: .8rem; opacity: .6; }
.vocab-card[open] { background: var(--sky-light); border-color: var(--sky); }
.vocab-card p { margin: .5rem 0 0; font-size: .86rem; color: var(--ink); }

.quiz-reveal summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--sky-dark);
  margin-top: .4rem;
}
.quiz-reveal p { margin: .6rem 0 0; font-size: .92rem; }

/* Advanced tier: calmer, more grown-up presentation */
.tone-pro .section-head {
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .82rem;
  font-weight: 800;
}
.tone-pro .objective-list li::before { content: "\2014"; color: var(--sky-dark); font-weight: 700; }
.tone-pro .activity-card, .tone-pro .quiz-card { background: #F1F5F9; }
.tone-pro .vocab-card { border-color: #E2E8F0; }
.tone-pro .vocab-card summary { color: var(--ink); }
.tone-pro .vocab-card summary::before { content: ""; }
.tone-pro .vocab-card[open] { background: #F1F5F9; border-color: #CBD5E1; }
.tone-pro .quiz-reveal summary { color: var(--ink); }
.tone-pro .visual-caption { color: #64748B; }

/* "Did You Know" fact box + Real-World Connection callout */
.fact-box, .realworld-box {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}
.fact-box {
  background: #FFF8E1;
  border: 2px dashed var(--sun);
}
.realworld-box {
  background: #EDFBF3;
  border: 2px dashed var(--grass);
}
.fact-box .box-emoji, .realworld-box .box-emoji { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.fact-box p, .realworld-box p { margin: 0; }
.fact-box strong, .realworld-box strong { display: block; margin-bottom: .2rem; }
.tone-pro .fact-box, .tone-pro .realworld-box { background: #F1F5F9; border-style: solid; border-color: #CBD5E1; }

/* Second illustration: concept chip grid built from the lesson's vocabulary */
.illustration-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin: .75rem 0 0;
}
.concept-chip {
  background: #fff;
  border: 2px solid var(--sky-light);
  border-radius: var(--radius-md);
  padding: .6rem .9rem;
  text-align: center;
  min-width: 92px;
}
.concept-chip .chip-emoji { font-size: 1.7rem; display: block; margin-bottom: .25rem; }
.concept-chip .chip-label { font-size: .74rem; font-weight: 700; color: var(--sky-dark); }
.tone-pro .concept-chip { border-color: #E2E8F0; }
.tone-pro .concept-chip .chip-label { color: var(--ink); text-transform: uppercase; letter-spacing: .04em; font-size: .68rem; }

/* Multiple-choice quiz questions (lesson "Quiz Time" + full module exams) */
.mcq-block { display: flex; flex-direction: column; gap: 1.1rem; }
.mcq-question {
  background: #fff;
  border: 1px solid rgba(28,167,236,0.18);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}
.mcq-question .mcq-prompt { font-weight: 700; margin-bottom: .7rem; }
.mcq-options { display: flex; flex-direction: column; gap: .5rem; }
.mcq-option {
  display: block;
  width: 100%;
  text-align: left;
  background: #F8FBFF;
  border: 2px solid var(--sky-light);
  border-radius: 10px;
  padding: .55rem .85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.mcq-option:hover { border-color: var(--sky); }
.mcq-option.is-selected { border-color: var(--sky-dark); background: var(--sky-light); }
.mcq-option.is-correct { border-color: var(--grass); background: #E7F9EF; }
.mcq-option.is-incorrect { border-color: var(--coral); background: #FFEDED; }
.mcq-option:disabled { cursor: default; opacity: .9; }
.mcq-explain {
  display: none;
  margin: .7rem 0 0;
  padding: .6rem .8rem;
  border-radius: 8px;
  background: var(--sky-light);
  font-size: .88rem;
}
.mcq-question.is-answered .mcq-explain { display: block; }
.tone-pro .mcq-question { border-color: #E2E8F0; }
.tone-pro .mcq-option { background: #F8FAFC; border-color: #E2E8F0; }
.tone-pro .mcq-option.is-selected { border-color: #475569; background: #F1F5F9; }
.tone-pro .mcq-explain { background: #F1F5F9; }

/* Full module exam */
.exam-wrap { display: flex; flex-direction: column; gap: 1.1rem; }
.exam-progress-wrap { display: flex; align-items: center; gap: .7rem; margin-bottom: .25rem; }
.exam-progress-track {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: var(--sky-light);
  overflow: hidden;
}
.exam-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--sky), var(--grass)); border-radius: 999px; transition: width .2s ease; }
.exam-progress-label { font-size: .8rem; font-weight: 700; color: var(--sky-dark); white-space: nowrap; }
.exam-submit-row { text-align: center; margin-top: .5rem; }
.exam-result {
  display: none;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin-top: .5rem;
}
.exam-result.show { display: block; }
.exam-result.pass { background: #E7F9EF; border: 2px solid var(--grass); }
.exam-result.fail { background: #FFF4E6; border: 2px solid var(--sun); }
.exam-result .exam-score { font-family: "Baloo 2", sans-serif; font-size: 2.1rem; font-weight: 800; }
.exam-result-list { margin-top: .9rem; padding-left: 0; list-style: none; }
.exam-result-list li { padding: .35rem 0; border-top: 1px solid rgba(0,0,0,0.08); font-size: .88rem; }
.exam-result-list li:first-child { border-top: none; }
.exam-result-list .tag-correct { color: var(--grass); font-weight: 800; }
.exam-result-list .tag-incorrect { color: var(--coral); font-weight: 800; }
