/*=========================
GOOGLE FONT
=========================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/*=========================
VARIABLES
=========================*/
:root{
    --primary-color:#183B4E;
    --secondary-color:#27548A;
    --accent-color:#DDA853;
    --white:#fff;
    --light:#f8f9fa;
    --gray:#6b7280;
    --dark:#1f2937;
    --shadow:0 10px 30px rgba(0,0,0,.08);
}

/*=========================
RESET
=========================*/
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    overflow-x:hidden;
    background:var(--white);
    color:var(--dark);
}

img{
    width:100%;
    display:block;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

section{
    padding:100px 8%;
}

/*=========================
HEADER
=========================*/
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.navbar{
    position: relative;
    z-index: 9999;
    height: 80px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    box-shadow: 0 3px 15px rgba(0,0,0,.08);
}

/* LOGO */
.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo img{
    width:55px;
    height:55px;
    object-fit:cover;
    border-radius:50%;
}

.logo span{
    font-size:1.3rem;
    font-weight:700;
    color:var(--primary-color);
}

/* NAV LINKS */
.nav-links{
    display:flex;
    gap:30px;
}

.nav-links a{
    color:var(--dark);
    font-weight:500;
    transition:.3s;
}

.nav-links a:hover{
    color:var(--accent-color);
}

/* RIGHT SIDE */
.nav-right{
    display:flex;
    align-items:center;
    gap:20px;
}

.search-btn{
    cursor:pointer;
    color:var(--dark);
}

.theme-toggle{
    width:45px;
    height:45px;
    background:var(--light);
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
}

.donate-btn{
    background:var(--accent-color);
    color:white;
    padding:13px 28px;
    border-radius:40px;
    font-weight:600;
    transition:.3s;
}

.donate-btn:hover{
    opacity:.9;
}

.menu-btn{
    display:none;
    font-size:1.5rem;
    cursor:pointer;
}


/*=========================
SEARCH OVERLAY
=========================*/
.search-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.9);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.search-overlay.active{
    display:flex;
}

.search-box{
    width:70%;
    position:relative;
}

.search-box input{
    width:100%;
    padding:25px;
    border:none;
    border-radius:15px;
    font-size:1.1rem;
}

.close-search{
    position:absolute;
    right:0;
    top:-60px;
    color:white;
    font-size:2rem;
    cursor:pointer;
}
.hero{
    position: relative;
    margin-top: 80px;
    height: calc(100vh - 80px);
    overflow: hidden;
    z-index: 1;
}

.slide{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    opacity:0;
    transition:1s;
    z-index:1;
}

.slide.active{
    opacity:1;
}

.slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

.hero-overlay{
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0);
    z-index:2;
}

.hero-content{
    position:absolute;
    top:50%;
    left:8%;
    transform:translateY(-50%);
    z-index:3;
    color:white;
}

.hero-content h1{
    font-size:4.5rem;
    line-height:1.1;
    margin-bottom:25px;
}

.hero-content p{
    line-height:1.9;
    margin-bottom:35px;
    color:#eee;
}
.hero-buttons{
    display:flex;
    gap:20px;
    margin-top:30px;
    flex-wrap:wrap;
}

.primary-btn,
.secondary-btn{
    display:inline-block;
    padding:15px 30px;
    border-radius:40px;
    font-weight:600;
}

.primary-btn{
    background:#DDA853;
    color:#fff;
}

.secondary-btn{
    border:2px solid white;
    color:white;
}
/*=========================
SECTION TITLE
=========================*/
.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-size:2.8rem;
    color:var(--primary-color);
    margin-bottom:15px;
}

.section-title p{
    max-width:700px;
    margin:auto;
    color:var(--gray);
    line-height:1.8;
}

/*=========================
ABOUT
=========================*/
.about{
    background:var(--light);
}

.about-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:60px;
}

.about-text{
    flex:1;
}

.about-text h2{
    font-size:2.8rem;
    color:var(--primary-color);
    margin-bottom:20px;
}

.about-text p{
    color:var(--gray);
    line-height:1.9;
    margin-bottom:20px;
}

.about-image{
    flex:1;
}

