/*
    Theme Name: Zaimo Foundation
    Author: AI Agent
    Description: A modern and elegant website for a non-profit organization.
*/

/* Using system font: Century Gothic (set below). Removed Open Sans import. */

:root {
    --primary-color: #5EB64E; /* Primary Brand Color */
    --secondary-color: #B6D0AA; /* Secondary Accent Color */
    --text-color: #6B6B69; /* Main headings, Body text, Footer text */
    --white: #FFFFFF; /* Text on green backgrounds, Clean sections, Header banners */
    --highlight-color: #FFD700; /* Small icons, Decorative elements, Subtle attention markers */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Century Gothic", CenturyGothic, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 70px; /* Add padding for the fixed navbar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation Bar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-nav > li > a {
    color: var(--text-color) !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar-nav > li > a:hover,
.navbar-nav > .active > a {
    color: var(--primary-color) !important;
    background-color: transparent !important;
}

/* Header */
.header {
    background: url('../images/work/watotobango.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    margin-top: -70px; /* Overlap the top padding */
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.header .container {
    position: relative;
    z-index: 1;
}

.logo img {
    max-width: 150px;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeInDown 1s;
    color: var(--white);
}

.header p {
    font-size: 1.2em;
    margin-bottom: 40px;
    animation: fadeInDown 1s 0.3s;
    color: var(--white);
}

.btn {
    padding: 15px 30px;
    border-radius: 6px; /* Updated border-radius */
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 20px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--text-color);
}

/* Larger, attention-grabbing Donate button */
.btn-donate {
    padding: 18px 40px;
    font-size: 1.15em;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.btn-donate.btn-primary {
    border-width: 2px;
}

/* Quick Highlights */
.quick-highlights {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.highlight-box {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.highlight-box:hover {
    transform: translateY(-10px);
}

.highlight-box .fa {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.highlight-box h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Impact Snapshot */
.impact-snapshot {
    padding: 80px 0;
    background-color: var(--white); /* Light section */
}

.impact-snapshot h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--text-color);
}

.impact-snapshot ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.impact-snapshot li {
    background-color: var(--secondary-color);
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    font-size: 1.1em;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    color: var(--text-color);
}

/* Call to Action */
.call-to-action {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.call-to-action h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--white);
}

/* Project Cards */
.project-card {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    padding: 32px 30px;
    margin-bottom: 30px;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-left: 6px solid var(--primary-color);
    background: linear-gradient(180deg, var(--white) 0%, #fbfbfb 100%);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card h3 {
    color: var(--primary-color);
}

/* Card hover uplift */
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

/* Optional icon badge placed on the card (add markup: <div class="card-icon"><i class="fa fa-..."></i></div>) */
.project-card .card-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3em;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Accent underline for section titles */
.page-section .heading h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    margin: 18px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), #8fcf7a);
}

/* Team Members - simplified, no stroke, consistent card look */
.team-member {
    background-color: var(--white);
    border: none; /* remove stroke */
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    text-align: center;
    margin-bottom: 20px;
}

.team-member img {
    max-width: 140px;
    border-radius: 10px;
    margin: 0 auto 12px;
    display: block;
}

.team-member h3 {
    margin: 8px 0 6px;
    color: var(--text-color);
    font-size: 1.2em;
}

.team-member p {
    margin: 0 0 12px;
    color: var(--text-color);
    font-weight: 600;
}

.team-member .social-icons {
    margin-top: 10px;
}

/* social icon anchors use the global .social-icons rules (see below) */

@media (max-width: 768px) {
    .team-member {
        padding: 14px;
    }
    .team-member img { max-width: 120px; }
}

/* Gallery */
.gallery-item {
    margin-bottom: 30px;
}

.gallery-item img {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Contact Form */
.form-control {
    border-radius: 10px;
    padding: 15px;
    color: var(--text-color);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }

    .quick-highlights .col-md-3 {
        margin-bottom: 30px;
    }
}

.page-section {
    padding: 80px 0;
}

.page-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--text-color);
}

.page-section p {
    color: var(--text-color);
}

.rounded-img {
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.darkBg {
    background-color: rgba(182, 208, 170, 0.1); /* Soft section */
    color: var(--text-color);
}

.darkBg .heading h2 {
    color: var(--text-color);
}

.darkBg .heading p {
    color: var(--text-color);
}

.challenge-box {
    padding: 30px;
    transition: all 0.3s ease;
}

/* Floating Donate CTA (site-wide) */
.floating-donate {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: hsl(125, 98%, 47%);
    color: #fff;
    padding: 12px 16px;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.floating-donate:hover, .floating-donate:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    outline: none;
}
.floating-donate .fa {
    font-size: 18px;
    line-height: 1;
}
@media (max-width: 480px) {
    .floating-donate {
        padding: 12px;
        border-radius: 50%;
        right: 14px;
        bottom: 14px;
    }
    .floating-donate span { display: none; }
}

.challenge-box .fa {
    color: var(--primary-color);
}

.challenge-box h3 {
    color: var(--text-color);
}

.challenge-box p {
    color: var(--text-color);
}

.impact-counter {
    margin-bottom: 30px;
}

.impact-counter .counter-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.impact-counter .counter-number {
    font-size: 3em;
    font-weight: 700;
    display: block;
    color: var(--primary-color);
}

/* Make the #impact section stand out with a green background and white text/icons */
#impact {
    background-color: var(--primary-color);
    color: var(--white);
}

