/* HERO */
.hero{
    height:45vh;
    background:linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
    url('../images/news.png')  center 40%/cover;
    display:flex;
    align-items:center;
    color:white;
    margin-top:70px;
}

.hero h1{
    font-size:48px;
}
/* Section */
.search-box{
    margin:-40px auto 50px;
    max-width:800px;
    background:white;
    padding:20px;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.search-box input{
    width:100%;
    padding:15px;
    border:none;
    outline:none;
    font-size:16px;
}

.categories{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:15px;
    margin-bottom:50px;
}

.categories button{
    border:none;
    padding:12px 25px;
    border-radius:30px;
    cursor:pointer;
    background:white;
    font-weight:500;
    transition:.3s;
}

.categories button:hover,
.categories button.active{
    background:var(--primary);
    color:white;
}

.featured{
    background:white;
    border-radius:20px;
    overflow:hidden;
    display:grid;
    grid-template-columns:1fr 1fr;
    margin-bottom:60px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}

.featured img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.featured-content{
    padding:40px;
}

.badge{
    display:inline-block;
    background:#dbeafe;
    color:var(--primary);
    padding:8px 15px;
    border-radius:30px;
    font-size:13px;
    margin-bottom:15px;
}

.featured-content h2{
    margin-bottom:15px;
    color:var(--primary);
}

.featured-content p{
    margin-bottom:20px;
}

.btn{
    display:inline-block;
    background:var(--primary);
    color:white;
    text-decoration:none;
    padding:12px 25px;
    border-radius:8px;
}

.news-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(330px,1fr));
    gap:30px;
    margin-bottom:60px;
}

.news-card{
    background:white;
    border-radius:15px;
    overflow:hidden;
    transition:.3s;
    box-shadow:0 10px 25px rgba(0,0,0,.06);
}

.news-card:hover{
    transform:translateY(-8px);
}

.news-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.news-content{
    padding:25px;
}

.news-content i{
    color:#03663A;
    font-size:18px;
}

.news-date{
    color:#64748b;
    font-size:14px;
}

.news-content h3{
    margin:15px 0;
    color:var(--secondary);
}

.news-content a{
    text-decoration:none;
    color:var(--primary);
    font-weight:600;
}

.pagination{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-bottom:80px;
}

.pagination a{
    width:45px;
    height:45px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:white;
    border-radius:50%;
    text-decoration:none;
    color:var(--secondary);
    box-shadow:0 5px 15px rgba(0,0,0,.05);
}

.pagination a.active{
    background:var(--primary);
    color:white;
}

.newsletter{
    background:linear-gradient(135deg,#0056b3,#003b80);
    color:white;
    text-align:center;
    padding:70px 20px;
}

.newsletter h2{
    margin-bottom:20px;
}

.newsletter form{
    max-width:600px;
    margin:auto;
    display:flex;
    gap:10px;
}

.newsletter input{
    flex:1;
    padding:15px;
    border:none;
    border-radius:8px;
}

.newsletter button{
    padding:15px 30px;
    border:none;
    border-radius:8px;
    background:#fff;
    color:#0056b3;
    font-weight:bold;
    cursor:pointer;
}

.news-text-top{
    text-align: justify;
}
.news-text{
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    transition: .4s ease;
    text-align: justify;
}

.news-text.expanded{
    -webkit-line-clamp: unset;
    display: block;
}

.read-more-btn{
    margin-top:15px;
    background:#0B5E3C;
    color:#fff;
    border:none;
    padding:10px 20px;
    border-radius:30px;
    cursor:pointer;
    transition:.3s;
    font-weight:600;
}

.read-more-btn:hover{
    background:#158f5d;
}


@media(max-width:900px){

.featured{
    grid-template-columns:1fr;
}

.hero-content h1{
    font-size:34px;
}

.newsletter form{
    flex-direction:column;
}
}