:root {
    --primary: #087dc1;
    --primary-dark: #075a9c;
    --accent: #00a8e8;

    --dark: #121820;
    --dark-soft: #202833;

    --text: #1c2530;
    --muted: #77808b;

    --light: #f4f6f8;
    --white: #ffffff;
    --border: #e2e6ea;

    --container: 1440px;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

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

/* Barra superior */

.topbar {
    min-height: 38px;
    background: var(--primary-dark);
    color: var(--white);
    font-size: 13px;
}

.topbar-content {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-social {
    display: flex;
    gap: 18px;
}

.topbar-social a:hover {
    opacity: 0.8;
}

/* Cabeçalho */

.header-main {
    background: var(--white);
}

.header-main-content {
    min-height: 155px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.site-branding {
    min-width: 0;
}

.custom-logo-link {
    display: inline-block;
}

.site-branding img {
    display: block;
    width: auto;
    max-width: 240px;
    max-height: 120px;
}

.site-title {
    display: inline-block;
    color: var(--primary);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
}

.site-description {
    margin: 8px 0 0;
    color: var(--muted);
}

.header-ad {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-ad .widget {
    width: 100%;
    max-width: 728px;
    margin: 0;
}

.header-ad img {
    display: block;
    width: 100%;
    max-height: 110px;
    object-fit: contain;
}

/* Menu */

.main-navigation {
    position: relative;
    z-index: 20;
    background: var(--primary);
    box-shadow: 0 5px 20px rgb(0 0 0 / 10%);
}

.navigation-content {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-menu {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    min-height: 54px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: 700;
    border-right: 1px solid rgb(255 255 255 / 14%);
    transition: background-color 180ms ease;
}

.main-menu a:hover,
.main-menu .current-menu-item>a,
.main-menu .current-menu-parent>a {
    background: var(--primary-dark);
}

.main-menu .sub-menu {
    min-width: 230px;
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--primary-dark);
    box-shadow: 0 10px 25px rgb(0 0 0 / 18%);
}

.main-menu li:hover>.sub-menu {
    display: block;
}

.main-menu .sub-menu a {
    min-height: 46px;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
}

/* Conteúdo principal */

.site-main {
    padding: 42px 0 60px;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
}

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

.section-header {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.section-header h1 {
    margin: 8px 0 0;
    font-size: 30px;
    line-height: 1.2;
}

.section-label {
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Cards dos posts */

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

.post-card {
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgb(28 37 48 / 12%);
}

.post-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dfe4e9;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

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

.post-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 20px;
    color: var(--muted);
    text-align: center;
}

.post-card-content {
    padding: 20px;
}

.post-card-category {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.post-card-category a {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.post-card-title {
    margin: 12px 0;
    font-size: 21px;
    line-height: 1.35;
}

.post-card-title a:hover {
    color: var(--primary);
}

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 13px;
}

.post-card-excerpt {
    margin-top: 14px;
    color: #4f5965;
}

.post-card-excerpt p {
    margin: 0;
}

/* Banner do meio */

.home-middle-ad {
    grid-column: 1 / -1;
    width: 100%;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--border);
}

.home-middle-ad .widget {
    margin: 0;
}

.home-middle-ad img {
    display: block;
    width: 100%;
    max-height: 250px;
    object-fit: contain;
}

/* =========================================================
   SIDEBAR PROFISSIONAL
   ========================================================= */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.sidebar-widget-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.sidebar-widget-line {
    width: 5px;
    height: 27px;
    flex: 0 0 auto;
    background: var(--primary);
    border-radius: 20px;
}

.sidebar-widget .widget-title {
    margin: 0;
    padding: 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.2;
    text-transform: none;
    border: 0;
}

/* Pesquisa */

.sidebar-search-widget form,
.sidebar-search-widget .search-form {
    display: flex;
    gap: 8px;
}

.sidebar-search-widget label {
    min-width: 0;
    flex: 1;
}

.sidebar-search-widget .search-field {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: var(--text);
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
}

.sidebar-search-widget .search-field:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(8 125 193 / 12%);
}

.sidebar-search-widget .search-submit {
    min-height: 46px;
    padding: 0 17px;
    border: 0;
    border-radius: 4px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 180ms ease;
}

.sidebar-search-widget .search-submit:hover {
    background: var(--primary-dark);
}

/* Lista de últimas notícias */

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

.sidebar-news-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-news-item:first-child {
    padding-top: 0;
}

.sidebar-news-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sidebar-news-image {
    width: 92px;
    height: 78px;
    display: block;
    overflow: hidden;
    background: #dfe4e9;
    border-radius: 5px;
}

.sidebar-news-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 250ms ease;
}

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

.sidebar-news-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 11px;
}

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

.sidebar-news-category {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.sidebar-news-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.sidebar-news-title a:hover {
    color: var(--primary);
}

.sidebar-news-date {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
}

/* Categorias */

.category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-list li {
    padding: 0;
    border-bottom: 1px solid var(--border);
}

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

.category-list a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

.category-list a::before {
    content: "›";
    margin-right: 9px;
    color: var(--primary);
    font-size: 22px;
    line-height: 1;
}

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

/* Ranking de notícias */

.sidebar-ranking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-ranking-item {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-ranking-item:first-child {
    padding-top: 0;
}

.sidebar-ranking-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sidebar-ranking-number {
    color: #d6dde4;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.sidebar-ranking-content h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.sidebar-ranking-content h3 a:hover {
    color: var(--primary);
}

.sidebar-ranking-content time {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

/* Publicidades */

.sidebar-ad-area {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
}

.sidebar-ad-area .widget {
    margin: 0;
}

.sidebar-ad-area img {
    height: auto;
    display: block;
}

.ad-placeholder {
    width: 100%;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 20px;
    border: 1px dashed #bdc5ce;
    background: #eef1f4;
    color: #8a949f;
    text-align: center;
}

.ad-placeholder small {
    display: block;
    font-size: 12px;
}

.ad-square {
    width: 100%;
    max-width: 300px;
    min-height: 250px;
    margin: 0 auto;
}

.ad-horizontal {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    margin: 0 auto;
}

/* Paginação */

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

.pagination {
    width: 100%;
    margin-top: 35px;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.pagination .navigation {
    margin: 0;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/*
 * O WordPress pode gerar uma lista UL/LI
 * dependendo da versão e da estrutura usada.
 */
.pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination .page-numbers {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 7px 14px;

    background: var(--white);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 4px;

    font-size: 15px;
    font-weight: 700;
    line-height: 1;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
}

.pagination .prev,
.pagination .next {
    padding-inline: 17px;
}

/* Conteúdo vazio */

.empty-content {
    padding: 35px;
    background: var(--white);
    border: 1px solid var(--border);
}

.empty-content h2 {
    margin-top: 0;
}

/* Rodapé */

.footer-top-ad {
    padding: 30px 0;
    background: var(--white);
}

.footer-top-ad .widget {
    margin: 0;
}

.footer-top-ad img {
    display: block;
    max-height: 160px;
    object-fit: contain;
}

.site-footer {
    background: var(--dark);
    color: #dbe0e5;
}

.footer-grid {
    padding: 55px 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 40px;
}

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

.footer-column h2 {
    margin: 0 0 22px;
    padding-bottom: 12px;
    color: var(--white);
    font-size: 18px;
    text-transform: uppercase;
    border-bottom: 3px solid var(--primary);
}

.footer-column li {
    padding: 8px 0;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
}

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

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

.footer-ad-item {
    min-width: 0;
}

.footer-ad-item .widget {
    margin: 0;
}

.footer-ad-item img {
    display: block;
    width: 100%;
    height: auto;
}

.footer-ad-grid .ad-placeholder {
    min-height: 170px;
    background: var(--dark-soft);
    border-color: #434d58;
}

.footer-bottom {
    padding: 20px 0;
    background: #090d12;
    color: #929ba5;
    text-align: center;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

/* =========================================================
   PÁGINA INICIAL
   ========================================================= */

.home-page {
    display: flex;
    flex-direction: column;
    gap: 38px;
}

/* Área de destaques */

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

.featured-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--dark);
    border-radius: var(--radius);
}

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

.featured-card-link {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.featured-card-image {
    width: 100%;
    height: 100%;
    background: #dfe4e9;
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 500ms ease;
}

.featured-card:hover .featured-card-image img {
    transform: scale(1.05);
}

.featured-image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: #dfe4e9;
}

.featured-card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgb(5 10 17 / 92%) 0%,
            rgb(5 10 17 / 42%) 55%,
            transparent 100%);
}

.featured-card-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 26px;
    color: var(--white);
}

.featured-small .featured-card-content {
    padding: 20px;
}

.featured-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.featured-categories span {
    display: inline-flex;
    padding: 4px 10px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    border-radius: 3px;
}

.featured-card-title {
    max-width: 900px;
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgb(0 0 0 / 45%);
}

.featured-small .featured-card-title {
    font-size: 20px;
    line-height: 1.3;
}

.featured-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 14px;
    color: rgb(255 255 255 / 78%);
    font-size: 13px;
}

/* Conteúdo e sidebar */

.home-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
}

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

.home-section-header {
    margin-bottom: 24px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--white);
    border-left: 5px solid var(--primary);
    border-bottom: 1px solid var(--border);
}