.about-image img{
    border-radius:20px;
    box-shadow:var(--shadow);
}

/*=========================
STATS
=========================*/
.stats{
    background:var(--primary-color);
    color:white;

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;

    text-align:center;
}

.stat-box h3{
    font-size:3rem;
    color:var(--accent-color);
}

.stat-box p{
    margin-top:10px;
    font-weight:500;
}

/*=========================
PROGRAMS
=========================*/
.programs{
    background:var(--light);
}

.programs-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.program-card{
    position:relative;
    min-height:350px;
    overflow:hidden;
    border-radius:20px;
    background:var(--primary-color);
    color:white;
    display:flex;
    align-items:flex-end;
    padding:40px;
}

.program-card .overlay{
    background:rgba(0,0,0,.55);
}

.program-content{
    position:relative;
    z-index:2;
}

.program-content h3{
    font-size:1.8rem;
    margin-bottom:15px;
}

.program-content p{
    line-height:1.8;
}

/*=========================
PROJECTS
=========================*/
.projects{
    background:white;
}

.projects-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:40px;
}

.project-card{
    background:var(--light);
    border-radius:20px;
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:.4s;
}

.project-card:hover{
    transform:translateY(-10px);
}

.project-image{
    overflow:hidden;
}

.project-image img{
    height:300px;
    object-fit:cover;
    transition:.6s;
}

.project-card:hover .project-image img{
    transform:scale(1.08);
}

.project-content{
    padding:30px;
}

.project-content h3{
    color:var(--primary-color);
    margin-bottom:15px;
    font-size:1.5rem;
}

.project-content p{
    color:var(--gray);
    line-height:1.8;
    margin-bottom:20px;
}

.project-link{
    color:var(--accent-color);
    font-weight:600;
}

.project-link:hover{
    text-decoration:underline;
}

.center-btn{
    text-align:center;
    margin-top:50px;
}
/*=========================
GALLERY
=========================*/
.gallery{
    background:var(--light);
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:25px;
}

.gallery-item{
    overflow:hidden;
    border-radius:20px;
    cursor:pointer;
    box-shadow:var(--shadow);
}

.gallery-item img{
    height:300px;
    object-fit:cover;
    transition:.6s;
}

.gallery-item:hover img{
    transform:scale(1.1);
}

/*=========================
LIGHTBOX
=========================*/
.lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.9);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.lightbox.active{
    display:flex;
}

.lightbox-image{
    max-width:85%;
    max-height:85vh;
    border-radius:20px;
}

.close-lightbox{
    position:absolute;
    top:40px;
    right:50px;
    color:white;
    font-size:3rem;
    cursor:pointer;
}

/*=========================
TEAM
=========================*/
.team{
    background:white;
}

.team-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:35px;
}

.team-card{
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:.4s;
}

.team-card:hover{
    transform:translateY(-10px);
}

.team-image{
    overflow:hidden;
}

.team-image img{
    height:320px;
    object-fit:cover;
    transition:.6s;
}

.team-card:hover .team-image img{
    transform:scale(1.08);
}

.team-content{
    padding:30px;
}

.team-content h3{
    color:var(--primary-color);
    margin-bottom:8px;
    font-size:1.3rem;
}

.team-content span{
    color:var(--accent-color);
    font-weight:600;
}

.team-content p{
    margin-top:15px;
    color:var(--gray);
    line-height:1.8;
}

.social-links{
    display:flex;
    gap:15px;
    margin-top:20px;
}

.social-links a{
    width:42px;
    height:42px;
    background:var(--light);
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    color:var(--primary-color);
    transition:.3s;
}

.social-links a:hover{
    background:var(--accent-color);
    color:white;
}

/*=========================
TESTIMONIALS
=========================*/
.testimonials{
    background:var(--light);
}

.testimonial-slider{
    max-width:900px;
    margin:auto;
}

.testimonial-card{
    background:white;
    padding:50px;
    border-radius:20px;
    box-shadow:var(--shadow);
    display:none;
}

.testimonial-card.active{
    display:block;
}

.quote{
    font-size:2rem;
    color:var(--accent-color);
    margin-bottom:20px;
}

