/* =========================================================
   CONFIGURAÇÕES GERAIS
========================================================= */

* {
    box-sizing: border-box;
}

:root {
    --primary: #c8102e;
    --primary-dark: #990d24;
    --secondary: #13233f;
    --secondary-light: #1d3557;
    --text: #172033;
    --text-light: #667085;
    --border: #e4e7ec;
    --background: #ffffff;
    --background-light: #f5f7fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--background);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.site-container {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}


/* =========================================================
   CABEÇALHO
========================================================= */

.site-header {
    position: relative;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.top-bar {
    background: var(--secondary);
    color: var(--white);
    font-size: 13px;
}

.top-bar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-bar a {
    font-weight: bold;
}

.top-bar a:hover {
    text-decoration: underline;
}

.header-main {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    color: var(--secondary);
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -2px;
}

.site-logo span,
.footer-logo span {
    margin-left: 6px;
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-form {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
}

.search-form input {
    width: 260px;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.search-form input::placeholder {
    color: #98a2b3;
}

.search-form button {
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    cursor: pointer;
    color: var(--white);
    background: var(--primary);
    font-weight: bold;
}

.search-form button:hover {
    background: var(--primary-dark);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    background: var(--secondary);
    color: var(--white);
    font-size: 24px;
}

.main-navigation {
    background: var(--primary);
    color: var(--white);
}

.navigation-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
}

.navigation-inner a {
    flex: 0 0 auto;
    padding: 17px 15px;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s ease;
}

.navigation-inner a:hover {
    background: rgba(0, 0, 0, 0.16);
}


/* =========================================================
   ÁREA PRINCIPAL
========================================================= */

.site-main {
    padding-top: 34px;
    padding-bottom: 70px;
}


/* =========================================================
   DESTAQUE PRINCIPAL
========================================================= */

.featured-section {
    margin-bottom: 48px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    min-height: 500px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--secondary);
    box-shadow: var(--shadow);
}

.hero-image {
    min-height: 500px;
    background: #d0d5dd;
}

.hero-image img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.hero-content {
    padding: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.hero-labels {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.hero .category {
    color: #ffb3bf;
}

.hero h1 {
    margin: 10px 0 18px;
    font-size: clamp(34px, 4.6vw, 60px);
    line-height: 1.02;
    letter-spacing: -1.8px;
}

.hero h1 a:hover {
    color: #ffe1e6;
}

.hero p {
    margin: 0;
    color: #e4e7ec;
    font-size: 19px;
    line-height: 1.55;
}

.category {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.urgent-label {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}


/* =========================================================
   DESTAQUES SECUNDÁRIOS
========================================================= */

.secondary-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.secondary-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secondary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.secondary-image {
    display: block;
    height: 170px;
    overflow: hidden;
    background: var(--background-light);
}

.secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.secondary-card:hover .secondary-image img {
    transform: scale(1.04);
}

.secondary-card-body {
    padding: 16px;
}

.secondary-card h2 {
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 1.25;
}

.secondary-card h2 a:hover {
    color: var(--primary);
}


/* =========================================================
   PLACEHOLDER DE IMAGEM
========================================================= */

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            var(--secondary),
            var(--secondary-light)
        );
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.image-placeholder.small {
    min-height: 100%;
    font-size: 18px;
}


/* =========================================================
   COLUNAS DE CONTEÚDO
========================================================= */

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

.main-column {
    min-width: 0;
}

.sidebar {
    min-width: 0;
}


/* =========================================================
   CABEÇALHOS DAS SEÇÕES
========================================================= */

.section-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 3px solid var(--primary);
}

.section-header h2 {
    margin: 0;
    padding: 0 0 12px;
    color: var(--secondary);
    font-size: 28px;
    letter-spacing: -0.8px;
}

.section-header > a {
    color: var(--primary);
    font-size: 14px;
    font-weight: bold;
}

.section-header > a:hover {
    text-decoration: underline;
}


/* =========================================================
   ÚLTIMAS NOTÍCIAS
========================================================= */

.news-section {
    padding: 0 0 50px;
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    padding: 0 0 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--border);
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-item-image {
    display: block;
    height: 170px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--background-light);
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-item-image img {
    transform: scale(1.04);
}

.news-item-content {
    min-width: 0;
}

.news-item h3 {
    margin: 8px 0 10px;
    font-size: 25px;
    line-height: 1.16;
    letter-spacing: -0.5px;
}

.news-item h3 a:hover {
    color: var(--primary);
}

.news-item p {
    margin: 0 0 12px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.55;
}

.news-item time {
    color: #98a2b3;
    font-size: 13px;
}


/* =========================================================
   NOTÍCIAS POR CATEGORIA
========================================================= */

.category-section {
    padding: 6px 0 52px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.category-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.category-card-image {
    display: block;
    height: 210px;
    overflow: hidden;
    background: var(--background-light);
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.04);
}

.category-card-body {
    padding: 19px;
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.22;
}

.category-card h3 a:hover {
    color: var(--primary);
}

.category-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.5;
}


/* =========================================================
   BARRA LATERAL
========================================================= */

.sidebar-box,
.advertising-box {
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
}

.sidebar-box {
    box-shadow: 0 5px 18px rgba(16, 24, 40, 0.04);
}

.sidebar-box .section-header {
    margin-bottom: 16px;
}

.sidebar-box .section-header h2 {
    font-size: 23px;
}

.most-read-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: mais-lidas;
}

.most-read-list li {
    position: relative;
    padding: 16px 0 16px 48px;
    border-bottom: 1px solid var(--border);
    counter-increment: mais-lidas;
}

.most-read-list li:last-child {
    border-bottom: 0;
}

.most-read-list li::before {
    content: counter(mais-lidas);
    position: absolute;
    top: 13px;
    left: 0;
    color: var(--primary);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.most-read-list a {
    display: block;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.35;
}

.most-read-list a:hover {
    color: var(--primary);
}

.most-read-list span {
    display: block;
    margin-top: 7px;
    color: #98a2b3;
    font-size: 12px;
}

.advertising-box {
    text-align: center;
    background: var(--background-light);
}

.advertising-box > span {
    display: block;
    margin-bottom: 10px;
    color: #98a2b3;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.advertising-placeholder {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    color: #98a2b3;
    background: var(--white);
    font-weight: bold;
    line-height: 1.5;
}

.region-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.region-links a {
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--background-light);
    color: var(--secondary);
    font-size: 13px;
    font-weight: bold;
}

.region-links a:hover {
    background: var(--primary);
    color: var(--white);
}


/* =========================================================
   ESTADOS SEM CONTEÚDO
========================================================= */

.empty-state {
    margin-bottom: 40px;
    padding: 90px 24px;
    border-radius: 18px;
    background: var(--background-light);
    text-align: center;
}

.empty-state h1 {
    margin: 0 0 12px;
    color: var(--secondary);
    font-size: 42px;
}

.empty-state p,
.no-content {
    color: var(--text-light);
    line-height: 1.5;
}


/* =========================================================
   RODAPÉ
========================================================= */

.site-footer {
    background: var(--secondary);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 60px;
    padding-top: 55px;
    padding-bottom: 55px;
}

.footer-logo {
    color: var(--white);
}

.footer-grid p {
    max-width: 450px;
    color: #cbd5e1;
    line-height: 1.7;
}

.footer-grid h3 {
    margin: 5px 0 18px;
    font-size: 18px;
}

.footer-grid > div > a:not(.footer-logo) {
    display: block;
    width: fit-content;
    margin: 0 0 12px;
    color: #cbd5e1;
}

.footer-grid > div > a:not(.footer-logo):hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #98a2b3;
    font-size: 13px;
}


