* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden; /* Prevents unwanted horizontal scrolling on mobile */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: 'Cinzel', serif;
}

.logo-area { 
    display: flex; 
    align-items: center; 
    gap: 10px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-icon img {    
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.brand-name { 
    color: #ea580c; 
    font-size: 1.25rem; 
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #ea580c;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nav-links a:hover { 
    color: #ea580c;
}

.nav-links li {
    position: relative; 
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1e293b; 
    min-width: 180px; 
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.3); 
    list-style: none;
    padding: 6px 0;
    margin: 0;
    z-index: 100;
    top: 100%;
    left: 0;
    border-radius: 6px; 
    border-top: 3px solid #ea580c; 
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content li a {
    color: #f1f5f9; 
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-content li a:hover {
    background-color: #f1f1f1;
    color: #e67e22;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Buttons */
.btn-donate {
    background: #ea580c;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

/* Hero Section */
.hero { 
    padding: 80px 5%;
    background: #0f172a;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.badge {
    background: #ffedd5;
    color: #9a3412;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.hero-content h2 { 
    font-size: 3rem;
    margin-top: 20px; 
    line-height: 1.2;
    color: azure;
}

.hero-content p { 
    font-size: 1rem;
    margin-top: 20px; 
    line-height: 1.4;
    color: azure;
    font-family:'Poppins',sans-serif;
}

.highlight { 
    color: #ea580c;
}

.hero-btns { 
    display: flex; 
    gap: 15px; 
    margin-top: 30px; 
    color: #ea580c;
}

.btn-primary {
    background: #ea580c;
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    /* Links specific styles */
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-secondary {
    background: white;
    color: #0f172a; /* Text Color */
    border: 2px solid #e2e8f0;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    /* Links specific styles */
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

/* STORY */
.story {
    padding: 80px 0;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    display: flex;            
    justify-content: center;    
    align-items: center;       
}

.story-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;        
    justify-items: center;     
    max-width: 1200px;          
    width: 100%;
    padding: 0 20px;            
    margin: 0 auto;             
}

.story-image {
    position: relative;
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    border-radius: 25px;
}

.story-image img {
    height: auto;
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    display: block;
    transition: 0.4s ease;
}

/* Hover Box */
.hover-box {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.75);
    color: #fff;
    text-align: center;
    padding: 20px;
    transition: 0.4s ease;
}

.hover-box h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
}

.story-image:hover .hover-box {
    bottom: 0;
}

.story-image:hover img {
    transform: scale(1.05);
}

.hover-box a {
    color: #fff;
    text-decoration: none;
}

.section-sub {
    color: #ff6600;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.story-text h2 {
    font-size: 45px;
    line-height: 1.2;
    margin-bottom: 30px;
}

.story-text p {
    font-size: 15px;
    line-height: 1.5;
    color: #171616;
    margin-bottom: 25px;
    text-align: justify;
}

/* WHAT WE DO */
.what-we-do-section {
    padding: 90px 5%;
    background-color: #0f172a;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.wwd-container {
    max-width: 1200px;
    margin: 0 auto;
}

.wwd-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.wwd-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 750px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* Card Grid Layout */
.wwd-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.wwd-card {
    background-color: #1e293b;
    border: 2px solid #ea580c;
    border-radius: 16px;
    padding: 40px 25px 35px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wwd-card:hover {
    transform: translateY(-8px);
    background-color: #1e3a6d;
    border-color: #ffca65;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.wwd-illustration {
    width: 100%;
    height: 110px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wwd-custom-img {
    max-height: 150px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.wwd-card:hover .wwd-custom-img {
    transform: scale(1.08);
}

.wwd-card h3 {
    font-size: 1.45rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.wwd-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 30px;
    min-height: 72px;
}

.btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.wwd-dynamic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fba919;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    width: 45px;
    height: 45px;
    border-radius: 50px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
}

.wwd-dynamic-btn .btn-text {
    max-width: 0;
    opacity: 0;
    margin-right: 0;
    transition: all 0.3s ease;
}

.wwd-dynamic-btn .btn-arrow {
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.wwd-card:hover .wwd-dynamic-btn,
.wwd-dynamic-btn:hover {
    width: 140px;
    padding: 0 20px;
    border-radius: 30px;
    background-color: #ffffff;
    color: #0f172a;
}

.wwd-card:hover .wwd-dynamic-btn .btn-text,
.wwd-dynamic-btn:hover .btn-text {
    max-width: 100px;
    opacity: 1;
    margin-right: 8px;
}

.wwd-btn-explore {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.wwd-btn-explore:hover {
    background-color: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
}

/* Mission Section */
.mission { padding: 100px 5%; background: white; text-align: center; }
.section-title { font-size: 2.5rem; }
.underline {
    width: 60px;
    height: 5px;
    background: #f97316;
    margin: 10px auto 50px;
    border-radius: 10px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #f8fafc;
    padding: 40px;
    border-radius: 24px;
    transition: 0.3s;
    text-align: left;
}

.card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2rem; 
    background: #ea580c; 
    color: white; 
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px; 
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3); 
}

.card:hover .card-icon {
    transform: scale(1.1);
    transition: 0.3s;
}

/* Impact Section */
.impact {
    background: #0f172a; 
    color: white;
    padding: 60px 5%;
    text-align: center;
}

.impact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f97316;
}

.impact-label {
    font-size: 1rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Us Section */
.about {
    padding: 80px 5%;
    background: white;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.about-text p { font-size: 1.1rem; color: #475569; max-width: 600px; }

.about-image img {
    width: 300px;
    height: auto;
    border-radius: 20px;
}

/* CTA Section */
.cta {
    padding: 0 5% 50px;
}

.cta-container {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(to right, #ea580c, #fb923c); 
    padding: 40px 60px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.2);
}

.cta-content h3 { font-size: 2rem; margin-bottom: 10px; }

.btn-white {
    background: white;
    color: #ea580c;
    border: none;
    padding: 15px 35px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-white:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 40px;
    margin-top: 50px;
}

/* ==========================================
MOBILE & TABLET RESPONSIVE FIXES
========================================== */

@media (max-width: 992px) {
    .navbar {
        flex-wrap: wrap;
        padding: 0.8rem 4%;
    }

    .menu-toggle {
        display: block;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    /* Mobile Nav Links Container */
    .nav-links {
        display: none; /* Hidden by default in mobile */
        flex-direction: column;
        width: 100%;
        order: 4;
        background: #ffffff;
        padding: 10px 0;
        margin-top: 10px;
        border-top: 1px solid #e2e8f0;
    }

    /* Active class toggled via JavaScript */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 15px;
        text-align: center;
        width: 100%;
    }

    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #1e293b;
        text-align: center;
    }

    .dropdown-content li a {
        text-align: center;
    }

    /* Hero Section Fixes */
    .hero {
        padding: 40px 5%;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 12px 20px;
    }

    /* Story Section Fixes */
    .story-wrapper {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .story-text h2 {
        font-size: 2rem;
    }

    .story-text p {
        text-align: justify;
    }

    .story-image {
        max-width: 100%;
    }

    /* About & CTA Fixes */
    .about-container, .cta-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        width: 200px;
    }

    .cta-container {
        padding: 30px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 0.8rem;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
    }

    .btn-donate {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}