/* CBC Edu Kenya - Homepage CSS - extracted 2026-05-29 from index.php inline blocks */

/* ── Homepage-specific overrides ────────────────────────── */
:root {
  --ink:    #0F172A;
  --blue:   #1E40AF;
  --green:  #059669;
  --amber:  #F59E0B;
  --purple: #7C3AED;
  --slate:  #64748B;
  --light:  #F8FAFC;
  --border: #E2E8F0;
}

/* Hero */
.hp-hero {
  position: relative;
  padding: 110px 20px 130px;
  overflow: hidden;
  isolation: isolate;
  background: #053a20; /* fallback before image loads */
  min-height: 540px;
}
/* Full-bleed SHARP photo backdrop — end-to-end across the hero width */
.hp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* mobile-first: small WebP, JPEG fallback */
  background-image: url('/assets/images/cbe-classroom-hero-mobile.jpg');
  background-image: -webkit-image-set(
    url('/assets/images/cbe-classroom-hero-mobile.webp') type('image/webp'),
    url('/assets/images/cbe-classroom-hero-mobile.jpg') type('image/jpeg')
  );
  background-image: image-set(
    url('/assets/images/cbe-classroom-hero-mobile.webp') type('image/webp'),
    url('/assets/images/cbe-classroom-hero-mobile.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center 35%;
  filter: saturate(1.10) contrast(1.04);
  z-index: 0;
}
@media (min-width: 801px) {
  .hp-hero::before {
    background-image: url('/assets/images/cbe-classroom-hero-desktop.jpg');
    background-image: -webkit-image-set(
      url('/assets/images/cbe-classroom-hero-tablet.webp') type('image/webp'),
      url('/assets/images/cbe-classroom-hero-desktop.jpg') type('image/jpeg')
    );
    background-image: image-set(
      url('/assets/images/cbe-classroom-hero-tablet.webp') type('image/webp'),
      url('/assets/images/cbe-classroom-hero-desktop.jpg') type('image/jpeg')
    );
  }
}
@media (min-width: 1281px) {
  .hp-hero::before {
    background-image: url('/assets/images/cbe-classroom-hero-desktop.jpg');
    background-image: -webkit-image-set(
      url('/assets/images/cbe-classroom-hero-desktop.webp') type('image/webp'),
      url('/assets/images/cbe-classroom-hero-desktop.jpg') type('image/jpeg')
    );
    background-image: image-set(
      url('/assets/images/cbe-classroom-hero-desktop.webp') type('image/webp'),
      url('/assets/images/cbe-classroom-hero-desktop.jpg') type('image/jpeg')
    );
  }
}
/* Multi-stop overlay: dark on the LEFT (text legibility), translucent on the RIGHT (photo visible) */
.hp-hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg,
      rgba(3,40,21,.92) 0%,
      rgba(5,58,32,.78) 30%,
      rgba(7,92,51,.42) 55%,
      rgba(10,110,63,.18) 80%,
      rgba(10,110,63,.05) 100%),
    linear-gradient(to bottom,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,.18) 100%);
  z-index: 0;
}
.hp-hero__flag {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 2;
  background: linear-gradient(90deg, #000 25%, #B91C1C 25%, #B91C1C 50%, #059669 50%, #059669 75%, #fff 75%);
}
.hp-hero__dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .08;
  background-image:
    radial-gradient(circle at 20% 50%, #e9c95b 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, #fff 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px;
  pointer-events: none;
}
/* Soft fade from hero into the page below */
.hp-hero::before, .hp-hero::after { pointer-events: none; }
.hp-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  display: block; /* single column — image is the whole-width visual */
}
.hp-hero__left { max-width: 640px; } /* text constrained on the left so the right side of the photo (classroom) shows */
.hp-hero__left  { flex: 1 1 480px; }
.hp-hero__right { flex: 0 0 460px; position: relative; }

/* SHARP focal photo — same image as the blurred backdrop, but crisp here */
.hp-hero__photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow:
    0 40px 70px rgba(0,0,0,.45),
    0 14px 28px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,255,255,.10),
    0 0 0 6px rgba(255,255,255,.04);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1.5deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.hp-hero__photo:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.hp-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-hero__photo::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(to top, rgba(5,58,32,.55) 0%, rgba(5,58,32,0) 100%);
  pointer-events: none;
}

