/* ==========================================================
   AEA Africa v2 — Design tokens
   Palette: deep forest green + warm terracotta/gold accent,
   inspired by African sunset & savanna tones.
   ========================================================== */
:root {
    /* Brand purple, taken from the AEA logo (#79105c) */
    --aea-green-900: #4a0a3a;   /* deep plum - used for darkest surfaces */
    --aea-green-700: #79105c;   /* primary brand purple */
    --aea-green-500: #9c2e7f;   /* lighter purple for hovers/highlights */
    --aea-gold: #e0a458;        /* warm gold accent, pairs with purple */
    --aea-terracotta: #c1552c;  /* secondary warm accent */
    --aea-leaf: #2e8b57;        /* small nod to the green leaf in the logo, used sparingly */
    --aea-cream: #faf5f8;
    --aea-ink: #241019;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--aea-ink);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6, .brand-text, .brand-mark {
    font-family: var(--font-heading);
}

a { color: var(--aea-green-700); text-decoration: none; }
a:hover { color: var(--aea-terracotta); }

/* Small accent icons (checkmarks, contact icons) use the logo's leaf green */
.text-success { color: var(--aea-leaf) !important; }

.text-light-50 { color: rgba(255,255,255,.65); }

/* ---- Buttons ---- */
.btn-primary, .btn-cta {
    background-color: var(--aea-green-700);
    border-color: var(--aea-green-700);
    font-weight: 600;
    border-radius: 30px;
    padding: 0.6rem 1.6rem;
}
.btn-primary:hover, .btn-cta:hover {
    background-color: var(--aea-green-900);
    border-color: var(--aea-green-900);
}
.btn-outline-primary {
    color: var(--aea-green-700);
    border-color: var(--aea-green-700);
    border-radius: 30px;
    font-weight: 600;
}
.btn-outline-primary:hover {
    background-color: var(--aea-green-700);
    border-color: var(--aea-green-700);
}
.btn-outline-light { border-radius: 30px; font-weight: 600; }
.btn-give {
    background: linear-gradient(135deg, var(--aea-gold), var(--aea-terracotta));
    color: #fff;
    border-radius: 30px;
    font-weight: 700;
    padding: 0.5rem 1.4rem;
    border: none;
}
.btn-give:hover { filter: brightness(1.08); color: #fff; }

/* ==========================================================
   Top utility bar
   ========================================================== */
.topbar {
    background-color: var(--aea-green-900);
    color: #dfeee7;
}
.topbar a { color: #dfeee7; text-decoration: none; }
.topbar a:hover { color: var(--aea-gold); }
.topbar-social a { margin-left: 14px; font-size: 0.95rem; }

/* ==========================================================
   Navigation
   ========================================================== */
.site-header { background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    background: linear-gradient(135deg, var(--aea-green-500), var(--aea-green-900));
    color: #fff;
    font-weight: 800;
    border-radius: 12px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}
.brand-mark-light { background: linear-gradient(135deg, var(--aea-gold), var(--aea-terracotta)); }
.brand-text { font-size: 0.85rem; font-weight: 700; color: var(--aea-green-900); line-height: 1.15; }
.brand-logo { height: 52px; width: auto; }
.brand-logo-footer { height: 44px; background: #fff; border-radius: 8px; padding: 4px; }

.nav-link {
    font-weight: 600;
    color: var(--aea-ink) !important;
    position: relative;
    margin: 0 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 2px;
    width: 0; height: 2px;
    background: var(--aea-terracotta);
    transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

/* Current page indicator */
.nav-link.active {
    color: var(--aea-green-700) !important;
}
.nav-link.active::after { width: 100%; background: var(--aea-green-700); }

/* Dropdown caret: clearer arrow that rotates when open */
.navbar .dropdown-toggle::after {
    vertical-align: 2px;
    margin-left: 6px;
    transition: transform .2s ease;
}
.navbar .dropdown:hover .dropdown-toggle::after,
.navbar .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}
.dropdown-menu { border: none; box-shadow: 0 10px 30px rgba(0,0,0,.1); border-radius: 12px; }
.dropdown-item:hover { background: var(--aea-cream); color: var(--aea-green-900); }

/* Open submenus on hover for desktop pointer users; click/tap still works via Bootstrap JS everywhere else */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: dropdownFade .15s ease;
    }
}
@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   Hero slider
   ========================================================== */
.hero-slide {
    position: relative;
    height: 78vh;
    min-height: 480px;
}
.hero-slide-img {
    width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(13,59,46,.88) 0%, rgba(13,59,46,.55) 45%, rgba(13,59,46,.15) 80%);
}
.carousel-caption-custom {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    left: 6%; max-width: 620px;
    text-align: left; color: #fff;
}
.carousel-caption-custom .eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--aea-gold);
    font-weight: 700;
    font-size: 0.8rem;
}
.carousel-caption-custom h2 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
}
.carousel-caption-custom h2 span { font-weight: 400; color: var(--aea-gold); }
.carousel-caption-custom p { font-size: 1.05rem; opacity: 0.92; max-width: 540px; }

