/**
 * Nerd Legacy Homepage — Refinamentos da estrutura obrigatória
 * Ordem: 1. Hero (limpo) | 2. Main News Grid (index-3) | 3. Archive Carousel (index-5)
 * Referências: template/pubzi/index-3.html, index-5.html, main.css
 */

/* ==========================================================================
   HOMEPAGE — REDUÇÃO DE ESPAÇAMENTO VERTICAL ENTRE SEÇÕES
   ========================================================================== */
.nl-main-news-grid.section-padding,
.nl-archive-strip-section.section-padding,
.nl-headlines-slider-section.section-padding,
.nl-highlights-section.section-padding,
.nl-categories-section.section-padding,
.nl-mais-lidas-section.section-padding {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
}
.nl-archive-strip-section.section-padding.pb-0 {
    padding-bottom: 24px !important;
}
.nl-archive-strip-section .section-title-area,
.nl-headlines-slider-section .section-title-area,
.nl-highlights-section .section-title-area,
.nl-categories-section .section-title-area,
.nl-mais-lidas-section .section-title-area {
    margin-bottom: 24px !important;
}
.nl-main-news-grid .section-title.style-3 {
    margin-bottom: 28px !important;
}

/* ==========================================================================
   HERO PORTAL — altura moderada (maior que antes), caixa de texto ampla, próxima seção visível
   ========================================================================== */