.home-section-header h1 {
    margin: 2px 0 0;
    font-size: 28px;
    line-height: 1.2;
}

.home-section-eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-section-link {
    flex: 0 0 auto;
    padding: 9px 16px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    border: 1px solid var(--primary);
    border-radius: 4px;
    transition:
        background-color 180ms ease,
        color 180ms ease;
}

.home-section-link:hover {
    background: var(--primary);
    color: var(--white);
}

/* Grade de notícias */

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

.home-post-card {
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.home-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgb(28 37 48 / 11%);
}

.home-post-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dfe4e9;
}

.home-post-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 350ms ease;
}

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

.home-post-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
}

.home-post-content {
    padding: 20px;
}

.home-post-categories {
    margin-bottom: 10px;
}

.home-post-categories a {
    display: inline-flex;
    padding: 4px 10px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    border-radius: 3px;
}

.home-post-title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.35;
}

.home-post-title a:hover {
    color: var(--primary);
}

.home-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    color: var(--muted);
    font-size: 12px;
}

.home-post-excerpt {
    margin-top: 14px;
    color: #4f5965;
    font-size: 14px;
}

/* Publicidade no meio da Home */

.home-content-ad {
    grid-column: 1 / -1;
    width: 100%;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
}

.home-content-ad .widget {
    margin: 0;
}

