/* =========================================================
   TRIBUNA LIVRE — TEMA EDITORIAL
========================================================= */

:root {
    --red: #d71920;
    --red-dark: #a90f14;
    --red-soft: #fbe9ea;

    --black: #0b0b0d;
    --black-soft: #161619;
    --dark: #202024;

    --gray-950: #171719;
    --gray-900: #242428;
    --gray-800: #34343a;
    --gray-700: #55555c;
    --gray-600: #6d6d75;
    --gray-500: #8c8c94;
    --gray-400: #b7b7bd;
    --gray-300: #d7d7dc;
    --gray-200: #e8e8eb;
    --gray-150: #f0f0f2;
    --gray-100: #f7f7f8;
    --white: #ffffff;

    --green: #309b65;

    --font-headline:
        "Arial Narrow",
        "Roboto Condensed",
        "Franklin Gothic Medium",
        Arial,
        sans-serif;

    --font-interface:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    --font-reading:
        Georgia,
        "Times New Roman",
        serif;

    --container: 1380px;
    --content-container: 1240px;

    --radius-small: 3px;
    --radius: 7px;
    --radius-large: 12px;

    --shadow-small:
        0 4px 16px rgba(0, 0, 0, 0.07);

    --shadow:
        0 14px 40px rgba(0, 0, 0, 0.12);

    --shadow-large:
        0 25px 70px rgba(0, 0, 0, 0.2);

    --transition: 180ms ease;
}

/* Ajustes visuais atuais: mais contraste, foco acessível e movimentos sutis. */
.main-navigation a:focus-visible,
.search-toggle:focus-visible,
.top-categories a:focus-visible,
.news-card a:focus-visible,
.featured-card a:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

.featured-card,
.news-card-image,
.main-navigation a,
.search-toggle {
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.news-card:hover .news-card-image {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.13);
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--white);
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--black);
    background: var(--white);
    font-family: var(--font-reading);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-interface);
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote {
    margin-top: 0;
}

ul,
ol {
    padding-left: 22px;
}

[hidden] {
    display: none !important;
}

::selection {
    color: var(--white);
    background: var(--red);
}

.container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   TOPO INSTITUCIONAL
========================================================= */

.site-header {
    position: relative;
    z-index: 100;
    background: var(--white);
}

.top-bar {
    background: var(--black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
}

.top-categories {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.top-categories::-webkit-scrollbar {
    display: none;
}

.top-categories a {
    position: relative;
    flex: 0 0 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 17px;
    color: rgba(255, 255, 255, 0.76);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-interface);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    transition:
        color var(--transition),
        background var(--transition);
}

.top-categories a:first-child {
    padding-left: 0;
}

.top-categories a:hover,
.top-categories a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

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

.main-header {
    position: relative;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.main-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--red) 0%,
        var(--red) 72%,
        var(--black) 72%
    );
}

.main-header-inner {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 38px;
    padding-block: 14px 18px;
}

.site-logo {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-width: 225px;
    font-family: var(--font-headline);
    font-weight: 950;
    line-height: 0.78;
    letter-spacing: -0.065em;
    transform: skewX(-3deg);
}

.site-logo::after {
    content: "JORNALISMO REGIONAL";
    position: absolute;
    left: 2px;
    top: calc(100% + 12px);
    color: var(--gray-600);
    font-family: var(--font-interface);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.28em;
    line-height: 1;
    transform: skewX(3deg);
}

.logo-tribuna {
    color: var(--black);
    font-size: 42px;
}

.logo-livre {
    color: var(--red);
    font-size: 41px;
}

.main-navigation {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex: 1;
}

.main-navigation a {
    position: relative;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    color: var(--gray-900);
    border-radius: var(--radius-small);
    font-family: var(--font-interface);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.015em;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    transition:
        color var(--transition),
        background var(--transition);
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--white);
    background: var(--red);
}

.search-toggle {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: var(--black);
    font-size: 18px;
    transition:
        background var(--transition),
        transform var(--transition);
}

.search-toggle:hover {
    background: var(--red);
    transform: scale(1.04);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 0;
    border-radius: 50%;
    background: var(--black);
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--white);
}

/* =========================================================
   BUSCA
========================================================= */

.search-panel {
    position: relative;
    z-index: 90;
    padding: 24px 0;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-small);
}

.search-form {
    max-width: 950px;
    display: flex;
    gap: 0;
    margin-inline: auto;
}

.search-form input {
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    border: 2px solid var(--black);
    border-right: 0;
    border-radius:
        var(--radius-small)
        0
        0
        var(--radius-small);
    color: var(--black);
    background: var(--white);
    outline: none;
    font-family: var(--font-interface);
    font-size: 15px;
}

.search-form input:focus {
    border-color: var(--red);
}

