/*
Theme Name: JACAD Blog
Theme URI: https://jacad.com.br
Author: JACAD
Description: Tema personalizado para o blog institucional da JACAD – gestão educacional
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: jacad
*/

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

:root {
    --color-primary:       #19B5A4;
    --color-primary-dark:  #149E8F;
    --color-primary-light: #E8F8F6;
    --color-accent:        #d4712b;
    --color-accent-dark:   #c0642a;
    --color-dark:          #1A1F2E;
    --color-text:          #374151;
    --color-muted:         #6B7280;
    --color-light:         #F3F4F6;
    --color-border:        #E5E7EB;
    --color-white:         #FFFFFF;

    --font-base: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-full: 100px;

    --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 18px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);

    --transition: all 0.2s ease;

    --container-max:     1280px;
    --container-padding: 24px;
    --header-height:     64px;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background: var(--color-light);
    line-height: 1.6;
    padding-top: var(--header-height);
}

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

/* ===========================
   UTILITIES
   =========================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.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;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(226,230,233,0.4);
}

/* Equivalente ao div interno do Figma:
   max-w-[1280px] mx-auto h-[64px] flex items-center px-4 */
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

/* Logo */
.site-logo { flex-shrink: 0; }

.site-logo a {
    display: flex;
    align-items: center;
}

/* Funciona para PNG, SVG e custom-logo do WordPress */
.site-logo img,
.site-logo .custom-logo {
    height: 37px;
    width: auto;
    max-width: 160px;
    display: block;
    /* SVG não deve ser esticado */
    object-fit: contain;
}

/* Remove link do custom-logo do WordPress */
.custom-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-text {
    font-size: 22px;
    font-weight: 900;
    font-family: var(--font-base);
    letter-spacing: -0.5px;
    color: #33404d;
}

.logo-text .logo-accent { color: var(--color-primary); }

/* Navigation — centralizada */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav > ul > li { position: relative; }

.main-nav > ul > li > a,
.main-nav > ul > li > button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 500;
    color: #33404d;
    border-radius: 6px;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > button:hover {
    background: #f9fafb;
    color: #33404d;
}

.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current-menu-ancestor > a,
.main-nav > ul > li.current-menu-ancestor > button {
    color: #00ad90;
    border-bottom-color: #00ad90;
}

.main-nav .chevron {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Dropdown base */
.sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.18s ease;
    z-index: 200;
}

.main-nav .menu-item-has-children:hover .sub-menu,
.main-nav .menu-item-has-children:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown simples */
.sub-menu li a {
    display: block;
    padding: 9px 12px;
    font-family: var(--font-base);
    font-size: 14px;
    color: #33404d;
    border-radius: var(--radius-sm);
}

.sub-menu li a:hover {
    background: #f9fafb;
    color: var(--color-primary);
}

/* Mega dropdown — Segmentos (2 colunas com título + descrição) */
.sub-menu--mega {
    min-width: 480px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 32px;
    padding: 20px 24px;
}

.sub-menu--mega li { list-style: none; }

.sub-menu-item-link {
    display: block;
    padding: 12px 0;
    border-radius: 0;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sub-menu-item-link:hover { background: none; }

.sub-menu-item-title {
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
}

.sub-menu-item-desc {
    font-family: var(--font-base);
    font-size: 13px;
    color: #627384;
    line-height: 1.4;
    font-weight: 400;
}

/* Header Right */
.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-phone {
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 500;
    color: #627384;
    white-space: nowrap;
}

.btn-callback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    height: 40px;
    background: #d4712b;
    color: var(--color-white);
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 600;
    border-radius: 7px;
    border: none;
    white-space: nowrap;
    transition: background 0.15s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-callback:hover {
    background: #c0642a;
    color: var(--color-white);
}

.btn-callback svg { flex-shrink: 0; }

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-dark);
    flex-shrink: 0;
    margin-left: 8px;
}

/* ===========================
   HERO / BANNER
   =========================== */

/* Equivalente ao: relative w-full py-[112px] overflow-hidden */
.blog-hero {
    position: relative;
    width: 100%;
    padding: 112px 0;
    overflow: hidden;
    background-color: rgba(62, 82, 96, 0.95);
}

/* Imagem de fundo — absolute inset-0 w-full h-full object-cover */
.blog-hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Quando setado via background-image (Customizer) */
.blog-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Gradiente: bg-gradient-to-r from-[rgba(62,82,96,0.95)] via-[...0.85] to-[...0.6] */
.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(62, 82, 96, 0.95) 0%,
        rgba(62, 82, 96, 0.85) 50%,
        rgba(62, 82, 96, 0.60) 100%
    );
}

/* relative max-w-[768px] mx-auto flex flex-col items-center gap-6 px-4 text-center */
.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 768px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 0 16px;
    text-align: center;
}

