/* Rest */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a{
    text-decoration: none;
    color: inherit;
}
body{
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgb(247, 247, 247);
}
.container{
    max-width: 1200px;
    margin:0 auto;
}
/* Header */
header > section{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}
header > section > h1{
    font-size: 28px;
}

header form {
    display: flex;
    
}
header > section > form >input{
    padding: 10px;
    border:1px solid #ccc;
    border-radius: 10px 0px 0px 10px;
}
header form input:focus{
    outline: none;
    border:1px solid rgb(0, 0, 221);
}
header form button{
    padding: 10px 20px;
    border: none;
    background-color: rgb(0, 0, 221);
    border-radius: 0px 10px 10px 0px;
    color:white;
}
/* Navbar */
.nav{
background-color: rgb(54, 54, 54);
}
.nav-list{
    display: flex;
    list-style-type: none;
}
.nav-list li{
    padding: 10px 20px;
    color: white;
}
.nav-list li:hover{
    background-color: rgb(0, 0, 221);
}
/* Main */
main{
    padding: 20px;
}
/* featured post */
.featured-post h2, .latest-posts h2{
    font-size: 24px;
    padding: 20px 0;
    border-bottom: 2px solid rgb(0, 0, 221);
    margin-bottom: 10px;
}
.featured-card{
    border-radius: 20px;
    overflow: hidden;
    background-color: #fff;
}
.featured-card img{
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.featured-card .card-content{
    padding: 20px;
}
.featured-card h3{
    font-size: 20px;
    margin-bottom: 10px ;
}
.featured-card .post-date{
    color: #a0a0a0;
    font-size: 15px;
    font-weight: 100;
    margin-bottom: 10px;
}
.featured-card .card-description{
    font-size: 16px;
    color: #414141;
    margin-bottom: 10px;
    line-height: 1.5;
}
.featured-card .read-more{
    display: inline-block;
    padding: 10px 20px;
    background-color: rgb(0, 0, 221);
    border-radius: 5px;
    color: white;
}
.featured-card .read-more:hover{
    background-color: rgba(0, 0, 221, 0.774);
}
/* latest posts */
.post-grid{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

/* post card */
.post-card{
    border-radius: 20px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 5px 10px 15px #ccc;
}
.post-card img{
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.post-card .card-content{
    padding: 20px;
}
.post-card h3{
    font-size: 20px;
    margin-bottom: 10px;
    /* text-shadow: 1px 1px 1px red; */
}
.post-card .card-post-date{
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 10px;
}
.post-card .card-description{
    font-size: 15px;
    color: #414141;
    line-height: 1.5;
    margin-bottom: 10px;
}
.post-card .card-footer{
    display: flex;
    justify-content: space-between;
}
.post-card .card-footer a{
    padding: 10px 20px;
    background-color: rgb(0, 0, 221);
    border-radius: 5px;
    color: #fff;
}
/* footer */
footer{
    background-color: rgb(54, 54, 54);
     color:#fff;
     padding: 20px;
}
footer .footer-content{
   display: flex;
   justify-content: space-between;
   gap: 20px;
   margin-bottom: 20px;
}
footer .footer-copyright{
  border-top: 1px solid #ccc;
}
footer .footer-copyright p{
    text-align: center;
    padding: 20px 20px 0 20px;
}