/* ==========================================================================
   Belosy Africa core styles
   All custom CSS lives here. Never inline a <style> block in a section file.
   Design tokens first, then section styles appended below as you build.
   ========================================================================== */

:root {
  /* Brand palette, sampled from the live Elementor kit. */
  --fch-ink:     #0F172A;   /* headings */
  --fch-green:   #153E35;   /* primary dark green, body text on light */
  --fch-orange:  #FF7A59;   /* CTA */
  --fch-paper:   #FFFFFF;
  --fch-bg:      #EDFBE2;   /* light green page background */
  --fch-muted:   #5C6470;
  --fch-line:    #E3E6EA;

  --fch-font-head: "Poppins", sans-serif;
  --fch-font-body: "Inter", sans-serif;

  --fch-wrap: 1200px;
  --fch-radius: 12px;
  --fch-section-pad: clamp(40px, 6vw, 72px);
}

/* ==========================================================================
   Posts grid  [fch_posts]
   ========================================================================== */

.fch-posts {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
  grid-template-columns: repeat(var(--fch-cols, 3), minmax(0, 1fr));
  margin: 0;
}
.fch-posts--cols-1 { --fch-cols: 1; }
.fch-posts--cols-2 { --fch-cols: 2; }
.fch-posts--cols-3 { --fch-cols: 3; }
.fch-posts--cols-4 { --fch-cols: 4; }

.fch-post {
  display: flex;
  flex-direction: column;
  background: var(--fch-paper);
  border-radius: var(--fch-radius);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.fch-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.fch-post__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--fch-bg);
  overflow: hidden;
}
.fch-post__media img,
.fch-post__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.fch-post:hover .fch-post__media img { transform: scale(1.04); }
.fch-post__placeholder {
  background: linear-gradient(135deg, var(--fch-green), #2f6b5a);
}

.fch-post__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(18px, 2.4vw, 26px);
  font-family: var(--fch-font-body);
}

.fch-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  font-size: 13px;
  color: var(--fch-muted);
  margin-bottom: 10px;
}
.fch-post__cat {
  color: var(--fch-orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
}
.fch-post__cat:hover { text-decoration: underline; }

.fch-post__title {
  font-family: var(--fch-font-head);
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
}
.fch-post__title a {
  color: var(--fch-ink);
  text-decoration: none;
}
.fch-post__title a:hover { color: var(--fch-green); }

.fch-post__excerpt {
  color: var(--fch-green);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 18px;
}

.fch-post__more {
  margin-top: auto;
  align-self: flex-start;
  color: var(--fch-green);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 2px solid var(--fch-orange);
  padding-bottom: 2px;
}
.fch-post__more:hover { color: var(--fch-orange); }

.fch-posts-empty {
  text-align: center;
  color: var(--fch-muted);
  padding: var(--fch-section-pad) 0;
}

/* Pagination */
.fch-posts-pagination { margin-top: clamp(28px, 4vw, 44px); }
.fch-posts-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.fch-posts-pagination .page-numbers {
  display: inline-block;
  min-width: 42px;
  padding: 10px 14px;
  text-align: center;
  border-radius: 6px;
  background: var(--fch-paper);
  color: var(--fch-green);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--fch-line);
}
.fch-posts-pagination .page-numbers.current,
.fch-posts-pagination .page-numbers:hover {
  background: var(--fch-green);
  color: #fff;
  border-color: var(--fch-green);
}

/* Responsive */
@media (max-width: 1024px) {
  .fch-posts--cols-4 { --fch-cols: 2; }
  .fch-posts--cols-3 { --fch-cols: 2; }
}
@media (max-width: 640px) {
  .fch-posts { --fch-cols: 1 !important; }
}

/* Section styles get appended below this line as sections are built. */
