/*
 * Securion Blog — Additional CSS
 * Colar em: Appearance > Customize > Additional CSS
 * Compativel com: WordPress 6.x + Astra Free + Spectra Blocks
 * Ultima atualizacao: 2026-06-16
 * ============================================================
 */


/* ============================================================
   0. IMPORTACAO DE FONTES GOOGLE
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=Space+Mono:wght@400&display=swap');


/* ============================================================
   1. TOKENS CSS — VARIAVEIS GLOBAIS
   ============================================================ */

:root {
  /* Cores primarias */
  --color-primary:        #04395B;
  --color-primary-dark:   #0A2137;
  --color-accent:         #2AB766;
  --color-accent-hover:   #1F9A54;
  --color-accent-soft:    rgba(42, 183, 102, 0.12);
  --color-accent-bg:      rgba(42, 183, 102, 0.08);

  /* Cores de texto */
  --color-text-main:      #1A1A2E;
  --color-text-body:      #545454;
  --color-text-muted:     #7A7A8A;
  --color-text-white:     #FFFFFF;
  --color-text-white-80:  rgba(255, 255, 255, 0.80);
  --color-text-white-50:  rgba(255, 255, 255, 0.50);

  /* Fundos */
  --color-bg-page:        #F4F7FA;
  --color-bg-white:       #FFFFFF;
  --color-bg-header:      #0A2137;
  --color-bg-footer:      #0A2137;
  --color-bg-primary-tag: rgba(4, 57, 91, 0.08);

  /* Bordas */
  --color-border-light:   rgba(4, 57, 91, 0.12);
  --color-border-medium:  rgba(4, 57, 91, 0.20);

  /* Tipografia */
  --font-heading:         'Space Grotesk', system-ui, sans-serif;
  --font-body:            'Inter', system-ui, sans-serif;
  --font-mono:            'Space Mono', 'Courier New', monospace;

  /* Tamanhos de fonte */
  --fs-xs:   11px;
  --fs-sm:   12px;
  --fs-base: 14px;
  --fs-md:   16px;
  --fs-lg:   18px;
  --fs-xl:   22px;
  --fs-2xl:  28px;
  --fs-3xl:  32px;
  --fs-4xl:  40px;

  /* Pesos */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;

  /* Espacamento */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Raios de borda */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  16px;
  --radius-full: 999px;

  /* Sombras */
  --shadow-card:       0 2px 12px rgba(4, 57, 91, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(4, 57, 91, 0.16);
  --shadow-header:     0 1px 16px rgba(10, 33, 55, 0.18);
  --shadow-widget:     0 2px 12px rgba(4, 57, 91, 0.08);

  /* Transicoes */
  --transition-fast:   120ms ease-out;
  --transition-base:   200ms ease-out;
  --transition-slow:   300ms ease-out;

  /* Z-index */
  --z-header: 100;
  --z-overlay: 200;
}


/* ============================================================
   2. RESET E BASE
   ============================================================ */

body {
  background-color: var(--color-bg-page);
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Foco acessivel: substituir outline padrao do browser */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Remover outline padrao do browser em todos os contextos */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Links globais */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

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


/* ============================================================
   3. HEADER
   ============================================================ */

/* Fundo escuro e sticky */
#masthead,
.site-header,
.ast-primary-header-bar,
header.ast-desktop-header {
  background-color: var(--color-bg-header) !important;
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  box-shadow: var(--shadow-header);
}

/* Logo no header */
#masthead .custom-logo,
.site-header .custom-logo {
  max-height: 40px;
  width: auto;
}

/* Navegacao principal */
#masthead .ast-header-navigation-arrow .menu-link,
.ast-primary-nav-wrap .menu-link,
#site-navigation .menu-link,
.ast-nav-menu > li > a {
  color: var(--color-text-white-80) !important;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  padding: 6px 4px;
  position: relative;
  transition: color var(--transition-base);
}

.ast-nav-menu > li > a:hover,
#site-navigation .menu-link:hover,
.ast-primary-nav-wrap .menu-link:hover {
  color: var(--color-text-white) !important;
}

/* Underline verde no item ativo */
.ast-nav-menu > .current-menu-item > a::after,
.ast-nav-menu > .current-menu-ancestor > a::after,
#site-navigation .current-menu-item > .menu-link::after,
#site-navigation .current-menu-ancestor > .menu-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

/* CTA button no header */
.ast-header-button-1 .ast-custom-button,
.header-widget-area .btn-header-cta,
.ast-nav-menu .menu-item-cta > a,
.ast-nav-menu .menu-item-type-custom.cta > a {
  background-color: var(--color-accent) !important;
  color: var(--color-text-white) !important;
  border-radius: var(--radius-full) !important;
  padding: 8px 20px !important;
  font-weight: var(--fw-semi) !important;
  font-size: var(--fs-base) !important;
  transition: background-color var(--transition-base), transform var(--transition-fast);
}

.ast-header-button-1 .ast-custom-button:hover,
.header-widget-area .btn-header-cta:hover,
.ast-nav-menu .menu-item-cta > a:hover {
  background-color: var(--color-accent-hover) !important;
  transform: translateY(-1px);
}

/* Menu mobile: hamburger icon branco */
.ast-mobile-menu-trigger-fill,
.ast-mobile-menu-trigger span,
.menu-toggle {
  color: var(--color-text-white) !important;
  border-color: rgba(255,255,255,0.3) !important;
}

/* Menu mobile dropdown */
.ast-mobile-header-wrap .ast-main-header-bar,
.ast-popup-nav-links {
  background-color: var(--color-bg-header) !important;
}

.ast-mobile-header-wrap .ast-nav-menu > li > a,
.ast-popup-nav-links a {
  color: var(--color-text-white-80) !important;
  border-bottom-color: rgba(255,255,255,0.08) !important;
}


/* ============================================================
   4. HERO STRIP DA PAGINA DE BLOG
   ============================================================ */

.blog-hero-strip {
  background-color: var(--color-primary);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.blog-hero-strip__inner {
  max-width: 720px;
  margin: 0 auto;
}

.blog-hero-strip h1,
.blog-hero-strip .hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-white);
  margin: 0 0 var(--space-md);
  line-height: 1.15;
}

.blog-hero-strip .hero-subtitle,
.blog-hero-strip p {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  color: var(--color-text-white-80);
  margin: 0 0 var(--space-lg);
  line-height: 1.6;
}

/* Campo de busca inline no hero */
.blog-hero-strip .search-form,
.blog-hero-strip .hero-search {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
}

.blog-hero-strip .search-field,
.blog-hero-strip .hero-search input[type="search"] {
  flex: 1;
  padding: 12px var(--space-md);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.10);
  color: var(--color-text-white);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  transition: border-color var(--transition-base), background var(--transition-base);
}