.carousel-indicators [data-bs-target] {
    width: 34px; height: 4px; border-radius: 4px; background-color: rgba(255,255,255,.5);
}
.carousel-indicators .active { background-color: var(--aea-gold); }

/* Prev/next controls: small circular buttons tucked in the bottom-right corner
   so they never overlap the left-aligned caption text. */
.carousel-control-prev, .carousel-control-next {
    position: absolute;
    top: auto;
    bottom: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.4);
    backdrop-filter: blur(2px);
    opacity: 1;
    transition: background .2s ease;
}
.carousel-control-prev { left: auto; right: 86px; }
.carousel-control-next { right: 24px; }
.carousel-control-prev:hover, .carousel-control-next:hover { background: rgba(255,255,255,.3); }
.carousel-control-prev-icon, .carousel-control-next-icon { width: 18px; height: 18px; }

@media (max-width: 768px) {
    .carousel-control-prev, .carousel-control-next { bottom: 12px; width: 38px; height: 38px; }
    .carousel-control-prev { right: 60px; }
    .carousel-control-next { right: 12px; }
}

/* ==========================================================
   Stats strip
   ========================================================== */
.stats-strip {
    background: var(--aea-green-900);
    color: #fff;
    margin-top: -2px;
}
.stats-strip .stat-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--aea-gold);
}
.stats-strip .stat-label { font-size: 0.9rem; opacity: 0.85; }

/* ==========================================================
   Section styling
   ========================================================== */
.section-tag {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--aea-terracotta);
    background: rgba(193,85,44,.09);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.section-title { font-weight: 800; color: var(--aea-green-900); }
.bg-cream { background-color: var(--aea-cream); }

/* ---- News cards ---- */
.news-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 4px 18px rgba(20,50,40,.06);
    height: 100%;
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(20,50,40,.14); }
.news-card img { height: 220px; object-fit: cover; }
.news-card .card-body { padding: 1.4rem; }
.news-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--aea-green-700);
    background: rgba(31,138,99,.1);
    padding: 3px 10px;
    border-radius: 12px;
}

/* ---- Event cards ---- */
.event-card { position: relative; }
.event-date-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    line-height: 1.1;
}
.event-date-badge .day { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; color: var(--aea-terracotta); }
.event-date-badge .month { display: block; font-size: 0.7rem; text-transform: uppercase; font-weight: 700; color: var(--aea-green-900); }

.latest-news-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 14px 0; border-bottom: 1px solid #eee;
}
.latest-news-item:last-child { border-bottom: none; }
.latest-news-thumb { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }

.campaign-card {
    border-radius: 18px; overflow: hidden; border: none;
    background: linear-gradient(120deg, var(--aea-green-900), var(--aea-green-700));
    color: #fff;
}
.campaign-card img { object-fit: cover; height: 100%; min-height: 220px; }

/* ---- Vision / mission cards ---- */
.vm-card {
    border-radius: 18px;
    padding: 2rem;
    height: 100%;
    background: #fff;
    box-shadow: 0 6px 22px rgba(20,50,40,.08);
    border-top: 4px solid var(--aea-gold);
}
.vm-card i { font-size: 1.8rem; color: var(--aea-terracotta); }

