
/* === Defaults === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f5f5f5;
}

h1 {
    font-size: 50px;
    text-shadow: 2px 2px 2px black;
    font-weight: 700;
}

h2 {
    font-size: 36px;
    font-weight: 700;
}

p, a {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}
/* end of Defaults */



/* === Navigation Bar === */
.header {
    position: sticky;
    top: 0;
    max-width: 1700px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: navy;
    padding: 0 25px;
    transition: 0.3s;
    z-index: 1000;
    margin: 0 auto;
}

.logo a {
    display: block;
    color: white;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.menu {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    z-index: 1;
    transition: 0.5s;
}

.menu li a {
    color: white;
    display: block;
    padding: 40px 25px;
    font-size: 18px;
    line-height: 1;
    transition: 0.3s;
}

.menu li a:hover {
    box-shadow: 0 -5px 0px white inset,
    500px 0 0 rgba(255,255,255,0.03) inset;
    padding: 35px 25px 45px 25px;
}

.hamburger {
    position: relative;
    width: 30px;
    height: 4px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    z-index: 2;
    transition: 0.3s;
}

.hamburger:before,
.hamburger:after {
    content: "";
    position: absolute;
    height: 4px;
    right: 0;
    background: white;
    transition: 0.3s;
}

.hamburger:before {
    top: -10px;
    width: 30px;
    border-radius: 10px;

}

.hamburger:after {
    top: 10px;
    width: 30px;
    border-radius: 10px;
}

.toggle-menu {
    position: absolute;
    width: 30px;
    height: 100%;
    z-index: 3;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s;
}

.hamburger,
.toggle-menu {
    display: none;
}

.navigation input:checked ~ .hamburger {
    background: transparent;
}

.navigation input:checked ~ .hamburger:before {
    top: 0;
    transform: rotate(-45deg);
    width: 30px;
}

.navigation input:checked ~ .hamburger:after {
    top: 0;
    transform: rotate(45deg);
    width: 30px;
}

.navigation input:checked ~ .menu {
    right: 0;
    box-shadow: -20px 0 40px rgba(0,0,0,0.3);
}

/* === Home/Landing === */
.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    align-items: center;
    align-content: center;
    max-width: 1700px;
    margin: 0 auto;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade 16s infinite;
    transform: scale(1.1); /* slight zoom for a premium look */
}

.slide1 {
    background-image: url("assets/images/fesfi-1.jpg");
    animation-delay: 0s;
}

.slide2 {
    background-image: url("assets/images/fesfi-2.jpg");
    animation-delay: 4s;
}

.slide3 {
    background-image: url("assets/images/fesfi-3.jpg");
    animation-delay: 8s;
}

.slide4 {
    background-image: url("assets/images/fesfi-4.jpg");
    animation-delay: 12s;
}

@keyframes fade {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    25% {
        opacity: 1;
        transform: scale(1);
    }

    35% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
    }
}

.content {
    position: relative;
    height: 100%;
    text-align: center;
    color: white;
    background: rgba(0,0,0,.35);
    align-items: center;
    align-content: center;
    
}

.content .cta-container ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    max-width: 400px;
    margin-inline: auto;
}

.content ul a {
    background: navy;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 8px;
    transition: all 0.6s ease;
    font-weight: 500;
    color: white;
}

.content ul a:hover {
    background: white;
    color: navy;
}

main {
    margin: 50px auto;
    background: white;
    max-width: 1700px;
}

.mission {
    text-align: center;
    margin-bottom: 50px;
    padding: 50px;
}

.mission h2 {
    color: #14325d;
}

.mission p {
    color: #555;
}

.programs {
    padding: 80px 20px;
}

.container {
    width: min(1200px, 100%);
    margin: auto;
}

.programs h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #14325d;
}

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

.program-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    transition: .3s;
}

.program-card:hover {
    transform: translateY(-8px);
}

.program-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.program-content {
    padding: 25px;
    text-align: center;
}

.program-content h3 {
    color: #14325d;
    font-size: 20px;
    margin-bottom: 15px;
}

.program-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.program-content a {
    color: #14325d;
    font-size: 1.1rem;
}