.blog-hero-strip .search-field::placeholder,
.blog-hero-strip .hero-search input::placeholder {
  color: rgba(255,255,255,0.50);
}

.blog-hero-strip .search-field:focus,
.blog-hero-strip .hero-search input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.15);
}

.blog-hero-strip .search-submit,
.blog-hero-strip .hero-search button {
  padding: 12px var(--space-lg);
  background-color: var(--color-accent);
  color: var(--color-text-white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  cursor: pointer;
  transition: background-color var(--transition-base), transform var(--transition-fast);
}

.blog-hero-strip .search-submit:hover,
.blog-hero-strip .hero-search button:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}


/* ============================================================
   5. FILTRO DE CATEGORIAS (PILL NAV)
   ============================================================ */

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-lg) 0 var(--space-md);
  align-items: center;
}

.category-filter .pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-full);
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

.category-filter .pill:hover {
  background-color: var(--color-bg-page);
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.category-filter .pill.active,
.category-filter .pill[aria-pressed="true"] {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
}

.category-filter .pill.active:hover,
.category-filter .pill[aria-pressed="true"]:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}


/* ============================================================
   6. GRID DE CARDS DE POST (LISTAGEM DO BLOG)
   ============================================================ */

/* Container da listagem — Astra "layout 4 / grid": #primary.ast-grid-N > main > .ast-row
   (o container real é .ast-row, NÃO .ast-blog-layout-1/2/3) */