.testimonial-card p{
    line-height:2;
    color:var(--gray);
    margin-bottom:30px;
}

.testimonial-author{
    display:flex;
    align-items:center;
    gap:20px;
}

.testimonial-author img{
    width:75px;
    height:75px;
    border-radius:50%;
    object-fit:cover;
}

.testimonial-author h4{
    color:var(--primary-color);
    margin-bottom:5px;
}

.testimonial-author span{
    color:var(--gray);
    font-size:.9rem;
}
/*=========================
BLOG
=========================*/
.blog{
    background:var(--white);
}

.blog-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.blog-card{
    background:var(--light);
    border-radius:20px;
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:.4s;
}

.blog-card:hover{
    transform:translateY(-10px);
}

.blog-image{
    overflow:hidden;
}

.blog-image img{
    height:250px;
    object-fit:cover;
    transition:.6s;
}

.blog-card:hover img{
    transform:scale(1.08);
}

.blog-content{
    padding:30px;
}

.category{
    color:var(--accent-color);
    font-weight:600;
}

.blog-content h3{
    color:var(--primary-color);
    margin:15px 0;
}

.blog-content p{
    color:var(--gray);
    line-height:1.8;
    margin-bottom:20px;
}

.blog-content a{
    color:var(--accent-color);
    font-weight:600;
}

/*=========================
EVENTS
=========================*/
.events{
    background:var(--light);
}

.events-container{
    display:grid;
    gap:30px;
}

.event-card{
    background:white;
    padding:35px;
    border-radius:20px;
    display:flex;
    align-items:center;
    gap:30px;
    box-shadow:var(--shadow);
    transition:.3s;
}

.event-card:hover{
    transform:translateY(-5px);
}

.event-date{
    min-width:100px;
}

.event-date h3{
    color:var(--accent-color);
    font-size:2rem;
}

.event-details h3{
    color:var(--primary-color);
    margin-bottom:15px;
}

.event-details p{
    color:var(--gray);
    line-height:1.8;
    margin-bottom:15px;
}

.event-details a{
    color:var(--accent-color);
    font-weight:600;
}

/*=========================
NEWSLETTER
=========================*/
.newsletter{
    background:var(--primary-color);
    color:white;
    text-align:center;
}

.newsletter-content{
    max-width:750px;
    margin:auto;
}

.newsletter h2{
    font-size:2.8rem;
    margin-bottom:20px;
}

.newsletter p{
    line-height:1.8;
}

.newsletter form{
    display:flex;
    gap:20px;
    margin-top:35px;
}

.newsletter input{
    flex:1;
    padding:18px 25px;
    border:none;
    border-radius:50px;
    outline:none;
}

.newsletter button{
    border:none;
    background:var(--accent-color);
    color:white;
    padding:18px 35px;
    border-radius:50px;
    cursor:pointer;
    font-weight:600;
}

/*=========================
FOOTER
=========================*/
footer{
    background:#122737;
    color:white;
    padding:100px 8% 30px;
}

.footer-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:50px;
}

.footer-logo{
    width:80px;
    margin-bottom:20px;
}

.footer-box p{
    color:#d1d5db;
    line-height:1.8;
}

.footer-box h3{
    margin-bottom:20px;
}

.footer-box ul li{
    margin-bottom:15px;
}

.footer-box a{
    color:#d1d5db;
    transition:.3s;
}

.footer-box a:hover{
    color:var(--accent-color);
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.1);
    margin-top:60px;
    padding-top:25px;
    text-align:center;
}

/*=========================
WHATSAPP BUTTON
=========================*/
.whatsapp-btn{
    position:fixed;
    left:30px;
    bottom:30px;
    width:60px;
    height:60px;
    background:#25D366;
    color:white;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:1.7rem;
    z-index:999;
    box-shadow:0 10px 25px rgba(0,0,0,.2);
}

