/* General Typography */
body {
    font-family: Arial, sans-serif;
    color: #374151;
    background-color: #F9FAFB;
}

.section-title {
    color: #111827;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(27, 94, 32, 0.7), rgba(27, 94, 32, 0.7)), url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
}

/* Donate Button */
.donate-btn {
    background-color: #1B5E20;
    color: white;
    border: none;
}

    .donate-btn:hover {
        background-color: #145214;
        color: white;
    }

/* Campaign Card */
.campaign-card {
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .campaign-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

/* Progress Bar */
.progress-bar {
    background-color: #1B5E20;
}

/* Urgency Badge */
.urgency-badge {
    background-color: #F59E0B;
    color: white;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.campaign-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

/* Transparency Stats */
.stat-item {
    transition: transform 0.3s ease;
}

    .stat-item:hover {
        transform: translateY(-5px);
    }

/* Footer Social Links */
footer .text-white-50 {
    transition: color 0.3s ease;
}

    footer .text-white-50:hover {
        color: #fff !important;
    }

/* Transparency Card */
.transparency-card {
    border-left: 4px solid #1B5E20;
    transition: box-shadow 0.3s ease;
}

    .transparency-card:hover {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

/* FAQ Accordion */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: #1B5E20;
    background-color: #fff;
}

    .accordion-button:not(.collapsed) {
        color: #1B5E20;
        background-color: #E8F5E9;
        box-shadow: none;
    }

    .accordion-button:focus {
        box-shadow: none;
        border-color: rgba(27, 94, 32, 0.1);
    }

/* ================= MOBILE RESPONSIVENESS ================= */

/* For tablets and below */
@media (max-width: 991.98px) {
    /* Center navbar items when collapsed */
    .navbar-collapse {
        margin-top: 1rem;
    }

    .navbar-nav {
        text-align: center;
    }

        .navbar-nav .nav-item {
            margin: 0.5rem 0;
        }

        .navbar-nav .ms-3 {
            margin-left: 0 !important;
        }
}

/* For mobile phones */
@media (max-width: 767.98px) {
    /* Reduce padding on sections for smaller screens */
    section.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Adjust hero section for mobile */
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

        .hero-section h1.display-4 {
            font-size: 2.5rem;
        }

    /* Ensure section titles are not too large */
    .section-title {
        font-size: 1.8rem;
    }

    /* Adjust transparency card for mobile */
    .transparency-card .d-flex.justify-content-between {
        flex-direction: column;
    }

    .transparency-card .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* ================= NAVBAR STYLING ================= */

.navbar-nav .nav-link {
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

    .navbar-nav .nav-link:hover {
        color: #1B5E20 !important;
    }

/* Milestone Tracker */
.milestone-tracker {
    list-style: none;
    padding-left: 0;
    position: relative;
}

    .milestone-tracker::before {
        content: '';
        position: absolute;
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: #e9ecef;
        z-index: 1;
    }

.milestone-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.milestone-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px solid #e9ecef;
    background-color: #fff;
    z-index: 2;
}

.milestone-item.completed .milestone-icon {
    background-color: #198754;
    color: white;
    border-color: #198754;
}

.milestone-item.pending .milestone-icon {
    background-color: #ffc107;
    color: white;
    border-color: #ffc107;
}

.milestone-item.upcoming .milestone-icon {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

/* Custom Tab Styling for Campaign Detail Page */
.nav-tabs {
    border-bottom-color: #198754; /* Green line under inactive tabs */
}

    .nav-tabs .nav-link {
        color: #6c757d; /* Muted color for non-active tabs */
    }

        .nav-tabs .nav-link.active,
        .nav-tabs .nav-item.show .nav-link {
            color: #1B5E20; /* Orgafund's dark green for text */
            font-weight: 600;
            background-color: #fff; /* Match card body background */
            border-color: #198754 #198754 #fff; /* Green border on top, left, right. Bottom matches bg. */
        }

/* Document Image Modal Trigger */
.document-image {
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

    .document-image:hover {
        opacity: 0.8;
    }
