/* ============================================================
   Conselheiro Cristão — CSS Completo
   ============================================================ */

/* ── Variáveis CSS ─────────────────────────────────────────── */
:root {
    --primary:      #1a3a5c;
    --primary-dark: #122a44;
    --accent:       #f97316;
    --text:         #1e293b;
    --text-muted:   #64748b;
    --bg:           #ffffff;
    --bg-soft:      #f8fafc;
    --border:       #e2e8f0;
    --radius:       12px;
    --shadow:       0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.15);
    --container:    1200px;
    --font-serif:   Georgia, 'Times New Roman', serif;
    --font-sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition:   0.2s ease;
}

body.dark-mode {
    --bg:         #0f172a;
    --bg-soft:    #1e293b;
    --text:       #e2e8f0;
    --text-muted: #94a3b8;
    --border:     #334155;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

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

ul {
    list-style: none;
}

/* ── Layout ────────────────────────────────────────────────── */
.cc-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1rem;
}

.cc-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

@media (min-width: 1024px) {
    .cc-layout {
        grid-template-columns: 1fr 320px;
    }
}

.cc-main {
    min-height: 60vh;
}

/* ── Barra de progresso de leitura ─────────────────────────── */
.cc-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--accent);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
    background: linear-gradient(135deg, #2c5282 0%, #4299e1 100%);
    color: #fff;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

/* Barra superior */
.header-top {
    background: rgba(0,0,0,0.15);
    padding: 0.4rem 0;
    font-size: 0.875rem;
}

.header-top .cc-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    gap: 1.5rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    color: #fff;
    opacity: 0.85;
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: opacity var(--transition), transform var(--transition);
}

.social-link:hover {
    opacity: 1;
    color: #fff;
    transform: translateY(-2px);
}