.nl-hero-portal.hero-5 {
    min-height: 0;
    padding: 100px 0 56px !important;
    max-height: 82vh;
}
.nl-hero-portal .container {
    display: flex;
    align-items: flex-end;
    min-height: 0;
}
.nl-hero-portal .hero-content.nl-hero-content-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2rem 2.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.nl-hero-portal .hero-content span:first-of-type {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.98);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.nl-hero-portal .hero-content h1 {
    margin: 0 0 12px;
    font-size: 1.65rem;
    line-height: 1.28;
    font-weight: 600;
}
.nl-hero-portal .hero-content h1 a {
    color: inherit;
    text-decoration: none;
}
.nl-hero-portal .hero-content p {
    margin: 0 0 14px;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nl-hero-portal .hero-content .social {
    margin: 0;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.nl-hero-portal .hero-content .social li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}
.nl-hero-portal .hero-content .theme-btn {
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
}
@media (min-width: 576px) {
    .nl-hero-portal.hero-5 {
        padding: 120px 0 64px !important;
    }
    .nl-hero-portal .hero-content.nl-hero-content-box {
        padding: 2.25rem 2.5rem;
    }
    .nl-hero-portal .hero-content h1 { font-size: 2rem; }
    .nl-hero-portal .hero-content p { font-size: 1.05rem; }
}
@media (min-width: 768px) {
    .nl-hero-portal.hero-5 {
        padding: 150px 0 72px !important;
    }
    .nl-hero-portal .hero-content.nl-hero-content-box {
        padding: 2.5rem 3rem;
    }
    .nl-hero-portal .hero-content h1 { font-size: 2.4rem; }
    .nl-hero-portal .hero-content p { -webkit-line-clamp: 3; }
}
@media (min-width: 992px) {
    .nl-hero-portal .hero-content.nl-hero-content-box {
        max-width: 900px;
        padding: 2.75rem 3.5rem;
    }
    .nl-hero-portal .hero-content h1 { font-size: 2.75rem; }
    .nl-hero-portal .hero-content p { font-size: 1.1rem; }
}
@media (min-width: 1200px) {
    .nl-hero-portal .hero-content h1 { font-size: 3rem; }
}

/* ==========================================================================
   MAIS LIDAS DA SEMANA — compacto (sidebar style)
   ========================================================================== */
.nl-mais-lidas-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nl-mais-lidas-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nl-mais-lidas-list li:last-child {
    border-bottom: none;
}
.nl-mais-lidas-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease, background 0.2s ease;
}
.nl-mais-lidas-link:hover {
    color: var(--theme);
}
.nl-mais-lidas-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
}
.nl-mais-lidas-link:hover .nl-mais-lidas-num {
    background: var(--theme);
}
.nl-mais-lidas-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}
.nl-mais-lidas-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nl-mais-lidas-title {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nl-mais-lidas-views {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Mais Lidas — variante compacta (sidebar) */
.nl-mais-lidas-section.nl-mais-lidas-compact {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}
.nl-mais-lidas-list-compact {
    display: grid;
    gap: 0;
}
.nl-mais-lidas-list-compact li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nl-mais-lidas-list-compact .nl-mais-lidas-link {
    padding: 0.5rem 0;
    gap: 0.65rem;
}
.nl-mais-lidas-list-compact .nl-mais-lidas-num {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
}
.nl-mais-lidas-list-compact .nl-mais-lidas-thumb {
    width: 56px;
    height: 40px;
    border-radius: 6px;
}
.nl-mais-lidas-list-compact .nl-mais-lidas-title {
    font-size: 0.9rem;
    -webkit-line-clamp: 1;
}
.nl-mais-lidas-list-compact .nl-mais-lidas-views {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}
@media (max-width: 575px) {
    .nl-mais-lidas-list-compact .nl-mais-lidas-thumb {
        width: 48px;
        height: 34px;
    }
}

/* Mais Destaques + Últimas com Sidebar */
.nl-mais-destaques.news-section-3 { padding-top: 40px !important; padding-bottom: 40px !important; }
.nl-mais-destaques .section-title.style-3 { margin-bottom: 28px !important; }
.nl-ultimas-com-sidebar { padding-top: 36px !important; padding-bottom: 36px !important; }
.nl-sidebar-block {
    background: rgba(15, 21, 28, 0.5);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.nl-sidebar-title .sec_title { font-size: 1.2rem; margin-bottom: 0.75rem !important; }
.nl-mais-lidas-sidebar { list-style: none; margin: 0; padding: 0; }
.nl-mais-lidas-sidebar li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.nl-mais-lidas-sidebar li:last-child { border-bottom: none; }
.nl-mais-lidas-sidebar .nl-mais-lidas-link { padding: 0.65rem 0; gap: 0.75rem; align-items: center; }
.nl-mais-lidas-sidebar .nl-mais-lidas-num { width: 28px; height: 28px; font-size: 0.9rem; }
.nl-mais-lidas-sidebar .nl-mais-lidas-thumb {
    width: 72px; height: 50px; border-radius: 8px; flex-shrink: 0; overflow: hidden; background: rgba(0,0,0,0.3);
}
.nl-mais-lidas-sidebar .nl-mais-lidas-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nl-mais-lidas-sidebar .nl-mais-lidas-title { font-size: 0.95rem; line-height: 1.35; -webkit-line-clamp: 2; }
.nl-mais-lidas-sidebar .nl-mais-lidas-views { font-size: 0.8rem; color: rgba(255,255,255,0.5); flex-shrink: 0; }
.nl-reviews-sidebar-thumb {
    width: 70px; height: 50px; border-radius: 8px; overflow: hidden; background: rgba(0,0,0,0.3); display: block;
}
.nl-reviews-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nl-reviews-sidebar-title {
    font-size: 0.9rem; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nl-reviews-sidebar a:hover .nl-reviews-sidebar-title { color: var(--theme); }
.border-secondary { border-color: rgba(255,255,255,0.1) !important; }

@media (max-width: 575px) {
    .nl-mais-lidas-thumb {
        width: 64px;
        height: 45px;
    }
    .nl-mais-lidas-link {
        gap: 0.75rem;
    }
}

/* ==========================================================================
   PHASE 1 — HERO LIMPO (bloco de texto centralizado e dominante)
   ========================================================================== */

/* Remover qualquer preview/miniaturas do hero */
.nl-hero-5.nl-hero-clean .nl-hero-right-preview,
.nl-hero-clean .nl-hero-right-preview {
    display: none !important;
}

/* Centralizar o conteúdo do hero horizontal e verticalmente */
.nl-hero-5.nl-hero-clean .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}
.nl-hero-5.nl-hero-clean .nl-hero-inner {
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: 0;
}
.nl-hero-5.nl-hero-clean .nl-hero-left-content {
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Bloco de texto: mais largo e alto, vidro leve (imagem mais visível) */
.nl-hero-5.nl-hero-clean .hero-content {
    max-width: min(920px, 100%);
    width: 100%;
    padding: 1.25rem 1.5rem;
    margin: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.18);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Category badge: acima do título, mais espaço abaixo */
.nl-hero-5.nl-hero-clean .hero-content span:first-of-type {
    display: inline-block;
    margin-bottom: 22px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: none;
}
/* Autor e data: neutros, sem badge vermelho */
.nl-hero-5.nl-hero-clean .hero-content .social li {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 400;
}
.nl-hero-5.nl-hero-clean .hero-content .social .nl-hero-author {
    background: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
}
.nl-hero-5.nl-hero-clean .hero-content .social .nl-hero-author i {
    opacity: 0.8;
}

/* Título: peso 600, mais espaço acima/abaixo */
.nl-hero-5.nl-hero-clean .hero-content h1 {
    margin-bottom: 0;
    margin-top: 4px;
    line-height: 1.25;
    font-size: 2.25rem;
    font-weight: 600;
}
.nl-hero-5.nl-hero-clean .hero-content h1 a {
    text-decoration: none;
    color: inherit;
}

/* Excerpt: mais espaço acima (entre título e excerpt) */
.nl-hero-5.nl-hero-clean .hero-content p {
    margin-top: 28px;
    margin-bottom: 0;
    line-height: 1.55;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.92);
}

/* Meta (data + autor): mais espaço acima */
.nl-hero-5.nl-hero-clean .hero-content .social {
    margin-top: 32px;
    gap: 24px;
}

@media (min-width: 768px) {
    .nl-hero-5.nl-hero-clean .hero-content {
        padding: 56px 64px;
    }
    .nl-hero-5.nl-hero-clean .hero-content h1 {
        font-size: 3rem;
    }
    .nl-hero-5.nl-hero-clean .hero-content p {
        font-size: 1.15rem;
    }
}

@media (min-width: 992px) {
    .nl-hero-5.nl-hero-clean .hero-content {
        max-width: 820px;
        padding: 56px 64px;
    }
    .nl-hero-5.nl-hero-clean .hero-content h1 {
        font-size: 3.25rem;
        line-height: 1.22;
    }
    .nl-hero-5.nl-hero-clean .hero-content p {
        font-size: 1.2rem;
    }
}

@media (min-width: 1200px) {
    .nl-hero-5.nl-hero-clean .hero-content {
        max-width: 880px;
        padding: 60px 72px;
    }
    .nl-hero-5.nl-hero-clean .hero-content h1 {
        font-size: 3.5rem;
    }
    .nl-hero-5.nl-hero-clean .hero-content p {
        font-size: 1.25rem;
    }
}

/* Overlay no slide: mais suave para o painel leve e imagem respirar */
.nl-hero-5.nl-hero-clean .hero-bg-slide::before {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.32) 0%,
        rgba(0, 0, 0, 0.14) 45%,
        rgba(0, 0, 0, 0) 78%
    );
}

/* ==========================================================================
   PHASE 2 — MAIN NEWS GRID (index-3 "Club Latest News")
   ========================================================================== */

.nl-main-news-grid.news-section-3 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.nl-main-news-grid .section-title.style-3 {
    margin-bottom: 2.5rem;
}

.nl-main-news-grid .section-title .subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--theme);
}

