/* ==============================
   CATEGORY PAGE STYLES
   Scoped to .category-page
   ============================== */

.category-page {
    padding-top: 1rem;
}

/* Category Title */
.category-page h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0d6efd;
    padding-left: 12px;
}

/* Card Layout */
.category-page .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-page .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Post Image */
.category-page .card img.img-fluid {
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Card Body */
.category-page .card-body {
    padding: 1rem 1.25rem;
}

/* Post Title */
.category-page .card-title a {
    color: #222;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.category-page .card-title a:hover {
    color: #0d6efd;
}

/* Meta Information */
.category-page .small.text-muted {
    font-size: 0.85rem;
    color: #6c757d !important;
}

/* Snippet Text */
.category-page .card-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

/* Read More Button */
.category-page .btn-outline-primary {
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.category-page .btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #fff;
}

/* Sidebar */
.category-page aside {
    position: sticky;
    top: 80px;
}

.category-page aside .ad-container {
    margin-bottom: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .category-page .card img.img-fluid {
        height: 160px;
    }
    .category-page h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .category-page .card img.img-fluid {
        height: 140px;
    }
    .category-page .card-body {
        padding: 0.9rem;
    }
}