/* --- General Body & Typography --- */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

h1 { font-size: 3em; }
h2 { font-size: 2.2em; text-align: center; margin-bottom: 40px; }
p { font-size: 1.1em; }

/* --- Header & Navigation --- */
.main-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
}

.nav-logo img {
    height: 60px; /* Adjust size as needed */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #702963; /* Main Brand Purple */
}

/* --- Buttons --- */
.cta-button {
    background-color: #702963; /* Main Brand Purple */
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #844258; /* Secondary Brand Color */
}

.nav-cta {
    padding: 10px 20px;
}

/* --- Hero Section --- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/community-event.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* --- Content Sections --- */
.content-section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.bg-light {
    background-color: #f7f5f9;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* --- CTA Section --- */
.cta-section {
    background-color: #844258;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.cta-button-light {
    background-color: #fff;
    color: #702963;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.cta-button-light:hover {
    transform: translateY(-3px);
}

/* --- Footer --- */
.main-footer {
    background-color: #333;
    color: #ecf0f1;
    text-align: center;
    padding: 40px 20px;
}

.main-footer a {
    color: #ecf0f1;
    text-decoration: underline;
}
.footer-socials {
    margin-top: 15px;
    font-size: 1.5em;
}
.footer-socials a {
    margin: 0 10px;
    text-decoration: none;
}

/* --- Contact Page Styles --- */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 60px;
    text-align: left;
}
.contact-form input,
.contact-form textarea,
.contact-form select { /* Added the select element here */
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #702963; }
.contact-form button { width: 100%; border: none; cursor: pointer; font-size: 1.1rem; }
.contact-info h3 { font-size: 1.4rem; margin-top: 0; margin-bottom: 10px; color: #702963; }
.contact-info p { margin-bottom: 25px; font-size: 1rem; }
.map-container { border-radius: 8px; overflow: hidden; margin-top: 20px; }

/* --- About Page Styles --- */
.page-header { background-color: #702963; color: #fff; text-align: center; padding: 60px 20px; }
.page-header h1 { font-size: 2.8em; margin: 0; }
.split-section { display: flex; align-items: center; gap: 50px; text-align: left; }
.split-content, .split-image { flex: 1; }
.split-image img { width: 100%; border-radius: 8px; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}
.team-member-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.team-member-card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}
.team-member-card h3 { margin-bottom: 5px; }
.team-member-card p { font-style: italic; color: #555; }

/* --- Blog Page Styles --- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.blog-post-card { background: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.blog-post-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.blog-post-card a { text-decoration: none; color: inherit; }
.blog-post-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-post-card .card-content { padding: 25px; }
.blog-post-card h3 { margin-top: 0; font-size: 1.4rem; }
.blog-post-card span { display: inline-block; margin-top: 15px; font-weight: 600; color: #702963; }

/* --- Single Blog Post Styles --- */
.blog-post-content { max-width: 800px; margin: 60px auto; padding: 0 20px; }
.post-header { text-align: center; margin-bottom: 40px; }
.post-header h1 { font-size: 2.8em; margin-bottom: 10px; }
.post-meta { font-size: 0.9em; color: #777; font-style: italic; }
.post-image-container { margin-bottom: 40px; }
.post-image-container img { width: 100%; border-radius: 8px; }
.post-body p { font-size: 1.1em; line-height: 1.8; margin-bottom: 20px; }
.post-body h4 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.5em; margin-top: 40px; margin-bottom: 15px; color: #702963; }

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 0.5rem; }
    .nav-menu { flex-direction: column; gap: 0.5rem; text-align: center; padding-left: 0; }
    .contact-container { grid-template-columns: 1fr; }
    .split-section { flex-direction: column; }
}
/* --- Mission & Vision Section --- */
.mission-vision-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.mission-vision-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.mission-vision-card h3 {
    color: #702963;
    margin-top: 0;
}

.mission-vision-card p {
    font-size: 1.2em;
    font-style: italic;
    color: #555;
}

/* --- Responsive adjustment for Mission & Vision --- */
@media (max-width: 768px) {
    .mission-vision-container {
        grid-template-columns: 1fr;
    }
}
/* --- Testimonials Page Styles --- */
.testimonial-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.testimonial-card {
    background: #f7f5f9; /* Light background to stand out */
    border-left: 5px solid #702963; /* Brand color accent */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.testimonial-quote {
    font-size: 1.2em;
    font-style: italic;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: #555;
    text-align: right;
    margin-bottom: 0;
}
/* --- Dynamic Fade-in Animation --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* This is a placeholder for when we add Javascript to trigger the animation on scroll */
/* For now, this will make it fade in on page load. */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
}
/* --- Homepage Background Image Section --- */
.background-image-section {
    /* This creates a semi-transparent purple overlay so the text is readable */
    background-image: linear-gradient(rgba(112, 41, 99, 0.85), rgba(112, 41, 99, 0.85)), url('images/maxine-josiah.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* This creates the cool parallax scrolling effect */
    padding: 100px 20px;
    text-align: center;
    color: #fff; /* Makes the text white so it stands out */
}

.section-content-overlay {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.2); /* Optional: A very subtle dark box for the text */
    padding: 20px;
    border-radius: 8px;
}

.background-image-section h2 {
    margin-bottom: 20px;
}
/* --- Gallery Page Styles --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.video-item iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Lightbox Styles --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 200;
}

.lightbox:target {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3em;
    text-decoration: none;
}
/* --- Gallery Captions Styles --- */
.gallery-item figure {
    margin: 0;
    width: 100%;
    height: 100%;
    position: relative; /* Needed for positioning the caption */
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    color: #fff;
    padding: 12px;
    text-align: center;
    font-size: 0.9em;
    font-weight: 600;
    
    /* Animation effect */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover figcaption {
    opacity: 1; /* Makes the caption appear on hover */
}
/* --- Navigation Dropdown Styles --- */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 200px;
}

.dropdown-menu .nav-item {
    width: 100%;
}

.dropdown-menu .nav-link {
    padding: 12px 20px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Show the dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}
/* --- Homepage Impact Section --- */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.impact-card {
    text-align: center;
    padding: 20px;
}

.impact-number {
    display: block;
    font-size: 3.5em;
    font-weight: 700;
    color: #702963; /* Main Brand Purple */
}

.impact-label {
    display: block;
    font-size: 1.1em;
    color: #555;
    margin-top: 5px;
}

/* --- Homepage Journey Section --- */
.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.journey-step {
    text-align: center;
}

.journey-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: #702963; /* Main Brand Purple */
    color: #fff;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 auto 20px;
}
/* --- Get Involved Page --- */
.get-involved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.opportunity-card {
    background: #f7f5f9;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.opportunity-icon {
    font-size: 3em;
    color: #702963;
    margin-bottom: 20px;
}
.opportunity-card .cta-button {
    margin-top: 20px;
}