/* Header principal */
.header-main {
    padding: 1.5rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.site-branding {
    flex: 1;
    min-width: 260px;
}

/* Logo customizado */
.site-branding .custom-logo-link {
    display: inline-block;
}

.site-branding .custom-logo {
    height: 60px !important;
    width: auto !important;
    max-height: 60px !important;
    max-width: 280px !important;
    object-fit: contain !important;
    display: block !important;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    font-family: var(--font-serif);
}

.site-title a {
    color: #fff;
    text-decoration: none;
    transition: opacity var(--transition);
}

.site-title a:hover {
    opacity: 0.9;
    color: #fff;
}

.site-description {
    margin: 0.4rem 0 0;
    font-size: 1rem;
    opacity: 0.85;
    font-weight: 300;
}

/* Área de busca + ações */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-search {
    min-width: 300px;
}

.search-form {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-field {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: none;
    font-size: 1rem;
    outline: none;
    color: #2d3748;
    background: transparent;
}

.search-field::placeholder {
    color: #a0aec0;
}

/* Garantir que o formulário de busca do WordPress dentro do header tenha o mesmo estilo */
.header-search .wp-block-search__inside-wrapper,
.header-search form {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 0;
}

.header-search input[type="search"] {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: none;
    font-size: 1rem;
    outline: none;
    color: #2d3748;
    background: transparent;
    min-width: 0;
}

.header-search button[type="submit"],
.header-search input[type="submit"] {
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.header-search button[type="submit"]:hover,
.header-search input[type="submit"]:hover {
    background: #ea6c0a;
}

.search-submit {
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background var(--transition);
}

.search-submit:hover {
    background: #ea6c0a;
}

/* Mobile: busca toggle + hamburger */
.header-mobile-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.mobile-search-toggle,
.hamburger-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background var(--transition);
}

.mobile-search-toggle:hover,
.hamburger-btn:hover {
    background: rgba(255,255,255,0.25);
}

.hamburger-btn {
    flex-direction: column;
    gap: 5px;
    padding: 10px 9px;
    font-size: 1rem;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Busca mobile — oculta por padrão, só aparece ao clicar na lupa */
.mobile-search-box {
    display: none !important;
    padding: 0.5rem 0;
    background: rgba(0,0,0,0.1);
}

.mobile-search-box.open {
    display: block !important;
}

.mobile-search-input {
    width: 100%;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.mobile-search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* Navegação principal */
.main-navigation {
    background: rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 48px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item > a {
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--accent);
    color: #fff;
}

/* Dark mode toggle */
.darkmode-toggle {
    position: absolute;
    right: 0;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.darkmode-toggle:hover {
    background: rgba(255,255,255,0.2);
}

/* Overlay mobile */
.cc-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.cc-nav-overlay.active {
    display: block;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #edf2f7 0%, #fff 100%);
    padding: 3rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: #2c5282;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-cta:hover {
    background: #ea6c0a;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    color: #fff;
}

.hero-image {
    text-align: center;
}

.hero-image-box {
    width: 100%;
    max-width: 300px;
    height: 200px;
    background: linear-gradient(135deg, rgba(44,82,130,0.15) 0%, rgba(66,153,225,0.15) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid rgba(44,82,130,0.2);
}

.hero-image-box span {
    font-size: 4rem;
}

/* ── RESPONSIVIDADE DO HEADER ──────────────────────────────── */
@media (max-width: 767px) {
    .header-info { display: none; }
    .social-links { display: none; }

    .header-main { padding: 0.75rem 0; }

    .header-search { display: none; }
    .header-mobile-actions { display: flex; }

    .site-title { font-size: 1.5rem; }
    .site-description { display: none; }
    .site-branding { min-width: 0; }

    .main-navigation {
        display: none;
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #2c5282;
        z-index: 999;
        overflow-y: auto;
        transition: left var(--transition);
        padding-top: 1rem;
        box-shadow: 4px 0 16px rgba(0,0,0,0.3);
    }

    .main-navigation.menu-open {
        display: block;
        left: 0;
    }

    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: auto;
        padding: 0.5rem 0;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu li { width: 100%; }

    .nav-menu li a {
        padding: 0.875rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-bottom-color: rgba(255,255,255,0.1) !important;
    }

    .darkmode-toggle {
        position: static;
        margin: 1rem 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-text h2 { font-size: 1.75rem; }
    .hero-image { display: none; }
}

/* ── Cards de post ─────────────────────────────────────────── */
.cc-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 480px) {
    .cc-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .cc-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cc-card-grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.cc-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border);
}

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

.cc-card.animate-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cc-card.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.cc-card__thumb-link {
    display: block;
    overflow: hidden;
}

.cc-card__thumb-wrap {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-soft);
}

.cc-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cc-card:hover .cc-card__thumb {
    transform: scale(1.04);
}

.cc-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cc-card__cat-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    width: fit-content;
}

.cc-card__cat-badge:hover {
    background: var(--primary);
    color: #fff;
}

.cc-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.4rem 0 0.2rem;
}

.cc-card__tag-link {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.cc-card__tag-link:hover {
    color: var(--accent);
}

.cc-card__title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
}

.cc-card__title a {
    color: inherit;
}

.cc-card__title a:hover {
    color: var(--accent);
}

.cc-card__excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cc-card__meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* ── Artigo / Single ───────────────────────────────────────── */
.cc-single {
    max-width: 768px;
    width: 100%;
}

.cc-single__title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 1rem;
}

.cc-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.cc-single__meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cc-single__featured-wrap {
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cc-single__featured {
    width: 100%;
    height: auto;
    display: block;
}

/* Conteúdo do artigo */
.cc-single__content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--text);
    margin-top: 1.5rem;
}

.cc-single__content p {
    margin-bottom: 1.5rem;
}

.cc-single__content h2,
.cc-single__content h3,
.cc-single__content h4 {
    font-family: var(--font-serif);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    line-height: 1.35;
}

.cc-single__content h2 { font-size: 1.5rem; }
.cc-single__content h3 { font-size: 1.25rem; }
.cc-single__content h4 { font-size: 1.1rem; }

.cc-single__content ul,
.cc-single__content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style: disc;
}

.cc-single__content ol {
    list-style: decimal;
}

.cc-single__content li {
    margin-bottom: 0.4rem;
}

.cc-single__content blockquote {
    border-left: 4px solid var(--accent);
    background: var(--bg-soft);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-muted);
}

.cc-single__content img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

.cc-single__content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.cc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.cc-breadcrumb a {
    color: var(--text-muted);
}

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

.cc-breadcrumb__sep {
    margin: 0 0.1rem;
}