.search-form button {
    min-width: 145px;
    border: 0;
    border-radius:
        0
        var(--radius-small)
        var(--radius-small)
        0;
    color: var(--white);
    background: var(--red);
    font-family: var(--font-interface);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

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

/* =========================================================
   PUBLICIDADE
========================================================= */

.top-advertisement,
.content-advertisement {
    position: relative;
    padding: 22px 0;
    background: var(--gray-100);
    text-align: center;
}

.top-advertisement::before,
.content-advertisement::before {
    content: "PUBLICIDADE";
    display: block;
    margin-bottom: 8px;
    color: var(--gray-500);
    font-family: var(--font-interface);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.top-advertisement img,
.content-advertisement img {
    max-width: 100%;
    max-height: 125px;
    margin-inline: auto;
    object-fit: contain;
}

.content-advertisement {
    margin-block: 10px;
    background: transparent;
}

.sidebar-advertisement {
    position: relative;
    margin-bottom: 30px;
    padding-top: 21px;
    text-align: center;
}

.sidebar-advertisement::before {
    content: "PUBLICIDADE";
    position: absolute;
    inset: 0 0 auto;
    color: var(--gray-500);
    font-family: var(--font-interface);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.sidebar-advertisement img {
    width: 100%;
    border-radius: var(--radius);
}

.article-advertisement {
    position: relative;
    margin: 38px 0;
    padding: 32px 20px 22px;
    text-align: center;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.article-advertisement::before {
    content: "PUBLICIDADE";
    position: absolute;
    top: 9px;
    left: 0;
    right: 0;
    color: var(--gray-500);
    font-family: var(--font-interface);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.article-advertisement img {
    margin-inline: auto;
}

/* =========================================================
   ELEMENTOS EDITORIAIS
========================================================= */

.site-main {
    min-height: 600px;
}

.section-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--black);
}

.section-header::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 90px;
    height: 3px;
    background: var(--red);
}

.section-header h2 {
    margin: 0;
    font-family: var(--font-headline);
    font-size: 27px;
    font-weight: 950;
    letter-spacing: -0.035em;
    line-height: 1;
    text-transform: uppercase;
}

.section-line {
    display: none;
}

.section-more-link {
    margin-left: auto;
    color: var(--red);
    font-family: var(--font-interface);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-more-link::after {
    content: " →";
}

.section-more-link:hover {
    color: var(--red-dark);
}

.news-category {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    color: var(--white);
    background: var(--category-color, var(--red));
    border: 0;
    border-radius: 2px;
    font-family: var(--font-interface);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.055em;
    line-height: 1;
    text-transform: uppercase;
}

.exclusive-label {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    color: var(--white);
    background: var(--green);
    border-radius: 2px;
    font-family: var(--font-interface);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.news-labels {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    color: var(--gray-500);
    font-family: var(--font-interface);
    font-size: 11px;
    font-weight: 600;
}

.news-meta > * {
    display: inline-flex;
    align-items: center;
}

.news-meta > * + *::before {
    content: "•";
    margin-inline: 8px;
    color: var(--red);
}

.news-meta strong {
    color: var(--black);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--gray-500);
    font-family: var(--font-interface);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.breadcrumb a:hover {
    color: var(--red);
}

.empty-message {
    color: var(--gray-600);
}

.empty-state {
    padding: 70px 35px;
    text-align: center;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-top: 5px solid var(--red);
}

.empty-state h2 {
    margin-bottom: 12px;
    font-family: var(--font-headline);
    font-size: 33px;
    font-weight: 900;
}

.empty-state p {
    color: var(--gray-700);
}

/* =========================================================
   DESTAQUES DA CAPA
========================================================= */

.featured-section {
    padding: 42px 0 46px;
    background:
        linear-gradient(
            180deg,
            var(--white) 0%,
            var(--gray-100) 100%
        );
    border-bottom: 1px solid var(--gray-200);
}

.featured-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(0, 0.85fr)
        minmax(0, 0.85fr);
    grid-template-rows: repeat(2, 240px);
    gap: 14px;
}

.featured-card {
    position: relative;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius);
    background: var(--black);
    box-shadow: var(--shadow-small);
}

.featured-card-main {
    grid-row: 1 / 3;
}

.featured-card:not(.featured-card-main) {
    grid-column: 2 / 4;
}

.featured-card:nth-child(3) {
    grid-column: 2 / 4;
}

.featured-image {
    position: absolute;
    inset: 0;
    display: block;
    aspect-ratio: auto;
    overflow: hidden;
    background: var(--gray-900);
}

.featured-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.03) 20%,
            rgba(0, 0, 0, 0.9) 100%
        );
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 600ms ease,
        filter 600ms ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.045);
    filter: saturate(1.08);
}

.featured-content {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    width: auto;
    margin: 0;
    padding: 70px 28px 27px;
    color: var(--white);
    text-align: left;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.93) 100%
    );
}

.featured-card-main .featured-content {
    padding: 120px 38px 36px;
}

