/* =========================================================
   NewsPortal Pro — CSS Principal
   Design: G1 / CNN Brasil
   ========================================================= */

/* ── Variables ── */
:root {
    --accent:             #c8102e;
    --accent-dark:        #a00d24;
    --header-bg:          #1a1a1a;
    --header-text:        #ffffff;
    --header-text-muted:  rgba(255,255,255,.72);
    --header-editoria-bg: #111111;
    --bg:                 #f4f4f4;
    --surface:     #ffffff;
    --border:      #e5e5e5;
    --text:        #1a1a1a;
    --text-2:      #555555;
    --text-3:      #888888;
    --radius:      6px;
    --radius-lg:   10px;
    --shadow:      0 2px 8px rgba(0,0,0,.10);
    --shadow-md:   0 4px 20px rgba(0,0,0,.14);
    --transition:  .2s ease;
    --max-w:       1280px;
    --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

ul, ol { list-style: none; }

button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Utilitários ── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 20px;
}

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

.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px; border-radius: var(--radius);
    font-size: .875rem; font-weight: 600; line-height: 1;
    transition: background var(--transition), transform var(--transition);
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--secondary { background: var(--border); color: var(--text); }
.btn--secondary:hover { background: #ddd; }

/* ── Anúncio topo ── */
.ad-banner--top {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    text-align: center;
}
.ad-banner--article { margin: 28px 0; text-align: center; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--header-bg);
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

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

.header-main__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 64px;
}

/* Hamburguer */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--radius);
    flex-shrink: 0;
    transition: background var(--transition);
}
.hamburger:hover { background: rgba(128,128,128,.15); }
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--header-text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Branding */
.site-branding { flex-shrink: 0; }
.site-branding img { height: 40px; width: auto; }
.site-title-link { display: block; }
.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--header-text);
    letter-spacing: -.02em;
    text-transform: uppercase;
}
.site-title::first-letter { color: var(--accent); }

/* Nav principal */
.nav-primary { flex: 1; }
.menu--primary {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}
.menu--primary > li { position: relative; }
.menu--primary > li > .menu-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--header-text-muted);
    border-radius: var(--radius);
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
}
.menu--primary > li > .menu-link:hover,
.menu--primary > li.active > .menu-link { color: var(--header-text); background: rgba(128,128,128,.12); }
.menu--primary > li.active > .menu-link { color: var(--accent); }
.menu--primary .arrow { transition: transform var(--transition); }
.menu--primary > li:hover .arrow { transform: rotate(180deg); }

/* Submenu */
.sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 100;
}
.menu--primary > li:hover > .sub-menu,
.menu--primary > li:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.sub-menu .menu-link {
    display: block;
    padding: 8px 18px;
    font-size: .875rem;
    color: var(--text-2);
    transition: color var(--transition), background var(--transition);
}
.sub-menu .menu-link:hover { color: var(--accent); background: #fafafa; }

/* Ações do header */
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.search-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    color: var(--header-text-muted);
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}
.search-toggle:hover { color: var(--header-text); background: rgba(128,128,128,.15); }

/* Editoria nav */
.header-editoria {
    background: var(--header-editoria-bg, #111);
    border-top: 1px solid rgba(128,128,128,.15);
}
.menu--editoria {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}
.menu--editoria::-webkit-scrollbar { display: none; }
.menu--editoria > li > a {
    display: block;
    padding: 8px 14px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--header-text-muted, rgba(255,255,255,.65));
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}
.menu--editoria > li > a:hover,
.menu--editoria > li.active > a { color: var(--header-text); border-bottom-color: var(--accent); }

