/* General Reset */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body {
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    width: 120%; /* FORCED WIDTH: This is the missing piece */
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Pushes items to the far edges */
    align-items: center;
    padding: 0 20px;
}

/* Menu 1: Top Bar */
.top-bar {
    background-color: #27AE60 !important;
    color: white;
    font-size: 13px;
    padding: 8px 0;
}
.top-bar a { color: #ecf0f1; text-decoration: none; margin-left: 15px; }

/* 1. The Wrapper: Spans the full screen width */
#main-header {
    width: 100%;
    height: 80px; /* Define a clear height */
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex; /* Use flex here too */
    align-items: center; /* This centers the .container vertically */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 2. The Container: Handles the horizontal "Space-Between" */
#main-header .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between; /* Logo left, Menu right */
    align-items: center; /* Centers items vertically inside the container */
}

/* 3. The Menu Items: Fixes the "Sticking Together" issue */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px; /* This is the modern way to separate items */
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #2C3E50;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #E67E22;
}


/* Container for the menu item */
.npo-nav-item {
    position: relative !important;
    display: inline-block !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* The Main Link */
.npo-nav-link {
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    padding: 10px 15px !important;
    cursor: pointer !important;
}

/* THE FIX: Forcing the menu to stay hidden by default */
.npo-submenu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    
    /* These three lines ensure it is invisible and non-interactive by default */
    display: block !important; 
    visibility: hidden !important; 
    opacity: 0 !important;
    
    transform: translateY(15px) !important;
    transition: all 0.3s ease-in-out !important;
    
    background-color: #ffffff !important;
    min-width: 220px !important;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.15) !important;
    border-radius: 6px !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    z-index: 999999 !important; /* Extremely high to stay on top */
}

/* THE FIX: This invisible pseudo-element bridges the gap so it doesn't flicker */
.npo-submenu::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Show Submenu ONLY on Hover */
.npo-nav-item:hover .npo-submenu {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Submenu Links Styling */
.npo-submenu li {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.npo-submenu li a {
    color: #333333 !important;
    padding: 12px 20px !important;
    text-decoration: none !important;
    display: block !important;
    font-size: 15px !important;
    text-align: left !important;
    transition: background 0.2s ease !important;
}

.npo-submenu li a:hover {
    background-color: #f8f9fa !important;
    color: #2e7d32 !important; /* Your Unity Green */
}


#main-header li:hover > .submenu {
  display: block;
}

/* The Sticky Magic */
#main-header {
    position: sticky;
    top: 0;
}


/* 2. Constrain the Logo Container */
.logo {
    height: 100%; 
    display: flex;
    align-items: center;
    padding: 10px 0; /* This creates the 'contained' look */
}

/* 3. The 'Magic' Image Fix */
.logo img {
    max-height: 100%; /* Ensures it never grows taller than the nav bar */
    width: auto;      /* Keeps the proportions perfect */
    display: block;
    object-fit: contain;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .logo-img {
        height: 40px; /* Slightly smaller on mobile to save space */
    }
    .logo-text {
        font-size: 18px;
    }
}


/* Donate Button Style */
.btn-donate {
    background: #E67E22 !important;
    color: white !important;
    padding: 10px 25px;
    border-radius: 2px !important;
}
.btn-donate:hover { background: #d35400; }

/* Responsive Mobile Menu */
@media (max-width: 768px) {
/* This ensures the menu is hidden by default */
    .nav-links {
        display: none !important; 
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on your header height */
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    /* THIS IS THE KEY: The .active class MUST be display: flex */
    .nav-links.active {
        display: flex !important; 
    }

    
}
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
        width: 40px !important;      /* Give the button a fixed width */
        height: 40px !important;     /* Give the button a fixed height */
        padding: 5px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 10002 !important;
    }

    .menu-toggle span {
        display: block !important;
        width: 30px !important;      /* Make the lines long enough to see */
        height: 3px !important;       /* Give the lines thickness */
        background-color: #333 !important; /* Ensure the color is visible */
        margin: 6px auto !important;  /* Space between lines */
        border-radius: 3px !important;
        transition: 0.3s !important;
    }

    /* Force nav-links to appear below the header when active */
    .nav-links.active {
        display: flex !important;
        position: absolute !important;
        top: 60px !important; /* Adjust this to match your header's actual height */
        left: 0 !important;
        width: 100% !important;
        background: white !important;
        flex-direction: column !important;
        padding: 20px 0 !important;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1) !important;
        z-index: 99999 !important;
    }
}
.hero-slider {
    position: relative;
    height: 85vh;
    width: 100%;
    overflow: hidden;
    background-color: #222; /* Temporary color so you can see it without images */
}