#primary.ast-grid-3 .ast-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}
#primary.ast-grid-3 .ast-row > article {
  width: 100%;
  margin: 0;
  float: none; /* Astra põe ast-full-width (float) em posts sem imagem de capa */
}

/* Card individual */
.ast-article-post,
article.post,
article.type-post {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.ast-article-post:hover,
article.post:hover,
article.type-post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

/* Thumbnail do card — proporcao 16:9 */
.ast-article-post .ast-blog-featured-section,
.ast-article-post .post-thumbnail,
.ast-article-post .wp-post-image-wrap,
article.post .post-thumbnail {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  aspect-ratio: 16 / 9;
  background-color: var(--color-bg-page);
}

.ast-article-post .ast-blog-featured-section img,
.ast-article-post .post-thumbnail img,
article.post .post-thumbnail img,
.ast-article-post img.wp-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--transition-slow);
}

.ast-article-post:hover img.wp-post-image,
.ast-article-post:hover .post-thumbnail img,
article.post:hover .post-thumbnail img {
  transform: scale(1.04);
}

/* Corpo do card */
.ast-article-post .ast-blog-single-element,
.ast-article-post .entry-content-wrap,
.ast-article-post .entry-header,
article.post .entry-header {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Tag de categoria — pill verde */
.ast-article-post .ast-blog-single-element .category-tags,
.ast-article-post .cat-links,
.ast-article-post .entry-meta .cat-links,
article.post .cat-links,
.ast-label-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.ast-article-post .cat-links a,
article.post .cat-links a,
.ast-label-container .ast-label {
  display: inline-block;
  padding: 3px 10px;
  background-color: var(--color-accent-soft);
  color: var(--color-accent) !important;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  text-decoration: none !important;
  transition: background-color var(--transition-base);
}

.ast-article-post .cat-links a:hover,
article.post .cat-links a:hover {
  background-color: rgba(42, 183, 102, 0.20);
}

/* Titulo do card */
.ast-article-post .entry-title,
.ast-article-post .ast-blog-title,
article.post .entry-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--color-primary-dark);
  line-height: 1.3;
  margin: 0 0 var(--space-sm);
  /* Clamp de 2 linhas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ast-article-post .entry-title a,
article.post .entry-title a {
  color: inherit !important;
  text-decoration: none;
  transition: color var(--transition-base);
}

.ast-article-post .entry-title a:hover,
article.post .entry-title a:hover {
  color: var(--color-primary) !important;
}

/* Excerpt do card */
.ast-article-post .ast-excerpt,
.ast-article-post .entry-summary,
.ast-article-post .entry-content p,
article.post .entry-summary {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text-body);
  line-height: 1.6;
  margin: 0 0 var(--space-md);
  /* Clamp de 3 linhas */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta — data e tempo de leitura */
.ast-article-post .posted-on,
.ast-article-post .entry-meta,
.ast-article-post .ast-blog-date,
article.post .entry-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.ast-article-post .posted-on a,
.ast-article-post .entry-meta a,
article.post .entry-meta a {
  color: var(--color-text-muted) !important;
  text-decoration: none;
}

/* Separador no meta */
.ast-article-post .entry-meta .sep {
  width: 3px;
  height: 3px;
  background-color: var(--color-text-muted);
  border-radius: 50%;
  display: inline-block;
}

/* Link "Leia mais" */
.ast-article-post .ast-read-more,
.ast-article-post .read-more-link,
.ast-article-post a.more-link,
article.post a.more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary) !important;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--fw-medium);
  text-decoration: none !important;
  margin-top: auto;
  padding-top: var(--space-sm);
  transition: gap var(--transition-base), color var(--transition-base);
}

.ast-article-post .ast-read-more:hover,
.ast-article-post .read-more-link:hover,
.ast-article-post a.more-link:hover,
article.post a.more-link:hover {
  color: var(--color-accent) !important;
  gap: 8px; /* seta desloca 4px no hover */
}