/* ── Busca overlay ── */
.search-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,.88);
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 80px;
    animation: fadeIn .18s ease;
}
.search-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.search-overlay__inner {
    width: 100%; max-width: 680px;
    padding: 0 20px;
    position: relative;
}
.search-overlay__form {
    display: flex;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.search-overlay__input {
    flex: 1;
    padding: 18px 24px;
    font-size: 1.1rem;
    border: none; outline: none;
    font-family: var(--font);
}
.search-overlay__btn {
    padding: 0 24px;
    background: var(--accent);
    color: #fff;
    display: flex; align-items: center;
    transition: background var(--transition);
}
.search-overlay__btn:hover { background: var(--accent-dark); }
.search-overlay__close {
    position: absolute; top: -60px; right: 20px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7);
    border-radius: 50%;
    transition: color var(--transition);
}
.search-overlay__close:hover { color: #fff; }

/* ── Mobile nav ── */
.mobile-nav-overlay {
    position: fixed; inset: 0; z-index: 1900;
    background: rgba(0,0,0,.6);
    animation: fadeIn .2s ease;
}
.mobile-nav-overlay[hidden] { display: none; }
.mobile-nav {
    position: absolute; top: 0; left: 0;
    width: min(340px, 90vw);
    height: 100%;
    background: var(--surface);
    overflow-y: auto;
    animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.mobile-nav__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    background: var(--header-bg);
}
.mobile-nav__title { font-size: 1rem; font-weight: 700; color: #fff; }
.mobile-nav__close { color: rgba(255,255,255,.8); display: flex; align-items: center; }
.menu--mobile li { border-bottom: 1px solid var(--border); }
.menu--mobile li a {
    display: block;
    padding: 14px 20px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--text);
    transition: color var(--transition);
}
.menu--mobile li a:hover { color: var(--accent); }
.menu--mobile .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: #fafafa; }
.menu--mobile .sub-menu a { padding-left: 36px; font-size: .875rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero-section { background: var(--surface); padding: 20px 0; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    grid-template-rows: auto auto;
    gap: 4px;
    min-height: 480px;
}

.hero-card { position: relative; overflow: hidden; border-radius: var(--radius); }

.hero-card__link { display: block; height: 100%; }

.hero-card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.hero-card:hover .hero-card__img { transform: scale(1.03); }
.hero-card__img--placeholder { background: #ddd; min-height: 300px; }

.hero-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
}

.hero-card__body {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px;
    z-index: 1;
}

.hero-main {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 480px;
}
.hero-main .hero-card__img { min-height: 480px; }
.hero-main .hero-card__title { font-size: 1.7rem; line-height: 1.25; }
.hero-main .hero-card__excerpt { font-size: .95rem; color: rgba(255,255,255,.8); margin-top: 8px; }

.hero-side {
    grid-column: 2;
    min-height: 235px;
}
.hero-side .hero-card__img { min-height: 235px; }
.hero-side .hero-card__title { font-size: 1rem; line-height: 1.3; }

.hero-card__title a { color: #fff; }
.hero-card__title a:hover { text-decoration: underline; }

.hero-card__meta {
    display: flex; align-items: center; gap: 10px;
    margin-top: 8px;
}
.hero-card__meta .posted-on,
.hero-card__meta .reading-time {
    font-size: .75rem;
    color: rgba(255,255,255,.7);
}

/* =========================================================
   BREAKING NEWS TICKER
   ========================================================= */
.breaking-news {
    background: var(--surface);
    border-top: 3px solid var(--accent);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
}
.breaking-news__label {
    flex-shrink: 0;
    background: var(--accent);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    padding: 4px 12px;
    border-radius: 2px;
    margin-right: 16px;
}
.breaking-news__ticker { flex: 1; overflow: hidden; position: relative; }
.breaking-news__track {
    display: flex;
    gap: 48px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}
.breaking-news__track:hover { animation-play-state: paused; }
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.breaking-news__item {
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
    flex-shrink: 0;
    transition: color var(--transition);
}
.breaking-news__item:hover { color: var(--accent); }
.breaking-news__item::before { content: '▶'; margin-right: 8px; color: var(--accent); font-size: .6rem; }

/* =========================================================
   LAYOUT
   ========================================================= */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 48px;
    align-items: start;
}
.layout-with-sidebar--single { grid-template-columns: 1fr 300px; }
.content-area { min-width: 0; }

/* =========================================================
   POST CARDS
   ========================================================= */
.posts-grid { display: grid; gap: 24px; }
.posts-grid--2col { grid-template-columns: repeat(2, 1fr); }
.posts-grid--3col { grid-template-columns: repeat(3, 1fr); }
.posts-grid--4col { grid-template-columns: repeat(4, 1fr); }

.post-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.post-card__thumb-link { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; }
.post-card__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__thumb { transform: scale(1.04); }
.post-card__thumb-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.2), transparent 50%);
}

.post-card__body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
}
.post-card__title a:hover { color: var(--accent); }

.post-card__excerpt {
    font-size: .875rem;
    color: var(--text-2);
    line-height: 1.55;
    flex: 1;
}

.post-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .75rem;
    color: var(--text-3);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.post-card__meta .author-name:hover { color: var(--accent); }
.meta-sep { color: var(--border); }

/* ── Category label ── */
.category-label {
    display: inline-block;
    padding: 3px 10px;
    background: var(--cat-color, var(--accent));
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 3px;
    transition: opacity var(--transition);
}
.category-label:hover { opacity: .85; }

/* =========================================================
   ARCHIVE / CATEGORY HEADER
   ========================================================= */
