*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial,sans-serif;
}

body{
background:#f5f5f5;
}

.hero{
height:350px;
background:url(images/blog-banner.jpg) center/cover;
display:flex;
align-items:center;
justify-content:center;
}

.overlay{
background:rgba(0,0,0,.6);
width:100%;
height:100%;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
color:#fff;
text-align:center;
}

.overlay h1{
font-size:45px;
}

.overlay p{
margin-top:15px;
font-size:20px;
}

.search-section{
display:flex;
justify-content:center;
gap:20px;
padding:30px;
background:#fff;
}

.search-section input,
.search-section select{

padding:12px;
width:300px;
border:1px solid #ddd;
border-radius:5px;

}

.container{

width:90%;
margin:40px auto;
display:grid;
grid-template-columns:3fr 1fr;
gap:30px;

}

.blogs{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:25px;

}

.blog-card{

background:#fff;
border-radius:10px;
overflow:hidden;
box-shadow:0 5px 15px rgba(0,0,0,.1);
transition:.3s;

}

.blog-card:hover{

transform:translateY(-8px);

}

.blog-card img{

width:100%;
/*height:220px;*/
object-fit:cover;

}

.content{

padding:20px;

}

.content span{

background:#ff9800;
color:#fff;
padding:5px 10px;
border-radius:20px;
font-size:13px;

}

.content h2{

margin:15px 0;
font-size:22px;

}

.content p{

color:#666;
line-height:1.6;

}

.content a{

display:inline-block;
margin-top:20px;
text-decoration:none;
color:#ff9800;
font-weight:bold;

}

aside{

display:flex;
flex-direction:column;
gap:20px;

}

.sidebar-box{

background:#fff;
padding:25px;
border-radius:10px;
box-shadow:0 5px 10px rgba(0,0,0,.1);

}

.sidebar-box ul{

list-style:none;

}

.sidebar-box li{

padding:10px 0;
border-bottom:1px solid #eee;

}

.sidebar-box input{

width:100%;
padding:10px;
margin-top:15px;

}

.sidebar-box button{

margin-top:15px;
width:100%;
padding:12px;
background:#ff9800;
color:#fff;
border:none;
cursor:pointer;

}

@media(max-width:900px){

.container{

grid-template-columns:1fr;

}

.search-section{

flex-direction:column;
align-items:center;

}

.search-section input,
.search-section select{

width:90%;

}

.overlay h1{

font-size:35px;

}

}