/*
 * Category / Archive CSS
 */

/* 1. Archive Header */
.hnp-archive-header .hnp-section-title {
    font-size: 2rem;
    color: var(--hnp-red);
}

.archive-description {
    border-left: 3px solid #ccc;
    padding-left: 10px;
    margin-top: 10px;
}

/* 2. List Item Layout */
.hnp-cat-thumb {
    width: 240px;
    /* Fixed width for consistency */
    height: 150px;
    overflow: hidden;
}

.hnp-cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hnp-cat-item:hover .hnp-cat-thumb img {
    transform: scale(1.05);
}

.hnp-cat-content h2 {
    font-family: var(--font-primary);
    /* Hindi readable */
    font-weight: 700;
    line-height: 1.3;
}

.hnp-cat-content h2 a:hover {
    color: var(--hnp-red) !important;
}

/* 3. Pagination styling */
.hnp-pagination .nav-links {
    display: flex;
    gap: 10px;
}

.hnp-pagination .page-numbers {
    display: block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    color: var(--hnp-dark-gray);
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
}

.hnp-pagination .page-numbers:hover,
.hnp-pagination .page-numbers.current {
    background-color: var(--hnp-red);
    color: #fff;
    border-color: var(--hnp-red);
    text-decoration: none;
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .hnp-cat-thumb {
        width: 140px;
        height: 100px;
    }

    .hnp-cat-content h2 {
        font-size: 1.1rem;
    }
}