/*
Theme Name: Noticias Latinas Child
Theme URI: https://www.noticias-latinas.com.ar/
Description: Tema hijo editorial para Noticias Latinas.
Author: Noticias Latinas
Template: mharty
Version: 1.3.0
Text Domain: noticias-latinas-child
*/

/* ======================================================
   FOOTER
====================================================== */

.nl-footer {
    background: #211d1a;
    color: #ffffff;
}

.nl-footer .nl-footer-grid {
    display: grid !important;
    grid-template-columns:
        minmax(220px, 1.35fr)
        minmax(150px, 0.9fr)
        minmax(180px, 1.05fr)
        minmax(220px, 1.1fr) !important;
    grid-template-rows: auto !important;
    gap: 42px !important;
    align-items: start;
    padding-top: 48px;
    padding-bottom: 42px;
}

.nl-footer-grid > .nl-footer-brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

.nl-footer-grid > .nl-footer-column:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

.nl-footer-grid > .nl-footer-column:nth-child(3) {
    grid-column: 3 !important;
    grid-row: 1 !important;
}

.nl-footer-grid > .nl-footer-column:nth-child(4) {
    grid-column: 4 !important;
    grid-row: 1 !important;
}

.nl-footer-brand img {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.nl-footer-brand p {
    max-width: 260px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.7;
}

.nl-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.nl-footer-column h2 {
    position: relative;
    margin: 0 0 24px;
    padding-bottom: 12px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.nl-footer-column h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 2px;
    background: #9b6322;
}

.nl-footer-column a {
    display: inline-block;
    margin-bottom: 11px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.nl-footer-column a:hover,
.nl-footer-column a:focus {
    color: #ffffff;
    transform: translateX(3px);
}

.nl-footer-social-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.nl-footer-social-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin: 0 !important;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.nl-footer-social-link:hover,
.nl-footer-social-link:focus {
    transform: translateY(-3px) !important;
    opacity: 0.88;
}

.nl-footer-social-link svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nl-footer-social-facebook {
    background: #1877f2;
}

.nl-footer-social-x,
.nl-footer-social-threads {
    background: #000000;
}

.nl-footer-social-youtube {
    background: #ff0000;
}

.nl-footer-social-instagram {
    background: #e1306c;
}

.nl-footer-social-linkedin {
    background: #0a66c2;
}

.nl-footer-social-whatsapp {
    background: #25d366;
}

.nl-copyright {
    padding: 20px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.86);
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

/* ======================================================
   SINGLE ARTICLE
====================================================== */

.nl-single-page {
    width: 100%;
}

.nl-single-page .nl-article-wrap {
    width: min(1100px, calc(100% - 48px));
    max-width: 1100px;
    margin: 44px auto;
    padding: 0;
}

.nl-single-page .nl-article {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.nl-single-page .nl-article-header,
.nl-single-page .nl-featured-image,
.nl-single-page .nl-article-content,
.nl-single-page .nl-article-actions,
.nl-single-page .nl-post-navigation,
.nl-single-page .nl-related {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.nl-article-header {
    margin-bottom: 30px;
}

.nl-article-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: #777777;
    font-size: 14px;
    font-weight: 500;
}

.nl-article-meta a {
    color: #21aeef;
    text-decoration: none;
}

.nl-article-meta a:hover,
.nl-article-meta a:focus {
    text-decoration: underline;
}

.nl-single-page .nl-title {
    width: 100%;
    max-width: 1000px;
    margin: 0 0 32px;
    padding: 0;
    color: #5e3824;
    font-size: clamp(40px, 3.5vw, 52px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.8px;
    text-align: left;
    text-wrap: balance;
}

.nl-featured-image {
    margin-top: 32px;
    margin-bottom: 34px;
}

.nl-featured-image img {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0;
    border-radius: 7px;
}

.nl-featured-image figcaption {
    margin-top: 10px;
    color: #707070;
    font-size: 13px;
    line-height: 1.55;
}

.nl-article-content {
    padding: 0;
    color: #222222;
    font-size: 20px;
    line-height: 1.9;
}

.nl-article-content p {
    margin: 0 0 28px;
}

.nl-article-content h2,
.nl-article-content h3 {
    margin-top: 42px;
    margin-bottom: 18px;
    line-height: 1.3;
}

.nl-article-content img {
    max-width: 100%;
    height: auto;
}

.nl-article-content blockquote {
    margin: 32px 0;
    padding: 18px 24px;
    border-left: 4px solid #16823c;
    background: #f5f7f5;
    font-style: italic;
}

.nl-article-content ul,
.nl-article-content ol {
    margin-bottom: 28px;
}

/* إخفاء أزرار Print / PDF / Email القديمة التابعة للإضافة */

.nl-article-content .printfriendly,
.nl-article-content #printfriendly,
.nl-article-content .pf-button,
.nl-article-content .pf-button-content,
.nl-article-content .printfriendly-button,
.nl-article-content a[href*="printfriendly"] {
    display: none !important;
}

/* ======================================================
   ARTICLE ACTIONS
====================================================== */

.nl-article-actions {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid #dddddd;
}

.nl-article-actions h2 {
    margin: 0 0 18px;
    color: #333333;
    font-size: 22px;
    line-height: 1.3;
}

.nl-article-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nl-action-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border: 0;
    border-radius: 6px;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.nl-action-button:hover,
.nl-action-button:focus {
    color: #ffffff !important;
    transform: translateY(-2px);
    opacity: 0.9;
}

.nl-action-button svg {
    display: block;
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex: 0 0 18px;
    fill: currentColor;
}

.nl-action-facebook {
    background: #1877f2;
}

.nl-action-x {
    background: #000000;
}

.nl-action-whatsapp {
    background: #25d366;
}

.nl-action-telegram {
    background: #229ed9;
}

.nl-action-linkedin {
    background: #0a66c2;
}

.nl-action-reddit {
    background: #ff4500;
}

.nl-action-email {
    background: #6b7280;
}

.nl-action-copy-link {
    background: #77553d;
}

.nl-action-copy-title {
    background: #594336;
}

.nl-action-print {
    background: #4b5563;
}

.nl-action-pdf {
    background: #9b2c2c;
}

.nl-copy-status {
    display: none;
    width: fit-content;
    margin: 14px 0 0;
    padding: 9px 13px;
    border-radius: 5px;
    background: #eaf7ee;
    color: #176b35;
    font-size: 14px;
    font-weight: 600;
}

.nl-copy-status.is-visible {
    display: block;
}

.nl-pdf-help {
    margin: 14px 0 0;
    color: #666666;
    font-size: 13px;
    line-height: 1.6;
}

/* ======================================================
   POST NAVIGATION
====================================================== */

.nl-post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 52px;
    margin-bottom: 55px;
    padding-top: 24px;
    border-top: 1px solid #e1e1e1;
}

.nl-post-navigation > div {
    width: 50%;
}

.nl-post-navigation span {
    display: block;
    margin-bottom: 7px;
    color: #444444;
    font-size: 13px;
    font-weight: 600;
}

.nl-post-navigation a {
    color: #20aeef;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
}

.nl-post-navigation a:hover,
.nl-post-navigation a:focus {
    text-decoration: underline;
}

.nl-next {
    text-align: right;
}

/* ======================================================
   RELATED ARTICLES
====================================================== */

.nl-related {
    margin-top: 65px;
}

.nl-related-heading h2 {
    margin: 0 0 25px;
    color: #333333;
    font-size: 25px;
    line-height: 1.3;
}

.nl-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.nl-related-card {
    min-width: 0;
}

.nl-related-image {
    display: block;
    overflow: hidden;
    border-radius: 6px;
}

.nl-related-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.nl-related-card:hover img {
    transform: scale(1.03);
}

.nl-related-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 220px;
    background: #eeeeee;
    color: #777777;
    font-size: 30px;
    font-weight: 700;
}

.nl-related-meta {
    margin-top: 9px;
    color: #555555;
    font-size: 12px;
}

.nl-related-card h3 {
    margin: 10px 0 0;
    font-size: 18px;
    line-height: 1.4;
}

.nl-related-card h3 a {
    color: #4d3325;
    text-decoration: none;
}

.nl-related-card h3 a:hover,
.nl-related-card h3 a:focus {
    color: #16823c;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 900px) {

    .nl-single-page .nl-article-wrap {
        width: calc(100% - 36px);
        margin-top: 34px;
    }

    .nl-single-page .nl-title {
        font-size: 40px;
        line-height: 1.12;
    }

    .nl-article-content {
        font-size: 19px;
        line-height: 1.82;
    }

    .nl-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {

    .nl-footer .nl-footer-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 34px !important;
        padding-top: 38px;
        padding-bottom: 34px;
    }

    .nl-footer-grid > .nl-footer-brand,
    .nl-footer-grid > .nl-footer-column:nth-child(2),
    .nl-footer-grid > .nl-footer-column:nth-child(3),
    .nl-footer-grid > .nl-footer-column:nth-child(4) {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .nl-footer-brand,
    .nl-footer-column {
        align-items: center;
        text-align: center;
    }

    .nl-footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .nl-footer-column h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .nl-footer-social-inner {
        justify-content: center;
    }

    .nl-footer-column a:hover,
    .nl-footer-column a:focus {
        transform: none;
    }

    .nl-single-page .nl-article-wrap {
        width: calc(100% - 28px);
        margin-top: 28px;
    }

    .nl-single-page .nl-title {
        font-size: 34px;
        line-height: 1.14;
        letter-spacing: -0.5px;
        text-wrap: wrap;
    }

    .nl-article-content {
        font-size: 18px;
        line-height: 1.78;
    }

    .nl-action-button {
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
    }

    .nl-action-button span {
        display: none;
    }

    .nl-post-navigation {
        flex-direction: column;
        gap: 22px;
    }

    .nl-post-navigation > div {
        width: 100%;
    }

    .nl-next {
        text-align: left;
    }

    .nl-related-grid {
        grid-template-columns: 1fr;
    }

    .nl-related-card img,
    .nl-related-fallback {
        height: 230px;
    }
}

/* ======================================================
   PRINT / PDF
====================================================== */

@media print {

    .nl-header,
    .nl-network,
    .nl-footer,
    .nl-article-actions,
    .nl-post-navigation,
    .nl-related,
    #wpadminbar {
        display: none !important;
    }

    html,
    body {
        background: #ffffff !important;
    }

    .nl-single-page,
    .nl-single-page .nl-article-wrap,
    .nl-single-page .nl-article,
    .nl-single-page .nl-article-header,
    .nl-single-page .nl-featured-image,
    .nl-single-page .nl-article-content {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nl-single-page .nl-title {
        max-width: none !important;
        color: #000000 !important;
        font-size: 30pt !important;
        line-height: 1.15 !important;
    }

    .nl-featured-image img {
        max-width: 100% !important;
    }

    .nl-article-content {
        color: #000000 !important;
        font-size: 12pt !important;
        line-height: 1.6 !important;
    }
}
/* ======================================================
   CATEGORY ARCHIVE
====================================================== */

.nl-category-page {
    width: 100%;
    background: #ffffff;
}

.nl-category-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.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;
}

.nl-category-content {
    padding: 48px 0 64px;
}

.nl-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 28px;
}

.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;
}

.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;
}

.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;
}

@media (max-width: 980px) {

    .nl-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@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;
    }
}