/* General Reset */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

:root {
    /* --- COLOR PALETTE --- */
    --primary-color: #58c5c8; /* Teal */
    --hover-color: #FFC107;   /* Gold */
    --dark-color: #000000;    /* Black */
    --white-color: #ffffff;   /* White */
    --bg-color: #f4f8f9;      /* Off-White */
}

body { 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
    /* UPDATED: Reduced padding since header is shorter now */
    padding-top: 80px; 
    background-color: var(--bg-color);
    color: #333;
}

.container { max-width: 1100px; margin: auto; padding: 0 20px; }

/* --- UPDATED NAVBAR WITH OVERLAPPING LOGO --- */
.navbar { 
    background: var(--dark-color); 
    color: var(--white-color); 
    /* UPDATED: Standard padding, shorter than before */
    padding: 1rem 0; 
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%;
    z-index: 1000; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); 
    border-bottom: 3px solid var(--primary-color);
}

.navbar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    /* UPDATED: This is crucial. It allows the logo to "hang" out of the box */
    position: relative; 
}

/* --- OVERLAPPING LOGO STYLES --- */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
    height: 60px; 
    position: relative; 
}

.logo-img {
    height: 100px;
    width: auto;
    position: absolute;
    
    /* UPDATED: This moves the logo down so the center hits the blue line */
    top: 25px; 
    
    left: 0;
    z-index: 1001; /* Keeps it on top of the blue border line */
    transition: transform 0.3s ease;
    
    /* Optional: Adds a small white glow/border to separate logo from the blue line behind it */
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.3));
}

.logo-link:hover .logo-img {
    transform: scale(1.05); 
}

.logo-text {
    font-size: 1.5rem; 
    font-weight: 800;
    color: var(--white-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    
    /* UPDATED: Increased padding to ensure text doesn't overlap the image */
    padding-left: 130px; 
}


/* Navigation Links */
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 20px; }
.nav-links a { color: var(--white-color); text-decoration: none; font-weight: bold; transition: color 0.3s; }
.nav-links a:not(.nav-donate-btn):hover, .nav-links a:not(.nav-donate-btn).active { color: var(--primary-color); }

/* Donate Button Style */
.nav-donate-btn {
    background-color: var(--primary-color);
    color: var(--dark-color) !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 800 !important;
}
.nav-donate-btn:hover {
    background-color: var(--hover-color); 
    color: var(--dark-color) !important;
}

/* Hero Section */
.hero { 
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1547592166-23ac45744acd?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover; 
    height: 60vh; 
    color: var(--white-color); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    position: relative; 
}
.hero .container { position: relative; z-index: 1; }
.hero h2 { font-size: 3rem; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { margin-bottom: 30px; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.8; }

/* General Buttons */
.btn { 
    display: inline-block; 
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 10px 30px; 
    border-radius: 5px; 
    text-decoration: none; 
    border: none; 
    cursor: pointer; 
    font-size: 1rem; 
    font-weight: bold;
    transition: background 0.3s ease;
}
.btn:hover { background: var(--hover-color); }

/* Stats Section */
.stats { padding: 4rem 0; background: var(--white-color); text-align: center; }
.stats h2 { margin-bottom: 2rem; color: var(--dark-color); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.stat-box { background: var(--bg-color); padding: 2rem; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border: 1px solid #eee;}
.stat-box i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }
.stat-box h3 { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--dark-color); }

/* Sub-page Header */
.page-header { background: var(--dark-color); color: var(--white-color); padding: 3rem 0; text-align: center; border-bottom: 3px solid var(--primary-color); }
.page-header h2 { font-size: 2.5rem; }

/* Content Section & Grids */
.content-section { padding: 3rem 0; flex: 1; }
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.card { background: var(--white-color); padding: 2rem; border: 1px solid #ddd; border-radius: 5px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.card h3 { color: var(--dark-color); margin-bottom: 1rem; }

/* Gallery Section */
.gallery-section { padding: 3rem 0; background: var(--white-color); }
.gallery-section h3 { text-align: center; margin-bottom: 2rem; font-size: 2rem; color: var(--dark-color); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-grid img {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover; /* Ensures images cover the area without distortion */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid img:hover {
    transform: scale(1.5);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 10;
    position: relative;
}
/* Donate Page Styles */
.donate-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.donate-card { background: var(--white-color); border: 2px solid var(--bg-color); border-radius: 8px; padding: 2rem; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s ease, border-color 0.3s ease;}
.donate-card:hover { border-color: var(--primary-color); transform: translateY(-5px); }
.donate-card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.donate-card h3 { color: var(--dark-color); }
.donate-instructions { list-style: none; text-align: left; background: var(--bg-color); padding: 15px; border-radius: 5px; margin-top: 15px; font-size: 0.9rem; color: #555; }
.donate-instructions li { margin-bottom: 5px; }
.address-box { font-style: italic; background: var(--bg-color); padding: 10px; margin-top: 10px; border-radius: 5px; color: #555;}
.donate-action-btn { background-color: var(--primary-color); color: var(--dark-color); width: 100%; font-weight: bold;}
.donate-action-btn:hover { background-color: var(--hover-color); }

/* Contact Form */
.contact-form label { display: block; margin-bottom: 5px; font-weight: bold; color: var(--dark-color); }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; background: var(--white-color); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-color); }
.contact-form .field-error { color: red; font-size: 14px; margin-bottom: 5px; display: none; }
.contact-form input.error, .contact-form textarea.error { border-color: red; }

/* Footer */
footer { background: var(--dark-color); color: var(--white-color); text-align: center; padding: 1.5rem 0; margin-top: auto; border-top: 3px solid var(--primary-color); }

/* Floating Facebook Button */
.floating-fb-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #1877F2; /* Facebook Blue */
    color: var(--white-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 2000;
    font-size: 1.8rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-fb-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    color: var(--white-color);
}
/* Floating Donate Button */
.floating-donate-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    height: 56px;
    padding: 0 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    z-index: 2001;
    font-weight: 800;
    font-size: 1rem;
}
.floating-donate-btn i { font-size: 1.2rem; }
.floating-donate-btn span { line-height: 1; }
.floating-donate-btn:hover { transform: translateY(-4px); background-color: var(--hover-color); }

/* Ensure donate button doesn't overlap floating FB on very small screens */
@media(max-width:480px) {
    .floating-donate-btn { right: 30px; bottom: 100px; padding: 0 10px; height: 50px; }
    .floating-fb-btn { right: 30px; bottom: 30px; }
}
/* --- RESPONSIVE MOBILE STYLES (UPDATED) --- */
@media(max-width: 768px) {
    /* Compact padding to match collapsed header when menu is closed */
    body { padding-top: 90px; } 

    .navbar .container { flex-direction: row; align-items: center; }

    /* Hide the nav links by default on small screens; show via .nav-open */
    .nav-links { display: none; flex-direction: column; margin-top: 10px; width: 100%; }
    .nav-links li { margin: 10px 0; margin-left: 0; width: 100%; }
    .nav-donate-btn { display: block; width: 100%; text-align: center; }

    /* Menu toggle button (hamburger) */
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius: 6px;
        background: var(--primary-color);
        color: var(--dark-color);
        border: 2px solid var(--white-color);
        cursor: pointer;
        margin-left: 10px;
        font-size: 1.5rem;
        font-weight: bold;
        z-index: 1100;
        transition: background-color 0.3s ease;
    }

    .menu-toggle:hover {
        background: var(--hover-color);
    }

    .menu-toggle:focus { outline: 2px solid var(--primary-color); }

    /* When nav is opened, show the nav links stacked below the nav bar */
    .navbar.nav-open .nav-links { display: flex; position: absolute; top: 100%; left: 0; background: var(--dark-color); padding: 15px 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.4); width: 100%; }

    /* Reset overlapping logo effect for a cleaner stack */
    .logo-link { 
        flex-direction: row;
        text-align: left;
        margin-bottom: 0;
        gap: 10px;
        height: auto; /* Reset fixed height */
    }

    .logo-img { 
        position: relative; /* Reset absolute position */
        top: 0;
        height: 56px; 
    }

    .logo-text { 
        padding-left: 0; /* Remove padding */
        font-size: 1.2rem; 
    }

    .grid-2 { grid-template-columns: 1fr; }
    .hero h2 { font-size: 2rem; }
}

/* Hide menu-toggle on larger screens */
@media(min-width: 769px) {
    .menu-toggle { display: none; }
}


/* --- Success Message Style --- */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-color);
    border: 2px solid var(--primary-color); /* Matches your Teal border */
    border-radius: 8px;
    animation: fadeIn 0.5s ease-in-out;
}

