/* --- Global Styles & Layout Fixes --- */
:root {
    --primary-color: #007BFF;
    --secondary-color: #6C757D;
    --dark-theme-bg: #212529;
    --dark-theme-text: #F8F9FA;
    --light-bg: #FFFFFF;
    --panel-width-desktop: 250px;
    --header-height: 80px; /* Define header height for fixed positioning/sticky top calculation */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f7f6;
    
    /* CRITICAL STICKY FOOTER FIX */
    display: flex; 
    min-height: 100vh;
    flex-direction: column; 
	overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Hide mobile-only buttons by default */
.mobile-only {
    display: none;
}

/* --- Main Header & Navigation --- */
.main-header {
    background-color: var(--light-bg);
    padding: 15px 30px;
    text-align:center;
    height: var(--header-height);
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky; 
    top: 0;
    z-index: 1000;
    width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 100px; 
    width: auto;
    margin-right:100px;
}


.logo-area h1 {
    font-size: 1.8em;
    color: #333;
    font-weight: 700;
}



/* --- Page Layout Container (Wrapper for Panel + Content) --- */
.page-layout-container {
    display: flex;
    /* Allows this container to take up all space between header and footer */
    flex-grow: 1; 
    width: 100%;
}

/* --- Standalone Left Panel (Desktop View) --- */
.left-panel {
    width: var(--panel-width-desktop);
    background-color: #e9ecef;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    
    /* Make the panel sticky beside the content as it scrolls */
    position: sticky; 
    align-self: flex-start; 
    top: var(--header-height); /* Starts right below the sticky header */
    
    /* Calculate remaining height from viewport height minus header height */
    height: calc(100vh - var(--header-height)); 
    overflow-y: auto; 
    
    /* For Mobile Transition */
    z-index: 999; 
    transform: translateX(0); /* Default desktop state is visible */
    transition: transform 0.3s ease;
}

/* --- Main Content Area --- */
.content-wrapper {
    flex-grow: 1; /* Content takes the remaining horizontal space */
    padding: 20px 10px;
    background-color: #ccc; /* Content background */
}

/* --- Dark Footer Section --- */
.main-footer {
    background-color: var(--dark-theme-bg);
    color: var(--dark-theme-text);
    padding: 40px 30px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap; 
    
    /* CRITICAL STICKY FOOTER FIX */
    margin-top: auto; 
}

.footer-section {
    margin: 15px;
    min-width: 200px;
}

.footer-section h4 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--dark-theme-text);
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

/* --- 📱 Media Queries for Mobile Responsiveness --- */
@media (max-width: 900px) {
    /* Hide desktop navigation */
   
    
    /* Show mobile-only menu toggle button */
    .mobile-only {
        display: block;
        padding: 10px 15px;
        background: none;
        border: none;
        font-size: 1.5em;
        color: #333;
        cursor: pointer;
        order: -1; /* Place it first in the header flex row */
    }

    .logo-area h1 {
        font-size: 1.6em; 
    }
    
    .main-header {
        padding: 10px 20px;
        height: 60px; /* Reduced header height on mobile */
        --header-height: 60px; /* Update CSS variable for calculations */
    }
    
    /* Page Container: Stack elements vertically */
    .page-layout-container {
        flex-direction: column; 
    }
    
    /* Left Panel: Mobile Configuration (Hidden Off-Screen) */
    .left-panel {
        /* Overrides desktop sticky rules */
        position: fixed; 
        top: 0; 
        left: 0;
        width: 70%; /* Panel takes 70% of screen width */
        height: 100%;
        transform: translateX(-100%); /* Start hidden */
        transition: transform 0.3s ease-out;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    }
    
    /* JavaScript adds this class to reveal the panel */
    .left-panel.open {
        transform: translateX(0); /* Slide panel into view */
    }

    .content-wrapper {
        padding: 15px; 
        width: 100%;
    }
    
    /* Footer adjustments */
    .main-footer {
        flex-direction: column; 
        align-items: center;
        text-align: center;
    }
    
    .footer-section {
        width: 100%;
    }
}

/* --- Slideshow Styles --- */
.slideshow-container {
    width: 100%;
    height: 100vh;       /* 60% of viewport height, responsive */
    position: relative;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* fills container */
}