/* ============================================================
   7. POST INDIVIDUAL — TIPOGRAFIA E CONTEUDO
   ============================================================ */

/* Container do post */
.single-post .site-content,
.single .entry-content,
.ast-article-inner .entry-content {
  max-width: 760px;
}

/* Texto do conteudo */
.single-post .entry-content,
.single .entry-content {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  color: var(--color-text-body);
  line-height: 1.75;
}

/* Primeiro paragrafo — lead maior */
.single-post .entry-content > p:first-of-type,
.single .entry-content > p:first-child {
  font-size: var(--fs-lg);
  color: var(--color-text-main);
  font-weight: var(--fw-medium);
  line-height: 1.65;
}

/* H2 no post */
.single-post .entry-content h2,
.single .entry-content h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary-dark);
  margin-top: 40px;
  margin-bottom: var(--space-md);
  line-height: 1.25;
}

/* H3 no post */
.single-post .entry-content h3,
.single .entry-content h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semi);
  color: var(--color-primary);
  margin-top: 32px;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

/* H4 no post */
.single-post .entry-content h4,
.single .entry-content h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  color: var(--color-primary);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

/* Paragrafo normal */
.single-post .entry-content p,
.single .entry-content p {
  margin-bottom: var(--space-md);
}

/* Blockquote como callout */
.single-post .entry-content blockquote,
.single .entry-content blockquote {
  background-color: var(--color-accent-bg);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-style: normal;
}

.single-post .entry-content blockquote p,
.single .entry-content blockquote p {
  margin: 0;
  font-weight: var(--fw-medium);
  line-height: 1.6;
}

.single-post .entry-content blockquote cite,
.single .entry-content blockquote cite {
  display: block;
  margin-top: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-style: normal;
}

/* Listas */
.single-post .entry-content ul,
.single .entry-content ul {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.single-post .entry-content ul li,
.single .entry-content ul li {
  margin-bottom: var(--space-xs);
  position: relative;
}

/* Bullet verde nas listas */
.single-post .entry-content ul li::marker,
.single .entry-content ul li::marker {
  color: var(--color-accent);
}

.single-post .entry-content ol,
.single .entry-content ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.single-post .entry-content ol li::marker,
.single .entry-content ol li::marker {
  color: var(--color-primary);
  font-weight: var(--fw-semi);
}

/* Imagens no post */
.single-post .entry-content img,
.single .entry-content img {
  border-radius: var(--radius-md);
  max-width: 100%;
  height: auto;
  display: block;
}

.single-post .entry-content figure,
.single .entry-content figure {
  margin: var(--space-xl) 0;
}

.single-post .entry-content figcaption,
.single .entry-content figcaption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* Codigo inline */
.single-post .entry-content code,
.single .entry-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  background-color: var(--color-bg-page);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-primary);
}

/* Bloco de codigo */
.single-post .entry-content pre,
.single .entry-content pre {
  background-color: var(--color-primary-dark);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  overflow-x: auto;
  margin: var(--space-xl) 0;
}

.single-post .entry-content pre code,
.single .entry-content pre code {
  background: none;
  padding: 0;
  color: rgba(255,255,255,0.90);
  font-size: var(--fs-sm);
}

/* Tags do post */
.single-post .tags-links a,
.single .tags-links a,
.entry-footer .tags-links a {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--color-bg-primary-tag);
  color: var(--color-primary) !important;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--fw-medium);
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  margin: 2px;
  transition: background-color var(--transition-base);
}

.single-post .tags-links a:hover,
.single .tags-links a:hover {
  background-color: rgba(4, 57, 91, 0.14);
}

/* Titulo do post individual */
.single-post .entry-header .entry-title,
.single .entry-header .entry-title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

/* Meta do post individual */
.single-post .entry-header .entry-meta,
.single .entry-header .entry-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}


/* ============================================================
   8. BREADCRUMB
   ============================================================ */

.ast-breadcrumbs-wrapper,
.rank-math-breadcrumb,
.yoast-breadcrumb,
nav.breadcrumb,
.breadcrumb-trail {
  padding: var(--space-md) 0;
}