.nl-main-news-grid .section-title .sec_title {
    font-size: 1.75rem;
    color: var(--white);
}
@media (min-width: 768px) {
    .nl-main-news-grid .section-title .sec_title {
        font-size: 2rem;
    }
}

/* Card pequeno (lateral): overlay sobre imagem */
.nl-main-news-grid .news-card-items-3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.nl-main-news-grid .news-card-items-3:last-child {
    margin-bottom: 0;
}

.nl-main-news-grid .news-card-items-3 .news-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.nl-main-news-grid .news-card-items-3 .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/10;
    transition: transform 0.4s ease;
}
.nl-main-news-grid .news-card-items-3 a:hover .news-image img {
    transform: scale(1.06);
}

.nl-main-news-grid .news-card-items-3 .news-image .content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1rem;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    color: var(--white);
}

.nl-main-news-grid .news-card-items-3 .news-image .content .gt-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}
.nl-main-news-grid .news-card-items-3 .news-image .content h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
}
.nl-main-news-grid .news-card-items-3 .news-image .content h6 a {
    color: var(--white);
    text-decoration: none;
}
.nl-main-news-grid .news-card-items-3 a:hover .content h6 a {
    color: var(--theme);
}

/* Card central (destaque): conteúdo maior */
.nl-main-news-grid .col-xl-6 .news-card-items-3 .news-image {
    border-radius: 12px;
}
.nl-main-news-grid .col-xl-6 .news-card-items-3 .news-image img {
    aspect-ratio: 16/10;
    min-height: 280px;
}
.nl-main-news-grid .news-card-items-3 .content.style-2 {
    padding: 1.75rem 1.5rem;
}
.nl-main-news-grid .news-card-items-3 .content.style-2 h4 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}
.nl-main-news-grid .news-card-items-3 .content.style-2 h4 a {
    color: var(--white);
    text-decoration: none;
}
.nl-main-news-grid .news-card-items-3 a:hover .content.style-2 h4 a {
    color: var(--theme);
}
.nl-main-news-grid .news-card-items-3 .content.style-2 p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    text-transform: none;
}
.nl-main-news-grid .news-card-items-3 .content.style-2 .client-item {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Tablet: manter hierarquia */
@media (max-width: 1199px) {
    .nl-main-news-grid .col-xl-3:first-child {
        order: 1;
    }
    .nl-main-news-grid .col-xl-6 {
        order: 0;
        margin-bottom: 1.5rem;
    }
    .nl-main-news-grid .col-xl-3:last-child {
        order: 2;
    }
}

@media (max-width: 767px) {
    .nl-main-news-grid .row {
        flex-direction: column;
    }
    .nl-main-news-grid .col-xl-6 .news-card-items-3 .news-image img {
        min-height: 200px;
    }
}

/* ==========================================================================
   PHASE 3 — ARCHIVE CAROUSEL (index-5 "Our Latest News & Blog Archive")
   ========================================================================== */

.nl-archive-strip-section .section-title .subtitle,
.nl-archive-carousel-section .section-title .subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--theme);
}
.nl-archive-strip-section .section-title .sec_title,
.nl-archive-carousel-section .section-title .sec_title {
    font-size: 1.5rem;
    color: var(--white);
}
@media (min-width: 768px) {
    .nl-archive-strip-section .section-title .sec_title,
    .nl-archive-carousel-section .section-title .sec_title {
        font-size: 1.75rem;
    }
}

