/* =========================
   RESET & BASE
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial,sans-serif;
    background:#0f172a;
    color:#e2e8f0;
    line-height:1.6;
}

/* LINKS */
a{
    text-decoration:none;
    color:#60a5fa;
}

a:hover{
    color:#93c5fd;
}

/* =========================
   CONTAINER & LAYOUT
========================= */
.container{
    width:90%;
    max-width:1200px;
    margin:auto;
    padding:20px 0;
}

.posts{
    grid-template-columns:1fr;
}

.layout{
    flex-direction:column;
}

.sidebar{
    width:100%;
}

.main-content{
    flex:0;
}

/* =========================
   HEADINGS
========================= */
h1{
    font-size:26px;
    margin-bottom:20px;
    color:#f8fafc;
}

h2{
    font-size:20px;
    margin:10px 0;
    color:#f8fafc;
}

/* =========================
   FEATURED POST
========================= */
.featured-post{
    background:#1e293b;
    padding:15px;
    margin:15px auto;
    max-width:1200px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,.4);
}

.featured-post img{
    width:100%;
    height:300px;
    object-fit:cover;
    border-radius:10px;
    display:block;
}

/* =========================
   POSTS GRID
========================= */
.posts{
    display:grid;
    grid-template-columns:repeat(1,1fr);
    gap:20px;
}

.post-card{
    background:#1e293b;
    border-radius:10px;
    overflow:hidden;
    padding:15px;
    box-shadow:0 2px 10px rgba(0,0,0,.4);
    transition:.3s;
}

.post-card:hover{
    transform:translateY(-3px);
}

.post-card img.thumb{
    width:100%;
    height:400px;
    object-fit:cover;
    border-radius:8px;
}

.post-card p{
    margin:10px 0;
    font-size:14px;
    color:#cbd5e1;
}

/* TAGS */
.tags{
    margin:10px 0;
}

.tags a{
    display:inline-block;
    font-size:12px;
    background:#334155;
    padding:4px 8px;
    margin:2px;
    border-radius:5px;
    color:#60a5fa;
}

/* META */
.meta{
    font-size:12px;
    color:#94a3b8;
    margin-top:10px;
}

/* READ MORE */
.read-more{
    display:inline-block;
    margin-top:10px;
    font-weight:bold;
}

/* =========================
   SIDEBAR CARDS
========================= */
.card{
    background:#1e293b;
    padding:15px;
    margin-bottom:20px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,.4);
}

.card h3{
    margin-bottom:10px;
    font-size:18px;
    color:#f8fafc;
}

.card ul{
    list-style:none;
}

.card ul li{
    padding:8px 0;
    border-bottom:1px solid #334155;
}

/* TRENDING */
.trend-item{
    display:flex;
    gap:10px;
    margin-bottom:10px;
    align-items:center;
}

.trend-item img{
    width:50px;
    height:50px;
    object-fit:cover;
    border-radius:5px;
}

/* =========================
   PAGINATION
========================= */
.pagination{
    text-align:center;
    margin:30px 0;
}

.pagination a{
    display:inline-block;
    padding:8px 15px;
    margin:0 5px;
    background:#2563eb;
    color:#fff;
    border-radius:5px;
}

.pagination span{
    display:inline-block;
    padding:8px 10px;
    color:#cbd5e1;
}

/* =========================
   SEARCH FORM
========================= */
form input[type="text"]{
    background:#1e293b;
    color:#e2e8f0;
    border:1px solid #334155;
    transition:.3s;
}

form input[type="text"]:focus{
    border-color:#60a5fa;
    box-shadow:0 0 5px rgba(96,165,250,.4);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:992px){
    .posts{
        grid-template-columns:1fr;
    }

    .layout{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
    }
}

@media (max-width:758px){
    h1{
        font-size:20px;
    }

    .post-card img.thumb{
        height:250px;
    }
}