.program-content a:hover {
    text-decoration: underline;
}

.programs-btn {
    text-align: center;
    transition: .3s;
}

.programs-btn a {
    background: navy;
    border-radius: 10px;
    padding: 20px;
    display: inline-block;
    margin-top: 50px;
    color: white;
    transition: .3s;
}

.programs-btn a:hover {
    background: blue;
    color: white;
    transform: translateY(-8px);
    transition: .3s;
}
/* end of home */



/* === About Us === */
.about-hero {
    background: url(../images/fesfi-20.jpg) center/cover no-repeat;
    min-height: 50vh;
    position: relative;
}

.about-overlay {
    background: rgba(0,0,0,.55);
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.about-hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-hero p {
    color: #f5f5f5;
    max-width: 700px;
    margin: auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

.our-story {
    padding: 90px 20px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-image img {
    width: 100%;
    border-radius: 18px;
    display: block;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.story-text h2 {
    color: navy;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.story-text p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 20px;
}

.vision-mission {
    padding: 0 20px 90px;
}

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

.vision-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    text-align: center;
}

.vision-card h3 {
    color: #0a8f45;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.vision-card p {
    color: #555;
    line-height: 1.8;
}

.projects {
    padding: 90px 20px;
    background: #f8f9fb;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    color: navy;
    margin-bottom: 15px;
}

.section-intro {
    max-width: 750px;
    margin: 0 auto 70px;
    text-align: center;
    color: #666;
    line-height: 1.8;
}

.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 90px;
}

.project.reverse .project-image {
    order: 2;
}

.project.reverse .project-content {
    order: 1;
}

.project-image img {
    width: 100%;
    display: block;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    transition: .3s;
}

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

.project-content h3 {
    color: #0b8f45;
    font-size: 2rem;
    margin-bottom: 20px;
}

.project-content p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 18px;
}

.impact{
    padding:90px 20px;
    background:white;
}

.impact h2{
    text-align:center;
    font-size:2.5rem;
    color:navy;
    margin-bottom:15px;
}

.impact-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
    margin-top:60px;
}

.impact-card{
    background:#fff;
    padding:45px 25px;
    text-align:center;
    border-radius:18px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.impact-card:hover{
    transform:translateY(-8px);
}

.impact-card h3{
    color:#0a8f45;
    font-size:3rem;
    margin-bottom:10px;
}

.impact-card p{
    color:#555;
    font-size:1.05rem;
}



/* =======================
   TEAM
======================= */

.team{
    padding:90px 20px;
    background:#f8f9fb;
}

.team h2{
    text-align:center;
    color:navy;
    font-size:2.5rem;
    margin-bottom:15px;
}

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

.team-card{
    background: white;
    padding: 15px 10px;
    text-align: center;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: .3s;
}

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

.team-card img{
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 1px solid navy;
}

.team-card h3{
    color:navy;
    margin-bottom:8px;
}

.team-card span{
    color:#0a8f45;
    font-weight:600;
    display:block;
    margin-bottom:18px;
}

.team-card p{
    color:#555;
    line-height:1.8;
}



/* =======================
   CTA
======================= */

.about-cta{
    padding:90px 20px;
    background:navy;
    color:white;
    text-align:center;
}

.about-cta h2{
    font-size:2.5rem;
    margin-bottom:20px;
}

.about-cta p{
    max-width:700px;
    margin:auto;
    line-height:1.8;
    margin-bottom:40px;
}

.cta-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.btn-primary,
.btn-secondary{
    padding:14px 34px;
    border-radius:8px;
    text-decoration:none;
    font-weight:bold;
    transition:.3s;
}

.btn-primary{
    background:#0a8f45;
    color:white;
}

.btn-primary:hover{
    background:#08753a;
}

.btn-secondary{
    border:2px solid white;
    color:white;
}

.btn-secondary:hover{
    background:white;
    color:navy;
}





/* === Gallery Section === */
/* GALLERY */

.gallery {
    padding: 80px 20px;
    background: white;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    color: navy;
    margin-bottom: 15px;
}

.gallery-intro {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
    color: #555;
    line-height: 1.7;
}

/* GRID */

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

/* IMAGES */

.gallery-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;

    border-radius: 15px;

    transition: .35s ease;

    cursor: pointer;

    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,.18);
}

