/* --- CSS Reset & Base Styles --- */
body, h1, h2, h3, p, ul, address {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
    line-height: 1.6;
    color: #444444;
}
.page-container {
    max-width: 680px;
    margin: 0 auto; 
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}
a {
    color: #9b2d29;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: #621714;
    text-decoration: underline;
}
hr {
    border: 0;
    border-top: 1px solid #eeeeee;
    margin: 0 20px;
}

/* --- Typography & Headings --- */
h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 25px; 
    margin-bottom: 8px;
    color: #222222;
}
h4 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #222222;
}
p {
    margin-bottom: 15px;
}

/* --- Buttons (Standardized look) --- */
.button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    transition: background 0.2s ease;
    margin-top: 20px;
    border: 2px solid transparent; 
}
.primary-button {
    background: #222222;
    color: #ffffff !important;
    border-color: #222222;
}
.primary-button:hover {
    background: #555555;
    border-color: #555555;
}

/* --- Layout Sections --- */
.header-section {
    text-align: center;
    padding: 30px 0 20px 0;
}
.logo {
    max-width: 580px;
    height: auto;
}
.mission-section {
    padding: 40px;
    text-align: center;
    color: #555555;
    font-size: 18px;
    line-height: 1.5;
    border-bottom: 1px solid #eeeeee;
}

/* --- Colored Bands (Impact/Info) --- */
.info-band {
    padding: 40px;
    text-align: center;
}
.color-maroon {
    background-color: #9b2d29;
    color: #ffffff;
}

/* FIX: Ensure nested elements like titles, paragraphs, and links are white on the maroon background */
.color-maroon h2,
.color-maroon p,
.color-maroon strong,
.color-maroon a {
    color: #ffffff; 
}

.color-maroon .section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

/* --- Column Wrappers (Flexbox) --- */
.two-column-wrapper,
.three-column-wrapper {
    display: flex;
    flex-wrap: wrap; 
    padding: 20px;
    gap: 30px; 
}
.content-column,
.content-column-third {
    flex: 1 1 calc(50% - 30px); 
    padding: 0;
    text-align: left;
}
.content-column-third {
    flex: 1 1 calc(33.33% - 30px); 
}
.column-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* --- Split Row Layout (Image + Text) --- */
.content-row-split {
    display: flex;
    flex-wrap: wrap;
    padding: 30px 20px; 
    align-items: center; 
    border-top: 1px solid #eeeeee; 
}
.split-image-col {
    flex: 1 1 30%; 
    padding: 10px;
}
.split-text-col {
    flex: 1 1 60%; 
    padding: 10px 10px 10px 20px; 
}

/* --- Contact Section (Index Page Specific) --- */
.contact-section {
    padding: 40px 20px;
    background-color: #f7f7f7;
    border-radius: 0 0 8px 8px; 
}

/* 🚀 CONTACT LAYOUT FIXES: Sizing for smaller image, tighter spacing, and smaller text */
.contact-align-wrapper {
    display: flex;
    flex-wrap: wrap; 
    /* FIX: Reduced gap between image and text grid */
    gap: 20px;
    align-items: flex-start; 
    padding: 0 10px;
}

/* Contact Grid Column (Content on LEFT) */
.contact-grid-col {
    /* Calculated space: 100% - Image (210px) - Gap (20px) = 230px left for this column */
    flex: 1 1 calc(100% - 230px); 
    max-width: calc(100% - 230px);
    padding-top: 0; 
}

/* Image Column (Image on RIGHT) */
.contact-image-col-index {
    /* FIX: Reduced width to 210px (approx 85% of previous size) */
    flex: 0 0 210px; 
    max-width: 210px; 
    min-width: 210px; 
    
    padding-top: 0; 
    padding-left: 0; 
    margin-top: 0; 
}
.contact-image-col-index .column-image {
    width: 100%; 
    height: auto; 
    display: block;
    border-radius: 4px;
}

/* Styling for content inside the contact grid */
.contact-grid-col h2 {
    /* FIX: Matches the style of the h3 elements (e.g., "Support Redeemed & Restored Ministries") */
    font-size: 18px; 
    font-weight: 600;
    margin-top: 0; 
    margin-bottom: 25px; 
    color: #222222;
}

.contact-grid {
    display: grid;
    /* Uses auto for the label to take minimum required width */
    grid-template-columns: auto 1fr;
    /* FIX: Reduced vertical gap between rows */
    gap: 6px 10px;
    max-width: 500px;
    margin-top: 0;
    /* FIX: Reduced font size for the overall grid, which controls the email addresses */
    font-size: 12px; 
}
.contact-label {
    background: #222222;
    color: #ffffff;
    /* FIX: Reduced vertical and horizontal padding for minimum box size */
    padding: 6px 6px; 
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    /* Font size remains small */
    font-size: 12px; 
}
.contact-value {
    background: #e9e9e9;
    color: #222222;
    /* FIX: Reduced vertical and horizontal padding for minimum box size */
    padding: 6px 8px; 
    border-radius: 4px;
    text-align: left;
    word-wrap: break-word;
    /* CRITICAL FIX: Ensures long email strings will break if necessary */
    word-break: break-all;
}
.contact-value a {
    color: #222222;
    text-decoration: none;
}

/* --- Footer --- */
.footer-section {
    padding: 30px 10px;
    font-size: 13px;
    text-align: center;
    color: #aaaaaa;
    background-color: #222222;
}
.footer-section p, .footer-section address {
    color: #dddddd;
}

/* --- Mobile Responsiveness (Shared) --- */
@media screen and (max-width: 600px) {
    .two-column-wrapper,
    .three-column-wrapper {
        padding: 20px 10px;
    }
    .two-column-wrapper,
    .three-column-wrapper,
    .content-row-split,
    .contact-align-wrapper {
        flex-direction: column;
    }
    .content-column,
    .content-column-third,
    .split-image-col,
    .split-text-col,
    .contact-grid-col,
    .contact-image-col-index {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 10px 0;
        margin-top: 0;
    }
    .contact-image-col-index {
        order: -1; 
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .reverse-mobile {
        flex-direction: column-reverse;
    }
}