/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--ab-font-base);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ab-color-text);
    background: #fff;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    background: var(--ab-color-primary);
    color: var(--ab-color-text-light);
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: .45rem;
}

.topbar__left,
.topbar__right {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.topbar__menu {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.topbar__menu a {
    color: rgba(255,255,255,.75);
    font-weight: 500;
    transition: color var(--ab-transition);
}
.topbar__menu a:hover { color: var(--ab-color-accent); text-decoration: none; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
    color: var(--ab-color-text-light);
    position: sticky;
    top: 0;
    z-index: 100;
    isolation: isolate;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    background: linear-gradient(90deg,
        var(--ab-header-grad-edge, #030917) 0%,
        var(--ab-header-grad-center, #0C1A3D) 19.22%,
        var(--ab-header-grad-center, #0C1A3D) 80.37%,
        var(--ab-header-grad-edge, #030917) 100%
    );
}
.category .site-header,
.page-template-page-latest-news .site-header {
    box-shadow: none;
}

.site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding-block: .85rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-self: start;
}

.header-center {
    justify-self: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: .35rem;
    justify-self: end;
}

/* A+ A- buttons */
.font-size-btn {
    background: transparent;
    border: none;
    color: var(--ab-header-icon-color);
    cursor: pointer;
    padding: .2rem .25rem;
    font-size: .78rem;
    font-weight: 700;
    transition: color var(--ab-transition);
    line-height: 1;
}
.font-size-btn:hover {
    color: var(--ab-header-icon-hover);
}

/* Header divider */
.header-divider {
    color: rgba(255,255,255,.25);
    font-size: 1.1rem;
    user-select: none;
}

/* Search toggle button */
.header-search-toggle {
    background: transparent;
    border: none;
    color: var(--ab-header-icon-color);
    cursor: pointer;
    padding: .4rem;
    display: flex;
    align-items: center;
    transition: color var(--ab-transition);
}
.header-search-toggle:hover { color: var(--ab-header-icon-hover); }

/* Inline search bar */
.header-search-bar {
    background: rgba(0,0,0,.25);
    border-top: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
}
.header-search-bar.is-open {
    max-height: 70px;
}
.header-search-bar__form {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 0;
    color: rgba(255,255,255,.5);
}
.header-search-bar__input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: .95rem;
    padding: .3rem 0;
    outline: none;
}
.header-search-bar__input::placeholder { color: rgba(255,255,255,.45); }
.header-search-bar__submit {
    background: var(--ab-color-accent);
    color: #000;
    border: none;
    padding: .35rem .9rem;
    font-size: .8rem;
    font-weight: 700;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity .2s;
}
.header-search-bar__submit:hover { opacity: .85; }

/* Branding */
.site-branding {
    text-align: center;
}

.site-branding__name {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.5px;
    color: var(--ab-color-text-light);
}

.site-branding__name:hover { text-decoration: none; opacity: .9; }

.site-branding__tagline {
    font-size: .7rem;
    color: rgba(255,255,255,.55);
    margin-top: .15rem;
}

.custom-logo { max-height: 52px; width: auto; }

/* Header actions (lado direito — busca) */
.header-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
    min-width: 60px;
    justify-content: flex-end;
}

/* Hamburger / sidebar toggle */
.sidebar-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: .4rem;
}
.nav-toggle__bar {
    width: 22px;
    height: 2px;
    background: var(--ab-header-icon-color);
    border-radius: 2px;
    display: block;
    transition: transform var(--ab-transition), opacity var(--ab-transition), background var(--ab-transition);
}
.sidebar-toggle:hover .nav-toggle__bar { background: var(--ab-header-icon-hover); }

/* ============================================================
   SIDEBAR NAV PANEL
   ============================================================ */
.sidebar-overlay {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.55);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    pointer-events: none;
}
.sidebar-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sidebar-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 320px;
    max-width: 85vw;
    background: linear-gradient(180deg,
        var(--ab-header-grad-center, #0C1A3D) 0%,
        var(--ab-header-grad-edge, #030917) 100%
    );
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.3) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.3);
    border-radius: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.55); }
.sidebar-nav.is-open {
    transform: translateX(0);
    visibility: visible;
}
.sidebar-nav.is-open::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: min(320px, 85vw);
    height: 60px;
    background: linear-gradient(to top, rgba(13,27,42,.85) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Admin bar offset */
.admin-bar .sidebar-nav     { top: 32px; height: calc(100dvh - 32px); }
.admin-bar .sidebar-overlay { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .sidebar-nav     { top: 46px; height: calc(100dvh - 46px); }
    .admin-bar .sidebar-overlay { top: 46px; }
}

/* Sidebar top bar: Pesquisar | A+ A- X */
.sidebar-nav__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.25rem .75rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
.sidebar-nav__search-label {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: rgba(255,255,255,.6);
}
.sidebar-nav__topbar-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.sidebar-font-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,.75);
    font-size: .8rem;
    font-weight: 700;
    padding: .2rem .1rem;
    cursor: pointer;
    transition: color .15s;
    line-height: 1;
}
.sidebar-font-btn:hover { color: var(--ab-header-icon-hover); }
.sidebar-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,.6);
    cursor: pointer;
    padding: .2rem;
    display: flex;
    align-items: center;
    transition: color var(--ab-transition);
}
.sidebar-close:hover { color: var(--ab-header-icon-hover); }