.featured-title {
    margin: 12px 0 11px;
    font-family: var(--font-headline);
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1.07;
    text-wrap: balance;
}

.featured-title,
.featured-title a,
.featured-title a:visited {
    color: #ffffff;
}

.featured-title a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.featured-card-main .featured-title {
    max-width: 780px;
    font-size: clamp(34px, 4vw, 55px);
}

.featured-title a:hover {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.featured-excerpt {
    display: none;
}

.featured-card-main .featured-excerpt {
    max-width: 780px;
    display: block;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-reading);
    font-size: 15px;
    line-height: 1.55;
}

.featured-content .news-meta {
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.7);
}

.featured-content,
.featured-content .news-meta,
.featured-content .news-meta span,
.featured-content .news-meta time {
    color: rgba(255, 255, 255, 0.78);
}

.featured-content .news-meta strong,
.featured-content .news-meta span {
    color: rgba(255, 255, 255, 0.78);
}

/* =========================================================
   CAPA — CONTEÚDO
========================================================= */

.home-content {
    padding: 52px 0 78px;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 335px;
    gap: 48px;
}

.home-primary {
    min-width: 0;
}

.latest-section,
.category-section {
    margin-bottom: 62px;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 25px;
}

.news-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-300);
}

.news-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9.5;
    overflow: hidden;
    border-radius: var(--radius-small);
    background: var(--gray-200);
}

.news-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 450ms ease,
        filter 450ms ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.035);
    filter: saturate(1.08);
}

.news-card-content {
    padding-top: 15px;
}

.news-card-content h3 {
    margin: 10px 0 9px;
    font-family: var(--font-headline);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.news-card-content h3 a:hover {
    color: var(--red);
}

.news-card-content p {
    margin-bottom: 12px;
    color: var(--gray-700);
    font-family: var(--font-reading);
    font-size: 15px;
    line-height: 1.55;
}

.load-more-container {
    margin-top: 34px;
    text-align: center;
}

.load-more-button {
    min-height: 48px;
    padding: 0 28px;
    border: 2px solid var(--black);
    border-radius: 2px;
    color: var(--black);
    background: var(--white);
    font-family: var(--font-interface);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.load-more-button:hover {
    color: var(--white);
    background: var(--red);
    border-color: var(--red);
}

.load-more-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* =========================================================
   BLOCOS DE CATEGORIA
========================================================= */

.category-section {
    padding-top: 4px;
}

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

.category-news-card {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-300);
}

.category-news-card:nth-child(-n + 2) {
    padding-top: 0;
}

.category-news-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-small);
    background: var(--gray-200);
}

.category-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

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

.category-news-content h3 {
    margin: 0 0 9px;
    font-family: var(--font-headline);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.16;
}

.category-news-content h3 a:hover {
    color: var(--red);
}

.category-news-content p {
    margin-bottom: 8px;
    color: var(--gray-700);
    font-family: var(--font-reading);
    font-size: 13px;
    line-height: 1.45;
}

.category-news-content time {
    color: var(--gray-500);
    font-family: var(--font-interface);
    font-size: 10px;
    font-weight: 700;
}

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

.home-sidebar,
.article-sidebar,
.category-sidebar,
.search-sidebar {
    min-width: 0;
}

.sidebar-block {
    margin-bottom: 34px;
    padding: 23px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: 5px solid var(--black);
    box-shadow: var(--shadow-small);
}

.sidebar-block .section-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.sidebar-block .section-header h2 {
    font-size: 22px;
}

.popular-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: popular-counter;
}

.popular-item {
    position: relative;
    min-height: 89px;
    padding: 16px 0 16px 52px;
    border-bottom: 1px solid var(--gray-200);
    counter-increment: popular-counter;
}

.popular-item:last-child {
    border-bottom: 0;
}

.popular-item::before {
    content: counter(popular-counter);
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--red);
    font-family: var(--font-headline);
    font-size: 42px;
    font-weight: 950;
    letter-spacing: -0.06em;
    line-height: 1;
}

.popular-item a {
    display: block;
}

.popular-category {
    display: block;
    margin-bottom: 5px;
    color: var(--red);
    font-family: var(--font-interface);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.popular-item strong {
    display: block;
    font-family: var(--font-headline);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.18;
}

.popular-item a:hover strong {
    color: var(--red);
}

.popular-item small {
    display: block;
    margin-top: 6px;
    color: var(--gray-500);
    font-family: var(--font-interface);
    font-size: 9px;
    font-weight: 700;
}

.newsletter-block {
    position: relative;
    overflow: hidden;
    padding: 30px 25px;
    color: var(--white);
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(215, 25, 32, 0.65),
            transparent 45%
        ),
        var(--black);
    border-color: var(--red);
}

.newsletter-block::after {
    content: "TL";
    position: absolute;
    right: -20px;
    bottom: -35px;
    color: rgba(255, 255, 255, 0.04);
    font-family: var(--font-headline);
    font-size: 150px;
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
}

