/* ======================================================
   NOTICIAS LATINAS — CATEGORY ARCHIVE
====================================================== */

.nl-category-page {
    width: 100%;
    background: #ffffff;
}

.nl-category-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* ======================================================
   CATEGORY HEADER
====================================================== */

.nl-category-hero {
    padding: 44px 0 34px;
    border-bottom: 1px solid #e6e6e6;
    background: #faf9f7;
}

.nl-category-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #777777;
    font-size: 14px;
    line-height: 1.5;
}

.nl-category-breadcrumb a {
    color: #16823c;
    text-decoration: none;
}

.nl-category-breadcrumb a:hover,
.nl-category-breadcrumb a:focus {
    text-decoration: underline;
}

.nl-category-header {
    max-width: 850px;
}

.nl-category-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #16823c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nl-category-title {
    margin: 0;
    color: #5e3824;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.nl-category-description {
    max-width: 760px;
    margin-top: 18px;
    color: #555555;
    font-size: 17px;
    line-height: 1.7;
}

.nl-category-description p {
    margin: 0;
}

/* ======================================================
   CATEGORY CONTENT
====================================================== */

.nl-category-content {
    padding: 48px 0 64px;
}

.nl-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 28px;
}

/* ======================================================
   CATEGORY CARD
====================================================== */

.nl-category-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.nl-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.nl-category-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eeeeee;
}

.nl-category-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nl-category-card:hover .nl-category-card-image img {
    transform: scale(1.035);
}

.nl-category-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #777777;
    font-size: 34px;
    font-weight: 700;
}

.nl-category-card-content {
    padding: 20px 20px 22px;
}

.nl-category-card-meta {
    margin-bottom: 10px;
    color: #777777;
    font-size: 13px;
    line-height: 1.4;
}

.nl-category-card-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.35;
}

.nl-category-card-title a {
    color: #4d3325;
    text-decoration: none;
}

.nl-category-card-title a:hover,
.nl-category-card-title a:focus {
    color: #16823c;
}

.nl-category-card-excerpt {
    margin-top: 14px;
    color: #555555;
    font-size: 15px;
    line-height: 1.7;
}

.nl-category-card-excerpt p {
    margin: 0;
}

.nl-category-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    color: #16823c;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.nl-category-read-more:hover,
.nl-category-read-more:focus {
    text-decoration: underline;
}

/* ======================================================
   PAGINATION
====================================================== */

.nl-category-pagination {
    margin-top: 52px;
}

.nl-category-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nl-category-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    color: #444444;
    background: #ffffff;
    font-size: 14px;
    text-decoration: none;
}

.nl-category-pagination .page-numbers:hover,
.nl-category-pagination .page-numbers:focus,
.nl-category-pagination .page-numbers.current {
    border-color: #16823c;
    color: #ffffff;
    background: #16823c;
}

/* ======================================================
   EMPTY CATEGORY
====================================================== */

.nl-category-empty {
    max-width: 720px;
    margin: 20px auto;
    padding: 42px 28px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    text-align: center;
    background: #fafafa;
}

.nl-category-empty h2 {
    margin: 0 0 12px;
    color: #4d3325;
    font-size: 28px;
}

.nl-category-empty p {
    margin: 0 0 22px;
    color: #666666;
    font-size: 16px;
    line-height: 1.7;
}

.nl-category-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 6px;
    color: #ffffff;
    background: #16823c;
    text-decoration: none;
}

/* ======================================================
   TABLET
====================================================== */

@media (max-width: 980px) {

    .nl-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 700px) {

    .nl-category-container {
        width: calc(100% - 28px);
    }

    .nl-category-hero {
        padding-top: 30px;
        padding-bottom: 26px;
    }

    .nl-category-title {
        font-size: 36px;
        line-height: 1.12;
    }

    .nl-category-description {
        font-size: 16px;
    }

    .nl-category-content {
        padding-top: 34px;
        padding-bottom: 48px;
    }

    .nl-category-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nl-category-card-title {
        font-size: 21px;
    }

    .nl-category-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        padding: 0 11px;
    }
}