/* ── FUNFACTS SECTION STYLES ───────────────────────────────── */
:root {
  --leaf-text: #16a34a;
  /* Tailwind green-600 approx */
  --leaf-dark: #064e3b;
  /* Tailwind green-950 approx */
  --leaf-white: #ffffff;
  --leaf-off-white: #f5f5f2;
  /* matches stone-50 approx */
  --leaf-muted: #6b7280;
  /* gray-500 */
}

.funfact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

/* ── LEFT PANEL (dark bg image overlay) ─────────────────── */
.left-panel {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=1200&q=80');
  background-size: cover;
  background-position: center;
  padding: 64px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 78, 59, 0.85);
  /* leaf-950 with opacity */
}

.left-content {
  position: relative;
  z-index: 2;
}

.label-funfact {
  font-family: 'Caveat', cursive;
  color: #4ade80;
  /* leaf-400 for contrast on dark */
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.headline-funfact {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.subtext-funfact {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 40px;
}

/* ── STATS GRID (top two) ────────────────────────────────── */
.stats-grid-funfact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.stat-item-funfact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-icon-funfact {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  color: #4ade80;
}

.stat-icon-funfact svg {
  width: 100%;
  height: 100%;
}

.stat-number-funfact {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  color: white;
  font-weight: 700;
  line-height: 1;
}

.stat-label-funfact {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}

/* ── RIGHT PANEL (image collage) ────────────────────────── */
.right-panel-funfact {
  background: white;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.africa-shape-wrapper {
  position: relative;
  width: 360px;
  height: 440px;
  margin: 32px auto;
}

/* Africa silhouette container (using pre-cut png) */
.africa-clip-funfact {
  width: 100%;
  height: 100%;
  overflow: visible;
  /* ensure badge or drop shadows are ok */
  position: relative;
}

.africa-clip-funfact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Quote badge */
.quote-badge-funfact {
  position: absolute;
  bottom: 40px;
  left: -40px;
  background: #16a34a;
  /* leaf-600 */
  color: white;
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  padding: 16px 24px;
  line-height: 1.4;
  max-width: 220px;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.25);
  animation: floatBadgeFunfact 4s ease-in-out infinite;
}

@keyframes floatBadgeFunfact {

  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

/* ── BOTTOM BAR ──────────────────────────────────────────── */
.bottom-bar-funfact {
  /* background: #fafaf9; stone-50 */
  background: #f5f5f4;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 56px;
  min-height: 120px;
  border-top: 1px solid #e7e5e4;
}

.bottom-stat-funfact {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 0;
  border-right: 1px solid #e7e5e4;
}

.bottom-stat-funfact:last-of-type {
  border-right: none;
}

.bottom-icon-funfact {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  color: #16a34a;
}

.bottom-icon-funfact svg {
  width: 100%;
  height: 100%;
}

.bottom-number-funfact {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1c1917;
  /* stone-900 */
  line-height: 1;
}

.bottom-label-funfact {
  font-size: 0.85rem;
  color: #57534e;
  /* stone-600 */
  margin-top: 4px;
  letter-spacing: 0.03em;
}

.bottom-quote-funfact {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding-left: 32px;
}

.green-tag-funfact {
  background: #16a34a;
  color: white;
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  padding: 16px 28px;
  line-height: 1.3;
  text-align: center;
  border-radius: 4px;
  max-width: 240px;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .africa-shape-wrapper {
    width: 300px;
    height: 380px;
  }

  .left-panel {
    padding: 48px 32px;
  }
}

@media (max-width: 768px) {
  .funfact-section {
    grid-template-columns: 1fr;
  }

  .right-panel-funfact {
    display: none;
  }

  .bottom-bar-funfact {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 32px;
    gap: 16px;
  }

  .bottom-stat-funfact {
    border-right: none;
    border-bottom: 1px solid #e7e5e4;
    padding: 20px 0;
    width: 100%;
  }

  .bottom-stat-funfact:last-of-type {
    border-bottom: none;
  }

  .bottom-quote-funfact {
    justify-content: flex-start;
    padding: 20px 0;
    padding-left: 0;
  }
}