.newsletter-block h2 {
    position: relative;
    z-index: 1;
    margin-bottom: 11px;
    font-family: var(--font-headline);
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.newsletter-block p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-reading);
}

.sidebar-button {
    position: relative;
    z-index: 1;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    color: var(--white);
    background: var(--red);
    border-radius: 2px;
    font-family: var(--font-interface);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.sidebar-button:hover {
    background: var(--red-dark);
}

/* =========================================================
   PÁGINA DA NOTÍCIA
========================================================= */

.article-page {
    padding: 54px 0 78px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 54px;
}

.article-content {
    min-width: 0;
}

.article-header {
    padding-bottom: 18px;
}

.article-header h1 {
    max-width: 1050px;
    margin: 18px 0;
    font-family: var(--font-headline);
    font-size: clamp(43px, 5.4vw, 72px);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-wrap: balance;
}

.article-subtitle {
    max-width: 940px;
    margin-bottom: 23px;
    color: var(--gray-700);
    font-family: var(--font-reading);
    font-size: 22px;
    line-height: 1.45;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 17px 0;
    color: var(--gray-500);
    border-top: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-300);
    font-family: var(--font-interface);
    font-size: 11px;
    font-weight: 650;
}

.article-meta > * + *::before {
    content: "•";
    margin-inline: 11px;
    color: var(--red);
}

.article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.article-share > span {
    margin-right: 3px;
    font-family: var(--font-interface);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.share-button {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--gray-300);
    border-radius: 2px;
    color: var(--gray-900);
    background: var(--white);
    font-family: var(--font-interface);
    font-size: 10px;
    font-weight: 800;
}

.share-button:hover {
    color: var(--white);
    background: var(--red);
    border-color: var(--red);
}

.article-featured-image {
    margin: 30px 0 36px;
}

.article-featured-image img {
    width: 100%;
    max-height: 780px;
    object-fit: cover;
    border-radius: var(--radius-small);
}

.article-featured-image figcaption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 0 0;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-200);
    font-family: var(--font-interface);
    font-size: 10px;
}

.article-lead {
    margin-bottom: 28px;
    padding: 18px 22px;
    color: var(--gray-900);
    background: var(--gray-100);
    border-left: 5px solid var(--red);
    font-family: var(--font-reading);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.5;
}

.article-body {
    max-width: 890px;
    color: #202023;
    font-family: var(--font-reading);
    font-size: 19px;
    line-height: 1.88;
}

.article-body > p:first-child::first-letter {
    float: left;
    margin: 7px 8px 0 0;
    color: var(--red);
    font-family: var(--font-headline);
    font-size: 74px;
    font-weight: 950;
    line-height: 0.7;
}

.article-body p {
    margin-bottom: 25px;
}

.article-body h2 {
    margin: 42px 0 17px;
    font-family: var(--font-headline);
    font-size: 35px;
    font-weight: 950;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.article-body h3 {
    margin: 35px 0 15px;
    font-family: var(--font-headline);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
}

.article-body blockquote {
    margin: 35px 0;
    padding: 24px 27px;
    color: var(--gray-800);
    background: var(--gray-100);
    border-left: 5px solid var(--red);
    font-size: 23px;
    font-style: italic;
    line-height: 1.55;
}

.article-body a {
    color: var(--red);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-body img {
    margin: 30px auto;
    border-radius: var(--radius-small);
}

.article-footer-share {
    margin-top: 42px;
    padding: 23px 0;
    border-top: 3px solid var(--black);
    border-bottom: 1px solid var(--gray-300);
}

.article-footer-share > strong {
    font-family: var(--font-headline);
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
}

.related-section {
    margin-top: 58px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* =========================================================
   PÁGINAS DE CATEGORIA E BUSCA
========================================================= */

.category-header,
.search-header {
    position: relative;
    padding: 46px 0;
    color: var(--white);
    background:
        linear-gradient(
            115deg,
            var(--black) 0%,
            var(--gray-900) 75%,
            var(--red) 180%
        );
    border: 0;
}

.category-header::after,
.search-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: var(--category-color, var(--red));
}

.category-header .breadcrumb,
.search-header .breadcrumb {
    color: rgba(255, 255, 255, 0.62);
}

.category-header h1,
.search-header h1 {
    margin-bottom: 12px;
    font-family: var(--font-headline);
    font-size: clamp(42px, 5.4vw, 66px);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 0.95;
    text-transform: uppercase;
}

.category-header p,
.search-header p {
    max-width: 790px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.73);
    font-family: var(--font-reading);
    font-size: 18px;
}

.category-layout,
.search-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 48px;
    padding-top: 50px;
    padding-bottom: 78px;
}

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