/* ── Bloco Leia Também ─────────────────────────────────────── */
.cc-leia-tambem {
    border-left: 4px solid var(--accent);
    background: var(--bg-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.cc-leia-tambem__heading {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.cc-leia-tambem__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cc-leia-tambem__item {
    list-style: none;
}

.cc-leia-tambem__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.cc-leia-tambem__link:hover {
    color: var(--accent);
}

.cc-leia-tambem__img {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.cc-leia-tambem__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cc-leia-tambem__cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    font-weight: 700;
}

.cc-leia-tambem__title {
    line-height: 1.4;
}

/* ── Versículo [shortcode] ─────────────────────────────────── */
.cc-versiculo {
    background: linear-gradient(135deg, rgba(26,58,92,0.06), rgba(249,115,22,0.06));
    border: 1px solid rgba(26,58,92,0.15);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
}

.cc-versiculo__cruz {
    display: block;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.cc-versiculo__texto {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.cc-versiculo__ref {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    font-style: normal;
}

/* ── Compartilhamento ──────────────────────────────────────── */
.cc-share {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.cc-share__label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.cc-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cc-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition);
    text-decoration: none;
}

.cc-share__btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
}

.cc-share__btn--whatsapp  { background: #25d366; }
.cc-share__btn--facebook  { background: #1877f2; }
.cc-share__btn--telegram  { background: #0088cc; }
.cc-share__btn--copy      { background: var(--text-muted); }

/* ── Artigos relacionados ──────────────────────────────────── */
.cc-related {
    margin: 2.5rem 0;
}

.cc-related__title,
.cc-voce-tambem__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.cc-related__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 600px) {
    .cc-related__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cc-voce-tambem {
    margin: 2rem 0;
}

.cc-voce-tambem__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 600px) {
    .cc-voce-tambem__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── Sidebar ───────────────────────────────────────────────── */
.cc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .cc-sidebar {
        position: sticky;
        top: 80px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--border) transparent;
    }
}

.cc-sidebar__widget {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.cc-sidebar__title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

/* Categorias sidebar */
.cc-sidebar__cat-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cc-sidebar__cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    color: var(--text);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
}

.cc-sidebar__cat-link:hover {
    color: var(--accent);
}

.cc-sidebar__cat-count {
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 99px;
    border: 1px solid var(--border);
}

/* Posts populares */
.cc-sidebar__popular {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cc-sidebar__popular-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cc-sidebar__popular-rank {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--border);
    width: 24px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1;
}

.cc-sidebar__popular-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition);
}

.cc-sidebar__popular-link:hover {
    color: var(--accent);
}

.cc-sidebar__popular-img {
    width: 60px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.cc-sidebar__popular-title {
    line-height: 1.4;
}

/* CTA sidebar */
.cc-sidebar__cta-inner {
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: calc(var(--radius) - 4px);
    padding: 1.5rem 1rem;
    margin: -1px;
}

.cc-sidebar__cta-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.cc-sidebar__cta-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cc-sidebar__cta-text {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Posts recentes sidebar */
.cc-sidebar__recent {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cc-sidebar__recent-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    transition: color var(--transition);
}

.cc-sidebar__recent-link:hover {
    color: var(--accent);
}

.cc-sidebar__recent-img {
    width: 60px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.cc-sidebar__recent-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cc-sidebar__recent-title {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
}

.cc-sidebar__recent-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Paginação ─────────────────────────────────────────────── */
.cc-pagination {
    margin-top: 2rem;
}

.cc-pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border);
    transition: all var(--transition);
    background: var(--bg);
}

.cc-pagination .page-numbers:hover,
.cc-pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ── Botões ─────────────────────────────────────────────────── */
.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity var(--transition), transform var(--transition);
}

.cc-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cc-btn--primary   { background: var(--accent); color: #fff; }
.cc-btn--whatsapp  { background: #25d366; color: #fff; }
.cc-btn--telegram  { background: #0088cc; color: #fff; }

/* ── Formulário de busca ───────────────────────────────────── */
.cc-searchform__inner {
    display: flex;
    align-items: center;
    background: var(--bg-soft);
    border: 2px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color var(--transition);
    max-width: 500px;
    margin: 0 auto;
}

.cc-searchform__inner:focus-within {
    border-color: var(--accent);
}

.cc-searchform__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    color: var(--text);
    outline: none;
}

.cc-searchform__input::placeholder {
    color: var(--text-muted);
}

.cc-searchform__submit {
    padding: 0.625rem 1rem;
    background: var(--accent);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background var(--transition);
}

.cc-searchform__submit:hover {
    background: var(--primary);
}

/* ── Footer ────────────────────────────────────────────────── */
.cc-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.cc-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .cc-footer__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cc-footer__title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.cc-footer__desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
}

.cc-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cc-footer__links li a {
    color: rgba(255,255,255,0.75);
    font-size: 0.875rem;
    transition: color var(--transition);
}

.cc-footer__links li a:hover {
    color: var(--accent);
}

.cc-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
}

.cc-footer__bottom a {
    color: rgba(255,255,255,0.7);
}

.cc-footer__bottom a:hover {
    color: var(--accent);
}

/* ── Exit intent popup ─────────────────────────────────────── */
.cc-exit-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cc-exit-popup[hidden] {
    display: none;
}

.cc-exit-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.cc-exit-popup__box {
    position: relative;
    z-index: 1;
    background: var(--bg);
    border-radius: calc(var(--radius) * 1.5);
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
    animation: popupIn 0.3s ease;
}

@keyframes popupIn {
    from { opacity: 0; transform: scale(0.9) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cc-exit-popup__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background var(--transition);
}

.cc-exit-popup__close:hover {
    background: var(--border);
}

.cc-exit-popup__icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.cc-exit-popup__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.cc-exit-popup__text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cc-exit-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.cc-exit-popup__dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.25rem;
}

/* ── Página 404 ─────────────────────────────────────────────── */
.cc-404 {
    padding: 4rem 1rem;
    max-width: var(--container);
    margin: 0 auto;
}

.cc-404__inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.cc-404__icon {
    font-size: 6rem;
    font-weight: 900;
    color: var(--border);
    line-height: 1;
    font-family: var(--font-serif);
    margin-bottom: 1rem;
}

.cc-404__title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.cc-404__text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cc-404__search {
    margin-bottom: 1.5rem;
}

.cc-404__suggestions-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ── Comentários ───────────────────────────────────────────── */
.cc-comments {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.cc-comments__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.cc-comments__list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.cc-comment {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.cc-comment__inner {
    display: flex;
    gap: 1rem;
}

.cc-comment__avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cc-comment__body {
    flex: 1;
}

.cc-comment__header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cc-comment__author {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
}

.cc-comment__date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cc-comment__reply a {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.cc-comment__text p {
    font-size: 0.925rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 0;
}

.cc-comment__pending {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.25rem;
}

.cc-comments__notes {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Formulário de comentário */
.comment-respond {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.comment-respond .comment-reply-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.cc-comment-field {
    margin-bottom: 1rem;
}

.cc-comment-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.cc-comment-field input,
.cc-comment-field textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: border-color var(--transition);
    outline: none;
}

.cc-comment-field input:focus,
.cc-comment-field textarea:focus {
    border-color: var(--accent);
}

.cc-comment-field--checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.85rem;
}

.cc-comment-field--checkbox input {
    width: auto;
}

/* ── Archive ───────────────────────────────────────────────── */
.cc-archive__header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cc-archive__type {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.75rem;
    border-radius: 99px;
    margin-bottom: 0.5rem;
}

.cc-archive__title {
    font-family: var(--font-serif);
    font-size: clamp(1.375rem, 3vw, 2rem);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cc-archive__desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Search form wrapper ───────────────────────────────────── */
.cc-search-form-wrap {
    margin-bottom: 1.5rem;
}

/* ── Sem posts ─────────────────────────────────────────────── */
.cc-no-posts {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.cc-no-posts p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ── Toast de copiar link ──────────────────────────────────── */
.cc-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: #1e293b;
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.cc-toast.show {
    opacity: 1;
}

/* ── Responsividade geral ──────────────────────────────────── */
@media (max-width: 768px) {
    .cc-share__buttons {
        gap: 0.5rem;
    }

    .cc-share__btn {
        font-size: 0.8rem;
        padding: 0.45rem 0.75rem;
    }

    .cc-voce-tambem__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cc-comment__inner {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ── Screen reader only ────────────────────────────────────── */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    word-wrap: normal !important;
}

/* ── WordPress core classes ────────────────────────────────── */
.alignnone  { margin: 1rem 0; }
.aligncenter { display: block; margin: 1.5rem auto; text-align: center; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }
.alignleft   { float: left; margin: 0 1.5rem 1rem 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 0.25rem; }

/* ═══════════════════════════════════════════════════════════
   PORTAL — NOVAS FUNCIONALIDADES
   ═══════════════════════════════════════════════════════════ */

/* ── Data e hora no header ─────────────────────────────────── */
.cc-header-datetime {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ── Ticker de notícias ────────────────────────────────────── */
.cc-ticker {
    background: var(--primary-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.45rem 0;
    overflow: hidden;
}

.cc-ticker__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cc-ticker__label {
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 9px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cc-ticker__label::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: ccTickerBlink 1.2s ease-in-out infinite;
}

@keyframes ccTickerBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.cc-ticker__wrap {
    overflow: hidden;
    flex: 1;
}

.cc-ticker__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: ccTickerScroll 45s linear infinite;
}

.cc-ticker__track:hover {
    animation-play-state: paused;
}

@keyframes ccTickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.cc-ticker__item {
    color: rgba(255,255,255,0.88);
    font-size: 0.8rem;
    white-space: nowrap;
    padding: 0 1.25rem;
    text-decoration: none;
    transition: color 0.2s;
}

.cc-ticker__item:hover { color: var(--accent); }

.cc-ticker__sep {
    color: rgba(255,255,255,0.3);
    font-size: 0.65rem;
    flex-shrink: 0;
}

/* ── Slider / Carrossel — full-width ───────────────────────── */
.cc-slider {
    position: relative;
    overflow: hidden;
    background: #111;
    height: 340px;
    margin-bottom: 0;
}

@media (min-width: 600px) { .cc-slider { height: 420px; } }
@media (min-width: 1024px) { .cc-slider { height: 480px; } }

.cc-slider__track {
    display: flex;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.cc-slider__slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.cc-slider__img-wrap {
    position: absolute;
    inset: 0;
}

.cc-slider__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cc-slider__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 55%, transparent 100%);
    padding: 2.5rem 1.5rem 1.25rem;
    color: #fff;
}

@media (min-width: 768px) { .cc-slider__caption { padding: 3rem 2.5rem 1.75rem; } }

.cc-slider__cat {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.cc-slider__title {
    font-size: clamp(1rem, 2.8vw, 1.7rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.cc-slider__title a { color: #fff; text-decoration: none; }
.cc-slider__title a:hover { color: var(--accent); }

.cc-slider__excerpt {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.8rem;
    display: none;
}

@media (min-width: 600px) { .cc-slider__excerpt { display: block; } }

.cc-slider__btn {
    display: inline-block;
    background: var(--accent);
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 99px;
    text-decoration: none;
    transition: background 0.2s;
}

.cc-slider__btn:hover { background: #ea6d0f; color: #fff !important; }

.cc-slider__prev,
.cc-slider__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    font-size: 2.2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
    line-height: 1;
}

.cc-slider__prev { left: 0.75rem; }
.cc-slider__next { right: 0.75rem; }
.cc-slider__prev:hover,
.cc-slider__next:hover { background: rgba(255,255,255,0.32); }

.cc-slider__dots {
    position: absolute;
    bottom: 1rem;
    right: 1.25rem;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.cc-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.cc-slider__dot.active {
    background: #fff;
    transform: scale(1.35);
}

/* ── Badges nos cards ──────────────────────────────────────── */
.cc-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.35rem;
}

.cc-badge--novo     { background: #22c55e; color: #fff; }
.cc-badge--destaque { background: var(--accent); color: #fff; }

/* ── Seções por categoria ──────────────────────────────────── */
.cc-cat-section {
    margin-bottom: 2.5rem;
    margin-top: 0.5rem;
}

.cc-cat-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
    gap: 1rem;
}

.cc-cat-section__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.cc-cat-section__more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    text-decoration: none;
}

.cc-cat-section__more:hover { color: var(--primary); }

.cc-cat-section__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .cc-cat-section__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Caixa do autor ────────────────────────────────────────── */
.cc-author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}

.cc-author-box__img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--primary);
}

.cc-author-box__info { flex: 1; }

.cc-author-box__label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.cc-author-box__name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.cc-author-box__name a { color: var(--primary); }
.cc-author-box__name a:hover { color: var(--accent); }

.cc-author-box__bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 480px) {
    .cc-author-box { flex-direction: column; align-items: center; text-align: center; }
}

/* ── Botão voltar ao topo ──────────────────────────────────── */
.cc-back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 400;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    pointer-events: none;
}

.cc-back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cc-back-to-top:hover { background: var(--accent); }

/* ── Contador de seguidores ────────────────────────────────── */
.cc-social-counter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.cc-social-counter__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.85rem 0.5rem;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    color: #fff !important;
}

.cc-social-counter__item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: #fff !important;
}

.cc-social-counter__item--fb { background: #1877f2; }
.cc-social-counter__item--ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.cc-social-counter__item--wa { background: #25d366; grid-column: span 2; flex-direction: row; justify-content: center; gap: 0.6rem; padding: 0.7rem; }

.cc-social-counter__icon  { font-size: 1.3rem; margin-bottom: 0.25rem; }
.cc-social-counter__num   { font-size: 1rem; font-weight: 700; line-height: 1; }
.cc-social-counter__net   { font-size: 0.68rem; opacity: 0.9; margin-top: 2px; }
.cc-social-counter__action { font-size: 0.6rem; opacity: 0.75; margin-top: 2px; }

.cc-social-counter__item--wa .cc-social-counter__icon { margin-bottom: 0; }

/* ── Tags populares ────────────────────────────────────────── */
.cc-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.cc-tag-cloud a {
    display: inline-block !important;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-muted) !important;
    font-size: 0.77rem !important;
    padding: 4px 10px;
    border-radius: 99px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.cc-tag-cloud a:hover {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}

/* ── Rodapé 4 colunas ──────────────────────────────────────── */
@media (min-width: 900px) {
    .cc-footer__grid { grid-template-columns: repeat(4, 1fr); }
}

.cc-footer__social {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.cc-footer__social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.72);
    font-size: 0.84rem;
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.cc-footer__social-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.cc-footer__social-icon { font-size: 1rem; width: 22px; text-align: center; }

/* ── Bloco destaque homepage (1 grande + 3 menores) ───────── */
.cc-hero-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .cc-hero-block {
        grid-template-columns: 3fr 2fr;
        align-items: stretch;
    }
}

.cc-hero-main {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
    text-decoration: none;
}

.cc-hero-main__img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

@media (min-width: 768px) { .cc-hero-main__img { min-height: 320px; } }

.cc-hero-main:hover .cc-hero-main__img { transform: scale(1.03); }

.cc-hero-main__caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 2rem 1.25rem 1rem;
    color: #fff;
}

.cc-hero-main__cat {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.4rem;
}

.cc-hero-main__title {
    font-size: clamp(1rem, 2.2vw, 1.45rem);
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 0.3rem;
}

.cc-hero-main__meta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* Side items */
.cc-hero-side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cc-hero-side__item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.65rem;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
    flex: 1;
}

.cc-hero-side__item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.cc-hero-side__img {
    width: 90px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--bg-soft);
}

.cc-hero-side__body { flex: 1; min-width: 0; }

.cc-hero-side__cat {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.cc-hero-side__title {
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-hero-side__date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ── Section header ("Mais Recentes" etc.) ─────────────────── */
.cc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--primary);
    gap: 1rem;
}

.cc-section-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.cc-section-header__more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    text-decoration: none;
}

.cc-section-header__more:hover { color: var(--primary); }

/* ── Cards das seções de categoria (proporções fixas) ──────── */
.cc-cat-card {
    display: block;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cc-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.cc-cat-card__img-wrap {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--bg-soft);
}

.cc-cat-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cc-cat-card:hover .cc-cat-card__img { transform: scale(1.05); }

.cc-cat-card__no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0.15;
}

.cc-cat-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
}