/* Strip index-5: cards A/C = img top, B/D = title top (ordem no HTML) */
.nl-strip-index5 .nl-news-strip-card {
    display: flex;
    flex-direction: column;
}
.nl-strip-index5 .nl-news-strip-card .nl-news-strip-img {
    order: 0;
    flex-shrink: 0;
}
.nl-strip-index5 .nl-news-strip-card .nl-news-strip-title {
    order: 1;
}
.nl-strip-index5 .nl-news-strip-card .nl-news-strip-meta {
    order: 2;
}
.nl-strip-index5 .nl-strip-layout-b .nl-news-strip-img,
.nl-strip-index5 .nl-strip-layout-d .nl-news-strip-img {
    order: 2;
}
.nl-strip-index5 .nl-strip-layout-b .nl-news-strip-title,
.nl-strip-index5 .nl-strip-layout-d .nl-news-strip-title {
    order: 0;
}
.nl-strip-index5 .nl-strip-layout-b .nl-news-strip-meta,
.nl-strip-index5 .nl-strip-layout-d .nl-news-strip-meta {
    order: 1;
}

/* ==========================================================================
   PHASE 5 — HOVER E TRANSIÇÕES
   ========================================================================== */

.nl-news-strip-card .nl-news-strip-img img {
    transition: transform 0.4s ease;
}
.nl-news-strip-card:hover .nl-news-strip-img img {
    transform: scale(1.05);
}
.nl-news-strip-card:hover .nl-news-strip-title {
    color: var(--theme);
}

/* ==========================================================================
   PHASE 6 — RESPONSIVO
   ========================================================================== */

@media (max-width: 575px) {
    .nl-hero-5.nl-hero-clean .hero-content {
        padding: 28px 24px;
    }
    .nl-hero-5.nl-hero-clean .hero-content h1 {
        font-size: 1.75rem;
    }
    .nl-hero-5.nl-hero-clean .hero-content p {
        font-size: 1rem;
    }
    .nl-hero-5.nl-hero-clean .hero-content .social {
        margin-top: 20px;
    }
    .nl-archive-carousel-section .section-title-area {
        flex-direction: column;
        align-items: flex-start !important;
    }
}