.category-featured-card {
    position: relative;
    display: grid;
    grid-template-columns: 58% 42%;
    overflow: hidden;
    color: var(--white);
    background: var(--black);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.category-featured-image {
    min-height: 440px;
}

.category-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(215, 25, 32, 0.33),
            transparent 48%
        ),
        var(--black);
}

.category-featured-content h2 {
    margin: 13px 0;
    font-family: var(--font-headline);
    font-size: 38px;
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.category-featured-content h2 a:hover {
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-underline-offset: 5px;
}

.category-featured-content p {
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-reading);
}

.category-featured-subtitle {
    font-size: 18px;
    font-weight: 700;
}

.category-featured-content .news-meta {
    color: rgba(255, 255, 255, 0.57);
}

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

.category-list-item {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 25px;
    padding: 27px 0;
    border-bottom: 1px solid var(--gray-300);
}

.category-list-item:first-child {
    padding-top: 0;
}

.category-list-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius-small);
    background: var(--gray-200);
}

.category-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.category-list-item:hover img {
    transform: scale(1.035);
}

.category-list-content h2 {
    margin: 10px 0;
    font-family: var(--font-headline);
    font-size: 29px;
    font-weight: 950;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.category-list-content h2 a:hover {
    color: var(--red);
}

.category-list-content p {
    margin-bottom: 12px;
    color: var(--gray-700);
    font-family: var(--font-reading);
}

.search-subtitle {
    font-weight: 700;
}

/* =========================================================
   PAGINAÇÃO
========================================================= */

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 38px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination a,
.pagination span {
    min-width: 39px;
    height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--gray-300);
    border-radius: 2px;
    font-family: var(--font-interface);
    font-size: 11px;
    font-weight: 800;
}

.pagination a:hover,
.pagination a.active {
    color: var(--white);
    background: var(--red);
    border-color: var(--red);
}

.pagination-button {
    min-width: 105px !important;
}

/* =========================================================
   LOGIN
========================================================= */

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(215, 25, 32, 0.28),
            transparent 35%
        ),
        var(--black);
}

.login-container {
    width: 100%;
    max-width: 460px;
}

.login-card {
    padding: 40px;
    background: var(--white);
    border-top: 6px solid var(--red);
    box-shadow: var(--shadow-large);
}

.login-header {
    margin-bottom: 29px;
    text-align: center;
}

.login-logo {
    margin-bottom: 35px;
    transform: none;
}

.login-logo::after {
    left: 50%;
    transform: translateX(-50%);
}

.login-header h1 {
    margin-bottom: 8px;
    font-family: var(--font-headline);
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.login-header p {
    color: var(--gray-700);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-interface);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    min-height: 49px;
    padding: 0 14px;
    border: 1px solid var(--gray-300);
    border-radius: 2px;
    outline: none;
}

.form-group input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.1);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 88px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
    border: 0;
    color: var(--red);
    background: transparent;
    font-family: var(--font-interface);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.login-submit {
    min-height: 51px;
    border: 0;
    border-radius: 2px;
    color: var(--white);
    background: var(--red);
    font-family: var(--font-interface);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-submit:hover {
    background: var(--red-dark);
}

.login-submit:disabled,
.password-toggle:disabled,
.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-footer {
    margin-top: 23px;
    text-align: center;
}

.login-footer a {
    color: var(--gray-700);
    font-family: var(--font-interface);
    font-size: 11px;
    font-weight: 700;
}

.login-footer a:hover {
    color: var(--red);
}

.form-message {
    margin-bottom: 20px;
    padding: 13px 14px;
    border-left: 4px solid;
    font-family: var(--font-interface);
    font-size: 12px;
}

.form-message-error {
    color: #831d22;
    background: #ffe5e7;
    border-color: var(--red);
}

.form-message-warning {
    color: #705000;
    background: #fff3cd;
    border-color: #d3a000;
}

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

.site-footer {
    position: relative;
    color: var(--white);
    background: var(--black);
    border-top: 6px solid var(--red);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 55px;
    padding-top: 62px;
    padding-bottom: 52px;
}

.footer-logo {
    margin-bottom: 33px;
    transform: none;
}

.footer-logo::after {
    color: rgba(255, 255, 255, 0.45);
}

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

.footer-brand p {
    max-width: 430px;
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--font-reading);
}

.footer-column h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red);
    font-family: var(--font-headline);
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.footer-column nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font-interface);
    font-size: 11px;
    font-weight: 700;
}

.footer-column a:hover {
    color: var(--red);
}

.footer-bottom {
    padding: 20px 0;
    background: #050506;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-interface);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

/* =========================================================
   MENSAGEM AJAX
========================================================= */

.site-temporary-message {
    border-left: 5px solid var(--red) !important;
    border-radius: var(--radius-small);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1180px) {
    .main-header-inner {
        gap: 20px;
    }

    .site-logo {
        min-width: 185px;
    }

    .logo-tribuna {
        font-size: 36px;
    }

    .logo-livre {
        font-size: 35px;
    }

    .main-navigation a {
        padding-inline: 8px;
        font-size: 10px;
    }

    .home-layout,
    .article-layout,
    .category-layout,
    .search-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 32px;
    }

    .category-news-card {
        grid-template-columns: 145px 1fr;
    }

    .category-list-item {
        grid-template-columns: 250px 1fr;
    }
}