/* font-black text-[60px] leading-[68px] text-white */
.blog-hero-content h1 {
    font-family: var(--font-base);
    font-weight: 900;
    font-size: 60px;
    line-height: 68px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

/* text-[#00ad90] */
.blog-hero-content h1 em,
.blog-hero-content h1 span.hero-highlight {
    font-style: normal;
    color: #00ad90;
}

/* text-[20px] leading-[28px] text-[#cbd5e1] */
.blog-hero-content p {
    font-family: var(--font-base);
    font-size: 20px;
    line-height: 28px;
    color: #cbd5e1;
    max-width: 640px;
}

@media (max-width: 768px) {
    .blog-hero { padding: 72px 0; }
    .blog-hero-content h1 { font-size: 36px; line-height: 44px; }
    .blog-hero-content p { font-size: 17px; line-height: 26px; }
}

/* ===========================
   ANIMAÇÕES DE ENTRADA
   =========================== */

/* Keyframes */
@keyframes jacadFadeUp {
    from { opacity: 0; transform: translateY(48px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes jacadFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Hero: título e subtítulo aparecem ao carregar */
.blog-hero-content h1 {
    animation: jacadFadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.15s;
}

.blog-hero-content p {
    animation: jacadFadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.45s;
}

/* Cards: estado inicial oculto (antes do Intersection Observer agir) */
.featured-post,
.post-card {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-post.is-visible,
.post-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respeita preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {
    .blog-hero-content h1,
    .blog-hero-content p {
        animation: none;
    }
    .featured-post,
    .post-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===========================
   BLOG LAYOUT
   =========================== */
.blog-section {
    padding: 56px 0 80px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 316px;
    gap: 36px;
    align-items: start;
}

/* ===========================
   FEATURED POST
   =========================== */
.featured-post-wrap { margin-bottom: 28px; }

.featured-post {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-dark);
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--shadow-md);
    color: var(--color-white);
    text-decoration: none;
}

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

.featured-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.featured-img-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #19B5A4 0%, #1A1F2E 100%);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(15,20,35,0.95) 0%,
        rgba(15,20,35,0.45) 50%,
        transparent 100%
    );
}

.featured-content {
    position: relative;
    z-index: 1;
    padding: 36px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.featured-meta .post-date,
.featured-meta .reading-time {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-post h2 {
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.featured-post .featured-excerpt {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,0.78);
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-continue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    transition: var(--transition);
}

.btn-continue .arrow-circle {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255,255,255,0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-continue:hover { gap: 14px; }
.btn-continue:hover .arrow-circle {
    background: var(--color-white);
    border-color: var(--color-white);
}
.btn-continue:hover .arrow-circle svg { color: var(--color-dark); }

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

/* ===========================
   POST CARD
   =========================== */
.post-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.post-card-img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-light);
}

.post-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.post-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), #d0f0ec);
}

.post-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-muted);
}

.post-card h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-dark);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

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

.post-card .card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-muted);
    flex: 1;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-muted);
}

.btn-ler-mais {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    transition: var(--transition);
}

.btn-ler-mais:hover {
    gap: 8px;
    color: var(--color-primary-dark);
}

/* ===========================
   CATEGORY BADGE
   =========================== */
.cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.5;
}