.cc-cat-card__body {
    padding: 0.75rem 0.9rem;
}

.cc-cat-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-cat-card:hover .cc-cat-card__title { color: var(--accent); }

.cc-cat-card__meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ── Dark mode overrides ───────────────────────────────────── */
body.dark-mode .cc-cat-section__header { border-color: var(--accent); }
body.dark-mode .cc-cat-section__title  { color: var(--text); }
body.dark-mode .cc-author-box          { background: var(--bg-soft); border-color: var(--border); }
body.dark-mode .cc-tag-cloud a         { background: var(--bg-soft); border-color: var(--border); }
body.dark-mode .cc-hero-side__item     { background: var(--bg-soft); border-color: var(--border); }
body.dark-mode .cc-cat-card            { background: var(--bg-soft); border-color: var(--border); }
body.dark-mode .cc-section-header h2   { color: var(--text); }

/* ── CORREÇÕES MOBILE HEADER ──────────────────────────────── */
@media (max-width: 767px) {

    /* 1. Esconder barra superior inteira */
    .header-top {
        display: none !important;
    }

    /* 2. Corrigir logo customizado grande demais */
    .site-branding .custom-logo-link {
        display: block;
        max-width: 160px;
    }
    .site-branding .custom-logo-link img,
    .site-branding .custom-logo {
        max-height: 50px !important;
        height: 50px !important;
        width: auto !important;
        max-width: 160px !important;
    }

    /* 3. Garantir que menu fique oculto por padrão */
    .main-navigation:not(.menu-open) {
        display: none !important;
    }

    /* 4. Menu aberto: painel lateral fixo */
    .main-navigation.menu-open {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 999;
        overflow-y: auto;
    }
}