@media (max-width: 980px) {
    .top-bar {
        display: none;
    }

    .main-header-inner {
        min-height: 84px;
        padding-block: 12px 16px;
    }

    .site-logo {
        margin-right: auto;
    }

    .site-logo::after {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 20px;
        background: var(--black);
        box-shadow: var(--shadow-large);
    }

    .main-navigation.open {
        display: flex;
    }

    .main-navigation a {
        min-height: 48px;
        justify-content: flex-start;
        padding: 0 5px;
        color: var(--white);
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 0;
        font-size: 12px;
        text-align: left;
    }

    .main-navigation a:hover,
    .main-navigation a.active {
        color: var(--red);
        background: transparent;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 450px 260px;
    }

    .featured-card-main {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .featured-card:not(.featured-card-main),
    .featured-card:nth-child(3) {
        grid-column: auto;
        grid-row: 2;
    }

    .home-layout,
    .article-layout,
    .category-layout,
    .search-layout {
        grid-template-columns: 1fr;
    }

    .home-sidebar,
    .article-sidebar,
    .category-sidebar,
    .search-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .sidebar-block,
    .sidebar-advertisement {
        margin-bottom: 0;
    }

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

    .category-featured-image {
        min-height: 390px;
    }

    .article-header h1 {
        font-size: 54px;
    }
}

/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 740px) {
    .container {
        width: min(
            calc(100% - 26px),
            var(--container)
        );
    }

    .main-header-inner {
        gap: 9px;
    }

    .site-logo {
        min-width: 145px;
    }

    .logo-tribuna {
        font-size: 29px;
    }

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

    .mobile-menu-button,
    .search-toggle {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .search-form {
        flex-direction: column;
        gap: 8px;
    }

    .search-form input {
        border: 2px solid var(--black);
        border-radius: var(--radius-small);
    }

    .search-form button {
        min-height: 48px;
        border-radius: var(--radius-small);
    }

    .featured-section {
        padding: 18px 0 26px;
    }

    .featured-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .featured-card,
    .featured-card-main {
        min-height: 280px;
    }

    .featured-card-main {
        min-height: 420px;
    }

    .featured-content,
    .featured-card-main .featured-content {
        padding: 75px 20px 22px;
    }

    .featured-title,
    .featured-card-main .featured-title {
        font-size: 29px;
    }

    .featured-card-main .featured-excerpt {
        display: none;
    }

    .home-content {
        padding-top: 34px;
    }

    .latest-grid,
    .category-news-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .news-card-content h3 {
        font-size: 24px;
    }

    .category-news-card,
    .category-news-card:nth-child(-n + 2) {
        grid-template-columns: 125px 1fr;
        padding: 18px 0;
    }

    .home-sidebar,
    .article-sidebar,
    .category-sidebar,
    .search-sidebar {
        grid-template-columns: 1fr;
    }

    .article-page {
        padding-top: 30px;
    }

    .article-header h1 {
        font-size: 40px;
        line-height: 1.02;
    }

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

    .article-body {
        font-size: 17px;
        line-height: 1.8;
    }

    .article-body > p:first-child::first-letter {
        font-size: 60px;
    }

    .article-featured-image figcaption {
        flex-direction: column;
        gap: 3px;
    }

    .category-header,
    .search-header {
        padding: 34px 0;
    }

    .category-header h1,
    .search-header h1 {
        font-size: 40px;
    }

    .category-featured-image {
        min-height: 260px;
    }

    .category-featured-content {
        padding: 25px;
    }

    .category-featured-content h2 {
        font-size: 31px;
    }

    .category-list-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-list-content h2 {
        font-size: 26px;
    }

    .pagination {
        flex-direction: column;
    }

    .pagination-pages {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 480px) {
    .section-header {
        align-items: flex-end;
        flex-wrap: wrap;
    }

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

    .section-more-link {
        margin-left: 0;
    }

    .category-news-card,
    .category-news-card:nth-child(-n + 2) {
        grid-template-columns: 1fr;
    }

    .category-news-image {
        aspect-ratio: 16 / 9;
    }

    .article-header h1 {
        font-size: 34px;
    }

    .article-share {
        align-items: stretch;
    }

    .share-button {
        flex: 1 1 auto;
        justify-content: center;
    }

    .login-page {
        padding: 14px;
    }

    .login-card {
        padding: 28px 20px;
    }
}

/* =========================================================
   MODERNIZAÇÃO EXTRA — MENOS BRANCO
========================================================= */

body {
    background:
        linear-gradient(
            180deg,
            #f1f2f4 0%,
            #eceef1 100%
        );
}

/* Cabeçalho com mais presença */

.site-header {
    background: #111114;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

.main-header {
    background:
        linear-gradient(
            135deg,
            #151518 0%,
            #222227 100%
        );
    border-bottom: 0;
}

.main-header::after {
    height: 5px;
    background:
        linear-gradient(
            90deg,
            var(--red) 0%,
            var(--red) 68%,
            #ffffff 68%,
            #ffffff 73%,
            #111111 73%
        );
}

.logo-tribuna {
    color: #ffffff;
}

.site-logo::after {
    color: rgba(255, 255, 255, 0.52);
}

.main-navigation a {
    color: rgba(255, 255, 255, 0.88);
}

.main-navigation a:hover,
.main-navigation a.active {
    color: #ffffff;
    background: var(--red);
}

/* Busca mais moderna */

.search-panel {
    background: #17171a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-form input {
    color: #ffffff;
    background: #242428;
    border-color: #3b3b42;
}

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

/* Destaques mais fortes */

.featured-section {
    padding-top: 34px;
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(215, 25, 32, 0.14),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #18181b 0%,
            #25252a 100%
        );
    border-bottom: 0;
}

.featured-title,
.featured-title a,
.featured-title a:visited {
    color: #ffffff;
}

.featured-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.32);
}