.success-message i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.success-message h3 {
    color: var(--dark-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.success-message p {
    color: #555;
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Error Message Style --- */
.error-message {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff2f2;
    border: 1px solid #ffcccc;
    border-radius: 5px;
    color: #d8000c;
    font-size: 0.95rem;
    line-height: 1.4;
}

.error-message a {
    color: #d8000c;
    font-weight: bold;
    text-decoration: underline;
}

/* --- Events Page Styles --- */
.hide {
    display: none !important;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.no-events-message {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-top: 2rem;
}

.no-events-message i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-events-message h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.no-events-message p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.no-events-message a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.no-events-message a:hover {
    color: var(--hover-color);
}


.event-card {
    background: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.event-poster {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.event-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-poster img {
    transform: scale(1.05);
}

.event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--dark-color);
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    min-width: 60px;
}

.event-date-badge .month {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date-badge .day {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
    margin-top: 2px;
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-meta i {
    color: var(--primary-color);
}

.event-summary {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.event-details {
    margin-top: 1.5rem;
    padding-top: 1rem;
    animation: fadeIn 0.3s ease;
}

.event-details hr {
    border: none;
    border-top: 2px solid var(--bg-color);
    margin-bottom: 1.5rem;
}

.event-details h4 {
    color: var(--dark-color);
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
}

.event-details ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.event-details li {
    margin-bottom: 0.4rem;
    color: #555;
    line-height: 1.6;
}

.event-details p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.see-more-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--dark-color);
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.see-more-btn:hover {
    background: var(--hover-color);
}

.see-more-btn.active {
    background: var(--dark-color);
    color: var(--white-color);
}

.see-more-btn i {
    transition: transform 0.3s ease;
}

.see-more-btn.active i {
    transform: rotate(180deg);
}

/* Event Modal Popup */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.event-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

.event-modal-content {
    background: var(--white-color);
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--dark-color);
    color: var(--white-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.event-modal-close:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    transform: rotate(90deg);
}

.event-modal-body {
    padding: 2rem;
}

.event-modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin: 0;
}

.event-modal-body h2 {
    color: var(--dark-color);
    font-size: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.event-modal-body .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #666;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-color);
}

.event-modal-body .event-summary {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.event-modal-body h4 {
    color: var(--dark-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.event-modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.event-modal-body li {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.7;
}

.event-modal-body p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.event-modal-body hr {
    display: none;
}

/* Responsive adjustments for events */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .event-modal {
        padding: 10px;
    }
    
    .event-modal.active {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .event-modal-body {
        padding: 1.5rem;
    }
    
    .event-modal-image {
        height: 200px;
    }
    
    .event-modal-body h2 {
        font-size: 1.5rem;
    }
}
    .event-meta {
        flex-direction: column;
        gap: 8px;
    }
}
