/* Core Styles */
:root {
    --primary-color: #008080; /* Teal */
    --secondary-color: #2c3e50;
    --text-color: #333;
    --white: #ffffff;
    --bg-light: #f4f7f6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; color: var(--text-color); line-height: 1.6; }
.container { width: 90%; max-width: 1100px; margin: auto; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* FAQ Section Styling */
.faq-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    transition: all 0.3s ease;
}

details[open] {
    border-color: #27ae60; /* Charity Green */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

summary {
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    position: relative;
    padding-left: 30px;
    color: #333;
}

/* Custom indicator arrow */
summary::before {
    content: '▶';
    position: absolute;
    left: 0;
    transition: transform 0.3s;
    color: #27ae60;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details p {
    margin-top: 15px;
    line-height: 1.6;
    color: #555;
    padding-left: 30px;
}

/* Back button */
/* Back to Top Button */
#backToTop {
    display: none; /* Hidden by default */
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 99; 
    border: none; 
    outline: none; 
    background-color: var(--primary-color); 
    color: white; 
    cursor: pointer; 
    padding: 15px; 
    border-radius: 50%; 
    font-size: 18px; 
    width: 50px;
    height: 50px;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#backToTop:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--white);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo { font-weight: 700; font-size: 1.5rem; color: var(--primary-color); font-size: clamp(1.2rem, 4vw, 2.5rem); white-space: nowrap;}
.logo span { color: var(--secondary-color); }
.nav-links { display: flex; align-items: center; }
.nav-links li a { margin-left: 25px; color: var(--text-color); font-weight: 400; }
.nav-links li a:hover { color: var(--primary-color); }
.donate-btn { background: var(--primary-color); color: white !important; padding: 8px 20px; border-radius: 5px; }
.menu-btn { display: none; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1593113598332-cd288d649433?auto=format&fit=crop&q=80&w=1470') no-repeat center center/cover;
    display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white);
}
.hero-text h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero-text p { font-size: 1.2rem; max-width: 700px; margin: auto; }
.hero-btns { margin-top: 30px; }
.btn { padding: 12px 30px; border-radius: 5px; display: inline-block; margin: 10px; font-weight: 600; }
.btn.primary { background: var(--primary-color); color: white; border: none; }
.btn.secondary { border: 2px solid white; color: white; }

/* Mission Grid */
.mission-section { padding: 80px 0; background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2.2rem; }
.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.mission-card { background: white; padding: 40px; border-radius: 10px; text-align: center; transition: 0.3s; }
.mission-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.mission-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }

/* Contact Section */
.contact-section { padding: 80px 0; }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; }

/* Footer */
.main-footer { background: var(--secondary-color); color: #bdc3c7; padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); width: 90%; margin: auto; gap: 40px; }
.footer-box h4 { color: white; margin-bottom: 20px; }
.footer-box ul li { margin-bottom: 10px; }
.footer-box ul li a { color: #bdc3c7; }
.socials a { color: white; font-size: 1.5rem; margin-right: 15px; }
.footer-bottom { text-align: center; padding-top: 40px; border-top: 1px solid #3e4f5f; margin-top: 40px; font-size: 0.9rem; }


/* Popup message/*
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
                 }

/* Mobile Menu */
@media screen and (max-width: 768px) {
    .menu-btn { display: block; }
    .nav-links {
        position: absolute; top: 70px; left: -100%; flex-direction: column;
        background: white; width: 100%; transition: 0.5s; box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 20px 0; }
    .hero-text h1 { font-size: 2.2rem; }
    .contact-container { grid-template-columns: 1fr; }
}

/* Map & Location */
/* Ensure map fills the container correctly */
.map-wrapper iframe {
    width: 100%;
    border-radius: 15px;
    display: block;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Changed from right to left */
    background-color: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 3000;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    color: white;
}

.whatsapp-float i {
    font-size: 1.5rem;
}

/* Hide text on very small phones, keep only icon */
@media screen and (max-width: 480px) {
    .whatsapp-float span { 
        display: none; 
    }
    .whatsapp-float { 
        padding: 15px; 
        border-radius: 50%; 
        bottom: 15px;
        left: 15px;
    }
}


/* Stats Bar */
.stats-bar {
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 40px 5%;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Fix for Map */
@media screen and (max-width: 768px) {
    .stats-bar {
        flex-direction: column;
        gap: 30px;
    }
}