.featured-image::after {
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.04) 15%,
            rgba(0, 0, 0, 0.96) 100%
        );
}

/* Área principal com cartões */

.home-content {
    background:
        linear-gradient(
            180deg,
            #eceef1 0%,
            #f5f6f8 100%
        );
}

.latest-section,
.category-section {
    padding: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    box-shadow:
        0 14px 35px rgba(22, 24, 29, 0.08);
}

.category-section:nth-of-type(even) {
    background:
        linear-gradient(
            135deg,
            #1c1c20 0%,
            #29292f 100%
        );
    color: #ffffff;
}

.category-section:nth-of-type(even) .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.24);
}

.category-section:nth-of-type(even) .section-header h2,
.category-section:nth-of-type(even) .category-news-content h3,
.category-section:nth-of-type(even) .category-news-content h3 a {
    color: #ffffff;
}

.category-section:nth-of-type(even) .category-news-content p {
    color: rgba(255, 255, 255, 0.66);
}

.category-section:nth-of-type(even) .category-news-content time {
    color: rgba(255, 255, 255, 0.46);
}

.category-section:nth-of-type(even) .category-news-card {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* Cards de notícia */

.news-card {
    overflow: hidden;
    padding-bottom: 0;
    background: #ffffff;
    border: 1px solid #e2e3e7;
    border-radius: 8px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.07);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.13);
}

.news-card-content {
    padding: 18px 18px 20px;
}

.news-card-image {
    border-radius: 0;
}

/* Sidebar mais destacada */

.sidebar-block {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f4f4f6 100%
        );
    border-radius: 10px;
    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.09);
}

.home-sidebar {
    position: relative;
}

.home-sidebar::before {
    content: "";
    position: absolute;
    inset: -18px -18px -18px -18px;
    z-index: -1;
    background:
        linear-gradient(
            180deg,
            #dedfe3 0%,
            #eceef1 100%
        );
    border-radius: 14px;
}

/* Mais lidas escuro */

.sidebar-block:first-child {
    color: #ffffff;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(215, 25, 32, 0.34),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            #18181b 0%,
            #242429 100%
        );
    border-color: var(--red);
}

.sidebar-block:first-child .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

.sidebar-block:first-child .section-header h2,
.sidebar-block:first-child .popular-item strong {
    color: #ffffff;
}

.sidebar-block:first-child .popular-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.sidebar-block:first-child .popular-item small {
    color: rgba(255, 255, 255, 0.46);
}

/* Página da notícia */

.article-page {
    background:
        linear-gradient(
            180deg,
            #e9ebee 0%,
            #f5f6f8 100%
        );
}

.article-content {
    padding: 34px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.09);
}

.article-sidebar .sidebar-block {
    background: #ffffff;
}

/* Categorias */

.category-layout,
.search-layout {
    background: transparent;
}

.category-primary,
.search-primary {
    padding: 30px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 10px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.08);
}

.category-list-item {
    padding-inline: 8px;
    transition: background 0.2s ease;
}

.category-list-item:hover {
    background: #f5f5f7;
}

/* Publicidade */

.top-advertisement {
    background:
        linear-gradient(
            180deg,
            #202024 0%,
            #29292f 100%
        );
}

.top-advertisement::before {
    color: rgba(255, 255, 255, 0.4);
}

.content-advertisement {
    padding: 28px 0;
}

/* Rodapé */

.site-footer {
    background:
        radial-gradient(
            circle at 80% 0,
            rgba(215, 25, 32, 0.18),
            transparent 36%
        ),
        #101012;
}

