/* Main Website CSS */
:root {
    --primary-color: #ff5722;
    /* Vibrant Orange for NGO/Action */
    --secondary-color: #263238;
    /* Dark Blue/Gray */
    --accent-color: #4CAF50;
    /* Green for growth/nature */
    --text-color: #333;
    --light-bg: #f9f9f9;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Header */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

/* Improved Navbar */
.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 60px;
    /* Adjust height as needed */
    width: auto;
    object-fit: contain;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Action Buttons */
li.btn-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px !important;
}

.btn-highlight {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
    font-weight: 500;
}

.btn-highlight:hover {
    background-color: #e64a19;
}

.btn-donate {
    background-color: var(--accent-color);
    color: white !important;
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
    font-weight: 500;
}

.btn-donate:hover {
    background-color: #388e3c;
}

/* Desktop Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none; /* Prevent clicks when hidden */
    border: 1px solid #f0f0f0;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content li {
    width: 100%;
    display: block;
    margin: 0;
}

.dropdown-content a {
    color: var(--text-color) !important;
    padding: 10px 20px;
    border-bottom: 1px solid #f9f9f9;
    font-size: 0.95rem;
    font-weight: 400;
    display: block;
    transition: background 0.2s, color 0.2s;
}

.dropdown-content a::after {
    display: none; /* Remove underline effect */
}

.dropdown-content a:hover {
    background-color: #fcece8; /* Very light primary color shade */
    color: var(--primary-color) !important;
    padding-left: 25px; /* Slight movement effect */
}

/* Arrow indicator rotation on hover */
.dropdown:hover > a i {
    transform: rotate(180deg);
    transition: transform 0.3s;
    display: inline-block;
}

/* Mobile Nav */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        /* Hidden by default on mobile */
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        gap: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
        /* Shown when active */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links a {
        display: block;
        padding: 20px;
    }

    /* Mobile Dropdown Handling */
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: #f9f9f9;
        display: none;
    }

    .dropdown:hover .dropdown-content {
        display: none;
        /* Disable hover on mobile */
    }

    /* We will use JS to toggle this class for mobile dropdowns */
    .dropdown.active .dropdown-content {
        display: block;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    li.btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
        gap: 10px;
        margin-top: 10px;
        margin-left: 0 !important;
    }

    .btn-highlight,
    .btn-donate {
        text-align: center;
        width: 100%;
        border-radius: 5px;
        display: block;
    }
}

/* Intro Video Section */
.video-section {
    position: relative;
    padding: 100px 0;
    background: #000;
    color: white;
    text-align: center;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
}

.video-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 30px;
    cursor: pointer;
    transition: 0.3s;
    animation: pulse 2s infinite;
}

.play-btn:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Why Choose Us */
.why-choose-us {
    background: #f4f6f9;
}

.feature-box {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 87, 34, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

/* Before/After Impact */
.impact-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.impact-item {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.impact-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: 0.5s;
}

.impact-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.impact-item:hover .impact-img {
    transform: scale(1.1);
}

/* Donation CTA */
.donation-cta {
    background: linear-gradient(135deg, var(--primary-color), #f4511e);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.donation-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}




@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh; /* Increased height slightly */
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 6s linear; /* Smooth zoom effect */
    transform: scale(1);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1.05); /* Zoom in on active */
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)); /* Better gradient overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 900px;
}

/* Animations for Content */
.slide .hero-content h1,
.slide .hero-content p,
.slide .hero-content .btn-hero {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.slide.active .hero-content h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.slide.active .hero-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.slide.active .hero-content .btn-hero {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

/* Navigation Buttons */
.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.slider-nav button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

/* Styling for Hero Content Elements */
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800; /* Bolder for better gradient visibility */
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block; /* Required for background-clip in some contexts */
    /* Use drop-shadow instead of text-shadow for transparent text */
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Responsiveness for Slider */
@media (max-width: 768px) {
    .hero-slider, .hero {
        height: 60vh; /* Smaller height on mobile */
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

/* Standard Hero Section (Fallback/Other Pages) */
.hero {
    height: 60vh; /* Reduced height for standard hero */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

/* Old .hero rules specific overrides if needed below, otherwise these handle it */

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-hero {
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s;
}

/* Utility Classes */
.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.col-half {
    flex: 1;
    min-width: 300px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.align-center {
    align-items: center;
}

/* Features / Cards */
.section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.card-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-card {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 500;
}

.btn-card:hover {
    background: var(--primary-color);
    color: white;
}

/* Stats Counter */
.stats-section {
    background: var(--secondary-color);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Campaign Card */
.campaign-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ Details */
details>summary {
    list-style: none;
    /* Hide default marker */
    font-weight: 600;
    cursor: pointer;
    padding: 15px;
    background: white;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 5px;
}

details>summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    border-radius: 5px 5px 0 0;
}

details p {
    padding: 15px;
    border: 1px solid #eee;
    border-top: none;
    background: #fff;
    border-radius: 0 0 5px 5px;
    color: #555;
    margin: 0 0 15px 0;
}

/* New Footer Style */
.main-footer {
    background: #1a1a1a;
    color: #bbb;
    padding: 60px 0 20px;
    font-size: 0.95rem;
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

/* Footer Logo */
.footer-logo img {
    max-width: 180px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.about-col .footer-logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

.about-col .footer-logo span {
    font-size: 1.5rem;
    color: white;
    margin-left: 10px;
    font-weight: 700;
}

.about-col .footer-desc {
    margin-top: 15px;
    line-height: 1.6;
    color: #aaa;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    color: #bbb;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.links-col ul li a i {
    margin-right: 10px;
    font-size: 0.8rem;
}

.links-col ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #bbb;
}

.contact-info li i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

/* Homepage About Section */
.about-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.newsletter {
    margin-top: 25px;
}

.newsletter h5 {
    color: white;
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    overflow: hidden;
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
    flex: 1;
    outline: none;
}

.newsletter-form button {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: #e64a19;
}

.footer-bottom {
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #777;
    font-size: 0.85rem;
}

.designer {
    color: #555;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Verify Page */
.verify-box {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.verify-box input {
    width: 60%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 5px;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .verify-box input {
        width: 100%;
        margin-bottom: 15px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}


.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    z-index: 0;
    border-radius: 10px;
    opacity: 0.1;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    border: 5px solid var(--primary-color);
    z-index: 0;
    border-radius: 50%;
    opacity: 0.1;
}

/* Get Involved Section */
.get-involved-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1593113598332-cd288d649433?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover fixed;
    padding: 100px 0;
    color: white;
    text-align: center;
    position: relative;
}

.get-involved-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.get-involved-content h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.get-involved-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.95;
    font-weight: 300;
}

.get-involved-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.get-involved-buttons .btn-hero {
    min-width: 200px;
    font-size: 1.1rem;
    padding: 18px 40px;
}