/* ---- Interactive country map ---- */
.africa-map-wrap { max-width: 100%; }
.africa-map { width: 100%; height: auto; max-height: 520px; }
.country-path {
    fill: var(--country-color, #cfcfcf);
    stroke: #fff;
    stroke-width: 0.6;
    cursor: pointer;
    opacity: 0.82;
    transition: opacity .15s ease, transform .15s ease;
    outline: none;
}
.country-path:hover, .country-path:focus {
    opacity: 1;
    stroke: var(--aea-ink);
    stroke-width: 1;
}
.country-path-active {
    opacity: 1 !important;
    stroke: var(--aea-ink);
    stroke-width: 1.4;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}
.country-path-inactive {
    fill: #e4dde2;
    cursor: default;
    opacity: 0.5;
}
.map-info-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(20,50,40,.08);
    padding: 1.5rem;
    min-height: 220px;
    position: sticky;
    top: 100px;
}
.map-info-card i { font-size: 1rem; }
.map-legend-item {
    font-size: 0.82rem;
    color: var(--aea-ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.map-legend-dot {
    width: 10px; height: 10px; border-radius: 50%;
    display: inline-block;
}

/* ---- Members / regions accordion ---- */
.region-card { border: none; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 18px rgba(20,50,40,.06); margin-bottom: 1rem; }
.region-card .accordion-button {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--aea-green-900);
    background: var(--aea-cream);
}
.region-card .accordion-button:not(.collapsed) {
    background: var(--aea-green-900);
    color: #fff;
}
.region-card .accordion-button:focus { box-shadow: none; }
.country-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--aea-cream);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    margin: 4px 6px 4px 0;
}
.region-president {
    background: rgba(224,164,88,.12);
    border-left: 3px solid var(--aea-gold);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ---- Podcast ---- */
.podcast-hero {
    background: linear-gradient(135deg, var(--aea-green-900), var(--aea-green-700));
    color: #fff;
    border-radius: 24px;
    padding: 3rem;
}
.episode-card {
    border: none; border-radius: 16px;
    box-shadow: 0 4px 18px rgba(20,50,40,.06);
    padding: 1.4rem;
    height: 100%;
}
.leader-photo {
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--aea-cream);
}
.leader-avatar {
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--aea-green-700), var(--aea-green-900));
    color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem;
}
.leader-avatar-alt { background: linear-gradient(135deg, var(--aea-gold), var(--aea-terracotta)); }

.episode-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: var(--aea-green-700); color: #fff;
    border-radius: 50%; font-weight: 700; font-family: var(--font-heading);
}

/* ---- E-books ---- */
.ebook-card {
    border: none; border-radius: 18px;
    box-shadow: 0 4px 18px rgba(20,50,40,.08);
    overflow: hidden;
}
.ebook-cover { width: 100%; max-width: 220px; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.15); }

/* ---- Footer ---- */
.site-footer { background: var(--aea-green-900); color: #dfeee7; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.75); }
.footer-links a:hover { color: var(--aea-gold); }
.footer-prayer {
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: var(--aea-gold);
    font-family: var(--font-heading);
}
.footer-divider { border-color: rgba(255,255,255,.12); }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
    margin-right: 8px;
    color: #fff !important;
}
.social-links a:hover { background: var(--aea-gold); color: var(--aea-green-900) !important; }

/* ---- Back to top ---- */
.btn-back-to-top {
    position: fixed; bottom: 25px; right: 25px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--aea-terracotta);
    color: #fff; border: none;
    display: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
    z-index: 1000;
}
.btn-back-to-top:hover { background: var(--aea-green-900); }

/* ---- Forms ---- */
.form-control, .form-select {
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    border: 1px solid #dcdcdc;
}
.form-control:focus, .form-select:focus {
    border-color: var(--aea-green-500);
    box-shadow: 0 0 0 3px rgba(31,138,99,.15);
}

@media (max-width: 768px) {
    .carousel-caption-custom h2 { font-size: 1.8rem; }
    .hero-slide { height: 62vh; min-height: 400px; }
    .campaign-card img { min-height: 180px; }
}