/* ── Artigo individual: leitura focada (sem sidebar) ────────── */
@media (min-width: 1024px) {
    .single .cc-layout {
        grid-template-columns: 1fr;
    }

    .single .cc-sidebar {
        display: none;
    }

    .single .cc-single {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ── Artigo individual: margens laterais confortáveis no mobile */
@media (max-width: 767px) {
    .single .cc-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
/* ── Push Notification Banner ──────────────────────────────── */
.cc-push-banner{position:fixed;bottom:-220px;left:50%;transform:translateX(-50%);z-index:9997;background:#fff;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 12px 40px rgba(0,0,0,.18);padding:24px 20px 20px;width:min(440px,calc(100vw - 24px));transition:bottom .45s cubic-bezier(.34,1.56,.64,1);}
.cc-push-banner.is-visible{bottom:20px;}
.cc-push-banner__head{display:flex;align-items:center;gap:12px;margin-bottom:12px;}
.cc-push-banner__bell{width:44px;height:44px;background:linear-gradient(135deg,#1a3a5c,#4299e1);border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.4rem;flex-shrink:0;}
.cc-push-banner__titles strong{display:block;font-size:.95rem;color:#1a3a5c;font-weight:700;}
.cc-push-banner__titles span{font-size:.8rem;color:#64748b;}
.cc-push-banner__body{font-size:.85rem;color:#475569;line-height:1.5;margin-bottom:16px;padding-left:4px;}
.cc-push-banner__actions{display:flex;gap:10px;}
.cc-push-banner__accept{flex:1;background:linear-gradient(135deg,#f97316,#ea580c);color:#fff;border:none;padding:13px;border-radius:12px;font-weight:700;font-size:.9rem;cursor:pointer;transition:.15s ease;}
.cc-push-banner__accept:hover{opacity:.9;}
.cc-push-banner__dismiss{background:none;border:1px solid #e2e8f0;color:#64748b;padding:13px 16px;border-radius:12px;font-size:.85rem;cursor:pointer;transition:.15s ease;}
.cc-push-banner__dismiss:hover{background:#f8fafc;border-color:#cbd5e1;}
.cc-push-banner__success{text-align:center;padding:8px 0;font-weight:600;color:#15803d;font-size:.95rem;}
body.dark-mode .cc-push-banner{background:#1e293b;border-color:#334155;}
body.dark-mode .cc-push-banner__titles strong{color:#e2e8f0;}
body.dark-mode .cc-push-banner__body{color:#94a3b8;}
body.dark-mode .cc-push-banner__dismiss{border-color:#334155;color:#94a3b8;}
