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

body {
    font-family: Arial, sans-serif;
    background: #f5f6fa;
    color: #222;
    line-height: 1.6;
}

/* LINKS */
a {
    text-decoration: none;
    color: #0077ff;
}

a:hover {
    color: #0056b3;
}

/* =========================
   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 */
.main-content {
    flex: 0;
}


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

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

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

/* idan featured image yana ciki */
.featured-post img {
    width: 100%;
    height: 300px;      /* ka iya rage/ƙara */
    object-fit: cover;  /* IMPORTANT: yana hana hucewa */
    border-radius: 10px;
    display: block;
}

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

/* POST CARD */
.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}

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

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

/* EXCERPT */
.post-card p {
    margin: 10px 0;
    font-size: 14px;
    color: #555;
}

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

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

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

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

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

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

.card ul {
    list-style: none;
}

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

/* 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: #0077ff;
    color: #fff;
    border-radius: 5px;
}

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

/* =========================
   SEARCH FORM
========================= */
form input[type="text"] {
    transition: 0.3s;
}

form input[type="text"]:focus {
    border-color: #0077ff;
    box-shadow: 0 0 5px rgba(0,119,255,0.3);
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@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;
    }
}