/* =========================================================
   PÁGINA INTERNA DA NOTÍCIA
   Mantém compatibilidade com noticia.php
========================================================= */

.article-page {
    width: min(860px, calc(100% - 36px));
    margin: 50px auto 90px;
}

.article-page h1 {
    margin: 16px 0;
    color: var(--secondary);
    font-size: clamp(38px, 7vw, 70px);
    line-height: 1.04;
    letter-spacing: -2px;
}

.article-subtitle {
    color: var(--text-light);
    font-size: 22px;
    line-height: 1.5;
}

.article-meta {
    margin: 24px 0;
    color: var(--text-light);
}

.article-image {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 14px;
}

.article-content {
    margin-top: 32px;
    font-size: 20px;
    line-height: 1.8;
}

.article-content p {
    margin: 0 0 24px;
}

.article-content img {
    height: auto;
    margin: 28px auto;
    border-radius: 10px;
}


/* =========================================================
   RESPONSIVIDADE
========================================================= */

@media (max-width: 1050px) {

    .hero {
        grid-template-columns: 1fr 380px;
    }

    .hero-content {
        padding: 34px;
    }

    .secondary-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 28px;
    }

    .news-item {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}


@media (max-width: 850px) {

    .header-main {
        min-height: 76px;
    }

    .site-logo {
        font-size: 32px;
    }

    .search-form {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-navigation {
        display: none;
    }

    .main-navigation.is-open {
        display: block;
    }

    .navigation-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .navigation-inner a {
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-image,
    .hero-image img {
        min-height: 360px;
        height: 360px;
    }

    .hero-content {
        padding: 32px;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .sidebar-box,
    .advertising-box {
        margin-bottom: 0;
    }

    .advertising-box {
        grid-row: span 2;
    }
}


@media (max-width: 650px) {

    .site-container {
        width: min(100% - 24px, 1180px);
    }

    .top-bar-inner {
        min-height: 34px;
        justify-content: center;
        text-align: center;
    }

    .top-bar-inner span {
        display: none;
    }

    .header-main {
        gap: 12px;
    }

    .site-main {
        padding-top: 20px;
    }

    .hero {
        border-radius: 14px;
    }

    .hero-image,
    .hero-image img {
        min-height: 250px;
        height: 250px;
    }

    .hero-content {
        padding: 24px;
    }

    .hero h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 17px;
    }

    .secondary-highlights {
        grid-template-columns: 1fr;
    }

    .secondary-image {
        height: 220px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .news-item-image {
        height: 220px;
    }

    .news-item h3 {
        font-size: 23px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .advertising-box {
        grid-row: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .empty-state {
        padding: 65px 20px;
    }

    .empty-state h1 {
        font-size: 32px;
    }

    .article-page {
        margin-top: 34px;
    }

    .article-page h1 {
        font-size: 39px;
        letter-spacing: -1px;
    }

    .article-subtitle {
        font-size: 19px;
    }

    .article-content {
        font-size: 18px;
    }
}


@media (max-width: 420px) {

    .site-logo {
        font-size: 28px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .hero-image,
    .hero-image img {
        min-height: 220px;
        height: 220px;
    }

    .hero-content {
        padding: 20px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .news-item-image,
    .secondary-image,
    .category-card-image {
        height: 200px;
    }
}
.logo-image {
    display: block;
    width: auto;
    max-width: 210px;
    max-height: 70px;
    object-fit: contain;
}

.footer-logo-image {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 75px;
    object-fit: contain;
}

@media (max-width: 650px) {
    .logo-image {
        max-width: 155px;
        max-height: 55px;
    }

    .footer-logo-image {
        max-width: 160px;
    }
}