/* ==================================================
   VARIÁVEIS GLOBAIS
================================================== */
:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #ffcc00;

    --max-width: 1280px;
    --radius: 10px;

    --text: #121212;
    --gray: #666;
    --light: #f4f6f8;
}

/* ==================================================
   RESET
================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, Arial, sans-serif;
    background: #fff;
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==================================================
   CONTAINER GLOBAL
================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================================================
   NAVBAR
================================================== */
.navbar {
    background: var(--primary);
}

.navbar .container {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.navbar nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.navbar nav a {
    color: #fff;
    font-weight: 600;
}

.navbar nav a:hover {
    color: var(--accent);
}

.nav-auth {
    margin-left: 12px;
    font-weight: 700;
}

/* ==================================================
   LAYOUT PRINCIPAL
================================================== */
.container-main {
    max-width: var(--max-width);
    margin: 32px auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: 1fr 320px;
    grid-template-areas: "conteudo sidebar";
    gap: 32px;
}

/* ==================================================
   CONTEÚDO PRINCIPAL
================================================== */
.conteudo {
    grid-area: conteudo;
    width: 100%;
}

/* ==================================================
   SIDEBAR
================================================== */
.sidebar {
    grid-area: sidebar;
    align-self: start;
}

.sidebar .widget {
    background: var(--light);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.sidebar .widget-title {
    font-weight: 700;
    margin-bottom: 12px;
}

/* ==================================================
   HERO (PORTAL)
================================================== */
.hero {
    margin-bottom: 40px;
}

.hero-thumb {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 32px;
    line-height: 1.2;
    margin: 16px 0 10px;
}

.hero p {
    font-size: 18px;
    color: #444;
}

/* ==================================================
   GRID DE DESTAQUES
================================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 40px;
    width: 100%;
}

/* ==================================================
   CARD (GRID)
================================================== */
.card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid #e2e2e2;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.card-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 14px 16px;
}

.card .meta {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 6px;
}

.card h2 {
    font-size: 16px;
    line-height: 1.35;
}
.card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

/* ==================================================
   LISTAGEM FINAL (CORRIGIDA)
================================================== */
.list-item {
    padding-bottom: 20px;
    margin-bottom: 26px;
    border-bottom: 1px solid #e5e5e5;
}

.list-link {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.list-thumb {
    width: 180px;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
}

.list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-content {
    flex: 1;
}

.list-content h2 {
    font-size: 18px;
    margin-bottom: 6px;
}

.list-content p {
    color: #444;
}

.list-link:hover h2 {
    text-decoration: underline;
}

/* ==================================================
   FOOTER
================================================== */
.site-footer {
    background: var(--secondary);
    color: #ddd;
    padding: 28px 0;
    margin-top: 40px;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
}

/* ==================================================
   RESPONSIVO
================================================== */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .container-main {
        grid-template-columns: 1fr;
        grid-template-areas:
            "conteudo"
            "sidebar";
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar {
        margin-top: 40px;
    }
}

@media (max-width: 520px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 26px;
    }

    .list-link {
        flex-direction: column;
    }

    .list-thumb {
        width: 100%;
    }
}
/* ==================================================
   VÍDEOS – HERO
================================================== */
.video-hero iframe {
    width: 100%;
    height: 420px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.video-hero h2 {
    font-size: 26px;
    margin: 10px 0 6px;
    line-height: 1.25;
}

.video-hero p {
    font-size: 17px;
    color: #444;
}

/* ==================================================
   GRID DE VÍDEOS
================================================== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 30px;
}

.video-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: transform .2s ease, box-shadow .2s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.video-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.video-card h3 {
    font-size: 15px;
    padding: 10px 12px 4px;
    line-height: 1.3;
}

.video-card .meta {
    font-size: 13px;
    color: var(--gray);
    padding: 0 12px 12px;
}

/* ==================================================
   RESPONSIVO – VÍDEOS
================================================== */
@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-hero iframe {
        height: 300px;
    }
}

@media (max-width: 520px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .video-hero iframe {
        height: 220px;
    }
}
/* ==================================================
   ADSENSE – SLOT SEGURO
================================================== */
.ad-slot {
    width: 100%;
    min-height: 250px;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    color: #999;
    text-align: center;
}
.article-page {
    width: 100%;
}
.article-body {
    font-size: 18px;
    line-height: 1.75;
}

.article-body p {
    margin-bottom: 18px;
}