.slide {
    position: absolute; /* This prevents the vertical list layout */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

/* Shown state */
.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide.active { opacity: 1; }


/* Background Media Styles */
.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

.bg-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    /* This ensures the image covers the area regardless of container size */
    background-size: cover !important; 
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: -2 !important;
    /* IMPORTANT: Make sure your URL path is correct here */
    background-image: url('/assets/applyforsupport.jpg'); 
}

.bg-img2 {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    /* This ensures the image covers the area regardless of container size */
    background-size: cover !important; 
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: -2 !important;
    /* IMPORTANT: Make sure your URL path is correct here */
    background-image: url('/assets/corporate.png'); 
}


/* Ensure the parent container (likely .hero) has this */
.hero-parent-container {
    position: relative !important;
    overflow: hidden !important;
    min-height: 600px; /* Or whatever height your hero section needs */
}
/* Dark Overlay for Text Readability */
/* Dark Overlay for Text Readability */
.hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    
    /* BLACK tint at 50% opacity. Change 0.5 to 0.7 for darker, 0.3 for lighter */
    background: rgba(0, 0, 0, 0.5) !important; 
    
    /* Sits above the image (z-index -2) but below the text (z-index 1+) */
    z-index: -1 !important; 
}

/* Ensure your text container is visible on top */
.hero-content {
    position: relative !important;
    z-index: 10 !important; 
    color: #ffffff !important;
    text-align: center;
}

/* Content Styling */
.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-content span { color: #e67e22; }

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 300;
}

.btn-main {
    padding: 15px 35px;
    background: #e67e22;
    color: white;
    text-decoration: none;
    border-radius: 2px;
    font-weight: bold;
    transition: 0.3s;
    align: center;
}

.btn-main:hover { background: #d35400; transform: translateY(-3px); }

/* Mobile Adjustment */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-slider { height: 70vh; }
}
/**/

    .npo-social-header {
        display: flex !important;
        gap: 15px !important;
        align-items: center !important;
        padding: 10px !important;
    }

    .social-icon {
        color: #ffffff !important; /* Matches your white text theme */
        font-size: 1.2rem !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
    }

    /* Hover effect using your brand green */
    .social-icon:hover {
        color: #27AE60 !important;
        transform: translateY(-3px) !important;
    }

    /* Mobile handling: Ensure they don't get squashed */
    @media (max-width: 768px) {
        .npo-social-header {
            gap: 10px !important;
        }
        .social-icon {
            font-size: 1rem !important;
        }
    }


/******WhatsAPP button********/
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 100px;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
    color: #fff;
}

/* Optional: Pulse effect to grab attention */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}
/*Stats*/
.stats-section {
    background: #e67e22; /* Your NPO accent color */
    color: white;
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/*Trust and transparency*/
.trust-bar {
    background: #f1f1f1;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
    color: #666;
}

.trust-bar .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.trust-item strong {
    color: #e67e22;
}





/*Footer*/

.main-footer {
    background-color: #2C3E50;
    color: white;
    padding: 80px 0 20px;
    font-family: 'Inter', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Makes the first and last columns wider */
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-col h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-col h3 span { color: #e67e22; }

.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 25px;
    color: #e67e22; /* Accent color for headers */
}

.footer-col p {
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #e67e22;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    font-size: 13px;
    color: #bdc3c7;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- Diamond Paper Background --- */
.paper-diamond {
    background-color: #f4f7f6;
    /* Subtle Diamond Pattern */
    background-image:  linear-gradient(135deg, #e5e9e8 25%, transparent 25%), 
                       linear-gradient(225deg, #e5e9e8 25%, transparent 25%), 
                       linear-gradient(45deg, #e5e9e8 25%, transparent 25%), 
                       linear-gradient(315deg, #e5e9e8 25%, transparent 25%);
    background-position:  10px 0, 10px 0, 0 0, 0 0;
    background-size:  20px 20px;
    background-repeat: repeat;
}

/* --- Unique Section Shapes (Clip-Path) --- */
.hero-diagonal {
    background: var(--navy);
    color: white;
    padding: 120px 0 180px;
    /* This creates a slanted bottom edge */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: -100px; /* Pulls next section up to interlock */
}

.impact-slanted {
    background: white;
    padding: 150px 0;
    /* Slanted top and bottom */
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
    position: relative;
    z-index: 2;
}

/* --- Scroll Animation Classes --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Form Card (Diamond Look) --- */
.form-card {
    background: white;
    border: 1px solid #ddd;
    box-shadow: 15px 15px 0px var(--green); /* Unique offset shadow */
    padding: 40px;
}