/* Mobile */

@media (max-width: 980px) {
    .latest-section,
    .category-section,
    .article-content,
    .category-primary,
    .search-primary {
        padding: 22px;
    }

    .home-sidebar::before {
        display: none;
    }
}

@media (max-width: 740px) {
    .latest-section,
    .category-section,
    .article-content,
    .category-primary,
    .search-primary {
        padding: 16px;
        border-radius: 6px;
    }

    .featured-section {
        background:
            linear-gradient(
                180deg,
                #17171a 0%,
                #232328 100%
            );
    }
}

/* =========================================================
   CARROSSEL DE BANNERS
========================================================= */

.banner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-carousel-track {
    position: relative;
    width: 100%;
    min-height: 90px;
    overflow: hidden;
    border-radius: 8px;
}

.banner-carousel-slide {
    position: absolute;
    inset: 0;
    z-index: 1;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(25px);

    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        visibility 0.5s ease;
}

.banner-carousel-slide.active {
    position: relative;
    z-index: 2;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(0);
}

.banner-carousel-slide a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-carousel-slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 150px;

    margin: 0 auto;

    object-fit: contain;
    object-position: center;

    border-radius: 6px;
}

/* Etiqueta publicidade */

.banner-carousel > .advertisement-label,
.news-feed-ad > .advertisement-label,
.footer-advertisement .advertisement-label {
    display: block;

    margin-bottom: 8px;

    color: rgba(255, 255, 255, 0.48);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

/* Botões anterior e próximo */

.banner-carousel-button {
    position: absolute;
    top: 50%;
    z-index: 10;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;

    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    line-height: 1;

    transform: translateY(-25%);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.banner-carousel-button:hover {
    background: #d71920;
    transform:
        translateY(-25%)
        scale(1.06);
}

.banner-carousel-previous {
    left: 12px;
}

.banner-carousel-next {
    right: 12px;
}

/* Pontos inferiores */

.banner-carousel-dots {
    position: relative;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 10px;
}

.banner-carousel-dot {
    width: 8px;
    height: 8px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #9b9ba1;

    transition:
        width 0.2s ease,
        border-radius 0.2s ease,
        background 0.2s ease;
}

.banner-carousel-dot.active {
    width: 25px;
    border-radius: 10px;
    background: #d71920;
}

/* Carrossel do topo */

.top-banner-carousel .banner-carousel-track {
    min-height: 115px;
}

.top-banner-carousel .banner-carousel-slide img {
    max-height: 115px;
}

/* Carrossel depois dos destaques */

.content-banner-carousel .banner-carousel-track {
    min-height: 125px;
}

.content-banner-carousel .banner-carousel-slide img {
    max-height: 125px;
}

/* Carrossel inferior */

.footer-advertisement {
    padding: 28px 0;

    background:
        linear-gradient(
            180deg,
            #202024 0%,
            #17171a 100%
        );

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-banner-carousel .banner-carousel-track {
    min-height: 125px;
}

.footer-banner-carousel .banner-carousel-slide img {
    max-height: 125px;
}

/* Banner entre as notícias */

.news-feed-ad {
    grid-column: 1 / -1;

    position: relative;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin: 8px 0 22px;
    padding: 20px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #19191c 0%,
            #28282d 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.news-feed-ad a {
    width: 100%;

    display: flex;
    justify-content: center;
}

.news-feed-ad img {
    width: 100%;
    max-width: 100%;
    max-height: 145px;

    object-fit: contain;

    border-radius: 5px;
}

/* Mobile */

@media (max-width: 740px) {
    .banner-carousel-track,
    .top-banner-carousel .banner-carousel-track,
    .content-banner-carousel .banner-carousel-track,
    .footer-banner-carousel .banner-carousel-track {
        min-height: 80px;
    }

    .banner-carousel-slide img,
    .top-banner-carousel .banner-carousel-slide img,
    .content-banner-carousel .banner-carousel-slide img,
    .footer-banner-carousel .banner-carousel-slide img {
        max-height: 90px;
    }

    .banner-carousel-button {
        width: 32px;
        height: 32px;
        font-size: 23px;
    }

    .banner-carousel-previous {
        left: 5px;
    }

    .banner-carousel-next {
        right: 5px;
    }

    .news-feed-ad {
        padding: 12px;
    }

    .news-feed-ad img {
        max-height: 100px;
    }
}

/* Remove a etiqueta antiga gerada pelo CSS */

.top-advertisement::before,
.content-advertisement::before,
.sidebar-advertisement::before,
.article-advertisement::before {
    content: none !important;
    display: none !important;
}

/* Evita espaço reservado para a etiqueta antiga */

.top-advertisement,
.content-advertisement {
    padding-top: 22px;
}

.banner-carousel > .advertisement-label {
    display: block;
    margin-bottom: 8px;
}
