@font-face { font-family: 'BMitraB'; src: url('fonts/B Mitra Bold_0.ttf') format('truetype'); }
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family: BMitraB , sans-serif;
}

html, body{
height:100%;
}

body{
background:#0f0f10;
color:#e4e4e4;
line-height:1.7;

display:flex;
flex-direction:column;
min-height:100vh;
}

.container{
width:90%;
max-width:1100px;
margin:auto;
}

/* header */

header{
background:#151518;
border-bottom:1px solid #222;
}

.nav{
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 0;
}

.logo{
font-size:20px;
}
.logo a{
color:#ddd;
text-decoration:none;
}

nav a{
color:#ddd;
text-decoration:none;
margin-right:18px;
font-size:14px;
}

nav a:hover{
color:#fff;
}

/* books grid */

.books{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:25px;
margin:40px 0;
}

.book{
background:#18181b;
padding:15px;
border-radius:10px;
transition:.2s;
text-align: justify;
}

.book:hover{
background:#202024;
}

.book img{
width:100%;
aspect-ratio:1/1;
object-fit:cover;
border-radius:6px;
margin-bottom:10px;
}

.book h3{
font-size:16px;
margin-bottom:6px;
text-align: center;
}

.book p{
font-size:14px;
color:#aaa;
text-align: center;
}
.book a{
color: rgb(238, 58, 58);
text-decoration: none;
}
/* footer */

footer{
background:#151518;
border-top:1px solid #222;
padding:30px 0;
}

.footer-top{
display:flex;
gap:20px;
margin-bottom:15px;
}

.footer-top a{
text-decoration:none;
color:#ccc;
font-size:14px;
}

.footer-bottom{
font-size:14px;
color:#aaa;
}

.footer-bottom a{
color:#fff;
text-decoration:none;
}
/* blog */

.blog-list{
margin:40px 0;
display:flex;
flex-direction:column;
gap:25px;
}

.post{
display:flex;
gap:20px;
background:#18181b;
padding:15px;
border-radius:10px;
align-items:center;
}

.post img{
width:140px;
height:140px;
object-fit:cover;
border-radius:8px;
}

.post-content{
flex:1;
}

.post-content h2{
font-size:18px;
margin-bottom:8px;
}

.post-content p{
font-size:14px;
color:#aaa;
margin-bottom:8px;
}

.read-more{
text-decoration:none;
font-size:14px;
color:#fff;
float: left;
}

/* responsive */

@media (max-width:700px){

.post{
flex-direction:column;
align-items:flex-start;
}

.post img{
width:100%;
height:auto;
aspect-ratio:16/9;
}

}



@media (max-width:600px){

.nav{
flex-direction:column;
gap:10px;
}

.footer-top{
flex-direction:column;
}

}