/* ==========================================================================
   HEADLINES SLIDER (index-3: imagem estática + texto rotativo)
   ========================================================================== */

.nl-headlines-slider-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.nl-headlines-image-wrap {
    min-height: 320px;
}
.nl-headlines-image {
    width: 100%;
    height: 100%;
    min-height: 320px;
    background-size: cover;
    background-position: center;
}
.nl-headlines-text-wrap {
    background: rgba(15, 21, 28, 0.95);
    display: flex;
    align-items: center;
    padding: 2rem;
}
.nl-headlines-slider {
    position: relative;
    width: 100%;
    min-height: 200px;
}
.nl-headline-slide {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.nl-headline-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}
.nl-headline-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.nl-headline-cat {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--theme);
    margin-bottom: 0.5rem;
    text-transform: none;
}
.nl-headline-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.35;
    color: var(--white);
}
.nl-headline-link:hover .nl-headline-title {
    color: var(--theme);
}
.nl-headline-excerpt {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}
.nl-headline-meta {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}
@media (max-width: 991px) {
    .nl-headlines-image-wrap {
        min-height: 240px;
    }
    .nl-headlines-image {
        min-height: 240px;
    }
}

/* ==========================================================================
   HOME EDITORIAL — Nova estrutura (hero, destaque, canal, últimas, reviews, etc.)
   ========================================================================== */

.nl-section.section-padding {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
}
.nl-section .section-title-area {
    margin-bottom: 24px !important;
}
.nl-section .tx-title.sec_title {
    font-size: 1.5rem;
    color: var(--white);
    margin: 0;
}
@media (min-width: 768px) {
    .nl-section .tx-title.sec_title {
        font-size: 1.75rem;
    }
}

/* Em Destaque — cards */
.nl-card-destaque {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(15, 21, 28, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nl-card-destaque:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.nl-card-destaque-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}
.nl-card-destaque-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.nl-card-destaque:hover .nl-card-destaque-img img {
    transform: scale(1.05);
}
.nl-card-destaque-body {
    padding: 1rem 1rem 1.25rem;
    flex: 1;
}
.nl-card-cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--theme);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.nl-card-destaque .nl-card-title,
.nl-card-news .nl-card-title,
.nl-card-cat-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.35rem;
}
.nl-card-destaque .nl-card-title a,
.nl-card-news .nl-card-title a,
.nl-card-cat-title a {
    color: var(--white);
    text-decoration: none;
}
.nl-card-destaque .nl-card-title a:hover,
.nl-card-news .nl-card-title a:hover,
.nl-card-cat-title a:hover {
    color: var(--theme);
}
.nl-card-excerpt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nl-card-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}
.nl-card-date i {
    margin-right: 0.25rem;
    opacity: 0.8;
}