.ast-breadcrumbs-wrapper a,
.rank-math-breadcrumb a,
.yoast-breadcrumb a,
nav.breadcrumb a,
.breadcrumb-trail a {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--color-text-muted) !important;
  text-decoration: none;
  transition: color var(--transition-base);
}

.ast-breadcrumbs-wrapper a:hover,
.rank-math-breadcrumb a:hover,
.yoast-breadcrumb a:hover {
  color: var(--color-primary) !important;
}

.ast-breadcrumbs-wrapper span,
.rank-math-breadcrumb span,
.yoast-breadcrumb span,
.breadcrumb-trail span {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}


/* ============================================================
   9. SIDEBAR
   ============================================================ */

/* Widget container */
.widget-area .widget,
#secondary .widget,
.ast-right-sidebar .widget,
.ast-left-sidebar .widget {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-widget);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* Titulo do widget */
.widget-area .widget .widget-title,
#secondary .widget .widget-title,
.widget-area .widget-title,
.ast-sidebar-woo-layout .widget-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: var(--fw-bold);
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
  margin-bottom: var(--space-md);
}

/* Links nos widgets */
.widget-area a,
#secondary a {
  color: var(--color-text-body);
  text-decoration: none;
  transition: color var(--transition-base);
}

.widget-area a:hover,
#secondary a:hover {
  color: var(--color-primary);
}

/* Lista de posts recentes no widget */
.widget_recent_entries ul li {
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--space-sm) 0;
}

.widget_recent_entries ul li:last-child {
  border-bottom: none;
}

.widget_recent_entries ul li a {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--color-primary-dark) !important;
  line-height: 1.4;
}

/* Widget de categorias */
.widget_categories ul li {
  border-bottom: 1px solid var(--color-border-light);
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget_categories ul li:last-child {
  border-bottom: none;
}

.widget_categories ul li a {
  font-size: var(--fs-base);
}

.widget_categories ul li .post-count {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* Sidebar sticky */
.ast-right-sidebar-layout #secondary,
.ast-left-sidebar-layout #secondary {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-medium) transparent;
}


/* ============================================================
   10. CTA POS-POST
   ============================================================ */

.cta-pos-post {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  background-color: var(--color-primary);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-2xl) 0;
}

.cta-pos-post__texto {
  flex: 1;
}

.cta-pos-post__texto svg {
  display: block;
  margin-bottom: var(--space-sm);
}

.cta-pos-post__texto h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-white);
  margin: 0 0 var(--space-sm);
  line-height: 1.3;
}

.cta-pos-post__texto p {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text-white-80);
  margin: 0;
  line-height: 1.6;
}

.cta-pos-post .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 13px 24px;
  background-color: var(--color-accent);
  color: var(--color-text-white) !important;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  border-radius: var(--radius-full);
  text-decoration: none !important;
  white-space: nowrap;
  transition:
    background-color var(--transition-base),
    transform var(--transition-fast);
  flex-shrink: 0;
}

.cta-pos-post .btn-cta:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}


/* ============================================================
   11. NEWSLETTER BOX
   ============================================================ */

.newsletter-box {
  background-color: var(--color-bg-page);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  text-align: center;
}

.newsletter-box h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-primary-dark);
  margin: 0 0 var(--space-md);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 10px var(--space-md);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text-body);
  background-color: var(--color-bg-white);
  transition: border-color var(--transition-base);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent);
}

.newsletter-form button[type="submit"] {
  padding: 10px 20px;
  background-color: var(--color-accent);
  color: var(--color-text-white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-base), transform var(--transition-fast);
}

.newsletter-form button[type="submit"]:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}


/* ============================================================
   12. PAGINACAO
   ============================================================ */

.ast-pagination,
.pagination,
.page-links,
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-xl) 0;
  flex-wrap: wrap;
}

.ast-pagination .page-numbers,
.pagination .page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-sm);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-sm);
  color: var(--color-text-body) !important;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  text-decoration: none;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base);
}

.ast-pagination .page-numbers:hover,
.pagination .page-numbers:hover,
.nav-links a:hover {
  background-color: var(--color-bg-page);
  color: var(--color-primary) !important;
  border-color: var(--color-primary);
}