/* === DONATE SECTION === */
.donate {
    padding: 80px 20px;
    background: #f8f8f8;
}

.donate-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.donate-content h2 {
    font-size: 36px;
    color: navy;
    margin-bottom: 20px;
}

.donate-content p {
    color: #555;
    margin-bottom: 25px;
}

.donate-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.donate-content li {
    margin-bottom: 12px;
    color: #333;
}

.donate-btn {
    display: inline-block;
    background: navy;
    color: white;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.donate-btn:hover {
    background: blue;
}

.donate-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 18px rgba(0,0,0,.12);
}

.gfm-embed iframe {
    width: 100%;
    border: none;
}

/* === Contact Form === */
.contact {
    background: #f8f8f8;
    padding: 80px 20px;
}

.contact-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    color: navy;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 18px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(0,0,0,.12);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: .3s;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: navy;
}

.contact-form textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-form button {
    background: navy;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
}

.contact-form button:hover {
    background: #001f66;
}

/* Footer Section */
footer{
    justify-content: space-between;
    background: navy;
    text-align: center;
    padding: 120px 120px 0 120px;
    max-width: 1700px;
    margin: 0 auto;
}

footer h4 {
    color: wheat;
}

footer p {
    color: white;
}

footer .social-media {
    background-color: bisque;
    margin: 50px 0px 50px 0;
    border-radius: 10px;
}

footer #last-para {
    bottom: 0;
    font-size: 12px;
}

/* === RESPONSIVE DESIGN === */
/* Tablet View */
@media (max-width: 900px) {
    p, a{
        font-size: 16px;
    }

    .project {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 70px;
    }

    .project.reverse .project-image,
    .project.reverse .project-content {
        order: initial;
    }

    .project-content{
        text-align: center;
    }

    .project-content h3 {
        font-size: 1.8rem;
    }

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

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

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

    .donate-container {
        grid-template-columns: 1fr;
    }

    .donate-content {
        text-align: center;
    }

    .donate-content ul {
        display: inline-block;
        text-align: left;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }

    footer {
        padding: 40px;
    }
}

/* Tablet View II */
@media screen and (max-width: 730px) {
    .hamburger,
    .toggle-menu {
    display: block;
    }

    .header {
        padding: 20px 10px;
        transform: 0.3s;
    }

    .header h2 {
        font-size: 24px;
    }

    .menu {
        justify-content: start;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100%;
        padding-top: 65px;
        transition: 0.3s;
        background: navy;
    }

    .menu li {
        width: 100%;
    }

    .menu li a {
        padding: 30px;
        font-size: 16px;
        box-shadow: 0 1px 0 rgba(255,255,255,0.1)inset;
    }

    .menu li a:hover {
        box-shadow: none;
        padding: 30px 30px 30px 50px;
        background: white;
        color: navy;
    }

    .mission h2, 
    .programs h2, 
    .gallery h2, 
    .our-story h2, 
    .vision-mission h2, 
    .impact h2,
    .team h2,
    .about-cta h2
    .projects h2,
    .about-cta h2 {
        font-size: 27px;
    } 
    
    .about-cta {
        padding: 70px 20px;
    }

    .team-card img{
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 700px) {
    h1 {
        font-size: 40px;
    }
    
    .mission {
        padding: 20px;
    }
    
    .hero {
        height: 70vh;
    }
}

/* Mobile view */
@media (max-width: 600px) {

    p, a {
        font-size: 14px;
    }

    .donate {
        padding: 60px 15px;
    }

    .donate-content h2 {
        font-size: 1.8rem;
    }

    .donate-btn {
        width: 100%;
        text-align: center;
    }
    
    .contact {
        padding: 60px 15px;
    }

    .contact-form {
        padding: 20px;
    }
}

/* Mobile view II */
@media (max-width: 500px) {
    h1 {
        font-size: 26px;
    }
}