/* Subtle gold ring */
.hp-hero__photo-ring {
  position: absolute; inset: -12px;
  border: 1.5px solid rgba(201,162,39,.35);
  border-radius: 26px;
  pointer-events: none;
  z-index: 0;
}

/* Floating glass info card overlapping the photo */
.hp-hero__photo-card {
  position: absolute;
  bottom: -24px; left: -28px;
  background: rgba(255,255,255,.96);
  color: #053a20;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 18px 36px rgba(0,0,0,.30);
  backdrop-filter: blur(10px);
  z-index: 3;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(201,162,39,.45);
}
.hp-hero__photo-card__flag {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg,#0a6e3f,#075c33);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .82rem; letter-spacing: 1px;
  box-shadow: inset 0 0 0 2px rgba(201,162,39,.55);
}
.hp-hero__photo-card__text { display: flex; flex-direction: column; line-height: 1.2; }
.hp-hero__photo-card__text strong { font-size: .86rem; color: #053a20; }
.hp-hero__photo-card__text span { font-size: .72rem; color: #6b7280; }

/* Gold tag pill floating top-right */
.hp-hero__photo-tag {
  position: absolute;
  top: 14px; right: 14px;
  background: linear-gradient(135deg,#c9a227,#e9c95b);
  color: #053a20;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 6px 18px rgba(201,162,39,.50);
  z-index: 3;
  text-transform: uppercase;
}

/* Caption below the photo */
.hp-hero__photo-caption {
  margin: 36px 0 0;
  font-size: .82rem;
  color: rgba(255,255,255,.78);
  text-align: center;
  font-style: italic;
  line-height: 1.4;
}

/* Soft bottom fade so hero blends into the next section */
.hp-hero__fade-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.10) 60%, #ffffff 100%);
  z-index: 2;
  pointer-events: none;
}

/* Floating glass info card — bottom-right of the hero, sits over the photo */
.hp-hero__floating-card {
  position: absolute;
  bottom: 60px; right: 36px;
  z-index: 4;
  background: rgba(255,255,255,.94);
  color: #053a20;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 18px 36px rgba(0,0,0,.30), 0 0 0 1px rgba(201,162,39,.50);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 12px;
  max-width: 360px;
}
.hp-hero__floating-card__flag {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg,#0a6e3f,#075c33);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .82rem; letter-spacing: 1px;
  box-shadow: inset 0 0 0 2px rgba(201,162,39,.55);
  flex-shrink: 0;
}
.hp-hero__floating-card__text { display: flex; flex-direction: column; line-height: 1.25; }
.hp-hero__floating-card__text strong { font-size: .92rem; color: #053a20; }
.hp-hero__floating-card__text span { font-size: .76rem; color: #6b7280; margin-top: 2px; }

/* Pinned gold tag — top-right of the hero, sits over the photo */
.hp-hero__floating-tag {
  position: absolute;
  top: 36px; right: 36px;
  z-index: 4;
  background: linear-gradient(135deg,#c9a227,#e9c95b);
  color: #053a20;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  box-shadow: 0 8px 22px rgba(201,162,39,.50);
  text-transform: uppercase;
}

@media (max-width: 880px) {
  /* On mobile, the photo background takes a wider gradient so text is fully legible */
  .hp-hero::after {
    background:
      linear-gradient(180deg, rgba(3,40,21,.88) 0%, rgba(5,58,32,.82) 60%, rgba(10,30,20,.92) 100%);
  }
  .hp-hero__left { max-width: 100%; }
  .hp-hero__floating-card { display: none; }
  .hp-hero__floating-tag { top: 18px; right: 18px; padding: 6px 12px; font-size: .68rem; }
}

.hp-hero__badge {
  display: inline-block;
  background: rgba(5,150,105,.18);
  border: 1px solid rgba(5,150,105,.3);
  border-radius: 20px;
  padding: 5px 16px;
  margin-bottom: 20px;
  color: #6EE7B7;
  font-size: 13px;
  font-weight: 600;
}
.hp-hero h1 {
  color: #fff;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.hp-hero__gradient-text {
  background: linear-gradient(135deg, #60A5FA, #34D399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hp-hero p {
  color: rgba(255,255,255,.88);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 500px;
  text-shadow: 0 1px 2px rgba(0,0,0,.30);
}
.hp-search {
  display: flex;
  max-width: 500px;
  margin-bottom: 28px;
}
.hp-search input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 10px 0 0 10px;
  font-size: 14px;
  background: rgba(255,255,255,.95);
  color: #0F172A;
  outline: none;
}
.hp-search button {
  background: var(--amber);
  border: none;
  border-radius: 0 10px 10px 0;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 14px;
  color: #0F172A;
  cursor: pointer;
  white-space: nowrap;
}
.hp-hero__bullets {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hp-hero__bullet {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #CBD5E1;
  font-size: 12px;
  font-weight: 500;
}
.hp-hero__bullet::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34D399;
  flex-shrink: 0;
}

/* Stats card */
.hp-stat-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(10px);
}
.hp-stat-card__price {
  text-align: center;
  margin-bottom: 22px;
}
.hp-stat-card__price strong {
  display: block;
  color: var(--amber);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}
.hp-stat-card__price span {
  color: #94A3B8;
  font-size: 13px;
}
.hp-stat-card__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hp-stat-card__row:last-of-type { border-bottom: none; }
.hp-stat-card__row span:first-child { color: #94A3B8; font-size: 13px; }
.hp-stat-card__row span:last-child  { color: #fff; font-size: 13px; font-weight: 700; }
.hp-stat-card__cta {
  width: 100%;
  margin-top: 20px;
  background: linear-gradient(135deg, #059669, #10B981);
  border: none;
  border-radius: 10px;
  padding: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5,150,105,.35);
  transition: opacity .15s;
}
.hp-stat-card__cta:hover { opacity: .9; }
.hp-stat-card__note { text-align: center; margin-top: 10px; color: #475569; font-size: 11px; }

/* Section wrappers */
.hp-section { padding: 64px 20px; }
.hp-section--light { background: var(--light); }
.hp-section--white { background: #fff; }
.hp-section__head { text-align: center; margin-bottom: 40px; }
.hp-section__head h2 { font-size: 32px; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.hp-section__head p  { color: var(--slate); font-size: 16px; margin: 0; }
.hp-section__inner  { max-width: 1200px; margin: 0 auto; }

/* Grade cards */
.hp-grades { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.hp-grade-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.hp-grade-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.1);
}
.hp-grade-card__tag {
  position: absolute;
  top: 12px; right: 12px;
  background: #DBEAFE;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.hp-grade-card__icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.hp-grade-card__level {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.hp-grade-card__grades {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}
.hp-grade-card__desc {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 14px;
  line-height: 1.5;
}
.hp-grade-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hp-grade-card__subjects { font-size: 12px; font-weight: 600; }
.hp-grade-card__arrow { font-size: 18px; }

/* Feature cards */
.hp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.hp-feature-card {
  text-align: center;
  padding: 26px 20px;
  border-radius: 14px;
  border: 1px solid #F1F5F9;
  background: #FAFBFC;
  transition: border-color .2s, box-shadow .2s;
}
.hp-feature-card:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(30,64,175,.08); }
.hp-feature-card__icon { font-size: 36px; margin-bottom: 12px; }
.hp-feature-card__title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.hp-feature-card__desc  { font-size: 12px; color: var(--slate); line-height: 1.5; }

/* Holiday banner */
.hp-holiday {
  padding: 0 20px 50px;
}
.hp-holiday__inner { max-width: 1200px; margin: 0 auto; }
.hp-holiday__banner {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border-radius: 20px;
  padding: 40px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.hp-holiday__live { font-size: 12px; font-weight: 700; color: rgba(0,0,0,.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.hp-holiday__title { font-size: 28px; font-weight: 800; color: #0F172A; margin: 0 0 6px; }
.hp-holiday__sub   { font-size: 15px; color: rgba(0,0,0,.6); margin: 0; }
.hp-holiday__btn {
  background: #0F172A;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  color: var(--amber);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: opacity .15s;
}
.hp-holiday__btn:hover { opacity: .85; }

/* AI Section */
.hp-ai-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.hp-ai-label { display: inline-block; background: #EDE9FE; color: var(--purple); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.hp-ai-head h2 { font-size: 28px; font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.hp-ai-head p  { color: var(--slate); font-size: 14px; margin: 0; }
.hp-ai-head__all {
  background: none;
  border: 1px solid var(--purple);
  color: var(--purple);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.hp-ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.hp-ai-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  transition: border-color .2s;
  text-decoration: none;
  display: block;
}
.hp-ai-card:hover { border-color: var(--purple); }
.hp-ai-card__cat  { font-size: 10px; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.hp-ai-card__title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 14px; }
.hp-ai-card__foot { display: flex; justify-content: space-between; align-items: center; }
.hp-ai-card__reads { font-size: 12px; color: var(--slate); }
.hp-ai-card__read  { font-size: 12px; color: var(--purple); font-weight: 600; }

.hp-ai-courses {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.hp-ai-course {
  border-radius: 16px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 200px;
}
.hp-ai-course--adult {
  background: linear-gradient(135deg, #4C1D95, #7C3AED);
}
.hp-ai-course--kids {
  background: linear-gradient(135deg, #F59E0B, #EC4899 55%, #8B5CF6);
}
.hp-ai-course--somo {
  background: linear-gradient(135deg, #0F172A, #1E40AF 55%, #7C3AED);
  position: relative;
  overflow: hidden;
}
.hp-ai-course--somo::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 85% 15%, rgba(245,158,11,.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(236,72,153,.3), transparent 50%);
}
.hp-ai-course--somo > * { position: relative; z-index: 1; }
.hp-ai-course--somo .hp-ai-course__tag {
  color: #FBBF24;
}
.hp-ai-course__btn--somo {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: #0F172A;
}
.hp-ai-course__tag {
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px;
  color: rgba(255,255,255,.75);
  margin-bottom: 2px;
}
.hp-ai-course h3 { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 4px; line-height: 1.3; }
.hp-ai-course p  { font-size: 13px; color: rgba(255,255,255,.82); margin: 0; line-height: 1.45; }
.hp-ai-course__btn {
  background: var(--amber);
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 14px;
  color: #0F172A;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  align-self: flex-start;
  white-space: nowrap;
  transition: opacity .15s, transform .15s;
}
.hp-ai-course__btn:hover { opacity: .92; transform: translateY(-1px); }
.hp-ai-course__btn--kids {
  background: #fff; color: #be185d;
}
@media (max-width: 1024px) {
  .hp-ai-courses { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 768px) {
  .hp-ai-courses { grid-template-columns: 1fr; gap: 14px; }
  .hp-ai-course { min-height: auto; padding: 24px; }
}

/* Ministry banner */
.hp-ministry {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 16px;
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.hp-ministry__label { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.hp-ministry h3 { font-size: 24px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.hp-ministry p  { font-size: 14px; color: var(--slate); margin: 0; }
.hp-ministry__btn {
  background: var(--green);
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: opacity .15s;
}
.hp-ministry__btn:hover { opacity: .88; }

/* Testimonials */
.hp-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.hp-testi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.hp-testi-card__stars { display: flex; gap: 3px; margin-bottom: 14px; }
.hp-testi-card__stars span { color: var(--amber); font-size: 16px; }
.hp-testi-card__text { color: #334155; font-size: 14px; line-height: 1.7; margin: 0 0 16px; font-style: italic; }
.hp-testi-card__name { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.hp-testi-card__role { font-size: 12px; color: var(--slate); }

/* Payment strip */
.hp-payments { padding: 40px 20px; background: #fff; }
.hp-payments__inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.hp-payments__label { font-size: 12px; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.hp-payments__row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; align-items: center; }
.hp-payment-badge { padding: 8px 22px; border-radius: 8px; font-size: 14px; font-weight: 700; }

/* Products grid */
.hp-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.hp-product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.hp-product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.hp-product-card__grade { font-size: 10px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.hp-product-card__title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.4; }
.hp-product-card__type  { font-size: 11px; color: var(--slate); margin-bottom: 14px; }
.hp-product-card__foot  { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.hp-product-card__price { font-size: 18px; font-weight: 800; color: var(--green); }
.hp-product-card__actions { display: flex; gap: 6px; align-items: center; }
.hp-product-card__btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.hp-product-card__btn:hover { background: #1D4ED8; }

/* Section label pill */
.hp-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .hp-hero h1 { font-size: 30px; }
  .hp-hero { padding: 50px 20px 60px; }
  .hp-hero__inner { gap: 36px; }
  .hp-hero__right { flex: 1 1 100%; }
  .hp-holiday__banner { padding: 28px 24px; }
  .hp-holiday__title { font-size: 22px; }
  .hp-ministry { padding: 28px 24px; }
  .hp-section__head h2 { font-size: 26px; }
  .hp-ai-course { padding: 24px; }
}

/* Stats bar */
.hp-stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}
.hp-stats-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.hp-stats-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 28px;
  text-align: center;
}
.hp-stats-bar__item strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
}
.hp-stats-bar__item span {
  font-size: .72rem;
  color: var(--slate);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 2px;
}
.hp-stats-bar__div {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .hp-stats-bar__item { padding: 6px 14px; }
  .hp-stats-bar__div  { display: none; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   STICKY CATEGORY NAV BAR
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.cat-nav {
  position: sticky;
  top: 64px; /* sits just below the fixed site header */
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cat-nav__scroll {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-nav__scroll::-webkit-scrollbar { display: none; }

/* Individual pill — plain link (no dropdown) */
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  font-family: inherit;
  flex-shrink: 0;
}
.cat-pill:hover,
.cat-pill-wrap.is-open > .cat-pill {
  color: #1E40AF;
  border-bottom-color: #1E40AF;
}
.cat-pill--all {
  font-weight: 700;
  color: #1E40AF;
}
.cat-pill--free {
  color: #059669;
}
.cat-pill--free:hover { color: #047857; border-bottom-color: #059669; }

.cat-pill__chevron {
  font-size: 10px;
  transition: transform .2s;
  display: inline-block;
}
.cat-pill-wrap.is-open .cat-pill__chevron { transform: rotate(180deg); }

/* Wrapper for pills that have dropdowns */
.cat-pill-wrap {
  position: relative;
  flex-shrink: 0;
}

/* Dropdown panel */
.cat-drop {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  z-index: 200;
  padding: 20px;
  animation: dropFadeIn .15s ease;
}
.cat-pill-wrap.is-open .cat-drop { display: block; }

/* Multi-column layout inside dropdown */
.cat-drop__cols {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.cat-drop__col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}
.cat-drop__heading {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94A3B8;
  padding: 0 10px 6px;
  margin-bottom: 2px;
  border-bottom: 1px solid #F1F5F9;
}
.cat-drop a {
  display: block;
  padding: 7px 10px;
  font-size: 13px;
  color: #334155;
  text-decoration: none;
  border-radius: 7px;
  transition: background .12s, color .12s;
}
.cat-drop a:hover {
  background: #EFF6FF;
  color: #1E40AF;
}
.cat-drop a.cat-drop__see-all {
  color: #1E40AF;
  font-weight: 600;
  margin-top: 4px;
}
.cat-drop a.cat-drop__see-all:hover { background: #DBEAFE; }

/* Divider line inside dropdown */
.cat-drop__divider {
  height: 1px;
  background: #F1F5F9;
  margin: 10px 0;
}

@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile: align last dropdown to the right so it doesn't overflow */
@media (max-width: 640px) {
  .cat-drop { left: auto; right: 0; }
  .cat-pill { padding: 12px 12px; font-size: 12px; }
}

/* Workstream B 2026-05-28: clickable stat items */
.hp-stats-bar__item--link { text-decoration:none; color:inherit; cursor:pointer; border-radius:8px; transition:background .15s ease, transform .15s ease; }
.hp-stats-bar__item--link:hover { background:rgba(30,64,175,.06); transform:translateY(-1px); }
.hp-stats-bar__item--link:hover strong { text-decoration:underline; text-underline-offset:3px; }
.hp-stats-bar__item--link:focus-visible { outline:2px solid #1E40AF; outline-offset:2px; }

/* --- block 2: footer/banner overrides --- */
.hp-hot {
  padding: 56px 20px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 50%, #ECFDF5 100%);
  position: relative;
  overflow: hidden;
}
.hp-hot__inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.hp-hot__head { text-align: center; margin-bottom: 32px; }
.hp-hot__flag {
  display: inline-block;
  background: #DC2626; color: #fff;
  padding: 6px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.5px;
  margin-bottom: 14px; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(220,38,38,0.35);
}
.hp-hot__head h2 {
  font-size: 34px; font-weight: 800; color: #0a6e3f;
  margin: 0 0 10px; line-height: 1.15;
}
.hp-hot__head p {
  color: #6B7280; font-size: 16px; margin: 0;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.hp-hot__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 12px 32px rgba(10,110,63,0.08);
  border: 2px solid #d8e8df;
}
.hp-hot__copy h3 {
  font-size: 22px; font-weight: 800; color: #0a6e3f; margin: 0 0 12px; line-height: 1.25;
}
.hp-hot__copy p { color: #1F2937; font-size: 15px; line-height: 1.7; margin: 0 0 16px; }
.hp-hot__features {
  list-style: none; padding: 0; margin: 0 0 22px;
}
.hp-hot__features li {
  padding: 6px 0 6px 28px; position: relative;
  color: #1F2937; font-size: 14px; line-height: 1.5;
}
.hp-hot__features li::before {
  content: '✓'; position: absolute; left: 0; top: 6px;
  background: #0a6e3f; color: #fff;
  width: 20px; height: 20px; border-radius: 50%;
  text-align: center; font-size: 12px; font-weight: 800;
  line-height: 20px;
}
.hp-hot__price-row {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin: 0 0 8px;
}
.hp-hot__price-was {
  font-size: 22px; font-weight: 700; color: #94A3B8;
  text-decoration: line-through;
  text-decoration-color: #DC2626;
  text-decoration-thickness: 2px;
}
.hp-hot__price {
  font-size: 38px; font-weight: 800; color: #0a6e3f;
}
.hp-hot__price-badge {
  display: inline-block;
  background: #DC2626; color: #fff;
  padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
  text-transform: uppercase;
  align-self: center;
}
.hp-hot__price-note { color: #6B7280; font-size: 13px; margin: 0 0 18px; line-height: 1.5; }
.hp-hot__cta {
  display: inline-block;
  background: #0a6e3f; color: #fff;
  padding: 14px 32px; border-radius: 10px;
  text-decoration: none; font-weight: 700; font-size: 16px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(10,110,63,0.3);
}
.hp-hot__cta:hover { background: #075c33; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(10,110,63,0.4); }
.hp-hot__cta-secondary {
  display: inline-block; margin-left: 12px;
  color: #0a6e3f; text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 14px 0;
}
.hp-hot__cta-secondary:hover { text-decoration: underline; }
.hp-hot__visual {
  background: linear-gradient(135deg,#0a6e3f 0%,#0d8b4f 100%);
  border-radius: 14px;
  padding: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hp-hot__visual::after {
  content: 'CBCEDUKENYA.COM';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 38px; font-weight: 900;
  color: rgba(255,255,255,0.06);
  white-space: nowrap;
  letter-spacing: 2px;
  pointer-events: none;
}
.hp-hot__doc-icon { font-size: 38px; margin-bottom: 14px; }
.hp-hot__doc-title { font-size: 20px; font-weight: 800; margin: 0 0 6px; line-height: 1.3; }
.hp-hot__doc-meta { font-size: 13px; opacity: 0.9; margin: 0 0 18px; }
.hp-hot__doc-bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.hp-hot__doc-bullets li {
  font-size: 13px; padding-left: 18px; position: relative;
}
.hp-hot__doc-bullets li::before {
  content: '📄'; position: absolute; left: 0;
}
@media (max-width: 768px) {
  .hp-hot__grid { grid-template-columns: 1fr; padding: 22px; }
  .hp-hot__head h2 { font-size: 26px; }
  .hp-hot__copy h3 { font-size: 19px; }
  .hp-hot__price { font-size: 32px; }
  .hp-hot__cta-secondary { display: block; margin: 8px 0 0; }
}

/* Homepage audit 2026-05-28: grade-chip grid for the HOT NOW section */
.hp-hot__grade-chips {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.hp-hot__grade-chips li { margin: 0; padding: 0; }
.hp-hot__grade-chips a {
  display: block; text-align: center;
  background: rgba(255,255,255,0.12); color: #fff;
  padding: 10px 6px; border-radius: 8px;
  text-decoration: none; font-weight: 700; font-size: 13px;
  transition: background .15s ease, transform .15s ease;
  border: 1px solid rgba(255,255,255,0.18);
}
.hp-hot__grade-chips a:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .hp-hot__grade-chips { grid-template-columns: repeat(3, 1fr); }
}
