*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    background:#f5f5f5;
    color:#222;
}

/* HERO */

.hero{
    background:linear-gradient(rgba(0,0,0,.65),
    rgba(0,0,0,.65)),
    url('https://images.unsplash.com/photo-1517048676732-d65bc937f952');
    background-size:cover;
    background-position:center;
    height:300px;

    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;

    color:white;
}

.hero h1{
    font-size:3rem;
    margin-bottom:10px;
}

.hero p{
    font-size:1.1rem;
}

/* SECTIONS */

section{
    padding:60px 8%;
}

.section-header{
    text-align:center;
    margin-bottom:35px;
}

.section-header h2{
    color:#d32f2f;
    margin-bottom:10px;
}

/* NEWS */

.news-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:25px;
}

.featured-news{
    background:white;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.featured-news img{
    width:100%;
    height:350px;
    object-fit:cover;
}

.news-content{
    padding:20px;
}

.tag{
    background:#d32f2f;
    color:white;
    padding:5px 12px;
    border-radius:20px;
    font-size:.8rem;
}

.news-content h3{
    margin:15px 0;
}

.news-content a{
    text-decoration:none;
    color:#d32f2f;
    font-weight:600;
}

.side-news{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.small-news{
    background:white;
    padding:20px;
    border-radius:15px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.small-news h4{
    margin-bottom:10px;
}

/* SEARCH */

.search-container{
    max-width:700px;
    margin:0 auto 30px;

    display:flex;
}

.search-container input{
    flex:1;
    padding:15px;
    border:none;
    border-radius:8px 0 0 8px;
    font-size:16px;
}

.search-container button{
    width:60px;
    border:none;
    background:#d32f2f;
    color:white;
    cursor:pointer;
    border-radius:0 8px 8px 0;
}

/* FILTERS */

.categories{
    display:flex;
    gap:12px;
    justify-content:center;
    flex-wrap:wrap;
    margin-bottom:40px;
}

.categories button{
    padding:10px 18px;
    border:none;
    border-radius:25px;
    background:white;
    cursor:pointer;
    transition:.3s;
}

.categories button:hover,
.categories .active{
    background:#d32f2f;
    color:white;
}

/* BLOG GRID */

.blog-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));

    gap:25px;
}

.blog-card{
    background:white;
    border-radius:15px;
    overflow:hidden;

    transition:.3s;

    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.blog-card:hover{
    transform:translateY(-8px);
}

.blog-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.blog-content{
    padding:20px;
}

.blog-content span{
    color:#d32f2f;
    font-weight:600;
    font-size:.9rem;
}

.blog-content h3{
    margin:12px 0;
}

.blog-content p{
    margin-bottom:15px;
    line-height:1.6;
}

.blog-content a{
    color:#d32f2f;
    text-decoration:none;
    font-weight:600;
}

/* CTA */

.cta{
    background:#d32f2f;
    color:white;
    text-align:center;
}

.cta h2{
    margin-bottom:15px;
}

.cta p{
    margin-bottom:25px;
}

.cta a{
    display:inline-block;

    padding:14px 30px;

    background:white;
    color:#d32f2f;

    text-decoration:none;
    border-radius:8px;
    font-weight:600;
}

/* MOBILE */

@media(max-width:768px){

    .hero{
        height:220px;
    }

    .hero h1{
        font-size:2rem;
    }

    .news-grid{
        grid-template-columns:1fr;
    }

    .featured-news img{
        height:220px;
    }

    .search-container{
        width:100%;
    }

    section{
        padding:40px 5%;
    }

}