/**
 * Mosadiotsile Charitable Society - Visibility Fix
 * Corrects display issues causing content to be invisible
 */

/* Fix text visibility issues */
.charity-section {
    color: #333333; /* Ensure text is dark and visible */
    background-color: #ffffff; /* Default white background for all charity sections */
}

/* Alternating section backgrounds for better distinction */
.charity-section:nth-child(even) {
    background-color: #f8f9fa; /* Light gray for even sections */
}

/* Override hero section background */
#charity-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('../assets/images/charity/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

/* Ensure all content is visible with proper spacing */
.charity-section .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Ensure headings are visible */
.charity-section h1,
.charity-section h2,
.charity-section h3,
.charity-section h4 {
    color: #333333;
    margin-bottom: 1.5rem;
}

/* Special handling for hero section headings */
#charity-hero h1,
#charity-hero h2,
#charity-hero h3,
#charity-hero p {
    color: white;
}

/* Fix impact section visibility */
.impact-section {
    background-color: #f8f9fa !important;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.impact-card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Fix involvement section visibility */
.involvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.involvement-card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Fix contact form visibility */
.contact-form-wrapper {
    background-color: #ffffff;
    color: #333333;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 3rem 0;
}

.contact-form label {
    color: #333333;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #cccccc;
}

/* Fix FAQ visibility */
.faqs-container {
    margin: 3rem 0;
}

.faq-item {
    background-color: #ffffff;
    color: #333333;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
}

.faq-question h3 {
    margin: 0;
    color: #333333;
}

.faq-answer {
    padding: 1.5rem;
    background-color: #ffffff;
    color: #333333;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Fix charity quote visibility */
.charity-quote {
    background-color: #f8f9fa;
    border-left: 4px solid #9C3039;
    padding: 1.5rem;
    margin: 2rem 0;
    color: #333333;
}

/* Fix button visibility */
.btn-primary {
    background-color: #9C3039;
    color: #ffffff;
}

.btn-tertiary {
    border: 2px solid #9C3039;
    color: #9C3039;
    background-color: transparent;
}

/* Fix section headers */
.section-header h2 {
    color: #333333;
}

.section-header .divider {
    background-color: #9C3039;
    height: 3px;
    width: 60px;
    margin: 0 auto 1.5rem;
}

.section-header p {
    color: #555555;
}

/* Make sure animated elements are visible by default */
.animate-on-scroll {
    opacity: 1;
}

/* Fix hero particles visibility */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#charity-hero .container {
    position: relative;
    z-index: 2;
}

/* Fix layout issues with too much white space */
.charity-section + .charity-section {
    margin-top: 0;
    padding-top: 2rem;
}

/* Ensure all content areas are visible */
.charity-section {
    min-height: auto;
    padding: 4rem 0;
}