/* Últimas Notícias / News cards */
.nl-card-news {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(15, 21, 28, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nl-card-news:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.nl-card-news-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}
.nl-card-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.nl-card-news:hover .nl-card-news-img img {
    transform: scale(1.05);
}
.nl-card-news-body {
    padding: 0.9rem 1rem 1rem;
}
.nl-card-news .nl-card-cat {
    margin-bottom: 0.25rem;
}

/* Blocos por categoria (Reviews, Games, etc.) — article card */
.nl-section .nl-card-category {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(15, 21, 28, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nl-section .nl-card-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.nl-card-cat-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}
.nl-card-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.nl-section .nl-card-category:hover .nl-card-cat-img img {
    transform: scale(1.05);
}
.nl-card-category .nl-card-cat-title {
    padding: 0.75rem 1rem 0.5rem;
    flex: 1;
}
.nl-card-category .nl-card-date {
    padding: 0 1rem 1rem;
}

/* Assista no Canal — ícone maior, CTA forte, gradiente de fundo */
.nl-assista-canal {
    background: linear-gradient(135deg, rgba(20, 24, 32, 0.98) 0%, rgba(11, 15, 25, 0.98) 50%, rgba(18, 22, 35, 0.97) 100%);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.nl-assista-canal .section-title-area {
    margin-bottom: 1.5rem !important;
}
.nl-cta-youtube {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}
.nl-cta-youtube .fa-youtube {
    font-size: 1.35rem;
}
.nl-icon-youtube {
    font-size: 4rem !important;
    color: #ff0000;
    opacity: 0.9;
}
.nl-video-placeholder {
    padding: 3rem 2rem !important;
}
.nl-video-placeholder .nl-cta-youtube {
    margin-top: 0.5rem;
}

/* Grid multi-vídeo Assista no Canal (3–4 cards) */
.nl-youtube-grid { display: grid; }
.nl-youtube-card {
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 21, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nl-youtube-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.nl-youtube-card-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}
.nl-youtube-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nl-youtube-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 2rem;
    transition: background 0.2s ease;
}
.nl-youtube-card:hover .nl-youtube-card-play { background: rgba(255, 0, 0, 0.6); }
.nl-youtube-card-play i { margin-left: 4px; }
.nl-youtube-card-title {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--white);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
}
.nl-youtube-card:hover .nl-youtube-card-title { color: var(--theme); }

/* Blocos por categoria (1 destaque + 3 menores) — estilo index-3 */
.nl-category-block .news-card-items-3 { margin-bottom: 0; }
.nl-category-block .news-card-items-3 .news-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16/10;
}
.nl-category-block .news-card-items-3 .news-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.35s ease;
}
.nl-category-block .news-card-items-3:hover .news-image img { transform: scale(1.05); }
.nl-category-block .news-card-items-3 .news-image .content {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1rem; background: linear-gradient(transparent 0%, rgba(0,0,0,0.9) 100%);
    color: var(--white);
}
.nl-category-block .news-card-items-3 .news-image .content.style-2 { padding: 1.5rem 1.25rem; }
.nl-category-block .news-card-items-3 .content h6 a,
.nl-category-block .news-card-items-3 .content.style-2 h4 a {
    color: var(--white); text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nl-category-block .news-card-items-3 a:hover .content h6 a,
.nl-category-block .news-card-items-3 a:hover .content.style-2 h4 a { color: var(--theme); }
.nl-category-block .col-lg-6 .row .news-card-items-3 .news-image { aspect-ratio: 16/9; }

.nl-video-main {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.nl-video-main iframe {
    display: block;
}
.nl-video-main-thumb {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}
.nl-video-main-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nl-video-main-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--white);
}
.nl-video-main-title a {
    color: inherit;
    text-decoration: none;
}
.nl-video-main-title a:hover {
    color: var(--theme);
}
.nl-video-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.nl-video-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}
.nl-video-list-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--theme);
}
.nl-video-list-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
}
.nl-video-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nl-video-list-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff0000;
    font-size: 1.5rem;
}
.nl-video-list-title {
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nl-video-list-date {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 991px) {
    .nl-video-list-thumb {
        width: 100px;
        height: 56px;
    }
}

/* Mais Lidas — compacto */
.nl-mais-lidas-compact .nl-mais-lidas-link {
    padding: 0.6rem 0;
}
.nl-mais-lidas-compact .nl-mais-lidas-title {
    -webkit-line-clamp: 1;
    font-size: 0.95rem;
}
.nl-mais-lidas-section.nl-section .tx-title.sec_title {
    margin-bottom: 0;
}

/* ==========================================================================
   HERO-5 (Pubzi index-5) — ajustes para slider dinâmico e overlay
   ========================================================================== */

#nl-hero-5 .array-buttons {
  position: relative;
  z-index: 3;
}
#nl-hero-5 .nl-hero-slide {
  border: none;
}
/* Imagem do card principal do hero-5 não usada; nosso conteúdo vem do JS */

/* ==========================================================================
   NEWS-SECTION-3 (Pubzi index-3) — altura uniforme das imagens
   ========================================================================== */