/* Sidebar search input */
.sidebar-search {
    padding: .85rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
.sidebar-search__form {
    display: flex;
    align-items: stretch;
    gap: .5rem;
}
.sidebar-search__input {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 5px;
    color: #fff;
    padding: .6rem .85rem;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}
.sidebar-search__input::placeholder { color: rgba(255,255,255,.4); }
.sidebar-search__input:focus { border-color: rgba(255,255,255,.5); }
.sidebar-search__btn {
    background: var(--ab-header-accent-1, var(--ab-color-accent));
    border: none;
    color: #000;
    width: 2.4rem;
    flex-shrink: 0;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s;
}
.sidebar-search__btn:hover { background: var(--ab-header-icon-hover); opacity: 1; }

/* Menu label */
.sidebar-nav__menu-label {
    padding: .75rem 1.25rem .4rem;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: rgba(255,255,255,.5);
    flex-shrink: 0;
}

.sidebar-nav__menu {
    flex: 1;
    padding: .5rem 0;
}
.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1.25rem;
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: background var(--ab-transition), color var(--ab-transition), padding-left var(--ab-transition);
    text-decoration: none;
}
.sidebar-menu li a::after {
    content: '›';
    font-size: 1.1rem;
    color: rgba(255,255,255,.3);
}
.sidebar-menu li a:hover {
    background: rgba(255,255,255,.06);
    color: var(--ab-header-icon-hover);
    padding-left: 1.6rem;
    text-decoration: none;
}
.sidebar-menu li.current-menu-item > a,
.sidebar-menu li.current_page_item > a {
    color: var(--ab-color-accent);
    border-left: 3px solid var(--ab-color-accent);
    padding-left: calc(1.25rem - 3px);
}
/* Sub-menus in sidebar */
.sidebar-menu .sub-menu {
    background: rgba(0,0,0,.15);
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-menu .sub-menu a {
    padding-left: 2rem;
    font-size: .85rem;
    color: rgba(255,255,255,.65);
}
.sidebar-menu .sub-menu a::after { display: none; }

/* ============================================================
   MAIN NAVIGATION
   ============================================================ */
.main-navigation {
    background: transparent;
    border-top: 1px solid rgba(255,255,255,.18);
    border-bottom: 1px solid rgba(255,255,255,.18);
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
}
.main-navigation::-webkit-scrollbar { display: none; }

.main-navigation__menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    align-items: center;
    justify-content: center;
    min-width: 100%;
}

.main-navigation__menu > li > a {
    display: block;
    padding: .65rem 1rem;
    color: rgba(255,255,255,.85);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color var(--ab-transition), background var(--ab-transition);
    white-space: nowrap;
}
.main-navigation__menu > li > a:hover,
.main-navigation__menu > .current-menu-item > a,
.main-navigation__menu > .current-menu-ancestor > a {
    color: var(--ab-color-accent);
    text-decoration: none;
    background: rgba(255,255,255,.04);
}


/* Sub-menus */
.main-navigation__menu .sub-menu {
    position: absolute;
    background: var(--ab-color-primary);
    min-width: 200px;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--ab-transition), transform var(--ab-transition), visibility var(--ab-transition);
    z-index: 99;
}
.main-navigation__menu li { position: relative; }
.main-navigation__menu li:hover > .sub-menu,
.main-navigation__menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-navigation__menu .sub-menu a {
    display: block;
    padding: .5rem 1rem;
    color: rgba(255,255,255,.8);
    font-size: .8rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.main-navigation__menu .sub-menu a:hover { color: var(--ab-color-accent); }

/* Mobile nav search — hidden on desktop */
.mobile-nav-search { display: none; }

/* Header search form (inline) */
.header-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    overflow: hidden;
    transition: background var(--ab-transition), border-color var(--ab-transition);
}
.header-search-form:focus-within {
    background: rgba(255,255,255,.18);
    border-color: var(--ab-header-icon-hover);
}

.header-search-form__btn {
    background: transparent;
    border: none;
    color: var(--ab-header-icon-color);
    cursor: pointer;
    padding: .4rem .6rem .4rem .75rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color var(--ab-transition);
}
.header-search-form:focus-within .header-search-form__btn,
.header-search-form__btn:hover { color: var(--ab-header-icon-hover); }

.header-search-form__input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--ab-color-text-light);
    font-size: .85rem;
    font-family: var(--ab-font-base);
    width: 160px;
    padding: .4rem .75rem .4rem 0;
    transition: width var(--ab-transition);
}
.header-search-form__input::placeholder { color: rgba(255,255,255,.45); }
.header-search-form__input:focus { width: 220px; }

@media (max-width: 900px) {
    .header-search-form__input { width: 120px; }
    .header-search-form__input:focus { width: 160px; }
}

/* ============================================================
   BADGE (category tag)
   ============================================================ */
.badge {
    display: inline-block;
    width: fit-content;
    align-self: flex-start;
    background: var(--ab-color-accent);
    color: #000;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .18rem .55rem;
    border-radius: 4px;
    margin-bottom: .5rem;
}
.badge:hover { opacity: .85; text-decoration: none; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid var(--ab-color-accent);
    padding-left: .75rem;
    margin-bottom: 1.25rem;
}

.section-header__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ab-color-text);
}

.section-header__more {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ab-color-primary);
    opacity: .7;
    transition: opacity var(--ab-transition);
}
.section-header__more:hover { opacity: 1; text-decoration: none; }

.section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ab-color-primary);
    padding: .5rem 0;
    margin: 0 0 1.25rem;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 1.1em;
    background: var(--ab-color-accent);
    border-radius: 3px;
    flex-shrink: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: #fff;
    padding: 1.5rem 0 0;
    border-bottom: 1px solid var(--ab-color-border);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.hero__main { position: relative; }

.hero__img-link {
    display: block;
    overflow: hidden;
    border-radius: var(--ab-img-radius, 6px);
    border-bottom: 4px solid var(--ab-color-accent);
}
.hero__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform .4s ease;
}
.hero__img-link:hover .hero__img { transform: scale(1.03); }

.hero__aside { padding-bottom: 1.5rem; }

.hero__title {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: .6rem;
    color: var(--ab-color-text);
}
.hero__title a { color: inherit; }
.hero__title a:hover { color: var(--ab-color-primary); text-decoration: none; }