.cat-default            { background: #19B5A4; color: #fff; }
.cat-marketing          { background: #19B5A4; color: #fff; }
.cat-marketing-educacional { background: #19B5A4; color: #fff; }
.cat-financeira         { background: #3B82F6; color: #fff; }
.cat-gestao-financeira  { background: #3B82F6; color: #fff; }
.cat-educacional        { background: #8B5CF6; color: #fff; }
.cat-gestao-educacional { background: #8B5CF6; color: #fff; }
.cat-legislacao         { background: #6366F1; color: #fff; }
.cat-tendencias         { background: #F97316; color: #fff; }
.cat-tecnologia         { background: #0EA5E9; color: #fff; }

/* ===========================
   SIDEBAR
   =========================== */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-light);
}

/* Categories */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid transparent;
}

.category-btn:hover,
.category-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.cat-count {
    font-size: 12px;
    font-weight: 600;
    background: rgba(0,0,0,0.07);
    border-radius: var(--radius-full);
    padding: 1px 8px;
    min-width: 24px;
    text-align: center;
    transition: var(--transition);
}

.category-btn.active .cat-count,
.category-btn:hover .cat-count {
    background: rgba(255,255,255,0.25);
}

/* Tags */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: var(--color-light);
    color: var(--color-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.tag-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* CTA Widget */
.widget-cta {
    background: var(--color-dark);
    color: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 24px 22px;
    box-shadow: var(--shadow-sm);
}

.widget-cta .widget-title {
    color: var(--color-white);
    border-bottom-color: rgba(255,255,255,0.10);
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.widget-cta p {
    font-size: 13px;
    color: rgba(255,255,255,0.68);
    line-height: 1.6;
    margin-bottom: 18px;
}

.btn-specialist {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 18px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn-specialist:hover {
    background: var(--color-accent-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(249,115,22,0.40);
}

/* ===========================
   PAGINATION
   =========================== */
.blog-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    background: var(--color-white);
    transition: var(--transition);
}

.page-numbers:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

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

.page-numbers.dots { border: none; background: none; }

/* ===========================
   SINGLE POST
   =========================== */
.single-hero {
    position: relative;
    height: 460px;
    overflow: hidden;
    background: var(--color-dark);
}

.single-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.45;
}

.single-hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #19B5A4 0%, #1A1F2E 100%);
}

.single-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 0 40px;
    background: linear-gradient(to top, rgba(26,31,46,0.95), transparent);
}

.single-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.single-meta .post-date,
.single-meta .reading-time {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-hero h1 {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
    letter-spacing: -0.4px;
}

.single-content {
    padding: 60px 0 80px;
}

.single-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

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

/* Post content typography */
.post-content {
    font-size: 17px;
    line-height: 1.82;
    color: var(--color-text);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-weight: 700;
    color: var(--color-dark);
    margin: 2em 0 0.75em;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.post-content h2 { font-size: 26px; }
.post-content h3 { font-size: 22px; }
.post-content h4 { font-size: 18px; }

.post-content p { margin-bottom: 1.5em; }

.post-content ul,
.post-content ol {
    margin: 0 0 1.5em 1.5em;
    list-style: disc;
}

.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.5em; }

.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 16px 24px;
    background: var(--color-primary-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2em 0;
    font-style: italic;
    color: var(--color-dark);
}

.post-content img {
    border-radius: var(--radius-lg);
    margin: 2em 0;
    box-shadow: var(--shadow-md);
}

.post-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content a:hover { color: var(--color-primary-dark); }
.post-content strong { font-weight: 700; color: var(--color-dark); }

/* ===========================
   EMPTY STATE
   =========================== */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-muted);
}

.no-posts h2 {
    font-size: 22px;
    color: var(--color-dark);
    margin-bottom: 10px;
}

/* ===========================
   FOOTER
   =========================== */
/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background: #f6f7f8;
    font-family: var(--font-base);
    width: 100%;
}

.footer-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 17px 0;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* ── Top block ── */
.footer-top {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Brand column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}

.footer-brand img {
    width: 158px;
    height: 48px;
    object-fit: cover;
    display: block;
}

.footer-desc {
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: #627384;
    margin: 0;
    max-width: 280px;
}

.footer-social-label {
    font-family: var(--font-base);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #3e5260;
    margin: 0;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    flex-shrink: 0;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.social-icon:hover { opacity: 0.85; }
.social-icon img   { width: 36px; height: 36px; display: block; }

/* Link columns wrapper */
.footer-cols {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col-title {
    font-family: var(--font-base);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: #3e5260;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a,
.footer-links span {
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: #627384;
    text-decoration: none;
    display: block;
    transition: color 0.15s ease;
}

.footer-links a:hover { color: #33404d; }

/* ── Bottom bar ── */
.footer-bottom {
    border-top: 1px solid #e2e6e9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    min-height: 131px;
}

.footer-copyright {
    font-family: var(--font-base);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #627384;
    margin: 0;
    text-align: center;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-legal a {
    font-family: var(--font-base);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #627384;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.footer-legal a:hover { color: #33404d; }

.footer-legal span {
    font-size: 12px;
    line-height: 16px;
    color: #627384;
    user-select: none;
}

/* ── Footer responsive ── */
@media (min-width: 1024px) {
    .footer-top   { flex-direction: row; align-items: flex-start; justify-content: space-between; }
    .footer-brand { width: 280px; flex-shrink: 0; }
    .footer-cols  { flex-direction: row; flex-wrap: nowrap; gap: 24px; width: auto; margin-left: auto; }
    .footer-col   { flex: none; min-width: 200px; }
}

@media (max-width: 560px) {
    .footer-wrap { padding: 36px 16px 0; }
}

/* ===========================
   RELATED POSTS CAROUSEL
   =========================== */

.related-posts {
    padding: 64px 0 72px;
    background: var(--color-light);
}

.related-posts-title {
    font-family: var(--font-base);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 28px;
}

.related-slider {
    position: relative;
    overflow: hidden;
}

.related-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* Carrossel: mostra 1 "página" por vez via JS (translate) */
}

/* Cartão */
.related-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    min-height: 260px;
    background: var(--color-dark);
    box-shadow: var(--shadow-md);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.related-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.related-card-img--placeholder {
    background: linear-gradient(135deg, #2a3a48 0%, #19B5A4 100%);
}

.related-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 31, 46, 0.92) 0%,
        rgba(26, 31, 46, 0.55) 50%,
        rgba(26, 31, 46, 0.20) 100%
    );
    z-index: 1;
}

.related-card-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    padding: 20px;
    gap: 10px;
}

.related-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.related-card-meta .cat-badge {
    font-size: 10px;
    padding: 3px 8px;
}

.related-card-meta .post-date {
    font-family: var(--font-base);
    font-size: 11px;
    color: rgba(255,255,255,0.75);
}

.related-card-title {
    font-family: var(--font-base);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-base);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-white);
    margin-top: 2px;
}

.related-card-cta .arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.related-card:hover .related-card-cta .arrow-circle {
    background: var(--color-primary-dark);
}

/* Dots */
.related-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.related-dot {
    width: 28px;
    height: 6px;
    border-radius: var(--radius-full);
    border: none;
    background: #c5cdd6;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, width 0.2s ease;
}

.related-dot.is-active {
    background: var(--color-primary);
    width: 40px;
}

/* Modo carrossel (JS adiciona .is-carousel ao .related-slider) */
.related-slider.is-carousel .related-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.related-slider.is-carousel .related-card {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .blog-layout { grid-template-columns: 1fr 290px; gap: 28px; }
}

@media (max-width: 900px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .single-layout { grid-template-columns: 1fr; }
    .single-sidebar { position: static; }
}

/* ===========================
   MOBILE DROPDOWN (inline, below header bar)
   =========================== */

/* Hamburger / X toggle */
.menu-toggle .close-icon  { display: none; }
.menu-toggle.is-open .hamburger-icon { display: none; }
.menu-toggle.is-open .close-icon     { display: flex; }

/* Dropdown container — oculto por padrão */
.mobile-dropdown {
    display: none;
    background: #ffffff;
    border-top: 1px solid rgba(226,230,233,0.6);
}
.mobile-dropdown.is-open { display: block; }

/* Links simples */
.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-family: var(--font-base);
    font-size: 15px;
    font-weight: 500;
    color: #33404d;
    text-decoration: none;
    border-bottom: 1px solid rgba(226,230,233,0.6);
    transition: color 0.15s;
}
.mobile-nav-link:hover { color: var(--color-primary); }

/* Accordion */
.mobile-accordion { border-bottom: 1px solid rgba(226,230,233,0.6); }

.mobile-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-base);
    font-size: 15px;
    font-weight: 500;
    color: #33404d;
    text-align: left;
}

.accordion-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.mobile-accordion.is-open .accordion-chevron { transform: rotate(180deg); }

.mobile-accordion-content {
    display: none;
    padding-bottom: 8px;
}
.mobile-accordion.is-open .mobile-accordion-content { display: block; }

.mobile-accordion-item {
    display: block;
    padding: 10px 24px;
    text-decoration: none;
    transition: background 0.15s;
}
.mobile-accordion-item:hover { background: #f9fafb; }

.mobile-acc-title {
    display: block;
    font-family: var(--font-base);
    font-size: 13px;
    font-weight: 600;
    color: #00ad90;
    line-height: 18px;
}
.mobile-acc-desc {
    display: block;
    font-family: var(--font-base);
    font-size: 12px;
    font-weight: 400;
    color: #627384;
    line-height: 17px;
    margin-top: 2px;
}

/* Bottom CTA */
.mobile-dropdown-cta {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(226,230,233,0.6);
}

.mobile-phone-label {
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 500;
    color: #627384;
}

.btn-mobile-callback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #d4712b;
    color: #ffffff;
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 600;
    border-radius: 7px;
    text-decoration: none;
    transition: background 0.15s;
}
.btn-mobile-callback:hover { background: #c0642a; color: #ffffff; }

/* ===========================
   RESPONSIVE — HEADER MOBILE
   =========================== */
@media (max-width: 768px) {
    .main-nav   { display: none !important; }
    .header-cta { display: none; }
    .menu-toggle { display: flex; margin-left: auto; }

    .posts-grid     { grid-template-columns: 1fr; }
    .featured-post  { min-height: 360px; }
    .featured-content { padding: 24px; }

    /* Related posts: 1 coluna no mobile */
    .related-track { grid-template-columns: 1fr; }
    .related-slider.is-carousel .related-card { flex: 0 0 100%; }
}

@media (min-width: 480px) and (max-width: 768px) {
    /* Related posts: 2 colunas em tablets pequenos */
    .related-track { grid-template-columns: repeat(2, 1fr); }
    .related-slider.is-carousel .related-card { flex: 0 0 calc((100% - 20px) / 2); }
}

@media (max-width: 480px) {
    .btn-callback span { display: none; }
}
