/* =====================================================
   Portal de Notícias
   ===================================================== */

/* Header do Portal */
.news-portal-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d5a3d 100%);
    padding: 3rem 0 2.5rem;
    margin-bottom: 0;
}
.news-portal-eyebrow {
    color: rgba(255,255,255,0.65);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
}
.news-portal-title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0 0 0.5rem;
}
.news-portal-subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    margin: 0;
}

/* Portal Body */
.news-portal-body { padding: 2.5rem 0 3rem; }

/* Hero */
.news-portal-hero {
    height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    position: relative;
}
.news-portal-hero-content { padding: 2.5rem; }
.news-portal-eyebrow { margin-bottom: .4rem; }
.news-portal-category-badge {
    display: inline-block;
    background: #fbbd08;
    color: var(--color-primary);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}
.news-portal-hero-meta { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 0.5rem; }
.news-portal-hero-title { font-size: 2rem; font-weight: 900; margin: 0 0 1rem; }
.news-portal-hero-title a { color: #fff; text-decoration: none; }
html.dark-theme .news-portal-hero-title a:hover {
    color: var(--color-secondary);
}

html.dark-theme .news-portal-read-more {
    color: var(--color-primary);
}

html.dark-theme .news-portal-card-title a {
    color: var(--color-text-main);
}
.news-portal-hero-excerpt { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 1.5rem; max-width: 700px; }
.news-portal-hero-btn {
    display: inline-flex;
    align-items: center;
    background: #fbbd08;
    color: var(--color-primary);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.news-portal-hero-btn:hover { background: #fff; transform: translateY(-2px); }

/* Layout principal: grid + sidebar */
.news-portal-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 900px) {
    .news-portal-layout { grid-template-columns: 1fr; }
}

/* Grid de cards */
.news-portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .news-portal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .news-portal-grid { grid-template-columns: 1fr; }
}

/* Card */
.news-portal-card { border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.news-portal-card-thumb {
    display: block;
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none;
}
.news-portal-card-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.news-portal-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; gap: .5rem; }
.news-portal-card-meta { font-size: 0.78rem; color: var(--color-text-muted); }
.news-portal-card-title { font-size: 0.98rem; font-weight: 700; margin: 0; line-height: 1.4; }
.news-portal-card-title a { color: var(--color-text); text-decoration: none; }
.news-portal-card-title a:hover { color: var(--color-primary); }
.news-portal-card-excerpt { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; line-height: 1.5; }
.news-portal-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
}
.news-portal-read-more:hover { gap: 10px; }

/* Paginação */
.news-portal-pagination { margin-top: 2.5rem; }
.news-portal-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.news-portal-pagination .page-numbers li { list-style: none; }
.news-portal-pagination .page-numbers li a,
.news-portal-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}
.news-portal-pagination .page-numbers li a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.news-portal-pagination .page-numbers li span.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Sidebar */
.news-portal-sidebar { position: sticky; top: 100px; }
.news-sidebar-widget {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
html.dark-theme .news-sidebar-widget {
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.1);
}
.news-sidebar-title { font-size: 0.95rem; font-weight: 800; color: var(--color-primary); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.news-sidebar-cats { list-style: none; padding: 0; margin: 0; }
.news-sidebar-cats li { padding: 6px 0; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; }
.news-sidebar-cats li:last-child { border: none; }
.news-sidebar-cats li a { color: var(--color-text); text-decoration: none; font-weight: 500; }
.news-sidebar-cats li a:hover { color: var(--color-primary); }

/* Dark mode overrides */
html.dark-theme .news-portal-hero-btn {
    background: rgba(255,255,255,0.12) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
}
html.dark-theme .news-portal-hero-btn:hover {
    background: rgba(255,255,255,0.2) !important;
    color: #ffffff !important;
}
html.dark-theme .news-portal-category-badge {
    background: rgba(255,255,255,0.15);
    color: #e2e8f0;
}
html.dark-theme .news-portal-hero-title a:hover {
    color: var(--color-secondary);
}