.ast-pagination .page-numbers.current,
.pagination .page-numbers.current {
  background-color: var(--color-primary);
  color: var(--color-text-white) !important;
  border-color: var(--color-primary);
}

/* Botoes prev/next */
.ast-pagination .prev,
.ast-pagination .next,
.pagination .prev,
.pagination .next {
  font-weight: var(--fw-medium);
}


/* ============================================================
   13. FOOTER
   ============================================================ */

#colophon,
.site-footer,
.ast-site-footer-wrap,
footer.site-footer {
  background-color: var(--color-bg-footer) !important;
  color: var(--color-text-white-80) !important;
}

/* Widgets no footer */
#colophon .widget,
.site-footer .widget,
.ast-site-footer-wrap .widget {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: var(--space-lg);
}

/* Titulo dos widgets no footer */
#colophon .widget-title,
.site-footer .widget-title,
.ast-site-footer-wrap .widget-title {
  color: var(--color-text-white-50) !important;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: none !important;
  margin-bottom: var(--space-md);
}

/* Links no footer */
#colophon a,
.site-footer a,
.ast-site-footer-wrap a {
  color: var(--color-text-white-80) !important;
  text-decoration: none;
  font-size: var(--fs-base);
  transition: color var(--transition-base);
}

#colophon a:hover,
.site-footer a:hover,
.ast-site-footer-wrap a:hover {
  color: var(--color-text-white) !important;
}

/* Lista de links no footer */
#colophon .widget ul li,
.site-footer .widget ul li {
  padding: 4px 0;
  border-bottom: none;
}

/* Texto de copyright */
.ast-small-footer,
.site-footer .site-info,
#colophon .ast-footer-copyright {
  background-color: rgba(0,0,0,0.20) !important;
  color: var(--color-text-white-50) !important;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  padding: var(--space-md);
  text-align: center;
}


/* ============================================================
   14. ENTRADAS COM STAGGER (ANIMACAO DE LISTA)
   ============================================================ */

/* Cards entram com fade-up progressivo */
@keyframes securion-fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ast-article-post,
article.post,
article.type-post {
  animation: securion-fadeUp 220ms ease-out both;
}

/* Stagger por posicao (ate 6 itens no grid) */
.ast-article-post:nth-child(1),
article.post:nth-child(1) { animation-delay: 0ms; }

.ast-article-post:nth-child(2),
article.post:nth-child(2) { animation-delay: 60ms; }

.ast-article-post:nth-child(3),
article.post:nth-child(3) { animation-delay: 120ms; }

.ast-article-post:nth-child(4),
article.post:nth-child(4) { animation-delay: 180ms; }

.ast-article-post:nth-child(5),
article.post:nth-child(5) { animation-delay: 240ms; }

.ast-article-post:nth-child(6),
article.post:nth-child(6) { animation-delay: 300ms; }

.ast-article-post:nth-child(n+7),
article.post:nth-child(n+7) { animation-delay: 360ms; }


/* ============================================================
   15. ESTADOS DE LOADING — SKELETON
   ============================================================ */

@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.skeleton-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(
    90deg,
    #e8ecf0 25%,
    #f4f7fa 50%,
    #e8ecf0 75%
  );
  background-size: 400px 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  margin: 12px 16px 6px;
  background: linear-gradient(
    90deg,
    #e8ecf0 25%,
    #f4f7fa 50%,
    #e8ecf0 75%
  );
  background-size: 400px 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
}

.skeleton-line.wide  { width: 85%; }
.skeleton-line.mid   { width: 65%; }
.skeleton-line.short { width: 40%; }


/* ============================================================
   16. RESPONSIVIDADE — TABLET (max-width: 1023px)
   ============================================================ */