/* Caption text */
.text {
    color: var(--light-bg);
    font-size: 1.2em; /* Slightly smaller font for better fit */
    padding: 8px 12px;
    position: absolute;
    bottom: 0; /* Changed from 8px to 0 for a cleaner look */
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly darker background */
    z-index: 10;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px; /* Slightly larger arrows */
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4); /* Less opaque background */
    z-index: 20; /* Ensure buttons are above the caption */
}

/* Position and hover styles remain similar */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 12px; /* Slightly smaller dots */
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: var(--primary-color);
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* --- Donation CTA & Text Styles --- */
.hero-section {
    padding: 30px 0;
    text-align: center;
}

.hero-section h2 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.intro-text {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

.donation-cta {
    text-align: center;
    padding: 40px 20px;
    margin: 30px 0;
    background-color: #ffe0b2; /* Light, warm color to draw attention */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}



.donation-cta h3 {
    color: #d84315; /* Contrasting, strong color */
    font-size: 1.8em;
    margin-bottom: 15px;
}

.donate-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #d84315; /* Strong, urgent color */
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 50px; /* Pill shape */
    transition: background-color 0.3s, transform 0.1s;
    text-transform: uppercase;
    margin-top: 20px;
}

.donate-button:hover {
    background-color: #bf360c;
    transform: translateY(-2px); /* Slight lift effect */
}

/* --- About Us Page Styles --- */
.about-us-content {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-title {
    color: var(--primary-color);
    font-size: 2.8em;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.organization-moto {
    text-align: center;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.5em;
}

.contact-email {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.contact-email a {
    font-weight: bold;
    color: #333; /* Darker color for prominence */
}

.contact-email a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.section-block {
    margin-bottom: 30px;
}

.section-block h3 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 15px;
    border-left: 5px solid var(--primary-color);
    padding-left: 10px;
    background-color: #f8f8f8;
    padding-top: 5px;
    padding-bottom: 5px;
}

.section-block ul {
    list-style: none; /* Remove default bullet */
    padding-left: 0;
}

.section-block ul li {
    position: relative;
    padding-left: 25px; /* Space for custom bullet */
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #444;
}

.section-block ul li::before {
    content: "•"; /* Custom bullet point */
    color: var(--primary-color);
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -3px;
}

.creation-info {
    text-align: right;
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-top: 40px;
    border-top: 1px dashed #eee;
    padding-top: 15px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.2em;
    }
    .organization-moto {
        font-size: 1.2em;
    }
    .section-block h3 {
        font-size: 1.5em;
    }
    .about-us-content {
        padding: 20px;
    }
	
}

/* --- New About Us Structural Styles --- */
.logo2 {
    display: block;
    margin: 0 auto 15px auto;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.main-aim-title {
    text-align: center;
    color: #333;
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 20px;
}

.separator {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), var(--primary-color), rgba(0, 0, 0, 0));
    margin-bottom: 40px;
}

/* --- Scroll Animation Styles --- */

/* 1. Base style for all animated blocks */
.animated-block {
    /* ... existing styles ... */
    opacity: 0; 
    transition: 
        transform 0.8s ease-out, 
        opacity 0.8s ease-out; 
    
    /* ADD THIS: Forces the animated element to use its own space and prevents unwanted layout shifts */
    will-change: transform, opacity; 
}

/* 2. Initial Off-Screen States (Desktop) */
/* Blocks that enter from the left */
.animated-block.left-to-right {
    /* Use a fixed pixel distance for more control on desktop */
    transform: translateX(-300px); 
}

/* Blocks that enter from the right */
.animated-block.right-to-left {
    /* Use a fixed pixel distance for more control on desktop */
    transform: translateX(300px); 
}

/* 3. Media Query Fix: Reduced Animation Distance for Small Screens */
@media (max-width: 768px) {
    /* Reduce the off-screen distance so the element is closer to the viewport
       and the animation is more likely to fire correctly without being lost. */

    .animated-block.left-to-right {
        /* Reduced distance for mobile */
        transform: translateX(-100px); 
    }

    .animated-block.right-to-left {
        /* Reduced distance for mobile */
        transform: translateX(100px); 
    }
}

/* 4. Final Visible State (No change needed here) */
.animated-block.in-view {
    opacity: 1; 
    transform: translateX(0); 
}

/* --- Content Gaps Fix (optional) --- */
/* If you still see large gaps between paragraphs, you might need to adjust 
   the margin-bottom on the .animated-block or the elements inside it. */
.animated-block {
    margin: 20px 0; /* Slightly reduced vertical margin */
}