/* =========================
   HOME PAGE STYLING
   CEGLIS NGO WEBSITE
========================= */

/* =========================
   HERO SECTION
========================= */

.hero{
    background-color: #f5f7f3;
    padding: 80px 0 60px;
}

.hero .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-text{
    flex: 1;
}

.hero-text h1{
    font-size: 58px;
    line-height: 1.2;
    color: #174d2c;
    margin-bottom: 25px;
    max-width: 650px;
}

.hero-text p{
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    max-width: 580px;
    margin-bottom: 35px;
}

.hero-buttons{
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary{
    background-color: #1f6b3b;
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary:hover{
    background-color: #174d2c;
}

.btn-secondary{
    border: 2px solid #1f6b3b;
    color: #1f6b3b;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-secondary:hover{
    background-color: #1f6b3b;
    color: white;
}

.hero-image{
    flex: 1;
    text-align: center;
}

.hero-image img{
    width: 100%;
    max-width: 560px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* =========================
   GENERAL SECTION STYLING
========================= */

section{
    padding: 90px 0;
}

.section-title{
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2{
    font-size: 42px;
    color: #174d2c;
    margin-bottom: 15px;
}

.section-title p{
    color: #666;
    font-size: 17px;
    max-width: 650px;
    margin: auto;
    line-height: 1.7;
}

/* =========================
   CARD GRID
========================= */

.card-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card{
    background-color: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.card:hover{
    transform: translateY(-6px);
}

.card img{
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.card h3{
    color: #174d2c;
    font-size: 24px;
    margin-bottom: 15px;
}

.card p{
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

/* =========================
   ABOUT SECTION
========================= */

.about-home{
    background-color: #ffffff;
}

/* =========================
   FOCUS AREA SECTION
========================= */

.focus-home{
    background-color: #f8faf7;
}

/* =========================
   PROJECT SECTION
========================= */

.projects-home{
    background-color: #ffffff;
}

/* =========================
   IMPACT SECTION
========================= */

.impact-home{
    background-color: #174d2c;
    color: white;
}

.impact-home .section-title h2,
.impact-home .section-title p{
    color: white;
}

.impact-home .card{
    background-color: rgba(255,255,255,0.08);
    backdrop-filter: blur(5px);
    text-align: center;
}

.impact-home .card h3{
    color: white;
    font-size: 48px;
}

.impact-home .card p{
    color: #e5e5e5;
}

/* =========================
   CTA SECTION
========================= */

.cta-home{
    background-color: #f5f7f3;
    text-align: center;
}

.cta-home .btn-primary{
    display: inline-block;
    margin-top: 20px;
}

/* =========================
   IMAGE HOVER EFFECT
========================= */

.card img,
.hero-image img{
    transition: 0.4s ease;
}

.card img:hover,
.hero-image img:hover{
    transform: scale(1.03);
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media(max-width: 992px){

    .hero-text h1{
        font-size: 46px;
    }

}

@media(max-width: 768px){

    .hero{
        text-align: center;
    }

    .hero .container{
        flex-direction: column;
        }

    .hero-text h1{
        font-size: 38px;
    }

    .hero-text p{
        margin: auto;
        margin-bottom: 30px;
    }

    .hero-buttons{
        justify-content: center;
    }

    .section-title h2{
        font-size: 34px;
    }

}

@media(max-width: 480px){

    .hero-text h1{
        font-size: 30px;
    }

    .hero-text p{
        font-size: 15px;
    }

    .btn-primary,
    .btn-secondary{
        width: 100%;
        text-align: center;
    }

}