/* Ministries Page Styles */
.page-hero {
    /* Inherit standard hero styles from styles.css */
    /* Only set the page-specific background */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
                url('../images/heroes/hero-ministries.webp');
}

/* Ministries Section */
.ministries-section {
    padding: 6rem 0;
    background-color: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 0 auto 1.5rem;
}

.section-header .lead-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--light-text);
}

.ministries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Ensure ministry cards are always visible */
.ministry-card {
    display: block !important; /* Force display */
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    opacity: 1 !important; /* Force visibility */
    transform: none !important; /* Prevent transformations that might hide elements */
}

/* Special handling for animate-on-scroll ministry cards */
.ministry-card.animate-on-scroll {
    opacity: 1 !important; /* Override any animation hiding */
}

/* Improve ministry icons */
.ministry-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 40px;
    width: 40px;
    transition: color 0.3s ease;
}

.ministry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ministry-card:hover .ministry-icon {
    color: var(--primary-color-dark);
}

.ministry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.3;
}

.ministry-card p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    transition: color 0.3s ease;
}

.learn-more:hover {
    color: var(--primary-color-dark);
}

.learn-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* Impact Section */
.impact-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom right, var(--primary-color), #0090ab);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%);
    background-size: 3rem 3rem;
    opacity: 0.1;
}

.impact-section .section-header {
    margin-bottom: 4rem;
    position: relative;
}

.impact-section .section-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.impact-section .section-header .lead-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.impact-section .section-divider {
    background: white;
    opacity: 0.9;
    width: 80px;
    margin: 1.5rem auto;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    display: block;
}

.stat-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .ministries-grid {
        padding: 0 2rem;
    }
}

@media (max-width: 992px) {
    .ministries-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1.5rem;
        gap: 25px;
    }
    
    .ministry-card {
        padding: 2.25rem 1.75rem;
    }
}

@media (max-width: 768px) {
    .ministries-section {
        padding: 4rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header .lead-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .ministries-grid {
        padding: 0 1rem;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .ministries-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ministry-card {
        padding: 2rem 1.5rem;
    }
    
    .ministry-icon {
        height: 50px;
        width: 50px;
        font-size: 2rem;
    }
    
    .ministry-card h3 {
        font-size: 1.3rem;
    }
}

/* Print Styles */
@media print {
    .page-hero {
        height: auto;
        padding: 2rem 0;
        background: none;
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        color: var(--text-color);
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
} 