/* ==================== BUILDING FUND PAGE STYLES ==================== */

.building-fund-header {
    background: linear-gradient(135deg, #003459 0%, #001d3d 100%);
    padding: 80px 40px;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.3rem;
    margin-top: 15px;
}

.building-fund-intro {
    text-align: center;
    margin-bottom: 50px;
}

.building-fund-intro h2 {
    color: #003459;
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* ==================== DONATION CARD STYLES ==================== */

.donation-cards-container {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.donation-card {
    flex: 1;
    border-radius: 15px;
    padding: 40px 35px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.card-primary {
    background: linear-gradient(135deg, #001d3d 0%, #003459 100%);
    border: 2px solid rgba(0, 167, 225, 0.3);
}

.card-secondary {
    background: linear-gradient(135deg, #003459 0%, #00A7E1 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-primary .card-icon {
    color: #00A7E1;
}

.card-secondary .card-icon {
    color: white;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.donation-card h3 {
    color: white;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.6rem;
    margin: 0 0 10px 0;
}

.card-description {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1rem;
    margin-bottom: 20px;
}

.card-message {
    color: white !important;
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* ==================== LEGACY PROGRESS TRACKER STYLES (for backup page) ==================== */

.progress-trackers-container {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.progress-tracker {
    flex: 1;
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.tracker-primary {
    background: linear-gradient(135deg, #001d3d 0%, #003459 100%);
    border: 2px solid rgba(0, 167, 225, 0.3);
}

.tracker-secondary {
    background: linear-gradient(135deg, #003459 0%, #00A7E1 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.tracker-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tracker-primary .tracker-icon {
    color: #00A7E1;
}

.tracker-secondary .tracker-icon {
    color: white;
}

.tracker-icon svg {
    width: 100%;
    height: 100%;
}

.progress-tracker h3 {
    color: white;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    margin: 0 0 8px 0;
}

.tracker-description {
    color: #ffffff !important;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.tracker-primary .tracker-description,
.tracker-secondary .tracker-description {
    color: #ffffff !important;
}

.progress-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-value {
    color: white;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.tracker-primary .stat-value {
    color: #00A7E1;
}

.tracker-secondary .stat-value {
    color: white;
}

.progress-bar-container {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    height: 16px;
    overflow: hidden;
    margin-bottom: 12px;
}

.tracker-primary .progress-bar {
    background: linear-gradient(90deg, #00A7E1 0%, #00d4ff 100%);
}

.tracker-secondary .progress-bar {
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
}

.progress-bar {
    height: 100%;
    border-radius: 50px;
    width: 0;
    transition: width 1.5s ease-out;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-percentage {
    color: white;
    font-size: 1rem;
    margin: 0;
}

.tracker-primary .progress-percentage span {
    color: #00A7E1;
    font-weight: 700;
}

.tracker-secondary .progress-percentage span {
    color: white;
    font-weight: 700;
}

/* ==================== NIGERIA PROJECT SECTION ==================== */

.nigeria-project-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 50px 40px;
    margin-bottom: 50px;
    text-align: center;
}

.nigeria-project-section h2 {
    color: #001d3d;
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

.project-intro {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
}

.project-details {
    margin-bottom: 40px;
}

.project-stat {
    background: linear-gradient(135deg, #001d3d 0%, #003459 100%);
    border-radius: 15px;
    padding: 30px 40px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-stat h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
}

.stat-amount {
    color: #00A7E1;
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.stat-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

.project-breakdown {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.project-breakdown h3 {
    color: #001d3d;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.breakdown-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #00A7E1;
}

.breakdown-item h4 {
    color: #003459;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    margin: 0 0 15px 0;
}

.breakdown-item ul {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

.breakdown-item li {
    margin-bottom: 8px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .nigeria-project-section {
        padding: 30px 20px;
    }

    .nigeria-project-section h2 {
        font-size: 1.6rem;
    }

    .stat-amount {
        font-size: 1.8rem;
    }

    .breakdown-grid {
        grid-template-columns: 1fr;
    }

    .project-stat {
        padding: 20px 30px;
    }
}

/* ==================== GOAL CARDS ==================== */

.building-fund-goals {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
}

.goal-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.goal-card:hover {
    transform: translateY(-5px);
}

.goal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.goal-card h3 {
    color: #003459;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.goal-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ==================== DONATE SECTION ==================== */

.donate-section {
    background-color: #003459;
    padding: 50px 40px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 40px;
}

.donate-section h2 {
    color: white;
    font-family: 'Libre Baskerville', serif;
    margin-bottom: 20px;
}

.donate-section > p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.donate-options {
    margin-bottom: 40px;
}

.donate-btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.donate-btn-primary {
    background-color: #00A7E1;
    color: white;
}

.donate-btn-primary:hover {
    background-color: white;
    color: #003459;
}

.scripture-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.scripture-box .scripture {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.scripture-box .scripture-ref {
    color: white;
    font-size: 1rem;
    margin: 0;
}

/* ==================== IMAGE GALLERY STYLES ==================== */

.image-gallery-section {
    margin: 40px 0;
    text-align: center;
}

.image-wall-container {
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 25px;
}

.image-wall {
    display: flex;
    gap: 10px;
    animation: scrollWall 20s linear infinite;
    width: max-content;
}

.image-wall:hover {
    animation-play-state: paused;
}

@keyframes scrollWall {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.image-item {
    flex-shrink: 0;
    width: 280px;
    height: 210px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expand-gallery-btn {
    background-color: #003459;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expand-gallery-btn:hover {
    background-color: #00A7E1;
    transform: translateY(-2px);
}

/* ==================== LIGHTBOX STYLES ==================== */

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    text-align: center;
    max-width: 90%;
    max-height: 80%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
    color: white;
    font-size: 1rem;
    margin-top: 15px;
    font-family: 'Noto Sans', sans-serif;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: #00A7E1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.lightbox-nav:hover {
    background: #00A7E1;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ==================== MOBILE RESPONSIVE STYLES ==================== */

@media (max-width: 900px) {
    .donation-cards-container {
        flex-direction: column;
    }

    .progress-trackers-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .progress-tracker {
        padding: 25px 20px;
    }

    .progress-stats {
        gap: 25px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .progress-tracker h3 {
        font-size: 1.3rem;
    }

    .building-fund-header {
        padding: 50px 20px;
    }

    .donate-section {
        padding: 40px 20px;
    }

    .image-item {
        width: 220px;
        height: 165px;
    }

    .lightbox-nav {
        padding: 10px 15px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .progress-stats {
        gap: 20px;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .tracker-icon {
        width: 40px;
        height: 40px;
    }
}
