*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f5f5f5;
}

/* Header */

header{
    width:100%;
    height:80px;
    background:#111;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 8%;
    position:sticky;
    top:0;
    z-index:100;
}

.logo img{
    width:90px;
}

nav{
    display:flex;
    gap:30px;
}

nav a{
    color:white;
    text-decoration:none;
    font-size:17px;
    transition:.3s;
}

nav a:hover,
nav .active{
    color:#ff9800;
}

/* Hero */

.blog-hero{
    width:100%;
    background:linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),
    url("../images/blog-banner.jpg");
    background-size:cover;
    background-position:center;
    text-align:center;
    color:white;
    padding:80px 20px;
}

.blog-hero h1{
    font-size:45px;
    margin-bottom:15px;
}

.blog-hero p{
    font-size:18px;
}

/* Blog Section */

.blogs{
    width:90%;
    margin:60px auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    gap:30px;
}

/* Card */

.blog-card{
    background:white;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
    transition:.3s;
}

.blog-card:hover{
    transform:translateY(-10px);
}

.blog-card img{
    width:100%;
    height:240px;
    object-fit:cover;
}

.content{
    padding:25px;
}

.content h2{
    font-size:24px;
    margin-bottom:15px;
    color:#222;
}

.content p{
    color:#666;
    line-height:1.7;
    margin-bottom:20px;
}

.content a{
    display:inline-block;
    padding:12px 25px;
    background:#ff9800;
    color:white;
    text-decoration:none;
    border-radius:8px;
    transition:.3s;
    font-weight:bold;
}

.content a:hover{
    background:#111;
}

/* Responsive */

@media(max-width:768px){

header{
    flex-direction:column;
    height:auto;
    padding:15px;
}

nav{
    margin-top:10px;
    flex-wrap:wrap;
    justify-content:center;
}

.blog-hero h1{
    font-size:32px;
}

.blog-card img{
    height:220px;
}

}

/* Blog Details */

.blog-details{
    width:80%;
    margin:50px auto;
    background:#fff;
    padding:40px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
}

.blog-details img{
    width:100%;
    height:450px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:25px;
}

.blog-details h1{
    font-size:38px;
    color:#222;
    margin-bottom:15px;
}

.blog-details p{
    font-size:18px;
    line-height:1.8;
    color:#555;
    margin-bottom:20px;
}

.blog-details ul,
.blog-details ol{
    margin:20px 40px;
    line-height:2;
}

.blog-details h2{
    margin-top:30px;
    margin-bottom:15px;
    color:#ff9800;
}

.back-btn{
    display:inline-block;
    margin-top:30px;
    background:#ff9800;
    color:#fff;
    text-decoration:none;
    padding:12px 25px;
    border-radius:8px;
}

.back-btn:hover{
    background:#111;
}