.news-section-3 .news-card-items-3 .news-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.news-section-3 .news-card-items-3 .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Lado: 2 cards empilhados com mesma proporção */
.news-section-3 .col-xl-3 .news-card-items-3 .news-image {
  aspect-ratio: 16/10;
}
.news-section-3 .col-xl-3 .news-card-items-3 .news-image img {
  min-height: 100%;
}
/* Centro: card principal com altura mínima */
.news-section-3 .col-xl-6 .news-card-items-3 .news-image {
  aspect-ratio: 16/10;
  min-height: 280px;
}
.news-section-3 .news-card-items-3 .content h6 a,
.news-section-3 .news-card-items-3 .content.style-2 h4 a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1199px) {
  .news-section-3 .row .col-xl-3:first-child { order: 1; }
  .news-section-3 .row .col-xl-6 { order: 0; margin-bottom: 1.5rem; }
  .news-section-3 .row .col-xl-3:last-child { order: 2; }
}

/* ==========================================================================
   ÚLTIMAS NOTÍCIAS (gt-news-section Pubzi news-grid) — título sem corte
   ========================================================================== */

/* ==========================================================================
   ÚLTIMAS NOTÍCIAS (gt-news-section) — altura uniforme, hover, hierarquia
   ========================================================================== */

.nl-ultimas-noticias-grid.gt-news-section .row {
    align-items: stretch;
}
.nl-ultimas-noticias-grid .gt-news-card-item,
.gt-news-section .gt-news-card-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(15, 21, 28, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nl-ultimas-noticias-grid .gt-news-card-item:hover,
.gt-news-section .gt-news-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}
.gt-news-section .gt-news-card-item .gt-news-image {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 0;
  flex-shrink: 0;
}
.gt-news-section .gt-news-card-item .gt-news-content {
  flex: 1;
  padding: 1rem 1.25rem 1.25rem;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.gt-news-section .gt-news-card-item .gt-news-content h4 {
  flex: 1;
  min-height: 0;
}
.gt-news-section .gt-news-card-item .gt-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gt-news-section .gt-news-card-item a:hover .gt-news-image img {
  transform: scale(1.05);
}
/* Título: 3 linhas com ellipsis */
.gt-news-section .gt-news-card-item .gt-news-content h4 {
  margin-bottom: 20px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gt-news-section .gt-news-card-item .gt-news-content h4 a {
  display: block;
  color: var(--white);
  text-decoration: none;
  background-image: none;
}
.gt-news-section .gt-news-card-item .gt-news-content h4 a:hover {
  color: var(--theme);
}
.gt-news-section .gt-news-card-item.mt-0 {
  margin-top: 0;
}
@media (max-width: 575px) {
  .gt-news-section .gt-news-card-item .gt-news-content h4 {
    min-height: 3.6em;
    -webkit-line-clamp: 3;
  }
}

/* Responsivo: hero e vídeos em mobile */
@media (max-width: 767px) {
  .nl-hero-portal.hero-5 {
    padding: 60px 0 40px !important;
  }
  .nl-hero-portal .hero-content.nl-hero-content-box {
    padding: 1.25rem 1.5rem;
  }
  .nl-youtube-grid .col-md-6 {
    margin-bottom: 1rem;
  }
}
.nl-thematic-section { position: relative; overflow: hidden; background: #0d1117; }
.nl-thematic-section .nl-thematic-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0.35; z-index: 0;
}
.nl-thematic-section .container { z-index: 1; }
.nl-thematic-foreground img { max-width: 100%; height: auto; display: block; object-fit: contain; }
.nl-thematic-title { font-size: 1.75rem; font-weight: 700; color: var(--white); margin: 0 0 1rem; line-height: 1.25; }
.nl-thematic-title span { color: var(--theme); }
.nl-thematic-desc, .nl-thematic-phrase { font-size: 1.05rem; line-height: 1.6; color: rgba(255,255,255,0.9); margin: 0 0 1rem; transition: opacity 0.4s ease; }
.nl-thematic-phrase { min-height: 3em; }
@media (min-width: 768px) { .nl-thematic-title { font-size: 2.25rem; } .nl-thematic-foreground img { max-height: 520px; } }
@media (max-width: 991px) {
    .nl-thematic-section .row { flex-direction: column; }
    .nl-thematic-foreground { text-align: center; }
    .nl-thematic-foreground img { margin: 0 auto; }
}

.nl-video-placeholder {
    background: linear-gradient(135deg, rgba(28,29,32,0.98) 0%, rgba(15,18,24,0.98) 100%) !important;
    border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
}
