/* =============================
   GENERAL
============================= */
body {
    font-family: Arial, sans-serif;
    background: #f6f6f6;
    margin: 0;
}

.container {
    width: 90%;
    margin: auto;
}

/* =============================
   LAYOUT
============================= */
.category-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.posts-area {
    flex: 3;
}

.sidebar {
    flex: 1;
}

/* =============================
   POSTS GRID (3 x 10)
============================= */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* =============================
   POST CARD
============================= */
.post-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post-thumb {
    position: relative;
}

.post-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* PRICE TAG */
.price-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #0d6efd;
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
}

/* FEATURED */
.featured-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #0aa2c0;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    transform: rotate(45deg) translate(30px, -10px);
}

/* CONTENT */
.post-content {
    padding: 15px;
}

.post-content h3 {
    font-size: 15px;
    margin: 0 0 10px;
    line-height: 1.4;
}

.post-category {
    font-size: 12px;
    color: #777;
}

/* =============================
   SIDEBAR
============================= */
.sidebar-box {
    background: #fff;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.sidebar-box h4 {
    margin-bottom: 15px;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: #555;
    text-decoration: none;
}

.category-list a:hover {
    color: #0d6efd;
}

/* SEARCH */
.search-box {
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
}

.search-box button {
    background: #000;
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

/* =============================
   PAGINATION
============================= */
.pagination {
    margin: 40px 0;
    display: flex;
    gap: 10px;
}

.pagination a {
    padding: 8px 14px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

.pagination a.active {
    background: #000;
    color: #fff;
}

.pagination a.next {
    font-weight: bold;
}
