/* Hope and Healing Africa – smart design system (adopted from previous theme) */

:root {
    --primary: #2F5D62;
    --accent: #A7C4BC;
    --text-dark: #1F2937;
    --text-light: #4B5563;
    --text-rwanda: #6B7280;
    --bg-light: #F9FAFB;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --ruhuka-orange: #E67E22;
    --umutima-green: #2986CC;
    --bodyFont: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: var(--bodyFont); font-size: 16px; color: var(--text-dark); line-height: 1.6; -webkit-font-smoothing: antialiased; background: var(--white); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.wrap { max-width: 1150px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ========== HEADER (4 layers) ========== */
.site-header { }

/* 1. Top bar – primary teal, date + time pill left, social icons right */
.top-bar { background: var(--primary); color: #fff; padding: 10px 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-left { display: flex; align-items: center; gap: 10px; }
.top-date { font-size: 14px; }
.top-time-pill { background: rgba(255,255,255,0.2); color: #fff; padding: 4px 10px; border-radius: 50px; font-size: 13px; font-weight: 500; }
.top-social { display: flex; align-items: center; gap: 6px; }
.social-icon { width: 28px; height: 28px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 12px; font-weight: 600; }
.social-fb { background: #1877f2; }
.social-x { background: #000; }
.social-in { background: #0a66c2; }
.social-ig { background: linear-gradient(135deg, #f58529, #dd2a7b); font-size: 14px; }
.social-yt { background: #ff0000; }
.social-pin { background: #bd081c; }
.social-globe { background: var(--umutima-green); font-size: 14px; }

/* 2. Middle header – ToT banner as img (crisp) */
.logo-row { position: relative; background-color: #F0FDF4; border-bottom: 1px solid #e2e8f0; }
/* Small screens: fit image height only */
.logo-row-banner .logo-row-link { display: block; line-height: 0; }
.logo-row-banner-img { display: block; width: 100%; height: auto; vertical-align: top; }
/* Big screens: keep taller min-height so banner is clearly visible */
@media (min-width: 768px) {
    .logo-row-banner { min-height: 165px; }
    .logo-row-banner-img { min-height: 165px; object-fit: contain; object-position: center; }
}
.logo-row-link { position: absolute; inset: 0; z-index: 1; }
.logo-row-banner .logo-row-link { position: static; }
.logo-row-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand-slogan { display: flex; flex-direction: column; gap: 2px; }
.brand-line1 { font-weight: 800; font-size: 22px; color: #111; display: block; }
.brand-line2 { font-size: 14px; color: #4b5563; display: block; }
.logo-block { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-img { max-height: 72px; width: auto; display: block; }
.logo-text { font-weight: 700; font-size: 1.1rem; }
.logo-green { color: #15803d; }
.logo-blue { color: #2563eb; }
.tot-banner { max-width: 520px; background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%); border-radius: 10px; padding: 16px 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.tot-banner .tot-title { color: #166534; font-size: 1.1rem; margin: 0; flex: 0 0 auto; }
.tot-banner .tot-desc { color: #333; font-size: 13px; line-height: 1.4; margin: 0; flex: 1 1 200px; }
.btn-join { background: #166534; color: #fff; padding: 10px 20px; border-radius: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35); flex-shrink: 0; }
.btn-join:hover { background: #15803d; }

/* 3. Nav bar – primary teal, Home POSTS BOOKING left, search + bell right */
.nav-bar { background: var(--primary); padding: 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.nav-link { color: #fff; text-decoration: none; font-weight: 500; }
.nav-link:hover { text-decoration: underline; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-icon { color: #fff; text-decoration: none; font-size: 1.1rem; }

/* 4. Ticker – white, primary "Latest Post" tag, scrolling items with arrow */
.ticker-bar { background: var(--white); padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
.ticker-inner { display: flex; align-items: center; gap: 16px; min-height: 36px; }
.ticker-tag { background: var(--primary); color: #fff; padding: 6px 12px; border-radius: var(--radius); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.ticker-scroll-wrap { flex: 1; min-width: 0; overflow: hidden; }
.ticker-scroll { display: inline-flex; align-items: center; gap: 16px; animation: ticker-move 35s linear infinite; white-space: nowrap; }
.ticker-scroll:hover { animation-play-state: paused; }
.ticker-item { color: var(--primary); text-decoration: none; font-size: 14px; flex-shrink: 0; }
.ticker-item:hover { text-decoration: underline; }
.ticker-empty { font-size: 14px; color: var(--text-light); }
@keyframes ticker-move { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-scroll { animation: none; } }

/* Main */
.main { min-height: 50vh; }

/* Hero – improved landing hero */
.hero { min-height: 300px; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; border-radius: 0 0 24px 24px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
@media (min-width: 768px) { .hero { min-height: 420px; } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(22,101,52,0.75) 0%, rgba(30, 41, 59, 0.65) 100%); }
.hero-content { position: relative; z-index: 1; color: #fff; padding: 48px 0; max-width: 36rem; }
.hero-content h1 { margin: 0 0 8px 0; font-size: 1.75rem; font-weight: 800; letter-spacing: 0.03em; text-shadow: 0 2px 20px rgba(0,0,0,0.4); color: #fff; line-height: 1.2; }
@media (min-width: 768px) { .hero-content h1 { font-size: 2.25rem; } }
.hero-tagline { margin: 0 0 10px 0; font-weight: 700; font-size: 1rem; }
.hero-tagline .orange { color: var(--ruhuka-orange); }
.hero-slogan { margin: 0 0 6px 0; font-size: 0.95rem; opacity: 0.95; color: #f3f4f6; }
.hero-slogan-rw { margin: 0 0 20px 0; font-size: 0.875rem; opacity: 0.9; color: #cbd5e1; font-style: italic; }
.hero-btns { margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-btns .btn { width: auto; padding: 16px 32px; border-radius: 50px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: all 0.3s ease; }
.hero-btns .btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff !important; border: 2px solid var(--primary); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.btn-primary:hover { background: #23474b; border-color: #23474b; }
.btn-outline { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,0.9); }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.btn-white { background: #fff; color: var(--primary) !important; padding: 16px 36px; border-radius: 50px; text-decoration: none; font-weight: 700; display: inline-block; border: 2px solid #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: all 0.3s ease; }
.btn-white:hover { background: rgba(255,255,255,0.95); color: var(--primary) !important; transform: translateY(-2px); }
.btn-outline-dark { display: inline-block; padding: 12px 24px; border-radius: 50px; font-weight: 700; color: var(--primary); border: 2px solid var(--primary); background: transparent; text-decoration: none; transition: all 0.3s ease; }
.btn-outline-dark:hover { background: var(--primary); color: #fff !important; }

/* Blocks – improved spacing and section titles */
.block { padding: 48px 0; }
@media (max-width: 768px) { .block { padding: 36px 0; } }
.block-white { background: #fff; }
.block-gray { background: #f8faf8; }
.block-green { background: linear-gradient(180deg, #166534 0%, #14532d 100%); color: #fff; text-align: center; }
.block-green .wrap { max-width: 640px; }
.block-green h2 { margin: 0 0 14px 0; color: #fff; font-size: 1.5rem; font-weight: 700; }
.block-green p { margin: 0 0 20px 0; opacity: 0.95; font-size: 1rem; line-height: 1.6; }
.block-green .btn { margin-top: 4px; }
.block-light { background: #ecfdf5; }
.block h2 { margin: 0 0 12px 0; font-size: 1.6rem; font-weight: 700; color: #166534; padding-bottom: 10px; border-bottom: 3px solid var(--accent); display: inline-block; }
.block h3 { margin: 20px 0 8px 0; font-size: 1.125rem; font-weight: 600; color: #166534; }
.block h3:first-child { margin-top: 0; }
.block p { margin: 0 0 12px 0; line-height: 1.65; }
.block-intro { margin: 0; color: #6b7280; font-size: 1.05rem; }
.block-actions { margin: 28px 0 0 0; text-align: center; }
/* Anchor scroll offset so fixed header doesn’t cover section titles */
section[id] { scroll-margin-top: 1rem; }
.small { font-size: 0.875rem; color: #6b7280; line-height: 1.5; }
.mission { max-width: 680px; margin: 0 auto; padding: 24px 24px 24px 20px; background: #ecfdf5; border-left: 4px solid #166534; border-radius: 0 8px 8px 0; }
.mission p { margin: 0 0 12px 0; }
.mission p:last-child { margin: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
@media (max-width: 640px) { .cards { gap: 20px; margin-top: 20px; } }
.card { background: var(--white); padding: 32px 28px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #e2e8f0; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { box-shadow: 0 15px 30px -5px rgba(0,0,0,0.08); transform: translateY(-2px); border-color: var(--accent); }
/* Service card icon box (smart-wrapper icon-box) */
.card:not(.card-post) .card-icon { width: 55px; height: 55px; background: #E0F2F1; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.75rem; line-height: 1; color: var(--primary); }
.card h3 { margin: 0 0 12px 0; font-size: 1.35rem; font-weight: 700; color: var(--primary); }
.card h3 a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
.card h3 a:hover { color: #23474b; text-decoration: underline; }
.card p { margin: 0 0 8px 0; font-size: 0.95rem; color: var(--text-dark); }
.card p:last-of-type { margin-bottom: 0; }
.card time { font-size: 0.8125rem; color: var(--text-rwanda); }
/* Service cards (no image) */
.card:not(.card-post) { }
/* Blog / image-quote cards – improved */
.cards-blog { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card-post { padding: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid #e5e7eb; }
.card-post .card-img-link { display: block; line-height: 0; overflow: hidden; }
.card-post .card-img-link img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.3s ease; }
.card-post:hover .card-img-link img { transform: scale(1.03); }
.card-post .card-body { padding: 22px; }
.card-post .card-body h3 { margin: 0 0 8px 0; font-size: 1.15rem; line-height: 1.35; }
.card-post .card-body time { display: block; font-size: 0.8rem; color: var(--text-rwanda); margin-top: 4px; }

/* Two columns */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 24px; }
@media (max-width: 768px) { .two-col { gap: 28px; margin-top: 20px; } }
.two-col img { max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.two-col ul { margin: 8px 0 0 0; padding-left: 1.25rem; line-height: 1.6; }
.two-col li { margin-bottom: 6px; }
.two-col li:last-child { margin-bottom: 0; }
.founder-img { width: 200px; height: auto; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
/* How we work – spacing between items */
.two-col > div > p.small { margin-bottom: 20px; }
.two-col > div > p.small:last-child { margin-bottom: 0; }
.founder-img { width: 200px; height: auto; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

/* Founder & Organigram – smart section */
.founder-section { background: linear-gradient(180deg, #f0fdf4 0%, #fff 50%); padding: 56px 0 60px; }
.founder-wrap { max-width: 1100px; }
.founder-section-header { text-align: center; margin-bottom: 40px; }
.founder-section-title {
    margin: 0 0 6px 0;
    font-size: clamp(1.5rem, 3.5vw, 1.85rem);
    font-weight: 800;
    color: var(--primary);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}
.founder-section-subtitle {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-rwanda);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 28px;
    align-items: stretch;
}
.founder-col { min-width: 0; }
.founder-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}
.founder-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); border-color: var(--accent); }
.founder-card-inner { padding: 28px; }
/* Portrait column: card wraps only the photo */
.founder-col-portrait .founder-card { padding: 20px; }
.founder-col-portrait .founder-portrait-wrap {
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    background: #f1f5f9;
}
/* Bio column: text between portrait and organigram */
.founder-card-bio { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.founder-portrait-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    background: #f1f5f9;
}
.founder-portrait {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 7/9;
    object-fit: cover;
}
.founder-bio { }
.founder-bio-en {
    margin: 0 0 16px 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}
.founder-bio-rw {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 3px solid var(--accent);
}
.founder-lang-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 6px;
}
.founder-card-organigram .founder-card-inner { padding: 28px; }
.founder-organigram-title {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}
.founder-organigram-desc {
    margin: 0 0 20px 0;
    font-size: 0.875rem;
    color: var(--text-rwanda);
}
.founder-organigram-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: #f8fafc;
}
.founder-organigram-img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

/* When only 2 columns (no organigram), use 2-col layout */
.founder-grid:has(.founder-col-organigram) { grid-template-columns: 1fr 1.4fr 1fr; }
.founder-grid:not(:has(.founder-col-organigram)) { grid-template-columns: 1fr 1fr; }

@media (max-width: 900px) {
    .founder-grid { grid-template-columns: 1fr !important; gap: 28px; }
    .founder-section { padding: 44px 0 48px; }
    .founder-section-header { margin-bottom: 32px; }
}
@media (max-width: 640px) {
    .founder-card-inner { padding: 20px; }
    .founder-card-bio { padding: 20px; }
    .founder-section { padding: 36px 0 40px; }
    .founder-portrait { aspect-ratio: 4/5; }
}

/* Services / Counseling page */
.services-page {
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 20%);
    padding: 40px 0 56px;
}
.services-page-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 640px) {
    .services-page-wrap { padding: 0 16px; }
    .services-page { padding: 28px 0 44px; }
}

.services-page-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}
.services-page-date {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: var(--text-rwanda);
}
.services-page-title {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
}
.services-page-title-en {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.85em;
}

.services-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-dark);
}
.services-content p { margin: 0 0 1em 0; }
.services-lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}
.services-highlight {
    padding: 16px 20px;
    background: #ecfdf5;
    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;
    font-weight: 600;
    color: var(--primary);
    margin: 24px 0 1em 0 !important;
}

.services-h2 {
    margin: 32px 0 12px 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}
.services-h2:first-of-type { margin-top: 28px; }

.services-list {
    margin: 0 0 1em 0;
    padding-left: 1.5rem;
    list-style: disc;
}
.services-list li { margin-bottom: 0.5em; }
.services-list-tick {
    list-style: none;
    padding-left: 0;
}
.services-list-tick li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.6em;
}
.services-list-tick li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1em;
}

.services-levels { margin-top: 28px; }
.services-level {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.services-level:last-child { margin-bottom: 0; }
.services-level-referral {
    border-color: #fecaca;
    background: #fef2f2;
}
.services-level-title {
    margin: 0 0 12px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}
.services-level-num {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-right: 10px;
    vertical-align: middle;
}
.services-level p { margin: 0 0 0.75em 0; }
.services-level p:last-child { margin-bottom: 0; }
.services-referral-note {
    margin-top: 1em !important;
    padding: 14px 18px;
    background: rgba(255,255,255,0.8);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.services-page-footer {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}
.services-cta {
    display: inline-block;
    padding: 16px 32px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.2s, transform 0.15s ease;
    box-shadow: 0 4px 16px rgba(47, 93, 98, 0.25);
}
.services-cta:hover {
    background: #23474b;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .services-level { padding: 20px; }
    .services-level-num { display: block; margin: 0 0 8px 0; }
}

/* Footer */
.footer { background: #0f766e; color: #fff; padding: 28px 0; text-align: center; margin-top: 0; }
.footer p { margin: 0; font-size: 0.875rem; opacity: 0.95; }

/* Inner pages – content width (shared) */
.content-width { max-width: 1100px; margin: 0 auto; padding: 48px 20px; }
@media (max-width: 640px) { .content-width { padding: 32px 16px; } }
.page-title { font-size: 2rem; font-weight: 800; color: var(--primary); margin: 0 0 8px 0; padding-bottom: 12px; border-bottom: 3px solid var(--accent); display: inline-block; }
.page-subtitle { color: var(--text-light); font-size: 1.05rem; margin: 0 0 32px 0; }

/* Posts page – smart layout */
.posts-page { background: linear-gradient(180deg, #f8faf8 0%, #fff 30%); padding: 40px 0 56px; }
.posts-page-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .posts-page-wrap { padding: 0 16px; } .posts-page { padding: 28px 0 44px; } }

.posts-page-header { margin-bottom: 28px; }
.posts-page-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 6px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}
.posts-page-subtitle { color: var(--text-light); font-size: 1.05rem; margin: 0 0 20px 0; }
.posts-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.posts-toolbar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-rwanda);
    flex-shrink: 0;
}
.post-lang-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; }
.post-lang-link {
    padding: 8px 16px;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.15s ease;
}
.post-lang-link:hover { background: var(--accent); color: var(--text-dark); }
.post-lang-link.active { background: var(--primary); color: #fff; }
.post-lang-label { font-weight: 600; color: var(--text-light); font-size: 0.9rem; }

.posts-meta {
    font-size: 0.9rem;
    color: var(--text-rwanda);
    margin: 0 0 20px 0;
}
.posts-empty {
    padding: 48px 24px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}
.posts-empty p { margin: 0; font-size: 1.05rem; color: var(--text-light); }

/* Post grid – responsive */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
@media (max-width: 900px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 36px; }
}
@media (max-width: 560px) {
    .post-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
}

.post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.1); transform: translateY(-4px); }
.post-card-img-wrap { display: block; overflow: hidden; flex-shrink: 0; }
.post-card-img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s ease; }
.post-card:hover .post-card-img { transform: scale(1.04); }
.post-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.post-card-title { margin: 0 0 8px 0; font-size: 1.1rem; font-weight: 700; line-height: 1.35; flex: 1; }
.post-card-title a { color: var(--primary); text-decoration: none; }
.post-card-title a:hover { color: #14532d; text-decoration: underline; }
.post-card-date { font-size: 0.8125rem; color: var(--text-rwanda); margin-top: auto; }
.post-card-excerpt { margin: 10px 0 0 0; font-size: 0.9rem; color: var(--text-light); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-lang { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--primary); background: #E0F2F1; padding: 4px 10px; border-radius: 6px; margin-bottom: 10px; }

/* Pagination – smart */
.pagination { margin-top: 8px; }
.pagination-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
}
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pagination-btn:hover { background: #f0fdf4; border-color: var(--accent); color: #14532d; }
.pagination-btn.pagination-disabled { color: #9ca3af; background: #f9fafb; border-color: #e5e7eb; cursor: not-allowed; }
.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pagination-num:hover { background: #f0fdf4; border-color: var(--accent); color: #14532d; }
.pagination-num.pagination-current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    cursor: default;
}
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 40px;
    font-size: 0.9rem;
    color: var(--text-rwanda);
}
@media (max-width: 480px) {
    .pagination-inner { gap: 8px; }
    .pagination-btn { min-width: 80px; padding: 8px 14px; font-size: 0.85rem; }
    .pagination-num { min-width: 36px; height: 36px; font-size: 0.85rem; }
}

.post-list { list-style: none; padding: 0; }
.post-list li { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.post-list a { color: #166534; font-weight: 600; text-decoration: none; }
.post-date { font-size: 13px; color: #666; margin-top: 4px; }

/* Single post – image quote layout (legacy) */
.single-quote { max-width: 720px; margin: 0 auto; padding: 40px 20px 56px; }
@media (max-width: 640px) { .single-quote { padding: 28px 16px 48px; } }
.single-quote .quote-image-wrap { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.1); margin-bottom: 28px; }
.single-quote .quote-image { width: 100%; height: auto; display: block; vertical-align: top; }
.single-quote .quote-title { font-size: 1.75rem; font-weight: 800; color: var(--text-dark); margin: 0 0 12px 0; line-height: 1.3; }
.single-quote .quote-lang { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--primary); background: #E0F2F1; padding: 6px 12px; border-radius: 8px; margin-bottom: 12px; }
.single-quote .quote-meta { font-size: 0.9rem; color: var(--text-rwanda); margin-bottom: 20px; }
.single-quote .quote-text { font-size: 1.15rem; line-height: 1.75; color: var(--text-dark); margin: 0 0 24px 0; }
.single-quote .article-body { font-size: 1.05rem; line-height: 1.75; color: var(--text-light); }
.single-quote .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; text-decoration: none; margin-top: 32px; }
.single-quote .back-link:hover { text-decoration: underline; }
.article-featured-img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 16px; margin-bottom: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.article-meta { color: var(--text-rwanda); margin-bottom: 20px; font-size: 0.9rem; }
.article-body { line-height: 1.75; }

/* Single post – main + sidebar (professional layout) */
.single-post-block { padding: 0; }
.single-post-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 56px;
    align-items: start;
}
.single-post-main { min-width: 0; }
.single-post-featured {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 28px;
}
.single-post-img { width: 100%; height: auto; display: block; vertical-align: top; }
.single-post-header { margin-bottom: 20px; }
.single-post-lang {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: #E0F2F1;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}
.single-post-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 10px 0;
    line-height: 1.3;
}
.single-post-meta { font-size: 0.9rem; color: var(--text-rwanda); }
.single-post-excerpt {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--text-dark);
    margin: 0 0 24px 0;
}
.single-post-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-light);
}
.single-post-body p { margin: 0 0 1em 0; }
.single-post-body p:last-child { margin-bottom: 0; }
.single-post-footer { margin-top: 32px; padding-top: 24px; border-top: 1px solid #e5e7eb; }
.single-post-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.single-post-back:hover { text-decoration: underline; }

/* Sidebar */
.single-post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 24px;
}
.sidebar-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}
.sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 14px 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sidebar-empty { margin: 0; font-size: 0.9rem; }
.sidebar-empty a { color: var(--primary); font-weight: 600; text-decoration: none; }
.sidebar-empty a:hover { text-decoration: underline; }
.sidebar-related { list-style: none; padding: 0; margin: 0; }
.sidebar-related-item {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}
.sidebar-related-item:last-child { border-bottom: 0; padding-bottom: 0; }
.sidebar-related-item:first-child { padding-top: 0; }
.sidebar-related-link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: var(--text-dark);
}
.sidebar-related-link:hover .sidebar-related-text { color: var(--primary); text-decoration: underline; }
.sidebar-related-img {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
}
.sidebar-related-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-related-text {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}
.sidebar-related-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-rwanda);
    margin-top: 4px;
    margin-left: 68px;
}
.sidebar-share { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-share-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #cbd5e1;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.sidebar-share-btn:hover { background: #E0F2F1; border-color: var(--primary); }
.sidebar-cta {
    display: block;
    text-align: center;
    padding: 12px 16px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.02s ease;
}
.sidebar-cta:hover { background: #14532d; color: #fff; }

@media (max-width: 900px) {
    .single-post-wrap {
        grid-template-columns: 1fr;
        padding: 32px 20px 48px;
        gap: 32px;
    }
    .single-post-sidebar { position: static; }
    .single-post-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .sidebar-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .single-post-wrap { padding: 24px 16px 40px; gap: 28px; }
    .single-post-sidebar { grid-template-columns: 1fr; }
    .sidebar-related-date { margin-left: 0; }
}

/* Mobile & small screens */
@media (max-width: 768px) {
    .top-bar-inner { flex-wrap: wrap; gap: 8px; justify-content: center; }
    .top-date { font-size: 13px; }
    .top-social { flex-wrap: wrap; justify-content: center; }
    .logo-row-inner { flex-direction: column; align-items: flex-start; }
    .logo-block { width: 100%; }
    .tot-banner { max-width: 100%; flex-direction: column; align-items: flex-start; }
    .nav-inner { flex-wrap: wrap; padding: 12px 0; gap: 12px; }
    .nav-link { font-size: 0.9375rem; }
    .two-col { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    .cards-blog { grid-template-columns: 1fr; }
    .block h2 { font-size: 1.35rem; }
}
@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.4rem; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; text-align: center; }
}
