/* ======================================================
   NOTICIAS LATINAS — SEARCH PAGE
====================================================== */

.nl-search-page {
    width: 100%;
    background: #ffffff;
}

.nl-search-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* ======================================================
   SEARCH HERO
====================================================== */

.nl-search-hero {
    padding: 44px 0 36px;
    border-bottom: 1px solid #e6e6e6;
    background: #faf9f7;
}

.nl-search-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #777777;
    font-size: 14px;
    line-height: 1.5;
}

.nl-search-breadcrumb a {
    color: #16823c;
    text-decoration: none;
}

.nl-search-breadcrumb a:hover,
.nl-search-breadcrumb a:focus {
    text-decoration: underline;
}

.nl-search-header {
    max-width: 900px;
}

.nl-search-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #16823c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nl-search-title {
    margin: 0;
    color: #5e3824;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.8px;
    overflow-wrap: anywhere;
}

.nl-search-count {
    margin: 16px 0 0;
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
}

/* ======================================================
   SEARCH FORM
====================================================== */

.nl-search-form {
    display: flex;
    align-items: stretch;
    max-width: 760px;
    margin-top: 28px;
}

.nl-search-field {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 17px;
    border: 1px solid #d8d8d8;
    border-right: 0;
    border-radius: 7px 0 0 7px;
    background: #ffffff;
    color: #222222;
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.nl-search-field::placeholder {
    color: #929292;
}

.nl-search-field:focus {
    position: relative;
    z-index: 1;
    border-color: #16823c;
    box-shadow: 0 0 0 3px rgba(22, 130, 60, 0.12);
}

.nl-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 126px;
    height: 52px;
    padding: 0 20px;
    border: 1px solid #16823c;
    border-radius: 0 7px 7px 0;
    background: #16823c;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.nl-search-submit:hover,
.nl-search-submit:focus {
    border-color: #106b31;
    background: #106b31;
}

.nl-search-submit:active {
    transform: translateY(1px);
}

.nl-search-submit svg {
    display: block;
    flex: 0 0 20px;
}

/* ======================================================
   SEARCH RESULTS
====================================================== */

.nl-search-content {
    padding: 48px 0 68px;
}

.nl-search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 28px;
}

.nl-search-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-search-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.nl-search-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eeeeee;
}

.nl-search-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nl-search-card:hover .nl-search-card-image img {
    transform: scale(1.035);
}

.nl-search-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #777777;
    font-size: 34px;
    font-weight: 700;
}

.nl-search-card-content {
    padding: 20px 20px 22px;
}

.nl-search-card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: #777777;
    font-size: 13px;
    line-height: 1.4;
}

.nl-search-card-category {
    color: #16823c;
    font-weight: 700;
    text-decoration: none;
}

.nl-search-card-category:hover,
.nl-search-card-category:focus {
    text-decoration: underline;
}

.nl-search-card-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.35;
}

.nl-search-card-title a {
    color: #4d3325;
    text-decoration: none;
}

.nl-search-card-title a:hover,
.nl-search-card-title a:focus {
    color: #16823c;
}

.nl-search-card-excerpt {
    margin-top: 14px;
    color: #555555;
    font-size: 15px;
    line-height: 1.7;
}

.nl-search-card-excerpt p {
    margin: 0;
}

.nl-search-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-search-read-more:hover,
.nl-search-read-more:focus {
    text-decoration: underline;
}

/* ======================================================
   PAGINATION
====================================================== */

.nl-search-pagination {
    margin-top: 52px;
}

.nl-search-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nl-search-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-search-pagination .page-numbers:hover,
.nl-search-pagination .page-numbers:focus,
.nl-search-pagination .page-numbers.current {
    border-color: #16823c;
    color: #ffffff;
    background: #16823c;
}

/* ======================================================
   EMPTY RESULTS
====================================================== */

.nl-search-empty {
    max-width: 760px;
    margin: 10px auto;
    padding: 48px 34px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fafafa;
    text-align: center;
}

.nl-search-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #edf5ef;
    color: #16823c;
}

.nl-search-empty h2 {
    margin: 0 0 14px;
    color: #4d3325;
    font-size: 30px;
    line-height: 1.3;
}

.nl-search-empty p {
    max-width: 620px;
    margin: 0 auto;
    color: #666666;
    font-size: 16px;
    line-height: 1.75;
}

.nl-search-empty-form {
    display: flex;
    align-items: stretch;
    max-width: 590px;
    margin: 28px auto 0;
}

.nl-search-empty-form input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #d8d8d8;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    background: #ffffff;
    color: #222222;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.nl-search-empty-form input:focus {
    border-color: #16823c;
    box-shadow: 0 0 0 3px rgba(22, 130, 60, 0.12);
}

.nl-search-empty-form button {
    min-width: 110px;
    height: 48px;
    padding: 0 18px;
    border: 1px solid #16823c;
    border-radius: 0 6px 6px 0;
    background: #16823c;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.nl-search-empty-form button:hover,
.nl-search-empty-form button:focus {
    border-color: #106b31;
    background: #106b31;
}

.nl-search-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 24px;
    padding: 0 18px;
    border: 1px solid #16823c;
    border-radius: 6px;
    color: #16823c;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.nl-search-home-link:hover,
.nl-search-home-link:focus {
    color: #ffffff;
    background: #16823c;
}

/* ======================================================
   TABLET
====================================================== */

@media (max-width: 980px) {

    .nl-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 700px) {

    .nl-search-container {
        width: calc(100% - 28px);
    }

    .nl-search-hero {
        padding-top: 30px;
        padding-bottom: 28px;
    }

    .nl-search-title {
        font-size: 36px;
        line-height: 1.12;
    }

    .nl-search-form {
        flex-direction: column;
        gap: 10px;
    }

    .nl-search-field {
        height: 48px;
        border-right: 1px solid #d8d8d8;
        border-radius: 6px;
    }

    .nl-search-submit {
        width: 100%;
        min-width: 0;
        height: 48px;
        border-radius: 6px;
    }

    .nl-search-content {
        padding-top: 34px;
        padding-bottom: 50px;
    }

    .nl-search-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nl-search-card-title {
        font-size: 21px;
    }

    .nl-search-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        padding: 0 11px;
    }

    .nl-search-empty {
        padding: 38px 20px;
    }

    .nl-search-empty h2 {
        font-size: 26px;
    }

    .nl-search-empty-form {
        flex-direction: column;
        gap: 10px;
    }

    .nl-search-empty-form input {
        height: 46px;
        border-right: 1px solid #d8d8d8;
        border-radius: 6px;
    }

    .nl-search-empty-form button {
        width: 100%;
        height: 46px;
        border-radius: 6px;
    }
}