.archive-header, .category-header {
    background: var(--surface);
    border-bottom: 3px solid var(--cat-color, var(--accent));
    padding: 28px 0 20px;
    margin-bottom: 0;
}
.archive-title, .category-header__title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -.02em;
}
.category-header__title { color: var(--cat-color, var(--accent)); }
.archive-description, .category-header__desc {
    font-size: .9rem;
    color: var(--text-2);
    margin-top: 6px;
}

/* =========================================================
   SINGLE ARTICLE
   ========================================================= */
.single-article { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }

.single-article__header { padding: 28px 32px 0; }

.single-article__title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-top: 12px;
    color: var(--text);
}

.single-article__lead {
    font-size: 1.1rem;
    color: var(--text-2);
    line-height: 1.6;
    margin-top: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.single-article__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
}

.meta-author { display: flex; align-items: center; gap: 12px; }
.meta-author__avatar { border-radius: 50%; }
.meta-author__name { font-size: .875rem; font-weight: 700; }
.meta-author__name:hover { color: var(--accent); }
.meta-author__date { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-3); margin-top: 2px; }

/* Share buttons */
.single-article__share { display: flex; align-items: center; gap: 8px; }
.share-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    color: #fff;
    transition: transform var(--transition), opacity var(--transition);
}
.share-btn:hover { transform: scale(1.1); }
.share-btn--whatsapp { background: #25d366; }
.share-btn--twitter  { background: #000; }
.share-btn--facebook { background: #1877f2; }
.share-btn--copy     { background: var(--text-3); color: #fff; }

/* Featured image */
.single-article__featured { margin: 0; }
.single-article__featured-img { width: 100%; max-height: 520px; object-fit: cover; }
.single-article__caption {
    padding: 8px 32px;
    font-size: .8rem;
    color: var(--text-3);
    background: #fafafa;
    border-bottom: 1px solid var(--border);
    font-style: italic;
}

/* Content */
.single-article__content {
    padding: 28px 32px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
}

.entry-content h2 { font-size: 1.4rem; font-weight: 700; margin: 28px 0 12px; }
.entry-content h3 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 10px; }
.entry-content h4 { font-size: 1.05rem; font-weight: 700; margin: 20px 0 8px; }
.entry-content p  { margin-bottom: 1.2em; }
.entry-content a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--accent-dark); }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.5em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    border-left: 4px solid var(--accent);
    background: #fafafa;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-2);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-content figure { margin: 24px 0; }
.entry-content figcaption { font-size: .8rem; color: var(--text-3); text-align: center; margin-top: 6px; font-style: italic; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .9rem; }
.entry-content th { background: var(--header-bg); color: #fff; padding: 10px 14px; text-align: left; }
.entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.entry-content tr:nth-child(even) td { background: #fafafa; }
.entry-content code {
    font-size: .88em;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}
.entry-content pre {
    background: #1a1a1a;
    color: #e5e5e5;
    padding: 20px 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 20px 0;
    font-size: .88rem;
    line-height: 1.6;
}
.entry-content pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.entry-content img { border-radius: var(--radius); max-width: 100%; }
.entry-content .wp-block-image { margin: 24px 0; }

/* Article footer */
.single-article__footer { padding: 0 32px 28px; }

.single-article__tags {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    font-size: .875rem;
}
.tags-label { font-weight: 600; color: var(--text-2); }
.tag-link {
    padding: 4px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: .8rem;
    color: var(--text-2);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.tag-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Author box */
.author-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 20px;
}
.author-box__avatar { border-radius: 50%; flex-shrink: 0; }
.author-box__name { font-weight: 700; font-size: .95rem; display: block; }
.author-box__name:hover { color: var(--accent); }
.author-box__bio { font-size: .875rem; color: var(--text-2); margin-top: 4px; line-height: 1.55; }

/* Post navigation */
.post-navigation {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 0;
    margin-top: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.nav-links { display: contents; }
.nav-previous, .nav-next { display: flex; }
.nav-previous a, .nav-next a {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: background var(--transition);
}
.nav-previous a { border-right: none; }
.nav-previous a:hover, .nav-next a:hover { background: #fafafa; }
.nav-next a { text-align: right; }
.nav-dir { font-size: .75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.nav-title { font-size: .9rem; font-weight: 700; color: var(--text); line-height: 1.35; }

/* Related posts */
.related-posts { padding: 28px 0; }
.related-posts__header { margin-bottom: 20px; }
.related-posts__title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.01em;
    padding-left: 14px;
    border-left: 4px solid var(--accent);
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar { position: sticky; top: 84px; }

.widget { margin-bottom: 28px; }

.widget-title {
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.widget-title span {
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent);
}

.widget_recent_entries li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.widget_recent_entries li:last-child { border-bottom: none; }
.widget_recent_entries a { font-size: .875rem; font-weight: 600; line-height: 1.4; color: var(--text); }
.widget_recent_entries a:hover { color: var(--accent); }
.post-date { display: block; font-size: .75rem; color: var(--text-3); margin-top: 3px; }

.widget_categories li, .widget_pages li, .widget_archive li, .widget_nav_menu li {
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.widget_categories li:last-child, .widget_pages li:last-child, .widget_archive li:last-child { border-bottom: none; }
.widget_categories a, .widget_pages a, .widget_archive a, .widget_nav_menu a {
    font-size: .875rem; color: var(--text-2);
    transition: color var(--transition);
}
.widget_categories a:hover, .widget_pages a:hover, .widget_archive a:hover, .widget_nav_menu a:hover { color: var(--accent); }

.widget_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.widget_tag_cloud a {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: .8rem !important;
    color: var(--text-2);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.widget_tag_cloud a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.widget_search .search-form { display: flex; }
.widget_search input[type="search"] {
    flex: 1; padding: 9px 14px; border: 1px solid var(--border); border-right: none;
    border-radius: var(--radius) 0 0 var(--radius); font-size: .875rem; outline: none;
    font-family: var(--font);
}
.widget_search input[type="search"]:focus { border-color: var(--accent); }
.widget_search button, .widget_search input[type="submit"] {
    padding: 9px 16px; background: var(--accent); color: #fff; border: none; cursor: pointer;
    border-radius: 0 var(--radius) var(--radius) 0; font-size: .875rem; font-family: var(--font);
}

/* =========================================================
   SEARCH HEADER
   ========================================================= */
.search-header {
    background: var(--surface);
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}
.search-header__title { font-size: 1.5rem; font-weight: 700; }
.search-header__title em { color: var(--accent); font-style: normal; }
.search-header__count { font-size: .875rem; color: var(--text-3); margin-top: 4px; }
.search-header__form {
    display: flex;
    margin-top: 16px;
    max-width: 480px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.search-header__input {
    flex: 1; padding: 10px 16px; border: none; outline: none;
    font-size: .9rem; font-family: var(--font);
}
.search-header__form button {
    padding: 10px 20px; background: var(--accent); color: #fff;
    font-size: .875rem; font-weight: 600; font-family: var(--font);
}
.search-header__form button:hover { background: var(--accent-dark); }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination-wrapper { margin-top: 32px; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-numbers {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-2);
    background: var(--surface);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.page-numbers:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-numbers.dots { border: none; background: none; }
.prev.page-numbers, .next.page-numbers {
    width: auto; padding: 0 16px; gap: 4px;
}

/* =========================================================
   404
   ========================================================= */
.error-404 {
    text-align: center;
    padding: 80px 20px;
    max-width: 540px;
    margin: 0 auto;
}
.error-404__number {
    font-size: 7rem;
    font-weight: 900;
    color: var(--border);
    line-height: 1;
    letter-spacing: -.05em;
}
.error-404__title { font-size: 1.5rem; font-weight: 700; margin-top: 12px; }
.error-404__desc { color: var(--text-2); margin-top: 8px; }
.error-404__search {
    display: flex;
    max-width: 380px;
    margin: 24px auto 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.error-404__search input {
    flex: 1; padding: 11px 16px; border: none; outline: none;
    font-size: .9rem; font-family: var(--font);
}
.error-404__search button {
    padding: 11px 20px; background: var(--accent); color: #fff;
    font-size: .875rem; font-weight: 600; font-family: var(--font);
}
.error-404 .btn { margin-top: 16px; }

/* =========================================================
   NO RESULTS
   ========================================================= */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
}
.no-results__icon { color: var(--border); margin: 0 auto 16px; }
.no-results__title { font-size: 1.3rem; font-weight: 700; }
.no-results__desc { color: var(--text-2); margin-top: 6px; font-size: .9rem; }
.no-results__search {
    display: flex;
    max-width: 340px;
    margin: 20px auto 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.no-results__search input {
    flex: 1; padding: 10px 14px; border: none; outline: none;
    font-size: .875rem; font-family: var(--font);
}
.no-results__search button {
    padding: 10px 16px; background: var(--accent); color: #fff;
    font-size: .875rem; font-weight: 600; font-family: var(--font);
}

/* =========================================================
   COMMENTS
   ========================================================= */
.comment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment-form-author, .comment-form-email, .comment-form-comment { margin-bottom: 16px; }
.comment-form label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .9rem; font-family: var(--font);
    outline: none;
    transition: border-color var(--transition);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); }
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form .required { color: var(--accent); }
.comment-form .submit .submit {
    background: var(--accent); color: #fff;
    padding: 11px 28px; border: none; cursor: pointer;
    border-radius: var(--radius); font-size: .9rem; font-weight: 700;
    font-family: var(--font);
    transition: background var(--transition);
}
.comment-form .submit .submit:hover { background: var(--accent-dark); }
.comment-reply-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }

.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { padding: 20px 0; border-top: 1px solid var(--border); }
.comment-list .children { margin-left: 40px; border-left: 2px solid var(--border); padding-left: 20px; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-author .fn { font-weight: 700; font-size: .9rem; }
.comment-metadata { font-size: .8rem; color: var(--text-3); }
.comment-content p { font-size: .9rem; line-height: 1.6; }
.reply a { font-size: .8rem; color: var(--accent); font-weight: 600; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: #111;
    color: rgba(255,255,255,.8);
    margin-top: 48px;
}

.footer-widgets { padding: 48px 0 32px; border-bottom: 1px solid rgba(255,255,255,.08); }

.footer-widgets__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.footer-col .widget-title { color: rgba(255,255,255,.9); }
.footer-col .widget-title span { border-color: var(--accent); }
.footer-col a { color: rgba(255,255,255,.6); font-size: .875rem; }
.footer-col a:hover { color: #fff; }
.footer-col li { border-color: rgba(255,255,255,.08) !important; }

.footer-logo-text { font-size: 1.4rem; font-weight: 800; color: #fff; }
.footer-description { font-size: .875rem; color: rgba(255,255,255,.5); margin-top: 10px; line-height: 1.6; }

.footer-nav { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.menu--footer { display: flex; flex-wrap: wrap; gap: 4px; }
.menu--footer a {
    padding: 6px 14px;
    font-size: .8rem;
    color: rgba(255,255,255,.55);
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}
.menu--footer a:hover { color: #fff; background: rgba(255,255,255,.08); }

.footer-bottom {
    padding: 16px 0;
}
.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-credits {
    display: flex; align-items: center; gap: 4px;
    font-size: .8rem; color: rgba(255,255,255,.4);
}

/* =========================================================
   PAGE ARTICLE
   ========================================================= */
.content-area--page .page-article {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.entry-header--page { padding: 28px 32px 0; }
.entry-header--page .entry-title { font-size: 2rem; font-weight: 800; }
.entry-thumbnail { margin: 20px 0 0; }
.entry-thumbnail img { width: 100%; max-height: 460px; object-fit: cover; }
.page-article .entry-content { padding: 28px 32px 32px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    :root { --max-w: 1020px; }
    .hero-grid { grid-template-columns: 1fr 280px; }
    .layout-with-sidebar { grid-template-columns: 1fr 280px; }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; min-height: auto; }
    .hero-main { grid-column: 1; grid-row: 1; }
    .hero-main .hero-card__img { min-height: 360px; }
    .hero-side { grid-column: 1; }
    .hero-side .hero-card__img { min-height: 200px; }

    .layout-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; }

    .footer-widgets__grid { grid-template-columns: repeat(2, 1fr); }
    .posts-grid--4col { grid-template-columns: repeat(2, 1fr); }
    .posts-grid--3col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .hamburger { display: flex; }
    .nav-primary, .header-editoria { display: none; }
    .header-main__inner { gap: 12px; }

    .hero-grid { gap: 3px; }
    .hero-main .hero-card__title { font-size: 1.25rem; }
    .single-article__title { font-size: 1.5rem; }
    .single-article__header, .single-article__content, .single-article__footer { padding-left: 18px; padding-right: 18px; }
    .comment-form-grid { grid-template-columns: 1fr; }
    .post-navigation { grid-template-columns: 1fr; }
    .nav-previous a { border-right: 1px solid var(--border); border-bottom: none; }
    .single-article__meta { flex-direction: column; align-items: flex-start; }
    .footer-widgets__grid { grid-template-columns: 1fr; }
    .footer-bottom__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
    .posts-grid--2col,
    .posts-grid--3col,
    .posts-grid--4col { grid-template-columns: 1fr; }
    .hero-main .hero-card__title { font-size: 1.1rem; }
    .breaking-news__track { animation-duration: 20s; }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
    .site-header, .sidebar, .related-posts, .breaking-news,
    .single-article__share, .ad-banner, .post-navigation,
    .site-footer { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    .single-article__content { padding: 0; }
    a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