.hero__meta { font-size: .8rem; color: #777; margin-bottom: .35rem; }
.hero__excerpt {
    color: #555;
    font-size: .93rem;
    margin-bottom: 1rem;
}

.hero__secondary-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ab-color-primary);
    border-left: 3px solid var(--ab-color-accent);
    padding-left: .5rem;
    margin-bottom: .6rem;
}

.hero__secondary-list { display: flex; flex-direction: column; gap: .5rem; }
.hero__secondary-list a {
    font-size: .88rem;
    font-weight: 600;
    color: var(--ab-color-text);
    display: flex;
    gap: .35rem;
    align-items: baseline;
}
.hero__secondary-list a:hover { color: var(--ab-color-primary); text-decoration: none; }
.hero__secondary-icon { color: var(--ab-color-accent); font-weight: 900; flex-shrink: 0; }

/* ============================================================
   CARD GRID
   ============================================================ */
.latest-grid { background: #fff; padding: 1.5rem 0; }

.card-grid {
    display: grid;
    gap: 1.5rem;
}
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--1 { grid-template-columns: 1fr; }

.card { background: #fff; border-bottom: 1px solid var(--ab-color-border); }

.card__img-link { display: block; overflow: hidden; border-radius: var(--ab-img-radius, 6px); }
.card__img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    transition: transform .35s ease;
}
.card__img-link:hover .card__img { transform: scale(1.05); }

.card__body { padding: .75rem 0; }

.card__title {
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: .3rem;
}
.card__title a { color: var(--ab-color-text); }
.card__title a:hover { color: var(--ab-color-primary); text-decoration: none; }

.card__meta { margin-top: .4rem; font-size: .75rem; color: #888; }

/* ============================================================
   PHOTO SECTION
   ============================================================ */
.photo-section {
    background: #fff;
    padding: 1.75rem 0 1rem;
    border-top: 1px solid var(--ab-color-border);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.photo-card__img-link { display: block; overflow: hidden; border-radius: var(--ab-radius); }
.photo-card__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform .35s ease;
}
.photo-card__img-link:hover .photo-card__img { transform: scale(1.05); }

.photo-card__caption {
    margin-top: .5rem;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ab-color-text);
}
.photo-card__caption a:hover { color: var(--ab-color-primary); text-decoration: none; }

.photo-card__author {
    font-size: .72rem;
    color: #888;
    display: block;
    margin-top: .2rem;
}

/* Bottom accent line after photo section */
.photo-section::after {
    content: '';
    display: block;
    height: 5px;
    background: var(--ab-color-accent);
    margin-top: 1.25rem;
    border-radius: 0 0 var(--ab-radius) var(--ab-radius);
}

/* ============================================================
   CATEGORY SECTION — base
   ============================================================ */
/* ============================================================
   MAIS LIDAS + FIQUE DE OLHO
   ============================================================ */
.most-viewed { padding: 1.5rem 0; background: #fff; }

.most-viewed__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.most-viewed__box {
    border: 1px solid var(--ab-color-border, #e5e5e5);
    border-radius: 10px;
    padding: 1.5rem 1.75rem 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    background: #fff;
}

.most-viewed__header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.most-viewed__header::before,
.most-viewed__header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ab-color-border, #e5e5e5);
}
.most-viewed__title {
    font-size: .95rem;
    font-weight: 800;
    color: var(--ab-color-text, #0c1a3d);
    white-space: nowrap;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.most-viewed__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
}

.most-viewed__item {
    border-bottom: 1px solid var(--ab-color-border, #f0f0f0);
    padding-bottom: 1rem;
}
.most-viewed__item:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }

.most-viewed__cat {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    color: var(--ab-color-text, #0c1a3d);
    text-decoration: none;
    margin-bottom: .25rem;
}
.most-viewed__cat:hover { color: var(--ab-color-accent); }

.most-viewed__item-title {
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.45;
    margin: 0;
}
.most-viewed__item-title a {
    color: var(--ab-color-text, #0c1a3d);
    text-decoration: none;
}
.most-viewed__item-title a:hover { color: var(--ab-color-accent); }

@media (max-width: 700px) {
    .most-viewed__inner { grid-template-columns: 1fr; }
    .most-viewed__grid  { grid-template-columns: 1fr; }
    .most-viewed__item:nth-last-child(-n+2) { border-bottom: 1px solid var(--ab-color-border, #f0f0f0); padding-bottom: .75rem; }
    .most-viewed__item:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ============================================================
   CATEGORIAS EM DESTAQUE
   ============================================================ */
.category-section { margin-top: .5rem; }

.category-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 0;
    margin-bottom: 0;
}

.category-section__title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

.category-section__title::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--ab-color-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.category-section__more {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 600;
    transition: color var(--ab-transition);
}
.category-section__more:hover { color: var(--ab-color-accent); text-decoration: none; }

.category-section__more-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.category-section__cards { padding: 1.25rem 0 1.75rem; }

/* ── Layout 1 — fundo branco ── */
.category-section--light {
    background: #ffffff;
    color: var(--ab-cat1-text);
}
.category-section--light .category-section__header {
    border-bottom: 1px solid var(--ab-color-border);
}
.category-section--light .category-section__title { color: var(--ab-cat1-text); }
.category-section--light .category-section__more  { color: rgba(0,0,0,.45); }
.category-section--light .category-section__more strong { color: var(--ab-cat1-text); }
.category-section--light .category-section__more-icon {
    background: rgba(0,0,0,.07);
    color: var(--ab-cat1-text);
}
.category-section--light .card { background: #fff; border-bottom: 1px solid var(--ab-color-border); }
.category-section--light .card__title a { color: var(--ab-cat1-text); }
.category-section--light .card__title a:hover { color: var(--ab-color-primary); text-decoration: none; }
.category-section--light .card__meta { color: #888; }

/* ── Layout 2 — fundo escuro ── */
.category-section--dark {
    background: var(--ab-cat2-grad, var(--ab-color-primary));
    color: var(--ab-cat2-text);
}
.category-section--dark .category-section__header {
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.category-section--dark .category-section__title { color: var(--ab-cat2-text); }
.category-section--dark .category-section__more  { color: rgba(255,255,255,.55); }
.category-section--dark .category-section__more strong { color: var(--ab-cat2-text); }
.category-section--dark .category-section__more-icon {
    background: rgba(255,255,255,.1);
    color: var(--ab-cat2-text);
}
.category-section--dark .card { background: transparent; border-bottom: 1px solid rgba(255,255,255,.07); }
.category-section--dark .card__title a { color: var(--ab-cat2-text); }
.category-section--dark .card__title a:hover { color: var(--ab-cat2-link, var(--ab-color-accent)); text-decoration: none; }
.category-section--dark a:not(.badge):hover,
.category-section--dark a:not(.badge):focus  { color: var(--ab-cat2-link, var(--ab-color-accent)); text-decoration: none; }
.category-section--dark .card__meta,
.category-section--dark .card__date  { color: var(--ab-cat2-text); }
.category-section--dark .badge { background: var(--ab-cat2-badge-bg, var(--ab-color-accent)); color: var(--ab-cat2-badge-text, #000); }

/* ── Cat2 — layout com widget lateral ───────────────────────── */
.category-section__body--with-widget {
    padding: 1.25rem 0 1.75rem;
}
.cat2-top-row {
    display: grid;
    /* grid-template-columns: 1fr 3px Nfr — via inline style */
    column-gap: 1.25rem;
    align-items: start;
}
.cat2-widget-area {
    min-width: 0;
    align-self: start;
}
.cat2-widget-area .widget {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0;
}
.cat2-widget-area figure,
.cat2-widget-area .wp-block-image,
.cat2-widget-area .widget-image-container,
.cat2-widget-area p {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
}
.cat2-widget-area img {
    width: 100%;
    height: auto;
    border-radius: var(--ab-img-radius, 6px);
    display: block;
    object-fit: cover;
}
.cat2-overflow-cards {
    margin-top: 1.25rem;
}

/* ============================================================
   LATEST + SIDEBAR
   ============================================================ */
.latest-section { background: #fff; padding: 2rem 0; }

.latest-section__inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}

/* ============================================================
   LIST ITEM (post list)
   ============================================================ */
.post-list { display: flex; flex-direction: column; }

.list-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--ab-color-border);
    align-items: flex-start;
}

.list-item__img-link { flex-shrink: 0; display: block; overflow: hidden; border-radius: var(--ab-img-radius, 6px); }
.list-item__img { width: 120px; height: 80px; object-fit: cover; }

.list-item__body { flex: 1; min-width: 0; }

.list-item__title {
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: .25rem;
}
.list-item__title a { color: var(--ab-color-text); }
.list-item__title a:hover { color: var(--ab-color-primary); text-decoration: none; }

.list-item__meta { font-size: .75rem; color: #888; margin-top: .35rem; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.widget { padding: 1rem; background: #f8f8f8; border-radius: 6px; }
.widget img { border-radius: var(--ab-img-radius, 6px); }

.widget__title {
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-left: 3px solid var(--ab-color-accent);
    padding-left: .5rem;
    margin-bottom: .75rem;
    color: var(--ab-color-primary);
}

.widget ul { display: flex; flex-direction: column; gap: .4rem; }
.widget ul li a { font-size: .88rem; color: var(--ab-color-text); }
.widget ul li a:hover { color: var(--ab-color-primary); }

/* ============================================================
   CONTENT AREA (generic)
   ============================================================ */
.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.content-area__main { min-width: 0; }
.content-area__sidebar { min-width: 0; }

/* ============================================================
   ARTICLE (single post / page) — centered card layout
   ============================================================ */
.site-main--article {
    background: #fff;
    padding: 0;
}

.article-wrap {
    width: 100%;
    max-width: 860px;
    margin-inline: auto;
    padding-inline: 1.25rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.article-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--ab-color-border, #e5e5e5);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Header: badge + title + excerpt — centered */
.article-card__header {
    padding: 2rem 2.5rem 1.5rem;
    text-align: center;
}

.article-card__header .badge {
    display: inline-block;
    margin-bottom: .75rem;
}

.article-card__title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ab-color-primary);
    margin-bottom: .6rem;
}

.article-card__subtitle {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    max-width: 640px;
    margin-inline: auto;
}

/* Accent divider line */
.article-card__divider {
    height: 4px;
    background: var(--ab-color-accent);
}

/* Byline bar */
.article-card__byline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .45rem 2.5rem;
    background: #fafafa;
    border-bottom: 1px solid var(--ab-color-border);
}

.article-card__byline--simple {
    justify-content: flex-start;
}

.article-card__byline-left {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.article-card__author {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--ab-color-primary);
}

.article-card__date {
    font-size: .78rem;
    color: #777;
}

/* Share buttons */
.article-card__share {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    transition: opacity var(--ab-transition), transform var(--ab-transition);
}
.share-btn:hover { opacity: .85; transform: scale(1.08); text-decoration: none; }
.share-btn--whatsapp { background: #25d366; }
.share-btn--facebook  { background: #1877f2; }
.share-btn--twitter   { background: #000; }
.share-btn--linkedin  { background: #0a66c2; }

/* Featured image */
.article-card__figure { margin: 0; }
.article-card__img { width: 100%; display: block; }
.article-card__caption {
    font-size: .75rem;
    color: #888;
    padding: .4rem 2.5rem;
    background: #fafafa;
    border-top: 1px solid var(--ab-color-border);
    text-align: right;
}

/* Article body */
.article-card__content {
    padding: 0 2.5rem;
}
.page .article-card__content {
    padding-top: 1.75rem;
}

.article-card__footer {
    padding: 1rem 2.5rem 1.5rem;
    border-top: 1px solid var(--ab-color-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-card__share--bottom {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.share-label {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #666;
    margin-right: .25rem;
}

/* Entry content styles */
.entry-content { font-size: 1rem; line-height: 1.8; color: #2a2a2a; }
.entry-content p  { margin-bottom: 1em; }
.entry-content h2 { font-size: 1.4rem; margin: 1.5em 0 .5em; color: var(--ab-color-primary); }
.entry-content h3 { font-size: 1.2rem; margin: 1.25em 0 .4em; }
.entry-content ul,
.entry-content ol  { padding-left: 1.5em; margin-bottom: 1em; list-style: revert; }
.entry-content blockquote {
    border-left: 4px solid var(--ab-color-accent);
    padding: .75rem 1rem;
    background: #f5f5f5;
    margin: 1.25em 0;
    font-style: italic;
    color: #555;
}
.entry-content img { border-radius: var(--ab-img-radius, 6px); }
.entry-content a   { color: var(--ab-color-primary); text-decoration: underline; }

/* Tags */
.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.post-tags a {
    font-size: .75rem;
    background: #eee;
    padding: .25rem .6rem;
    border-radius: 20px;
    color: #444;
    transition: background var(--ab-transition);
}
.post-tags a:hover { background: var(--ab-color-accent); color: #000; text-decoration: none; }

/* ============================================================
   COMMENTS — redesign
   ============================================================ */
.comments-area {
    background: #fff;
    border-radius: var(--ab-radius);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
}

.comments-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ab-color-primary);
    padding-bottom: .75rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--ab-color-accent);
}

/* Comment list */
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list > li + li { border-top: 1px solid var(--ab-color-border); }
.comment-list .children { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ab-color-border); }
.comment-list .children > li { padding-left: 3.25rem; }

/* Each comment — avatar absolute left, content flows right */
.comment-body {
    position: relative;
    padding: .65rem 0 .65rem calc(38px + .75rem);
    min-height: 42px;
}

.comment-body .avatar {
    position: absolute;
    left: 0;
    top: .65rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.comment-author .says { display: none; }

.comment-author .fn {
    font-weight: 700;
    font-size: .85rem;
    color: var(--ab-color-primary);
    line-height: 1.3;
}
.comment-author .fn a { color: inherit; }

.comment-metadata {
    font-size: .72rem;
    color: #aaa;
    line-height: 1.4;
    margin-top: .05rem;
}
.comment-metadata a { color: inherit; }
.comment-metadata .edit-link { margin-left: .4rem; }
.comment-metadata .edit-link a { color: var(--ab-color-primary); font-weight: 600; }

.comment-content {
    margin-top: .35rem;
    font-size: .85rem;
    line-height: 1.55;
    color: #444;
}
.comment-content p { margin: 0; }

/* Hide reply button */
.reply { display: none; }

/* Comment form */
.comment-respond {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 2px solid var(--ab-color-border);
}

.comment-reply-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ab-color-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.comment-reply-title small { font-size: .8rem; font-weight: 400; }
.comment-reply-title small a { color: var(--ab-color-primary); }

.comment-form { display: flex; flex-direction: column; gap: 1rem; }

.comment-form .comment-form-comment,
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url { display: flex; flex-direction: column; gap: .3rem; }

.comment-form label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #666;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--ab-font-base);
    font-size: .9rem;
    color: var(--ab-color-text);
    transition: border-color var(--ab-transition), box-shadow var(--ab-transition);
    background: #fafafa;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--ab-color-primary);
    box-shadow: 0 0 0 3px rgba(13,27,42,.08);
    background: #fff;
}

.comment-form textarea { min-height: 130px; resize: vertical; }

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: #666;
}

.form-submit .submit {
    background: var(--ab-color-primary);
    color: #fff;
    padding: .7rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: opacity var(--ab-transition);
    font-family: var(--ab-font-base);
    align-self: flex-start;
}
.form-submit .submit:hover { opacity: .82; }

.logged-in-as { font-size: .82rem; color: #666; margin-bottom: .75rem; }
.logged-in-as a { color: var(--ab-color-primary); font-weight: 600; }


/* Old single-post class kept for backwards compat */
.single-post { background: #fff; }

/* Post navigation */
.post-navigation { margin: .75rem 1rem; }

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 1rem;
}

.post-navigation .nav-previous { grid-column: 1; min-width: 0; }
.post-navigation .nav-next     { grid-column: 2; min-width: 0; }

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1rem 1.25rem;
    height: auto;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--ab-color-border);
    border-radius: 10px;
    transition: border-color var(--ab-transition), box-shadow var(--ab-transition);
}
.post-navigation .nav-previous a { align-items: flex-start; text-align: left; }
.post-navigation .nav-next a     { align-items: flex-end;   text-align: right; }
.post-navigation a:hover {
    border-color: var(--ab-color-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    text-decoration: none;
}

.post-navigation .nav-subtitle,
.post-navigation .nav-title {
    display: block;
    height: auto;
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 0;
}

.nav-subtitle {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #999;
}
.post-navigation .nav-previous .nav-subtitle::before { content: '← '; }
.post-navigation .nav-next    .nav-subtitle::after  { content: ' →'; }

.nav-title {
    font-weight: 700;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--ab-color-primary);
}
.post-navigation a:hover .nav-title { color: var(--ab-color-primary); }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts {
    padding: 1.5rem 2.5rem;
    margin: 0;
}

.related-posts__header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.related-posts__header::before,
.related-posts__header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ab-color-border, #e5e5e5);
}
.related-posts__title {
    font-size: .8rem;
    color: #999;
    white-space: nowrap;
    letter-spacing: .03em;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.related-posts__img-link { display: block; overflow: hidden; border-radius: var(--ab-img-radius, 6px); }
.related-posts__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--ab-img-radius, 6px);
    display: block;
}

.related-posts__card-title {
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: .6rem;
}
.related-posts__card-title a {
    color: var(--ab-color-text, var(--ab-color-primary));
    text-decoration: none;
}
.related-posts__card-title a:hover { color: var(--ab-color-accent); }

/* ============================================================
   LOAD MORE / VER MAIS
   ============================================================ */
.load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0 .5rem;
    border-top: 1px solid var(--ab-color-border);
    margin-top: .5rem;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--ab-color-accent);
    color: #000;
    font-weight: 700;
    font-size: .88rem;
    padding: .6rem 1.5rem;
    border-radius: 6px;
    transition: opacity var(--ab-transition), transform var(--ab-transition);
}
.btn-load-more:hover {
    opacity: .88;
    transform: translateY(1px);
    text-decoration: none;
    color: #000;
}
.btn-load-more svg { flex-shrink: 0; }

/* ============================================================
   ARCHIVE HEADER
   ============================================================ */
.archive-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ab-color-accent); }
.archive-header__title { font-size: 1.6rem; font-weight: 800; }
.archive-header__desc  { color: #666; margin-top: .35rem; font-size: .9rem; }

/* ============================================================
   CATEGORY ARCHIVE PAGE
   ============================================================ */
.cat-archive-header {
    background: linear-gradient(90deg,
        var(--ab-header-grad-edge) 0%,
        var(--ab-header-grad-center) 19.22%,
        var(--ab-header-grad-center) 80.37%,
        var(--ab-header-grad-edge) 100%
    );
    margin-bottom: 1.25rem;
    padding: .6rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.cat-archive-header__title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ab-header-icon-color);
}
.cat-archive-header__title::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 0.7em;
    background: var(--ab-color-accent);
    border-radius: 3px;
    flex-shrink: 0;
}

/* Featured layout */
.cat-featured { padding: 1.5rem 0; background: #fff; }

.cat-featured__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Hero post */
.cat-featured__hero { display: flex; flex-direction: column; }
.cat-featured__hero-img-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--ab-img-radius, 6px) 6px 0 0;
    margin-bottom: 0;
}
.cat-featured__hero-accent-bar {
    height: 5px;
    background: var(--ab-color-accent);
    border-radius: 0 0 4px 4px;
    margin-bottom: .75rem;
}
.cat-featured__hero-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.cat-featured__hero-img-link:hover .cat-featured__hero-img { transform: scale(1.03); }
.cat-featured__hero-credit {
    position: absolute;
    bottom: 0; right: 0;
    background: rgba(0,0,0,.5);
    color: rgba(255,255,255,.8);
    font-size: .65rem;
    padding: .2rem .5rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cat-featured__hero-body { display: flex; flex-direction: column; gap: .4rem; }
.cat-featured__hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    color: #111;
}
.cat-featured__hero-title a { color: inherit; }
.cat-featured__hero-title a:hover { color: var(--ab-color-primary); text-decoration: none; }
.cat-featured__hero-excerpt { font-size: .9rem; color: #555; line-height: 1.55; }
.cat-featured__date { font-size: .75rem; color: #888; margin-top: .3rem; }

/* 2x2 grid */
.cat-featured__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.cat-featured__card { display: flex; flex-direction: column; gap: .5rem; }
.cat-featured__card-img-link {
    display: block;
    overflow: hidden;
    border-radius: var(--ab-img-radius, 6px);
}
.cat-featured__card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.cat-featured__card-img-link:hover .cat-featured__card-img { transform: scale(1.04); }
.cat-featured__card-body { display: flex; flex-direction: column; gap: .3rem; }
.cat-featured__card-title {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}
.cat-featured__card-title a { color: inherit; }
.cat-featured__card-title a:hover { color: var(--ab-color-primary); text-decoration: none; }

.badge--sm { font-size: .7rem; padding: .15rem .45rem; }

/* Latest in category */
.cat-latest { background: var(--ab-color-bg); }

/* ============================================================
   PAGINATION
   ============================================================ */
.navigation.pagination { margin-top: 2rem; }
.nav-links { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 .6rem;
    border: 1px solid var(--ab-color-border);
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ab-color-text);
    transition: background var(--ab-transition), color var(--ab-transition);
}
.nav-links .current,
.nav-links a:hover {
    background: var(--ab-color-accent);
    border-color: var(--ab-color-accent);
    color: #000;
    text-decoration: none;
}

/* ============================================================
   BUTTON
   ============================================================ */
.btn {
    display: inline-block;
    padding: .65rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: opacity var(--ab-transition);
    border: none;
    text-align: center;
    font-family: var(--ab-font-base);
}
.btn:hover { opacity: .85; text-decoration: none; }
.btn--primary { background: var(--ab-color-accent); color: #000; }
.btn--outline  { border: 2px solid var(--ab-color-primary); color: var(--ab-color-primary); background: transparent; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: linear-gradient(90deg,
        var(--ab-header-grad-edge, #030917) 0%,
        var(--ab-header-grad-center, #0C1A3D) 19.22%,
        var(--ab-header-grad-center, #0C1A3D) 80.37%,
        var(--ab-header-grad-edge, #030917) 100%
    );
    color: var(--ab-color-text-light);
    margin-top: auto;
}

/* footer-widgets kept for compat; new class is footer-main */
.footer-widgets,
.footer-main { padding: 2.5rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }

.footer-widgets__inner,
.footer-main__inner {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.footer-col--brand { display: flex; flex-direction: column; gap: .65rem; }
.footer-col--widget { display: flex; flex-direction: column; }

.footer-brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ab-color-text-light);
}

.footer-about,
.footer-about p { font-size: .85rem; color: rgba(255,255,255,.65); line-height: 1.6; margin: 0 0 .6rem; }
.footer-about p:last-child { margin-bottom: 0; }

.footer-col__title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ab-color-accent);
    margin-bottom: .75rem;
}

.footer-col .widget { background: transparent; padding: 0; }

/* Widget title */
.footer-col .widget__title,
.footer-col .widgettitle {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ab-color-accent);
    margin-bottom: .9rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

/* Nav menu widget */
.footer-col .widget_nav_menu ul,
.footer-col .widget ul {
    list-style: none;
    margin: 0;
    padding: 0 0 0 .75rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.footer-col .widget_nav_menu ul li a,
.footer-col .widget ul li a {
    display: block;
    padding: .35rem 0;
    color: rgba(255,255,255,.65);
    font-size: .85rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: color .2s, padding-left .2s;
}
.footer-col .widget_nav_menu ul li a:hover,
.footer-col .widget ul li a:hover {
    color: var(--ab-color-accent);
    padding-left: .4rem;
    text-decoration: none;
}
.footer-col .widget_nav_menu ul li.current-menu-item > a,
.footer-col .widget_nav_menu ul li.current_page_item > a {
    color: var(--ab-color-accent);
    font-weight: 600;
}
/* Sub-menus */
.footer-col .widget ul li ul {
    margin-left: .75rem;
    margin-top: .2rem;
    border-left: 2px solid rgba(255,255,255,.1);
    padding-left: .5rem;
}

.footer-nav { display: flex; flex-direction: column; gap: .35rem; }
.footer-nav a { font-size: .85rem; color: rgba(255,255,255,.7); }
.footer-nav a:hover { color: var(--ab-color-accent); text-decoration: none; }
.footer-nav li { position: relative; }
.footer-nav .sub-menu { margin-left: 1rem; margin-top: .25rem; }

/* Social icons */
.social-icons { display: flex; gap: .6rem; flex-wrap: wrap; }
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
    transition: background var(--ab-transition), color var(--ab-transition);
}
.social-icons a:hover { background: var(--ab-color-accent); color: #000; text-decoration: none; }
.social-icons--small a { width: 28px; height: 28px; }

/* Footer bottom bar */
.footer-bottom {
    background: rgba(0,0,0,.3);
    padding: .5rem 0;
    font-size: .73rem;
    color: rgba(255,255,255,.45);
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom__copy { flex: 1; text-align: center; }

.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--ab-color-accent); text-decoration: none; }

/* ============================================================
   FULL-PAGE CENTER LAYOUT (404, errors)
   ============================================================ */
.site-main--fullpage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65vh;
    padding: 3rem 1.25rem;
    background: #fff;
}

.error-page {
    text-align: center;
    max-width: 480px;
    width: 100%;
}

.error-page__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--ab-color-primary);
    margin-bottom: 1.5rem;
}

.error-page__code {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--ab-color-accent);
    line-height: 1;
    letter-spacing: -.02em;
}

.error-page__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ab-color-primary);
    margin-bottom: .5rem;
}

.error-page__desc {
    color: #777;
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.error-page__search {
    margin-bottom: 1.5rem;
}

.error-page__actions {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   CUSTOM SEARCH FORM
   ============================================================ */
.custom-search-form__inner {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color var(--ab-transition), box-shadow var(--ab-transition);
}
.custom-search-form__inner:focus-within {
    border-color: var(--ab-color-primary);
    box-shadow: 0 0 0 3px rgba(13,27,42,.08);
    background: #fff;
}

.custom-search-form__icon {
    flex-shrink: 0;
    margin-left: .9rem;
    color: #aaa;
    pointer-events: none;
}

.custom-search-form__input {
    flex: 1;
    padding: .7rem .75rem;
    border: none;
    background: transparent;
    font-family: var(--ab-font-base);
    font-size: .92rem;
    color: var(--ab-color-text);
    outline: none;
    min-width: 0;
}
.custom-search-form__input::placeholder { color: #bbb; }

.custom-search-form__btn {
    flex-shrink: 0;
    padding: .7rem 1.1rem;
    background: var(--ab-color-primary);
    color: #fff;
    border: none;
    font-family: var(--ab-font-base);
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity var(--ab-transition);
}
.custom-search-form__btn:hover { opacity: .85; }

/* ============================================================
   NEWS PAGE SEARCH BAR
   ============================================================ */
.news-page-search-bar {
    background: #f4f4f4;
    padding: .75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

/* ============================================================
   NEWS PAGE HEADER (Todas as Notícias) — legacy
   ============================================================ */
.news-page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--ab-color-accent);
}

.news-page-header__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ab-color-primary);
    flex: 1;
    min-width: 160px;
}

.news-page-header__title em {
    font-style: normal;
    color: var(--ab-color-accent);
    filter: brightness(.75);
}

.news-page-header__search { flex-shrink: 0; min-width: 260px; }

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */
.search-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--ab-color-accent);
}