/*=========================
BACK TO TOP
=========================*/
#back-to-top{
    position:fixed;
    right:30px;
    bottom:30px;
    width:55px;
    height:55px;
    border:none;
    background:var(--accent-color);
    color:white;
    border-radius:50%;
    cursor:pointer;
    display:none;
    justify-content:center;
    align-items:center;
    font-size:1.1rem;
    z-index:999;
    box-shadow:0 10px 25px rgba(0,0,0,.2);
}

#back-to-top.show{
    display:flex;
}
/*=========================
DARK MODE
=========================*/
body.dark{
    background:#0f172a;
    color:white;
}

body.dark .about,
body.dark .gallery,
body.dark .events,
body.dark .programs,
body.dark .testimonials{
    background:#1e293b;
}

body.dark .projects,
body.dark .team,
body.dark .blog{
    background:#0f172a;
}

body.dark .project-card,
body.dark .blog-card,
body.dark .team-card,
body.dark .event-card,
body.dark .testimonial-card{
    background:#334155;
}

body.dark p{
    color:#cbd5e1;
}

body.dark h1,
body.dark h2,
body.dark h3{
    color:white;
}

body.dark .navbar{
    background:#0f172a;
}

body.dark .nav-links a,
body.dark .search-btn,
body.dark .theme-toggle{
    color:white;
}

body.dark .theme-toggle{
    background:#334155;
}

/*=========================
SMOOTH HOVER EFFECTS
=========================*/
.primary-btn,
.secondary-btn,
.blog-card,
.project-card,
.team-card,
.event-card{
    transition:.4s;
}

.primary-btn:hover{
    transform:translateY(-5px);
}

.secondary-btn:hover{
    background:white;
    color:var(--primary-color);
}

/*=========================
TABLET
=========================*/
@media(max-width:992px){

    .hero-content h1{
        font-size:3.5rem;
    }

    .about-container{
        flex-direction:column;
    }

    .projects-grid{
        grid-template-columns:1fr;
    }

    .stats{
        grid-template-columns:repeat(2,1fr);
    }

    .newsletter form{
        flex-direction:column;
    }

}

/*=========================
MOBILE NAVIGATION
=========================*/
@media(max-width:768px){

    .menu-btn{
        display:block;
    }

    .nav-links{
        position:fixed;
        top:80px;
        left:-100%;
        width:100%;
        background:white;
        flex-direction:column;
        text-align:center;
        padding:40px 0;
        transition:.4s;
        box-shadow:0 10px 25px rgba(0,0,0,.1);
    }

    .nav-links.active{
        left:0;
    }

    body.dark .nav-links{
        background:#0f172a;
    }

    .nav-right{
        gap:15px;
    }

    .donate-btn{
        display:none;
    }

    .hero-content{
        margin:0 8%;
    }

    .hero-content h1{
        font-size:2.7rem;
    }

    .hero-buttons{
        flex-direction:column;
        align-items:flex-start;
    }

    .stats{
        grid-template-columns:1fr;
    }

    .event-card{
        flex-direction:column;
        text-align:center;
    }

    .testimonial-card{
        padding:30px;
    }

    .testimonial-author{
        flex-direction:column;
        text-align:center;
    }

    .newsletter h2{
        font-size:2rem;
    }

    .newsletter form{
        flex-direction:column;
    }

    .search-box{
        width:90%;
    }

}

/*=========================
SMALL PHONES
=========================*/
@media(max-width:576px){

    section{
        padding:80px 6%;
    }

    .logo span{
        display:none;
    }

    .hero-content h1{
        font-size:2.2rem;
    }

    .hero-content p{
        font-size:.95rem;
    }

    .section-title h2{
        font-size:2rem;
    }

    .about-text h2{
        font-size:2rem;
    }

    .stat-box h3{
        font-size:2.5rem;
    }

    .team-grid,
    .gallery-grid,
    .blog-grid,
    .programs-grid{
        grid-template-columns:1fr;
    }

    .whatsapp-btn{
        width:55px;
        height:55px;
        left:20px;
        bottom:20px;
    }

    #back-to-top{
        width:50px;
        height:50px;
        right:20px;
        bottom:20px;
    }

}

/*=========================
ANIMATIONS
=========================*/
@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

.hero-content,
.about-text,
.section-title{
    animation:fadeUp 1s ease;
}
