@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

/* ======================= GENERAL & REUSABLE STYLES ======================= */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #333;
    background-color: #ffffff;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}
.section-intro h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}
.section-intro .subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #008080; /* Teal */
    margin-bottom: 20px;
}

/* ======================= HEADER STYLES ======================= */
header.site-header {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo a { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; color: #008080; text-decoration: none; }
.logo img { height: 40px; }
.main-nav ul { margin: 0; padding: 0; list-style: none; }
.main-nav ul li { display: inline-block; margin-left: 25px; }
.main-nav a { text-decoration: none; color: #333; font-weight: 600; }
.btn-donate { background-color: #FF7F50; color: #fff; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: 600; }

/* --- NEW: Style for the active navigation link highlight --- */
.main-nav a.active {
    color: #008080; /* Teal highlight color */
    font-weight: 700;
    position: relative;
}
.main-nav a.active::after { /* Adds the green underline to the active link */
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: #008080;
    position: absolute;
    bottom: -10px;
}

/* ======================= HOMEPAGE: HERO SECTION ======================= */
.hero {
    background-image: linear-gradient(rgba(0, 50, 50, 0.7), rgba(0, 50, 50, 0.7)), url('hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero-content h1 { font-size: 48px; margin-bottom: 20px; line-height: 1.2; }
.hero-content p { font-size: 18px; margin-bottom: 30px; }
.btn-primary { background-color: #FF7F50; color: #fff; padding: 15px 30px; border-radius: 5px; text-decoration: none; font-weight: 700; font-size: 16px; transition: background-color 0.3s; }
.btn-primary:hover { background-color: #e66a3f; }

/* ======================= HOMEPAGE: CHALLENGE SECTION ======================= */
.challenge-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
}
.challenge-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.challenge-box { background: #fff; padding: 30px; text-align: center; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.challenge-box:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.challenge-box i { font-size: 40px; color: #FF7F50; margin-bottom: 15px; }
.challenge-box .stat-number { font-size: 42px; font-weight: 800; color: #008080; display: block; }
.challenge-box h3 { margin: 10px 0 5px 0; font-size: 18px; }
.challenge-box p { font-size: 15px; color: #555; line-height: 1.5; }

/* ======================= HOMEPAGE: SOLUTION SECTION ======================= */
.solution-section {
    padding: 80px 20px;
    background-color: #fff;
}
.solution-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.solution-box { background: #f9f9f9; padding: 30px; border-radius: 10px; border: 1px solid #eee; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.solution-box:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.solution-box i { font-size: 40px; color: #008080; margin-bottom: 20px; }
.solution-box h3 { margin-bottom: 15px; font-size: 20px; }
.solution-box p { font-size: 15px; color: #555; line-height: 1.6; }

/* ======================= HOMEPAGE: OUR IMPACT SECTION ======================= */
.impact-section {
    padding: 80px 20px;
    background-color: #008080;
    color: #fff;
}
.impact-section .section-intro .subtitle { color: #FF7F50; }
.impact-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.impact-column { background-color: rgba(255, 255, 255, 0.1); padding: 30px; border-radius: 10px; }
.impact-column h3 { font-size: 22px; border-bottom: 2px solid #FF7F50; padding-bottom: 10px; margin-bottom: 20px; }
.impact-column ul { list-style: none; padding: 0; }
.impact-column ul li { padding-left: 25px; position: relative; margin-bottom: 15px; font-size: 16px; line-height: 1.6; }
.impact-column ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: #FF7F50; position: absolute; left: 0; top: 5px; }

/* ======================= ABOUT US PAGE STYLES ======================= */
.page-header {
    background: linear-gradient(45deg, #008080, #006a6a);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
    /* UPDATED: Softer border for a more subtle look */
    border-bottom: 3px solid #005a5a;
}
.page-header h1 { margin: 0; font-size: 48px; font-weight: 800; letter-spacing: 1px; }
.about-section { padding: 80px 20px; background: #fff; }
.about-container { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.about-text { flex: 1.2; min-width: 300px; }
.about-text h2 { font-size: 36px; font-weight: 700; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.about-text h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 4px; background-color: #FF7F50; }
.about-text p { font-size: 16px; line-height: 1.8; color: #555; }
.about-image { flex: 1; min-width: 300px; position: relative; }
.about-image img { width: 100%; border-radius: 10px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); display: block; }
.about-image::before { content: ''; position: absolute; top: -20px; left: -20px; width: 100%; height: 100%; background: #f0f8f8; border-radius: 10px; z-index: -1; transition: all 0.3s ease; }
.mission-vision-section { background-color: #f9fafb; padding: 80px 20px; }
.mission-vision-box { display: grid; grid-template-columns: 1fr; gap: 40px; }
.box-item {
    background: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    /* UPDATED: Centered content with a vertical layout */
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 15px;
}
.box-item .icon-wrapper { background-color: #FF7F50; color: #fff; border-radius: 50%; min-width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.box-item h3 { font-size: 24px; margin-top: 0; margin-bottom: 10px; font-weight: 700; }
.box-item p { margin: 0; color: #555; line-height: 1.7; }
.team-section { padding: 80px 20px; background: #fff; }
.team-subheading { text-align: center; font-size: 28px; font-weight: 700; margin-top: 60px; margin-bottom: 40px; position: relative; }
.team-subheading::after { content: ''; display: block; width: 60px; height: 3px; background-color: #008080; margin: 10px auto 0; }
.founders-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; max-width: 900px; margin: 0 auto; }
.founder-card { background: #f9fafb; border-radius: 10px; text-align: center; padding: 40px 30px; box-shadow: 0 5px 25px rgba(0,0,0,0.07); transition: transform 0.3s, box-shadow 0.3s; }
.founder-card:hover { transform: translateY(-8px); box-shadow: 0 12px 35px rgba(0,0,0,0.1); }
.founder-card img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 6px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin-bottom: 20px; }
.founder-info h4 { font-size: 22px; margin: 0 0 5px 0; color: #008080; font-weight: 700; }
.founder-info h5 { font-size: 16px; font-weight: 600; color: #555; margin: 0 0 15px 0; }
.founder-info p { color: #555; line-height: 1.7; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.team-member { background-color: #fff; padding: 30px; border-radius: 10px; border: 1px solid #eee; text-align: center; transition: border-color 0.3s, box-shadow 0.3s; }
.team-member:hover { border-color: #008080; box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.team-member h4 { font-size: 20px; color: #008080; margin-top: 0; margin-bottom: 10px; }

/* Responsive adjustments */
@media (min-width: 768px) {
    .mission-vision-box { grid-template-columns: 1fr 1fr; }
}

/* ======================= FOOTER STYLES ======================= */
footer.site-footer { background-color: #111827; color: #fff; padding: 40px 0; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.footer-section { flex: 1; min-width: 200px; }
.footer-section h4 { border-bottom: 1px solid #555; padding-bottom: 10px; margin-bottom: 15px; font-weight: 700; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section a { color: #FF7F50; text-decoration: none; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { font-size: 22px; text-decoration: none; color: #fff; opacity: 0.8; transition: opacity 0.3s; }
.social-icons a:hover { opacity: 1; }
.copyright { text-align: center; border-top: 1px solid #555; padding-top: 20px; }

/* ======================= OUR WORK PAGE STYLES ======================= */

.page-intro {
    padding: 60px 0;
    background-color: #f9fafb;
}

.strategy-section {
    padding: 80px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.strategy-section:last-child {
    border-bottom: none;
}

.strategy-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.strategy-text {
    flex: 1;
}

.strategy-image {
    flex: 1;
    max-width: 500px;
}

.strategy-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* This creates the alternating layout */
.strategy-section.alt-layout .strategy-container {
    flex-direction: row-reverse;
}

.strategy-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.strategy-text h2 i {
    color: #FF7F50;
}

.strategy-text h3 {
    font-size: 20px;
    font-weight: 600;
    color: #008080;
    margin-top: 25px;
    margin-bottom: 15px;
    border-left: 3px solid #FF7F50;
    padding-left: 10px;
}

.strategy-text ul {
    list-style: none;
    padding-left: 0;
}

.strategy-text ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    color: #555;
    line-height: 1.7;
}

.strategy-text ul li::before {
    content: '\f058'; /* Font Awesome check-circle icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #008080;
    position: absolute;
    left: 0;
    top: 5px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .strategy-container,
    .strategy-section.alt-layout .strategy-container {
        flex-direction: column;
    }
    .strategy-text h2 {
        font-size: 28px;
    }
}

/* ======================= STORIES PAGE STYLES ======================= */
.stories-section {
    padding: 20px 20px 80px 20px;
    background-color: #f9fafb;
}

.stories-grid {
    display: grid;
    /* Creates a responsive grid that fits as many columns as possible */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.story-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    overflow: hidden; /* Keeps the image corners rounded */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover; /* Prevents image stretching */
    display: block;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows footer of card to align */
}

.story-category {
    display: inline-block;
    background-color: #f0f8f8; /* Light teal */
    color: #008080;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    align-self: flex-start; /* Makes the category tag only as wide as its content */
}

.card-content h3 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.4;
}

.story-excerpt {
    color: #555;
    line-height: 1.7;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.read-more-btn {
    color: #FF7F50;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    align-self: flex-start;
}

.read-more-btn i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* ======================= OUR IMPACT PAGE STYLES ======================= */
.impact-timeline-section {
    padding: 20px 20px 80px 20px;
    background-color: #f9fafb;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.impact-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
}

.impact-card .card-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.impact-card .card-header i {
    font-size: 36px;
    color: #fff;
    background-color: #FF7F50;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.impact-card .card-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #008080;
}

.impact-card .card-body {
    padding: 30px;
    flex-grow: 1;
}

.impact-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.impact-card ul li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 18px;
    color: #555;
    line-height: 1.7;
}

.impact-card ul li:last-child {
    margin-bottom: 0;
}

.impact-card ul li::before {
    content: '\f00c'; /* Font Awesome checkmark */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #008080;
    position: absolute;
    left: 0;
    top: 5px;
}

/* ======================= NEWS PAGE STYLES ======================= */
.news-section {
    padding: 20px 20px 80px 20px;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 30px;
}
.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-date {
    background-color: #f9fafb;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    height: fit-content;
}
.news-date .day {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #008080;
}
.news-date .month {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
}

.news-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
}
.news-content h3 a {
    text-decoration: none;
    color: #333;
    font-size: 24px;
    transition: color 0.3s;
}
.news-content h3 a:hover {
    color: #008080;
}

.news-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 576px) {
    .news-item {
        flex-direction: column;
    }
    .news-date {
        align-self: flex-start;
    }
}

/* ======================= CONTACT PAGE STYLES ======================= */
.contact-section {
    padding: 20px 20px 80px 20px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Left column is smaller than the right */
    gap: 50px;
}

/* --- Contact Details (Left Side) --- */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.info-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.info-block i {
    font-size: 24px;
    color: #008080;
    margin-top: 5px;
    width: 30px;
    text-align: center;
}
.info-text h3 {
    font-size: 20px;
    margin: 0 0 5px 0;
}
.info-text p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}
.contact-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.contact-social-icons a {
    font-size: 22px;
    text-decoration: none;
    color: #333;
    opacity: 0.8;
    transition: color 0.3s;
}
.contact-social-icons a:hover {
    color: #008080;
}

/* --- Contact Form (Right Side) --- */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    gap: 20px;
}
.form-group input {
    width: 100%;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #008080;
}
.contact-form button {
    border: none;
    cursor: pointer;
    align-self: flex-start;
}

/* --- Map Section --- */
.map-section {
    width: 100%;
    height: 400px;
}
.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f0f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #aaa;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 576px) {
    .form-group {
        flex-direction: column;
    }
}

/* ======================= RESPONSIVE STYLES (for Mobile) ======================= */

/* This code applies only to screens 992px wide or smaller */
@media (max-width: 992px) {
    /* --- Mobile Navigation Setup --- */
    .hamburger {
        display: block; /* Show the hamburger icon */
        cursor: pointer;
    }
    .hamburger .line {
        width: 30px;
        height: 3px;
        background-color: #333;
        margin: 6px 0;
        transition: 0.4s;
    }
    .main-nav {
        /* Position the menu off-screen to the right */
        position: fixed;
        right: -100%; /* Start off-screen */
        top: 75px; /* Position below the header */
        background-color: #fff;
        width: 100%;
        height: 100vh; /* Full screen height */
        text-align: center;
        transition: right 0.5s ease-in-out;
        padding-top: 50px;
    }
    .main-nav.nav-active {
        right: 0; /* Slide the menu into view */
    }
    .main-nav ul {
        flex-direction: column; /* Stack links vertically */
    }
    .main-nav ul li {
        display: block; /* ADDED THIS LINE: Forces each link to take its own line */
        margin: 20px 0;
    }
    .main-nav a {
        font-size: 20px;
    }
    /* Hide the desktop donate button */
    .btn-donate {
        display: none;
    }

    /* --- General layout adjustments for mobile --- */
    .hero-content h1 { font-size: 36px; }
    .challenge-boxes, .solution-boxes, .impact-grid, .team-grid { grid-template-columns: 1fr; }
    .about-container, .strategy-container, .strategy-section.alt-layout .strategy-container { flex-direction: column; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* ======================= DONATE PAGE STYLES ======================= */
.donate-options-section {
    padding: 20px 20px 80px 20px;
    background-color: #f9fafb;
}
.donate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}
.donate-card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    text-align: center;
}
.donate-card i {
    font-size: 40px;
    color: #008080;
    margin-bottom: 20px;
}
.donate-card h3 {
    margin-top: 0;
    font-size: 24px;
}
.donate-details {
    text-align: left;
    margin-top: 30px;
    background: #f9fafb;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #eee;
}
.donate-details p {
    margin: 10px 0;
    line-height: 1.7;
}
@media (max-width: 768px) {
    .donate-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================= DONATE BUTTON FIX ======================= */

/* This hides the "Donate Now" text link on desktop screens */
.btn-donate-mobile {
    display: none;
}

/* This block handles the buttons on mobile screens */
@media (max-width: 992px) {
    /* This hides the original square "Donate" button on mobile */
    .btn-donate {
        display: none;
    }

    /* This shows the "Donate Now" link inside the mobile menu */
    .btn-donate-mobile {
        display: inline-block;
        background-color: #FF7F50;
        color: #fff;
        padding: 10px 25px;
        border-radius: 5px;
        margin-top: 15px;
        text-decoration: none;
    }
}