.home-content-ad img {
    margin: 0 auto;
    max-height: 220px;
    display: block;
    object-fit: contain;
}
/* =========================================================
   PÁGINA INTERNA DA NOTÍCIA
   ========================================================= */

.single-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
}

.single-content-area {
    min-width: 0;
}

.single-article {
    padding: 38px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.single-header {
    margin-bottom: 28px;
}

.single-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.single-categories a {
    display: inline-flex;
    padding: 5px 11px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    border-radius: 4px;
}

.single-categories a:hover {
    background: var(--primary-dark);
}

.single-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.single-subtitle {
    margin-top: 18px;
    color: #59636f;
    font-size: 20px;
    line-height: 1.55;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 13px;
}

.single-meta a {
    color: var(--primary);
    font-weight: 700;
}

.single-featured-image {
    margin: 0 0 25px;
}

.single-featured-image img {
    width: 100%;
    max-height: 650px;
    display: block;
    object-fit: cover;
    border-radius: var(--radius);
}

.single-featured-image figcaption {
    padding-top: 9px;
    color: var(--muted);
    font-size: 12px;
}

/* Compartilhamento */

.single-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    padding: 15px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.single-share-label {
    margin-right: 4px;
    font-size: 13px;
    font-weight: 800;
}

.share-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border: 0;
    border-radius: 4px;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.share-whatsapp {
    background: #168f49;
}

.share-facebook {
    background: #2463a9;
}

.share-copy {
    background: var(--dark-soft);
}

/* Conteúdo */

.single-content {
    color: #293440;
    font-size: 18px;
    line-height: 1.85;
}

.single-content > *:first-child {
    margin-top: 0;
}

.single-content p {
    margin: 0 0 1.45em;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    color: var(--text);
    line-height: 1.25;
}

.single-content h2 {
    margin: 1.7em 0 0.7em;
    font-size: 30px;
}

.single-content h3 {
    margin: 1.5em 0 0.6em;
    font-size: 24px;
}

.single-content ul,
.single-content ol {
    margin-bottom: 1.5em;
}

.single-content blockquote {
    margin: 30px 0;
    padding: 8px 0 8px 25px;
    color: #44515e;
    font-size: 21px;
    font-style: italic;
    border-left: 5px solid var(--primary);
}

.single-content img {
    border-radius: 6px;
}

.single-content a {
    color: var(--primary);
    text-decoration: underline;
}

/* Publicidade após artigo */

.single-article-ad {
    width: 100%;
    margin-top: 35px;
    padding: 28px 0 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.single-article-ad .widget {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.single-article-ad .theme-advertisement,
.single-article-ad .theme-advertisement-code,
.single-article-ad .ad-horizontal {
    width: 100%;
    max-width: 728px;
    margin-inline: auto;
}

.single-article-ad img,
.single-article-ad .theme-advertisement-image {
    width: 100%;
    max-width: 728px;
    height: auto;
    display: block;
    margin-inline: auto;
    object-fit: contain;
}

/* Tags */

.single-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.single-tags-label {
    margin-right: 5px;
    font-weight: 800;
}

.single-tags a {
    padding: 5px 11px;
    background: var(--light);
    color: var(--muted);
    font-size: 12px;
    border-radius: 4px;
}

.single-tags a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Navegação entre notícias */

.single-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.single-post-previous,
.single-post-next {
    min-width: 0;
}

.single-post-next {
    text-align: right;
}

.single-post-navigation span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.single-post-navigation a {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

.single-post-navigation a:hover {
    color: var(--primary);
}

/* Notícias relacionadas */

.related-posts {
    margin-top: 28px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.related-posts-header {
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.related-posts-eyebrow {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.related-posts-header h2 {
    margin: 4px 0 0;
    font-size: 27px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.related-post-card {
    min-width: 0;
}

.related-post-image {
    aspect-ratio: 16 / 10;
    display: block;
    overflow: hidden;
    background: #dfe4e9;
    border-radius: 5px;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 250ms ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 12px;
}

.related-post-content {
    padding-top: 13px;
}

.related-post-category {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.related-post-content h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

.related-post-content h3 a:hover {
    color: var(--primary);
}

.related-post-content time {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
}
/* =========================================================
   ARQUIVOS, CATEGORIAS, TAGS E AUTORES
   ========================================================= */

.archive-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
}

.archive-content-area {
    min-width: 0;
}

/* Cabeçalho */

.archive-header {
    margin-bottom: 25px;
    padding: 28px 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius);
}

.archive-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.archive-title {
    margin: 0;
    color: var(--text);
    font-size: 34px;
    line-height: 1.2;
}

.archive-description {
    max-width: 850px;
    margin-top: 13px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.archive-description p {
    margin: 0;
}

/* Lista de notícias */

.archive-posts-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.archive-post-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.archive-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgb(28 37 48 / 10%);
}

.archive-post-image {
    min-height: 245px;
    display: block;
    overflow: hidden;
    background: #dfe4e9;
}

.archive-post-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 350ms ease;
}

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

.archive-post-placeholder {
    width: 100%;
    height: 100%;
    min-height: 245px;
    display: grid;
    place-items: center;
    padding: 20px;
    color: var(--muted);
    text-align: center;
}

.archive-post-content {
    min-width: 0;
    padding: 26px;
}

.archive-post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 11px;
}

.archive-post-categories a {
    display: inline-flex;
    padding: 4px 10px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    border-radius: 3px;
}

.archive-post-categories a:hover {
    background: var(--primary-dark);
}

.archive-post-title {
    margin: 0;
    font-size: 25px;
    line-height: 1.3;
}

.archive-post-title a:hover {
    color: var(--primary);
}

.archive-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

.archive-post-meta a {
    color: var(--primary);
    font-weight: 700;
}

.archive-post-excerpt {
    margin-top: 15px;
    color: #53606d;
    font-size: 15px;
    line-height: 1.7;
}

.archive-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.archive-read-more span {
    transition: transform 180ms ease;
}

.archive-read-more:hover span {
    transform: translateX(4px);
}

/* Paginação */

.archive-pagination {
    margin-top: 32px;
}

.archive-pagination .navigation {
    margin: 0;
}

.archive-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.archive-pagination .page-numbers {
    min-width: 42px;
    min-height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 6px 13px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.archive-back-home {
    display: inline-flex;
    margin-top: 15px;
    padding: 10px 17px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    border-radius: 4px;
}

.archive-back-home:hover {
    background: var(--primary-dark);
}

/* =========================================================
   PÁGINA DE PESQUISA
   ========================================================= */

.search-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
}

.search-content-area {
    min-width: 0;
}

/* Cabeçalho */

.search-header {
    margin-bottom: 25px;
    padding: 28px 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius);
}

.search-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-title {
    margin: 0;
    color: var(--text);
    font-size: 34px;
    line-height: 1.25;
}

.search-title span {
    color: var(--primary);
}

.search-result-count {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.search-header-form {
    max-width: 620px;
    margin-top: 22px;
}

/* Formulário de pesquisa geral */

.search-form {
    width: 100%;
    display: flex;
    gap: 9px;
}

.search-form label {
    min-width: 0;
    flex: 1;
}

.search-field {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    color: var(--text);
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 5px;
    outline: none;
}

.search-field:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(8 125 193 / 12%);
}

.search-submit {
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 5px;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
    transition: background-color 180ms ease;
}

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

/* Lista de resultados */

.search-posts-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.search-post-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.search-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgb(28 37 48 / 10%);
}

.search-post-image {
    min-height: 245px;
    display: block;
    overflow: hidden;
    background: #dfe4e9;
}

.search-post-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 350ms ease;
}

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

.search-post-placeholder {
    width: 100%;
    height: 100%;
    min-height: 245px;
    display: grid;
    place-items: center;
    padding: 20px;
    color: var(--muted);
    text-align: center;
}

.search-post-content {
    min-width: 0;
    padding: 26px;
}

.search-post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 11px;
}

.search-post-categories a {
    display: inline-flex;
    padding: 4px 10px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    border-radius: 3px;
}

.search-post-categories a:hover {
    background: var(--primary-dark);
}

.search-post-title {
    margin: 0;
    font-size: 25px;
    line-height: 1.3;
}

.search-post-title a:hover {
    color: var(--primary);
}

.search-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

.search-post-meta a {
    color: var(--primary);
    font-weight: 700;
}

.search-post-excerpt {
    margin-top: 15px;
    color: #53606d;
    font-size: 15px;
    line-height: 1.7;
}

.search-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.search-read-more span {
    transition: transform 180ms ease;
}

.search-read-more:hover span {
    transform: translateX(4px);
}

/* Paginação */

.search-pagination {
    margin-top: 32px;
}

.search-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-pagination .page-numbers {
    min-width: 42px;
    min-height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 6px 13px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.search-pagination .page-numbers.current,
.search-pagination .page-numbers:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Nenhum resultado */

.search-empty {
    padding: 50px 35px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.search-empty-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    background: rgb(8 125 193 / 10%);
    color: var(--primary);
    font-size: 40px;
    border-radius: 50%;
}

.search-empty h2 {
    margin: 0;
    font-size: 28px;
}

.search-empty p {
    max-width: 580px;
    margin: 13px auto 0;
    color: var(--muted);
    line-height: 1.7;
}

.search-empty-form {
    max-width: 600px;
    margin: 25px auto 0;
}

.search-back-home {
    display: inline-flex;
    margin-top: 22px;
    padding: 10px 18px;
    background: var(--dark-soft);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    border-radius: 4px;
}

.search-back-home:hover {
    background: var(--primary);
}

/* Texto acessível oculto visualmente */

.screen-reader-text {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}
/* =========================================================
   PÁGINAS INSTITUCIONAIS
   ========================================================= */

.page-template-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
}

.page-template-content {
    min-width: 0;
}

.page-article {
    padding: 38px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.page-article-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.page-article-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-article-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.page-article-description {
    max-width: 850px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

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

.page-featured-image img {
    width: 100%;
    max-height: 620px;
    display: block;
    object-fit: cover;
    border-radius: var(--radius);
}

.page-featured-image figcaption {
    padding-top: 9px;
    color: var(--muted);
    font-size: 12px;
}

.page-article-content {
    color: #293440;
    font-size: 17px;
    line-height: 1.85;
}

.page-article-content > *:first-child {
    margin-top: 0;
}

.page-article-content p {
    margin: 0 0 1.4em;
}

.page-article-content h2,
.page-article-content h3,
.page-article-content h4 {
    color: var(--text);
    line-height: 1.3;
}

.page-article-content h2 {
    margin: 1.6em 0 0.7em;
    font-size: 29px;
}

.page-article-content h3 {
    margin: 1.4em 0 0.6em;
    font-size: 23px;
}

.page-article-content ul,
.page-article-content ol {
    margin-bottom: 1.5em;
}

.page-article-content blockquote {
    margin: 28px 0;
    padding: 8px 0 8px 24px;
    color: #485562;
    font-size: 20px;
    font-style: italic;
    border-left: 5px solid var(--primary);
}

.page-article-content a {
    color: var(--primary);
    text-decoration: underline;
}

.page-article-content img {
    border-radius: 6px;
}

.page-back-home {
    display: inline-flex;
    margin-top: 15px;
    padding: 10px 17px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    border-radius: 4px;
}

.page-back-home:hover {
    background: var(--primary-dark);
}
/* =========================================================
   PÁGINA 404
   ========================================================= */

.error-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
}

.error-content-area {
    min-width: 0;
}

.error-box {
    padding: 55px 45px;
    overflow: hidden;
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.error-code {
    display: block;
    margin-bottom: 8px;
    color: rgb(8 125 193 / 10%);
    font-size: clamp(110px, 17vw, 190px);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.08em;
}

.error-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.error-title {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text);
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.2;
}

.error-description {
    max-width: 650px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.error-search {
    max-width: 620px;
    margin: 28px auto 0;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.error-home-button,
.error-back-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.error-home-button {
    background: var(--primary);
    color: var(--white);
}

.error-home-button:hover {
    background: var(--primary-dark);
}

.error-back-button {
    background: var(--light);
    color: var(--text);
    border: 1px solid var(--border);
}

.error-back-button:hover {
    background: var(--dark-soft);
    color: var(--white);
}

/* Últimas notícias da página 404 */

.error-latest-posts {
    margin-top: 28px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.error-section-header {
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.error-section-eyebrow {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.error-section-header h2 {
    margin: 4px 0 0;
    font-size: 28px;
}

.error-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.error-post-card {
    min-width: 0;
}

.error-post-image {
    aspect-ratio: 16 / 10;
    display: block;
    overflow: hidden;
    background: #dfe4e9;
    border-radius: 5px;
}

.error-post-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 250ms ease;
}

.error-post-card:hover .error-post-image img {
    transform: scale(1.05);
}

.error-post-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 12px;
}

.error-post-content {
    padding-top: 13px;
}

.error-post-category {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.error-post-content h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

.error-post-content h3 a:hover {
    color: var(--primary);
}

.error-post-content time {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
}

.footer-branding {
    max-width: 390px;
}

.footer-logo {
    display: inline-flex;
}

.footer-logo img,
.footer-logo-image {
    width: auto;
    height: auto;
    max-width: 220px;
    max-height: 90px;
    display: block;
    object-fit: contain;
}

.footer-site-name {
    display: inline-block;
    color: var(--white);
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
}

.footer-description {
    margin: 18px 0 0;
    color: #b4bdc7;
    font-size: 14px;
    line-height: 1.8;
}
/* =========================================================
   RODAPÉ PROFISSIONAL
   ========================================================= */

.footer-top-ad {
    padding: 30px 0;
    background: var(--white);
}

.footer-top-ad .widget {
    margin: 0;
}

.footer-top-ad img {
    max-height: 90px;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.site-footer {
    background: var(--dark);
    color: #dbe0e5;
}

.footer-grid {
    padding: 55px 0;
    display: grid;
    grid-template-columns:
        minmax(220px, 1.3fr)
        minmax(170px, 0.8fr)
        minmax(170px, 0.8fr)
        minmax(280px, 1.4fr);
    gap: 38px;
    align-items: start;
}

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

.footer-column h2 {
    margin: 0 0 22px;
    padding-bottom: 12px;
    color: var(--white);
    font-size: 17px;
    line-height: 1.3;
    text-transform: uppercase;
    border-bottom: 3px solid var(--primary);
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column li {
    padding: 8px 0;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.footer-column a {
    transition: color 180ms ease;
}

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

/* Identidade */

.footer-branding {
    max-width: 360px;
}

.footer-logo {
    display: inline-flex;
    max-width: 100%;
}

.footer-logo img,
.footer-logo-image {
    width: auto;
    height: auto;
    max-width: 220px;
    max-height: 90px;
    display: block;
    object-fit: contain;
}

.footer-site-name {
    display: inline-block;
    color: var(--white);
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
}

.footer-description {
    margin: 18px 0 0;
    color: #b4bdc7;
    font-size: 14px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 10px;
    background: var(--dark-soft);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 4px;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Publicidades */

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

.footer-ad-item {
    min-width: 0;
}

.footer-ad-item .widget {
    margin: 0;
}

.footer-ad-item img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-ad-grid .ad-placeholder {
    min-height: 170px;
    padding: 15px;
    background: var(--dark-soft);
    border-color: #434d58;
}

/* Parte inferior */

.footer-bottom {
    padding: 20px 0;
    background: #090d12;
    color: #929ba5;
    text-align: center;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--white);
    font-weight: 700;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* =========================================================
   WIDGET DE PUBLICIDADE
   ========================================================= */

.fagnerdias-publicidade-widget {
    width: 100%;
    margin: 0;
}

.theme-advertisement {
    width: 100%;
    overflow: hidden;
}

.theme-advertisement-link {
    width: 100%;
    display: block;
}

.theme-advertisement-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.theme-advertisement-code {
    width: 100%;
    overflow: hidden;
}

.theme-advertisement-code iframe,
.theme-advertisement-code img,
.theme-advertisement-code video,
.theme-advertisement-code ins {
    max-width: 100%;
}

.theme-advertisement-code iframe {
    display: block;
    margin-inline: auto;
}

/* Remove espaços extras dos widgets de publicidade */

.header-ad .fagnerdias-publicidade-widget,
.footer-top-ad .fagnerdias-publicidade-widget,
.footer-ad-item .fagnerdias-publicidade-widget,
.sidebar-ad-area .fagnerdias-publicidade-widget,
.home-content-ad .fagnerdias-publicidade-widget,
.home-middle-ad .fagnerdias-publicidade-widget,
.single-article-ad .fagnerdias-publicidade-widget {
    padding: 0;
    border: 0;
    background: transparent;
}

/* Tablets */
@media (max-width: 1100px) {

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

@media (max-width: 780px) {

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

    .footer-branding {
        max-width: none;
    }

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

@media (max-width: 480px) {

    .footer-ad-grid {
        grid-template-columns: 1fr;
    }

    .footer-logo img,
    .footer-logo-image {
        max-width: 190px;
        max-height: 80px;
    }
}
@media (max-width: 1050px) {
    .header-main-content {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 25px;
    }

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

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

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

    .home-featured {
        grid-template-rows: repeat(2, 210px);
    }

    .featured-card-title {
        font-size: 28px;
    }

    .featured-small .featured-card-title {
        font-size: 18px;
    }

    .home-posts-grid {
        grid-template-columns: 1fr;
    }
    .single-page-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 25px;
}

.single-article {
    padding: 30px;
}

.related-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.archive-page-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 25px;
}

.archive-post-card {
    grid-template-columns: 260px minmax(0, 1fr);
}

.archive-post-image,
.archive-post-placeholder {
    min-height: 230px;
}

.archive-post-content {
    padding: 22px;
}

.archive-post-title {
    font-size: 22px;
}
.page-template-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 25px;
}

.page-article {
    padding: 30px;
}
.error-page-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 25px;
}

.error-box {
    padding: 45px 30px;
}

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


/* Celulares */

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

    .topbar-message {
        display: none;
    }

    .topbar-content {
        justify-content: flex-end;
    }

    .header-main-content {
        min-height: auto;
        padding: 25px 0;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .site-branding {
        text-align: center;
    }

    .header-ad {
        width: 100%;
    }

    .navigation-content {
        position: relative;
    }

    .main-menu {
        position: absolute;
        top: 54px;
        left: -14px;
        right: -14px;
        display: none;
        flex-direction: column;
        background: var(--primary);
        box-shadow: 0 12px 25px rgb(0 0 0 / 20%);
    }

    .main-menu.is-open {
        display: flex;
    }

    .main-menu a {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid rgb(255 255 255 / 14%);
    }

    .main-menu .sub-menu {
        position: static;
        display: block;
        width: 100%;
        box-shadow: none;
    }

    .main-menu .sub-menu a {
        padding-left: 40px;
    }

    .menu-toggle {
        display: block;
    }

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

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

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

    .home-middle-ad {
        padding: 12px;
    }

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

    .footer-ad-grid {
        grid-template-columns: 1fr;
    }

    .home-featured {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .featured-main {
        grid-row: auto;
        min-height: 360px;
    }

    .featured-small {
        min-height: 240px;
    }

    .featured-card-title {
        font-size: 27px;
    }

    .featured-small .featured-card-title {
        font-size: 21px;
    }

    .featured-card-content,
    .featured-small .featured-card-content {
        padding: 20px;
    }

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

    .home-posts-grid {
        grid-template-columns: 1fr;
    }

    .home-section-header {
        align-items: flex-start;
    }

    .home-section-header h1 {
        font-size: 24px;
    }
    .sidebar-widget {
    padding: 20px;
}

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

.sidebar-news-image {
    width: 105px;
    height: 82px;
}
.single-page-layout {
    grid-template-columns: 1fr;
}

.single-article {
    padding: 22px;
}

.single-title {
    font-size: 34px;
}

.single-subtitle {
    font-size: 17px;
}

.single-content {
    font-size: 17px;
}

.single-post-navigation {
    grid-template-columns: 1fr;
}

.single-post-next {
    text-align: left;
}

.related-posts {
    padding: 22px;
}

.related-posts-grid {
    grid-template-columns: 1fr;
}
.archive-page-layout {
    grid-template-columns: 1fr;
}

.archive-header {
    padding: 23px;
}

.archive-title {
    font-size: 29px;
}

.archive-post-card {
    grid-template-columns: 1fr;
}

.archive-post-image {
    min-height: auto;
    aspect-ratio: 16 / 9;
}

.archive-post-placeholder {
    min-height: auto;
    aspect-ratio: 16 / 9;
}

.archive-post-content {
    padding: 21px;
}

.archive-post-title {
    font-size: 21px;
}
.search-page-layout {
    grid-template-columns: 1fr;
}

.search-header {
    padding: 23px;
}

.search-title {
    font-size: 28px;
}

.search-form {
    flex-direction: column;
}

.search-submit {
    width: 100%;
}

.search-post-card {
    grid-template-columns: 1fr;
}

.search-post-image {
    min-height: auto;
    aspect-ratio: 16 / 9;
}

.search-post-placeholder {
    min-height: auto;
    aspect-ratio: 16 / 9;
}

.search-post-content {
    padding: 21px;
}

.search-post-title {
    font-size: 21px;
}

.search-empty {
    padding: 38px 22px;
}
.page-template-layout {
    grid-template-columns: 1fr;
}

.page-article {
    padding: 22px;
}

.page-article-title {
    font-size: 34px;
}

.page-article-description {
    font-size: 17px;
}

.page-article-content {
    font-size: 16px;
}
.error-page-layout {
    grid-template-columns: 1fr;
}

.error-box {
    padding: 40px 22px;
}

.error-code {
    font-size: 105px;
}

.error-title {
    font-size: 31px;
}

.error-actions {
    flex-direction: column;
}

.error-home-button,
.error-back-button {
    width: 100%;
}

.error-latest-posts {
    padding: 22px;
}

.error-posts-grid {
    grid-template-columns: 1fr;
}
}
/* =========================================================
   HEADER PROFISSIONAL - VERSÃO 2
   ========================================================= */

.site-header {
    position: relative;
    z-index: 100;
}

/* Barra superior */

.topbar {
    min-height: 40px;
    background: var(--dark);
    color: rgb(255 255 255 / 78%);
    border-bottom: 1px solid rgb(255 255 255 / 8%);
    font-size: 12px;
}

.topbar-content {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.topbar-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.topbar-date {
    flex: 0 0 auto;
    color: var(--white);
    font-weight: 700;
}

.topbar-divider {
    width: 1px;
    height: 15px;
    flex: 0 0 auto;
    background: rgb(255 255 255 / 25%);
}

.topbar-message {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-social {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-social-label {
    color: rgb(255 255 255 / 50%);
}

.topbar-social a {
    color: var(--white);
    font-weight: 700;
    transition:
        color 180ms ease,
        opacity 180ms ease;
}

.topbar-social a:hover {
    color: var(--accent);
    opacity: 1;
}

/* Logo e banner */

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

.header-main-content {
    min-height: 145px;
    display: grid;
    grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
    align-items: center;
    gap: 50px;
    padding-block: 22px;
}

.site-branding {
    min-width: 0;
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.site-branding .custom-logo {
    width: auto;
    height: auto;
    max-width: 260px;
    max-height: 105px;
    display: block;
    object-fit: contain;
}

.site-identity-text {
    min-width: 0;
}

.site-title {
    margin: 0;
    color: var(--primary);
    font-size: 38px;
    font-weight: 900;
    line-height: 1.05;
}

.site-description {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.header-ad {
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-ad .widget {
    width: 100%;
    max-width: 728px;
    margin: 0;
}

.header-ad .widget-title {
    display: none;
}

.header-ad img {
    width: 100%;
    height: auto;
    max-height: 100px;
    display: block;
    object-fit: contain;
}

.header-ad .ad-placeholder {
    min-height: 90px;
    border-radius: 5px;
}

/* Navegação fixa */

.main-navigation {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--primary);
    box-shadow: 0 5px 18px rgb(0 0 0 / 13%);
}

body.admin-bar .main-navigation {
    top: 32px;
}

.navigation-content {
    min-height: 58px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.main-menu {
    min-width: 0;
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.main-menu > li > a {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    border-right: 1px solid rgb(255 255 255 / 13%);
    transition:
        background-color 180ms ease,
        color 180ms ease;
}

.main-menu > li:first-child > a {
    border-left: 1px solid rgb(255 255 255 / 13%);
}

.main-menu > li > a:hover,
.main-menu > .current-menu-item > a,
.main-menu > .current-menu-parent > a,
.main-menu > .current-category-ancestor > a {
    background: var(--primary-dark);
    color: var(--white);
}

/* Submenu */

.main-menu .sub-menu {
    min-width: 235px;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    display: none;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    box-shadow: 0 16px 35px rgb(0 0 0 / 16%);
}

.main-menu li:hover > .sub-menu,
.main-menu li:focus-within > .sub-menu {
    display: block;
}

.main-menu .sub-menu li {
    width: 100%;
}

.main-menu .sub-menu a {
    min-height: 43px;
    display: flex;
    align-items: center;
    padding: 8px 17px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    border: 0;
    border-bottom: 1px solid var(--border);
}

.main-menu .sub-menu li:last-child a {
    border-bottom: 0;
}

.main-menu .sub-menu a:hover {
    background: var(--light);
    color: var(--primary);
}


/* Botão do menu móvel */

.menu-toggle {
    display: none;
    align-items: center;
    gap: 9px;
    min-height: 58px;
    margin: 0;
    padding: 0 16px;
    background: transparent;
    color: var(--white);
    border: 0;
    cursor: pointer;
}

.menu-toggle-icon {
    width: 23px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle-icon span {
    width: 100%;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 10px;
}

.menu-toggle-text {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 600px) {

    .pagination {
        padding: 16px;
    }

    .pagination .nav-links,
    .pagination ul.page-numbers {
        gap: 6px;
    }

    .pagination .page-numbers {
        min-width: 38px;
        min-height: 38px;
        padding: 6px 11px;
        font-size: 14px;
    }
}

/* =========================================================
   CORREÇÃO FINAL DO HEADER RESPONSIVO
   Mantida no final do arquivo para sobrescrever a versão 2.
   ========================================================= */

@media (max-width: 780px) {

    .topbar {
        min-height: auto;
    }

    .topbar-content {
        min-height: auto;
        padding-block: 10px;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        text-align: center;
    }

    .topbar-left {
        width: 100%;
        justify-content: center;
    }

    .topbar-message,
    .topbar-divider,
    .topbar-social-label {
        display: none;
    }

    .topbar-date {
        white-space: normal;
        line-height: 1.35;
    }

    .topbar-social {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 7px 14px;
    }

    .header-main-content {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 20px;
        padding-block: 22px;
    }

    .site-branding {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .custom-logo-link {
        justify-content: center;
    }

    .site-branding .custom-logo,
    .site-branding img {
        width: auto;
        max-width: min(240px, 82vw);
        max-height: 100px;
    }

    .header-ad {
        width: 100%;
        justify-content: center;
        overflow: hidden;
    }

    .header-ad .widget,
    .header-ad .fagnerdias-publicidade-widget,
    .header-ad .theme-advertisement,
    .header-ad .theme-advertisement-link,
    .header-ad .theme-advertisement-code,
    .header-ad .ad-horizontal {
        width: 100%;
        max-width: 728px;
        margin-inline: auto;
    }

    .header-ad img,
    .header-ad .theme-advertisement-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 90px;
        margin-inline: auto;
        object-fit: contain;
    }

    .header-ad iframe {
        width: 100%;
        max-width: 100%;
    }

    .main-navigation {
        position: sticky;
        top: 0;
    }

    body.admin-bar .main-navigation {
        top: 46px;
    }

    .navigation-content {
        min-height: 54px;
        position: relative;
        align-items: center;
    }

    .menu-toggle {
        min-height: 54px;
        display: inline-flex;
        margin: 0;
        padding: 0 4px;
    }

    .main-menu {
        width: calc(100% + 28px);
        max-height: calc(100vh - 54px);
        position: absolute;
        top: 100%;
        left: -14px;
        right: auto;
        z-index: 1000;
        display: none;
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        background: var(--primary);
        box-shadow: 0 14px 28px rgb(0 0 0 / 24%);
    }

    .main-menu.is-open {
        display: flex;
    }

    .main-menu > li {
        width: 100%;
        display: block;
    }

    .main-menu > li > a,
    .main-menu a {
        width: 100%;
        min-height: 50px;
        padding: 11px 18px;
        border: 0;
        border-bottom: 1px solid rgb(255 255 255 / 14%);
    }

    .main-menu > li:first-child > a {
        border-left: 0;
    }

    .main-menu .sub-menu {
        width: 100%;
        min-width: 0;
        position: static;
        display: block;
        padding: 0;
        background: var(--primary-dark);
        border: 0;
        box-shadow: none;
    }

    .main-menu .sub-menu a {
        min-height: 45px;
        padding: 9px 18px 9px 38px;
        color: var(--white);
        background: var(--primary-dark);
        border-bottom: 1px solid rgb(255 255 255 / 10%);
    }

    .main-menu .sub-menu a:hover {
        color: var(--white);
        background: rgb(0 0 0 / 12%);
    }
}

@media (max-width: 480px) {

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

    .main-menu {
        width: calc(100% + 24px);
        left: -12px;
    }

    .site-branding .custom-logo,
    .site-branding img {
        max-width: min(215px, 80vw);
        max-height: 88px;
    }

    .header-ad img,
    .header-ad .theme-advertisement-image {
        max-height: 72px;
    }
}