/* --- Services Page --- */
.service-item {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}
.service-icon {
    font-size: 2.5em;
    color: #702963;
    margin-bottom: 15px;
}
.service-item p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- About Page - Difference Section --- */
.difference-grid, .focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.difference-card, .focus-card {
    text-align: center;
}
.difference-card i, .focus-card i {
    font-size: 2.5em;
    color: #702963;
    margin-bottom: 15px;
}

/* --- New Donate Button in Nav --- */
.navbar .cta-buttons {
    display: flex;
    gap: 10px;
}
.donate-cta {
    background-color: #844258; /* Secondary Brand Color */
}
.donate-cta:hover {
    background-color: #702963;
}
/* --- Side Navigation Arrows --- */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(112, 41, 99, 0.7); /* Semi-transparent brand purple */
    color: #fff;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
}

.nav-arrow:hover {
    background-color: #702963; /* Solid brand purple on hover */
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

/* Hide arrows on smaller screens to avoid covering content */
@media (max-width: 992px) {
    .nav-arrow {
        display: none;
    }
}
/* --- Mission & Vision Section --- */
.mission-vision-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.mission-vision-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.mission-vision-card h3 {
    color: #702963;
    margin-top: 0;
}

.mission-vision-card p {
    font-size: 1.2em;
    font-style: italic;
    color: #555;
}

.symbol-icon {
    font-size: 3.5em; /* Makes the icon large */
    color: #702963; /* Uses the main brand purple */
    margin-bottom: 15px;
}

/* --- Responsive adjustment for Mission & Vision --- */
@media (max-width: 768px) {
    .mission-vision-container {
        grid-template-columns: 1fr;
    }
}
/* --- New Donation Page Styles --- */
.donation-options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.donation-card {
    background-color: #f7f5f9;
    padding: 30px;
    border-radius: 8px;
    border-top: 5px solid #702963;
}

.donation-card h2 {
    text-align: left;
    margin-top: 0;
}

.donation-card h2 i {
    margin-right: 10px;
}

.payment-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.payment-box h3 {
    margin-top: 0;
    font-size: 1.2em;
}

.payment-details {
    margin-top: 10px;
}

.payment-details p {
    font-size: 1em;
    line-height: 1.5;
    margin: 5px 0;
}

.goods-list {
    margin-top: 20px;
}

.goods-list ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.goods-list li {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.goods-list li i {
    color: #702963;
    margin-right: 10px;
}

.donation-card .cta-button {
    margin-top: 20px;
}

/* Responsive adjustments for donation page */
@media (max-width: 992px) {
    .donation-options-container {
        grid-template-columns: 1fr;
    }
}
/* --- Long-Term Vision Summary --- */
.vision-summary {
    margin-top: 50px;
    font-size: 1.2em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}