/* =========================
   NEWS PAGE STYLING
   news.css
========================= */

/* =========================
   NEWS INTRO
========================= */

.news-intro{
    background-color: #ffffff;
}

/* =========================
   NEWS GRID SECTION
========================= */

.news-grid-section{
    background-color: #f5f7f3;
}

.news-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

/* =========================
   NEWS CARD
========================= */

.news-card{
    background-color: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    transition: 0.3s ease;
}

.news-card:hover{
    transform: translateY(-6px);
}

.news-card img{
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.news-content{
    padding: 28px;
}

.news-date{
    display: inline-block;
    background-color: #e7f2ea;
    color: #174d2c;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 18px;
    font-weight: 500;
}

.news-content h3{
    font-size: 24px;
    color: #174d2c;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p{
    color: #666;
    line-height: 1.8;
    margin-bottom: 22px;
}

.read-more{
    color: #174d2c;
    font-weight: 600;
    transition: 0.3s ease;
}

.read-more:hover{
    color: #0f361f;
}

/* =========================
   FEATURED STORY
========================= */

.featured-story{
    background-color: #ffffff;
}

.featured-content{
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.featured-image{
    flex: 1;
}

.featured-image img{
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 18px;
}

.featured-text{
    flex: 1;
}

.featured-text h2{
    font-size: 42px;
    color: #174d2c;
    margin-bottom: 25px;
}

.featured-text p{
    color: #666;
    line-height: 1.9;
    margin-bottom: 22px;
}

/* =========================
   CTA SECTION
========================= */

.news-cta{
    background-color: #174d2c;
    color: white;
    text-align: center;
}

.news-cta h2{
    font-size: 42px;
    margin-bottom: 20px;
}

.news-cta p{
    max-width: 760px;
    margin: auto;
    line-height: 1.9;
    margin-bottom: 35px;
    color: #f0f0f0;
}

.news-cta .btn-primary{
    background-color: white;
    color: #174d2c;
}

.news-cta .btn-primary:hover{
    background-color: #f2f2f2;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width: 992px){

    .featured-content{
        flex-direction: column;
    }

    .featured-text h2{
        font-size: 36px;
    }

}

@media(max-width: 768px){

    .news-grid{
        grid-template-columns: 1fr;
    }

    .news-cta h2{
        font-size: 34px;
    }

}

@media(max-width: 480px){

    .news-content{
        padding: 22px;
    }

    .news-content h3{
        font-size: 22px;
    }

    .featured-text h2{
        font-size: 30px;
    }

    .news-cta h2{
        font-size: 28px;
    }

    /* =========================
   SINGLE NEWS PAGE
========================= */

.single-news-section{
    padding: 100px 8%;
    background-color: #f5f7f3;
}

.single-news-image{
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 40px;
}

.single-news-content{
    background-color: white;
    padding: 45px;
    border-radius: 18px;
}

.single-news-content h1{
    color: #174d2c;
    font-size: 42px;
    margin: 25px 0;
}

.single-news-content p{
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

.author{
    font-weight: bold;
    color: #174d2c;
}
.read-more-btn{
    display:inline-block;
    margin-top:15px;
    padding:10px 20px;
    background:#006837;
    color:#fff;
    text-decoration:none;
    border-radius:5px;
    transition:0.3s;
}

.read-more-btn:hover{
    opacity:0.9;
}
.news-content h3 a{
    text-decoration: none;
    color: inherit;
}

.news-content h3 a:hover{
    color: #006837;
}
}