#impact .impact-counter .counter-icon {
    color: var(--white);
}

/* Navbar Donate CTA - more prominent */
.navbar .navbar-donate { margin-left: 12px; display: flex; align-items: center; }
.navbar .btn-donate {
    padding: 10px 22px;
    font-size: 1rem;
    border-radius: 28px;
    background: linear-gradient(90deg, var(--primary-color), #47a447);
    color: var(--white) !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(94,182,78,0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.navbar .btn-donate:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(0,0,0,0.18); }

/* subtle attention pulse (optional) */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(94,182,78,0.18); }
    50% { box-shadow: 0 0 0 10px rgba(94,182,78,0.06); }
    100% { box-shadow: 0 0 0 0 rgba(94,182,78,0); }
}
.pulse { animation: pulse 2.6s infinite; }

@media (max-width: 768px) {
    .navbar .btn-donate { width: 100%; margin: 8px 0; padding: 12px 18px; font-size: 1.05rem; }
    .navbar .navbar-donate { width: 100%; }
}

/* Floating Donate button always visible (desktop + mobile) */
.floating-donate {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 40px;
    background: linear-gradient(90deg, var(--primary-color), #47a447);
    color: var(--white) !important;
    box-shadow: 0 18px 48px rgba(94,182,78,0.22);
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
}

.floating-donate i { font-size: 1.15rem; }

@media (max-width: 576px) {
    .floating-donate { right: 14px; bottom: 14px; padding: 12px 16px; font-size: 1.15rem; }
}

@media (max-width: 400px) {
    .floating-donate { padding: 10px 14px; font-size: 1.05rem; }
}

/* Unified programs cards box (equal cards with transitions) */
.cards-box {
    background: linear-gradient(180deg, #ffffff, #fbfbfb);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.cards-grid {
    display: flex;
    gap: 24px;
    align-items: stretch;
    flex-wrap: wrap;
}

.card-item {
    flex: 1 1 280px;
    display: flex;
}

.card-item .project-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-item .project-card p {
    flex: 1 1 auto;
    color: var(--text-color);
}

/* subtle transition for internal links */
.project-card .read-more {
    margin-top: 18px;
    align-self: flex-start;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    transition: color 0.25s ease;
}

.project-card .read-more:hover {
    color: #2f7a2b;
}

@media (max-width: 992px) {
    .cards-grid { gap: 18px; }
}

@media (max-width: 576px) {
    .cards-grid { gap: 12px; }
    .cards-box { padding: 20px; }
}

#impact .impact-counter .counter-number {
    color: var(--white);
}

#impact .impact-counter p {
    color: var(--white);
}

/* White box with bevel / embossed effect inside the green impact section */
#impact .impact-box {
    background: var(--white);
    color: var(--text-color);
    padding: 22px 26px;
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto 28px;
    box-shadow:
        0 8px 18px rgba(0,0,0,0.12), /* outer soft drop */
        inset 0 6px 10px rgba(255,255,255,0.9), /* top highlight */
        inset 0 -6px 10px rgba(0,0,0,0.06); /* bottom inner shadow */
    border: 1px solid rgba(0,0,0,0.06);
}

#impact .impact-box p {
    margin: 0 0 12px;
    line-height: 1.55;
    color: var(--text-color);
}

@media (max-width: 768px) {
    #impact .impact-box { padding: 18px; }
}

.impact-counter p {
    color: var(--text-color);
}

#project-spotlight ul {
    list-style: none;
    padding-left: 0;
}

#project-spotlight ul li {
    margin-bottom: 10px;
    color: var(--text-color);
}

#project-spotlight ul li .fa {
    color: var(--primary-color);
    margin-right: 10px;
}

#project-spotlight h3 {
    color: var(--primary-color);
}

#project-spotlight p {
    color: var(--text-color);
}

.testimonial {
    text-align: center;
    padding: 20px;
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 5px solid var(--white);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.testimonial blockquote {
    border-left: none;
    font-style: italic;
    color: var(--text-color);
}

.testimonial footer {
    font-weight: 700;
    color: var(--primary-color);
}

.footer {
    background-color: #222; /* Keep dark for contrast */
    color: var(--text-color);
    padding: 60px 0 20px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--primary-color);
}

.social-icons a {
    color: var(--white);
    background-color: var(--primary-color);
    font-size: 1.1em;
    margin-right: 8px;
    padding: 8px 10px;
    border-radius: 999px; /* pill */
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.18s ease, background-color 0.18s ease;
}

.social-icons a:hover {
    opacity: 0.92;
}

.copyright {
    margin-top: 40px;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9em;
    color: var(--text-color);
}

#explore .summary-card {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 30px;
    height: 100%;
    text-align: center;
}

#explore .summary-card h3 {
    color: var(--primary-color);
}

#explore .summary-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

#explore .summary-card ul li {
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-card .project-img {
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    text-shadow: none;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
}

.section-heading-margin {
    margin-top: 50px;
}