@media (max-width: 1023px) {

  :root {
    --fs-4xl: 32px;
    --fs-2xl: 24px;
    --fs-xl:  20px;
  }

  /* Grid de 2 colunas no tablet */
  #primary.ast-grid-3 .ast-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sidebar vai abaixo do conteudo */
  .ast-right-sidebar-layout .ast-container,
  .ast-left-sidebar-layout .ast-container {
    flex-direction: column;
  }

  .ast-right-sidebar-layout #secondary,
  .ast-left-sidebar-layout #secondary {
    position: static;
    max-height: none;
    width: 100%;
  }

  /* CTA pos-post: coluna no tablet */
  .cta-pos-post {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-pos-post .btn-cta {
    align-self: stretch;
    justify-content: center;
  }

  /* Hero strip */
  .blog-hero-strip h1,
  .blog-hero-strip .hero-title {
    font-size: 32px;
  }

  .blog-hero-strip .search-form,
  .blog-hero-strip .hero-search {
    flex-direction: column;
  }

}


/* ============================================================
   17. RESPONSIVIDADE — MOBILE (max-width: 767px)
   ============================================================ */

@media (max-width: 767px) {

  :root {
    --fs-4xl: 26px;
    --fs-2xl: 22px;
    --fs-xl:  18px;
    --fs-lg:  16px;
  }

  /* Grid de 1 coluna no mobile */
  #primary.ast-grid-3 .ast-row {
    grid-template-columns: 1fr;
  }

  /* Corpo do card com padding menor */
  .ast-article-post .ast-blog-single-element,
  .ast-article-post .entry-content-wrap,
  .ast-article-post .entry-header,
  article.post .entry-header {
    padding: var(--space-md);
  }

  /* CTA pos-post mobile */
  .cta-pos-post {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    gap: var(--space-md);
  }

  .cta-pos-post .btn-cta {
    width: 100%;
    justify-content: center;
  }

  /* Hero strip mobile */
  .blog-hero-strip {
    padding: var(--space-xl) var(--space-md);
  }

  .blog-hero-strip h1,
  .blog-hero-strip .hero-title {
    font-size: 26px;
  }

  .blog-hero-strip .search-form,
  .blog-hero-strip .hero-search {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .blog-hero-strip .search-submit,
  .blog-hero-strip .hero-search button {
    width: 100%;
    justify-content: center;
  }

  /* Pills de categoria */
  .category-filter {
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-sm);
    /* Ocultar scrollbar visualmente mas manter funcionalidade */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .category-filter::-webkit-scrollbar {
    display: none;
  }

  .category-filter .pill {
    flex-shrink: 0;
  }

  /* Newsletter form mobile */
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button[type="submit"] {
    width: 100%;
  }

  /* Sidebar abaixo do conteudo */
  #secondary,
  .widget-area {
    margin-top: var(--space-xl);
  }

  /* Tipografia do post mobile */
  .single-post .entry-header .entry-title,
  .single .entry-header .entry-title {
    font-size: 24px;
  }

  .single-post .entry-content > p:first-of-type,
  .single .entry-content > p:first-child {
    font-size: var(--fs-md);
  }

  /* Paginacao mobile */
  .ast-pagination,
  .pagination {
    gap: 4px;
  }

  .ast-pagination .page-numbers,
  .pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

}


/* ============================================================
   18. ACESSIBILIDADE — REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  /* Desabilitar hover transforms */
  .ast-article-post:hover,
  article.post:hover {
    transform: none;
  }

  .cta-pos-post .btn-cta:hover,
  .category-filter .pill:hover,
  .blog-hero-strip .search-submit:hover {
    transform: none;
  }

}


/* ============================================================
   19. DARK MODE (prefers-color-scheme: dark)
   Nota: o Astra pode sobrescrever — verificar compatibilidade
   ============================================================ */

@media (prefers-color-scheme: dark) {

  /* Aplicar apenas se a classe .dark-mode estiver no body
     (evitar dark mode automatico que pode conflitar com o tema) */
  body.dark-mode {
    --color-bg-page:    #0F1117;
    --color-bg-white:   #1A1E2A;
    --color-text-body:  rgba(255,255,255,0.75);
    --color-text-main:  rgba(255,255,255,0.92);
    --color-border-light:  rgba(255,255,255,0.08);
    --color-border-medium: rgba(255,255,255,0.14);
  }

}