.search-header__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ab-color-primary);
    flex: 1;
}

.search-header__title em {
    font-style: normal;
    color: var(--ab-color-accent);
    filter: brightness(.75);
}

.search-header__form { flex-shrink: 0; }

.search-filter-form {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.search-filter-form__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-filter-form__icon {
    position: absolute;
    left: .7rem;
    color: #aaa;
    pointer-events: none;
    flex-shrink: 0;
}
.search-filter-form__input {
    padding: .55rem .75rem .55rem 2.2rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: .9rem;
    width: 200px;
    outline: none;
    transition: border-color .2s;
    background: #f7f7f7;
    color: var(--ab-color-text);
}
.search-filter-form__input:focus { border-color: var(--ab-color-accent); background: #fff; }
.search-filter-form__input::placeholder { color: #bbb; }

.search-filter-form__select {
    padding: .55rem .75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: .9rem;
    background: #f7f7f7;
    color: var(--ab-color-text);
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
    max-width: 180px;
}
.search-filter-form__select:focus { border-color: var(--ab-color-accent); background: #fff; }

.search-filter-form__btn {
    padding: .55rem 1.1rem;
    background: var(--ab-color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s;
}
.search-filter-form__btn:hover { opacity: .85; }

/* ============================================================
   PAGE CONTENT (legacy fallback)
   ============================================================ */
.page-content { background: #fff; padding: 1.5rem; border-radius: var(--ab-radius); }
.page-content__title { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.page-content__thumbnail { margin-bottom: 1.25rem; }

/* ============================================================
   NO RESULTS
   ============================================================ */
.no-results-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: var(--ab-radius);
    padding: 3rem 2rem;
}

.no-results-card__icon {
    color: var(--ab-color-accent);
    margin-bottom: 1.25rem;
    opacity: .8;
}

.no-results-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ab-color-primary);
    margin-bottom: .6rem;
}

.no-results-card__title em {
    font-style: normal;
    color: var(--ab-color-accent);
    filter: brightness(.75);
}

.no-results-card__text {
    color: #666;
    font-size: .95rem;
    max-width: 420px;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.no-results-card__search {
    width: 100%;
    max-width: 380px;
    margin-bottom: 1.75rem;
}

.no-results-card__search .search-form {
    display: flex;
    gap: .5rem;
}

.no-results-card__search .search-field {
    flex: 1;
    padding: .6rem .9rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: .9rem;
    font-family: var(--ab-font-base);
}
.no-results-card__search .search-field:focus {
    outline: none;
    border-color: var(--ab-color-accent);
}

.no-results-card__search .search-submit {
    padding: .6rem 1.25rem;
    background: var(--ab-color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    font-family: var(--ab-font-base);
    transition: opacity var(--ab-transition);
}
.no-results-card__search .search-submit:hover { opacity: .85; }

.no-results-card__back {
    font-size: .85rem;
    font-weight: 600;
    color: var(--ab-color-primary);
}
.no-results-card__back:hover {
    color: var(--ab-color-accent);
    text-decoration: none;
}

/* ============================================================
   PAGE HEADER (blog page)
   ============================================================ */
.page-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ab-color-accent); }
.page-header__title { font-size: 1.6rem; font-weight: 800; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Mobile image copy hidden on desktop */
.hero__img-link--mobile { display: none; }

@media (max-width: 1100px) {
    .hero__inner {
        display: flex;
        flex-direction: column;
    }
    .hero__aside { order: 1; }
    .hero__main  { display: none; }          /* hide original image on mobile */
    .hero__img-link--mobile { display: block; } /* show inline copy after title */
    .footer-widgets__inner, .footer-main__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .cat2-top-row {
        grid-template-columns: 1fr !important;
    }
    .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .photo-grid   { grid-template-columns: repeat(2, 1fr); }
    .latest-section__inner { grid-template-columns: 1fr; }
    .content-area           { grid-template-columns: 1fr; }
    .content-area__sidebar  { display: none; }

    /* Header: keep grid but tighten on mobile */
    .site-header__inner {
        grid-template-columns: 1fr auto 1fr;
        padding-block: .65rem;
    }
    .header-center { text-align: center; }
    .font-size-btn span { display: none; }

    /* Hide horizontal nav on mobile — sidebar handles navigation */
    .main-navigation { display: none; }
}

@media (max-width: 700px) {
    .article-card__header { padding: 1.5rem 1.25rem 1rem; }
    .article-card__title  { font-size: 1.5rem; }
    .article-card__byline { padding: .65rem 1.25rem; flex-wrap: wrap; }
    .article-card__content { padding: 1.25rem; }
    .article-card__footer  { padding: 0 1.25rem 1.25rem; }
    .article-card__caption { padding: .4rem 1.25rem; }
    .bottom-latest__grid   { grid-template-columns: repeat(2, 1fr); }
    .comments-area         { padding: 1.5rem 1.25rem; }
}

@media (max-width: 600px) {
    .card-grid--4,
    .card-grid--3,
    .card-grid--2 { grid-template-columns: 1fr; }
    .photo-grid  { grid-template-columns: 1fr; }
    .footer-widgets__inner, .footer-main__inner { grid-template-columns: 1fr; }
    .hero__title { font-size: 1.2rem; }
    .single-post__title { font-size: 1.4rem; }
    .topbar { display: none; }
    .post-navigation .nav-links { grid-template-columns: 1fr; }
    .post-navigation .nav-next     { grid-column: 1; grid-row: 1; }
    .post-navigation .nav-previous { grid-column: 1; grid-row: 2; }
    .bottom-latest__grid { grid-template-columns: 1fr; }
    .related-posts__grid { grid-template-columns: 1fr; }
    .cat-featured__inner  { grid-template-columns: 1fr; }
    .cat-featured__grid   { grid-template-columns: 1fr; }
    .cat-featured__hero-title { font-size: 1.2rem; }

    .search-header { flex-direction: column; align-items: flex-start; }
    .search-header__form { width: 100%; }
    .search-filter-form { flex-direction: column; }
    .search-filter-form__input-wrap,
    .search-filter-form__input { width: 100%; }
    .search-filter-form__select { width: 100%; max-width: 100%; }
    .search-filter-form__btn { width: 100%; }
}

@media (max-width: 900px) {
    .cat-featured__inner { grid-template-columns: 1fr; }
    .cat-featured__grid  { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   FONT-SIZE ACCESSIBILITY
   ============================================================ */
body.font-large  { font-size: 1.12rem; }
body.font-small  { font-size: 0.88rem; }
