:root {
    --primary-color: #1a4f3e; /* Deep green */
    --secondary-color: #d4af37; /* Gold/Yellow accents */
    --text-dark: #2d3748;
    --text-light: #f7fafc;
    --bg-light: #ffffff;
    --bg-gray: #f8fafc;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
}

.logo h1 {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.logo span {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav a:hover, .nav a.active {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('https://images.pexels.com/photos/6646917/pexels-photo-6646917.jpeg?auto=compress&cs=tinysrgb&w=2000'); /* NGO / Charity photo */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 79, 62, 0.8) 0%, rgba(26, 79, 62, 0.3) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    width: 100%;
}

.hero .container {
    width: 100%;
}

.badge {
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--secondary-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--secondary-color);
}

.hero h2 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Section Common */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Activities Cards */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--secondary-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.card-content p {
    color: #555;
    margin-bottom: 20px;
}

.card-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--secondary-color);
}

/* Project Detail Sections */
.project-section {
    background-color: var(--bg-light);
    border-bottom: 1px solid #eaeaea;
}

.project-section:nth-of-type(even) {
    background-color: var(--bg-gray);
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.project-grid.reverse .project-image {
    order: 2;
}

.project-grid.reverse .project-content {
    order: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: block;
}

.project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-content h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.project-content p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.facts-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.facts-list li {
    background: rgba(26, 79, 62, 0.05);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.facts-list li strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.facts-list li span {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-grid.reverse .project-image,
    .project-grid.reverse .project-content {
        order: initial;
    }
}

/* Mission Section */
.mission-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 120px 0;
}

.mission-section .badge {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.mission-section h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.mission-text {
    font-size: 1.4rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    opacity: 0.95;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-top: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.news-date {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.news-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-card p {
    color: #666;
    margin-bottom: 25px;
}

.news-link {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--primary-color);
}

/* Footer Section */
.footer {
    background-color: #111;
    color: #ccc;
    padding: 80px 0 20px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-col strong {
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.footer-col ul li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
}

/* Contact Page Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    padding: 80px 0;
}

.contact-info-block {
    background-color: var(--primary-color);
    color: white;
    padding: 50px;
    border-radius: 12px;
}

.contact-info-block h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: white;
}

.contact-info-block p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}

.contact-info-block strong {
    min-width: 90px;
    display: inline-block;
    color: var(--secondary-color);
}

.contact-info-block a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info-block a:hover {
    color: var(--secondary-color);
}

.contact-form {
    background: var(--bg-light);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.contact-form h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-form > p {
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    background: #f9f9f9;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.popup-content {
    background: #fff;
    padding: 40px 50px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.popup-content p {
    font-size: 1.2rem;
    color: #555;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #333;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Header Mobile & Burger Menu */
    .header {
        padding: 15px 0;
    }
    .header-content {
        flex-wrap: wrap;
        text-align: left;
    }
    .menu-toggle {
        display: block;
        position: absolute;
        top: 25px;
        right: 24px;
    }
    
    .nav {
        width: 100%;
        display: none;
        margin-top: 20px;
    }
    .header-content > .btn {
        display: none;
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }
    
    .header-content.menu-open .nav,
    .header-content.menu-open > .btn {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .btn {
        width: 100%;
        text-align: center;
    }

    /* Hero */
    .hero {
        text-align: center;
    }
    .hero h2, .page-hero h1 {
        font-size: 2.5rem;
    }
    .hero p, .page-hero p {
        font-size: 1rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-hero {
        padding: 120px 0 60px;
    }

    /* General Typography & Spacing */
    .section {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .mission-section {
        padding: 60px 0;
    }
    .mission-section h2 {
        font-size: 2rem;
    }
    .mission-text {
        font-size: 1.1rem;
    }

    /* Facts List */
    .facts-list {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer {
        padding: 50px 0 20px;
    }
    .footer-col {
        text-align: center;
    }
    .footer-col ul li {
        padding-left: 0;
    }
    .footer-col ul li::before {
        display: none;
    }
}
