/*
Theme Name: Tenha um Eletricista Blog
Theme URI: https://www.tenhaumeletricista.com.br/blog/
Author: Tenha um Eletricista - Engenharia & Serviços
Author URI: https://www.tenhaumeletricista.com.br/
Description: Tema oficial exclusivo para o Blog do Tenha um Eletricista. Design ultra-moderno, compatível 100% com o ecossistema e identidade visual do site principal, layout magazine de 2 colunas com Sidebar de conversão, Sumário dinâmico (TOC), E-E-A-T de engenharia (CREA/NR-10) e máxima velocidade PageSpeed.
Version: 2.0.0
Text Domain: tenha-eletricista-blog
*/

/* ==========================================================================
   1. DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-navy:    #1e293b;
  --primary-dark:    #0f172a;
  --primary-blue:    #1e3a8a;
  --brand-blue:      #324381;
  --brand-blue-hover:#27366b;
  --accent-amber:    #f59e0b;
  --accent-amber-lt: #fbbf24;
  --accent-cyan:     #38bdf8;
  --emergency-red:   #dc2626;
  --whatsapp:        #25d366;
  --whatsapp-hover:  #1ea952;
  
  --bg-body:         #f8fafc;
  --bg-card:         #ffffff;
  --bg-sidebar:      #ffffff;
  
  --border-light:    #e2e8f0;
  --border-mid:      #cbd5e1;
  --border-focus:    #324381;

  --text-main:       #1e293b;
  --text-muted:      #64748b;
  --text-dark:       #0f172a;
  --text-white:      #ffffff;

  --font-main:       'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading:    'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       18px;
  --radius-full:     9999px;

  --shadow-sm:       0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:       0 4px 14px rgba(0,0,0,0.07);
  --shadow-lg:       0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-glow:     0 0 20px rgba(50, 67, 129, 0.15);

  --transition:      0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.mob-menu-locked {
  overflow: hidden !important;
  touch-action: none;
}

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

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

ul, ol {
  list-style: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ==========================================================================
   2. NAVBAR & HEADER IDENTIDADE (REPLICADO DO SITE PRINCIPAL)
   ========================================================================== */
.navbar-eletrica {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 74px;
  z-index: 9999;
  border-bottom: 1px solid #e2e8f0;
}

.nav-container-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1.15;
}

.brand-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-logo-main:hover .brand-logo-icon {
  transform: scale(1.06);
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.02em;
}

.brand-title strong {
  color: #324381;
  font-weight: 900;
}

.brand-subtitle {
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.nav-link-item {
  color: #334155;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link-item:hover,
.nav-link-item.active {
  color: #324381;
  background-color: #f1f5f9;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  color: #334155;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.nav-dropdown:hover .nav-dropdown-btn {
  color: #324381;
  background-color: #f1f5f9;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 280px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-grid {
  min-width: 580px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 18px;
}

.menu-col-header {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #324381;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav-dropdown-menu a:hover {
  background: #f8fafc;
  color: #324381;
  transform: translateX(4px);
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-emergency-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #dc2626;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 9px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-emergency-nav:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
}

.btn-whatsapp-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 9px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-nav:hover {
  background-color: #1ea952;
  transform: translateY(-1px);
}

.btn-mob-toggle {
  display: none;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.3rem;
  color: #1e293b;
  cursor: pointer;
}

/* ==========================================================================
   3. MOBILE OFF-CANVAS DRAWER
   ========================================================================== */
.mob-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.mob-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mob-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 86vw;
  max-width: 360px;
  background: #ffffff;
  z-index: 10001;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);
}

.mob-drawer.is-open {
  transform: translateX(0);
}

.mob-drawer-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.btn-mob-close {
  background: #e2e8f0;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #334155;
  cursor: pointer;
}

.mob-drawer-body {
  padding: 16px 14px;
  overflow-y: auto;
  flex: 1;
}

.mob-btn-emergency {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #dc2626;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  text-align: center;
}

.mob-link-single {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  border-radius: 8px;
  margin-bottom: 4px;
}

.mob-link-single:hover,
.mob-link-single.active {
  background: #eef2ff;
  color: #324381;
}

.mob-accordion {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.mob-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #f8fafc;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
  cursor: pointer;
}

.mob-acc-panel {
  display: none;
  padding: 8px 10px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.mob-accordion.is-open .mob-acc-panel {
  display: block;
}

.mob-acc-panel a {
  display: block;
  padding: 7px 10px;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
}

.mob-acc-panel a:hover {
  background: #f1f5f9;
  color: #324381;
}

/* ==========================================================================
   4. BLOG HERO SECTION
   ========================================================================== */
.blog-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid #324381;
}

.blog-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(50, 67, 129, 0.4) 0%, rgba(15, 23, 42, 0) 70%);
  pointer-events: none;
}

.blog-hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.blog-hero h1 strong {
  color: #38bdf8;
}

.blog-hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* SEARCH FORM HERO */
.blog-search-form {
  max-width: 600px;
  margin: 0 auto 24px;
  display: flex;
  background: #ffffff;
  border-radius: var(--radius-full);
  padding: 4px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.blog-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-family: inherit;
  border-radius: var(--radius-full);
  color: #1e293b;
}

.blog-search-btn {
  background: #324381;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.blog-search-btn:hover {
  background: #1e3a8a;
  transform: scale(1.02);
}

/* CATEGORY FILTER PILLS */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.cat-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  transition: all 0.2s ease;
}

.cat-pill:hover,
.cat-pill.active {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
  font-weight: 700;
  transform: translateY(-2px);
}

/* ==========================================================================
   5. BLOG FEED GRID & CARDS
   ========================================================================== */
.blog-section {
  padding: 50px 0 80px;
}

/* FEATURED POST CARD (Page 1 Top) */
.featured-post-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 40px;
  transition: var(--transition);
}

.featured-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-blue);
}

.featured-thumb-wrap {
  position: relative;
  background: #0f172a;
  overflow: hidden;
  display: block;
}

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

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

.featured-content {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.post-cat-badge {
  background: #eef2ff;
  color: #324381;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
}

.featured-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 14px;
}

.featured-content h2 a:hover {
  color: #324381;
}

.featured-content p {
  font-size: 0.96rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 22px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #324381;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(50, 67, 129, 0.3);
}

/* 3-COLUMN POSTS GRID */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 50px;
}

.post-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #1e293b;
  overflow: hidden;
  display: block;
}

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

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

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

.card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 10px;
}

.card-body h3 a:hover {
  color: #324381;
}

.card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.read-more-link {
  color: #324381;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more-link:hover {
  gap: 8px;
  color: #1e3a8a;
}

/* PAGINATION */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

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

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
  background: #324381;
  color: #ffffff;
  border-color: #324381;
}

/* ==========================================================================
   6. SINGLE POST LAYOUT & ARTICLE SYSTEM
   ========================================================================== */
.single-hero-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 45px 0 35px;
  border-bottom: 4px solid #324381;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: #cbd5e1;
}

.breadcrumbs a:hover {
  color: #38bdf8;
}

.breadcrumbs .current {
  color: #f8fafc;
  font-weight: 600;
}

.single-post-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 18px;
}

.single-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  color: #94a3b8;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item svg {
  width: 16px;
  height: 16px;
  color: #38bdf8;
}

/* 2-COLUMN ARTICLE LAYOUT */
.article-layout-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 80px;
}

.content-col {
  min-width: 0;
}

.single-featured-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
  background: #0f172a;
}

.single-featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* TABLE OF CONTENTS (TOC) */
.toc-card {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #324381;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 35px;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
}

.toc-chevron {
  transition: transform 0.25s ease;
}

.toc-card.is-closed .toc-chevron {
  transform: rotate(-90deg);
}

.toc-card.is-closed .toc-body {
  display: none;
}

.toc-body {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.toc-list {
  padding-left: 20px;
  list-style-type: decimal;
}

.toc-list li {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.toc-list a {
  color: #324381;
  font-weight: 600;
}

.toc-list a:hover {
  text-decoration: underline;
  color: #1e3a8a;
}

/* POST CONTENT TYPOGRAPHY & BLOCKS */
.post-content {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.post-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 30px;
  margin-bottom: 12px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content ul, 
.post-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.post-content ul {
  list-style-type: disc;
}

.post-content ol {
  list-style-type: decimal;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content blockquote {
  background: #f8fafc;
  border-left: 4px solid #324381;
  padding: 16px 20px;
  font-style: italic;
  color: #475569;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.post-content th,
.post-content td {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  font-size: 0.92rem;
  text-align: left;
}

.post-content th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
}

/* ARTICLE INLINE CTA BANNER */
.article-cta-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 30px;
  margin: 40px 0;
  border: 2px solid #324381;
  text-align: center;
}

.cta-box-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.article-cta-box h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.article-cta-box p {
  color: #cbd5e1;
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 auto 20px;
}

.btn-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-cta:hover {
  background: #1ea952;
  transform: translateY(-2px);
}

/* AUTHOR BIO CARD (E-E-A-T) */
.author-bio-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #324381;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.author-info h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.author-badge {
  font-size: 0.78rem;
  color: #324381;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.author-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   7. SIDEBAR & WIDGETS
   ========================================================================== */
.sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.widget-title svg {
  color: #324381;
}

/* SEARCH WIDGET */
.sidebar-search-form {
  display: flex;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
}

.sidebar-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #1e293b;
}

.sidebar-search-submit {
  background: #324381;
  color: #ffffff;
  border: none;
  padding: 0 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.sidebar-search-submit:hover {
  background: #1e3a8a;
}

/* LEAD WIDGET */
.lead-widget {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  text-align: center;
  border: 2px solid #324381;
}

.lead-widget-icon {
  width: 48px;
  height: 48px;
  background: rgba(56, 189, 248, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.lead-widget-icon svg {
  width: 24px;
  height: 24px;
  color: #38bdf8;
}

.lead-widget h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.lead-widget p {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 16px;
}

.btn-whatsapp-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-whatsapp-sidebar:hover {
  background: #1ea952;
}

/* CATEGORIES WIDGET */
.sidebar-cat-list li {
  margin-bottom: 6px;
}

.sidebar-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  transition: var(--transition);
}

.sidebar-cat-list a:hover {
  background: #f1f5f9;
  color: #324381;
  padding-left: 14px;
}

.cat-count {
  background: #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

/* RECENT POSTS WIDGET */
.sidebar-posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sidebar-post-thumb {
  width: 65px;
  height: 65px;
  border-radius: 6px;
  overflow: hidden;
  background: #0f172a;
  flex-shrink: 0;
}

.sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-post-info h5 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 4px;
}

.sidebar-post-item:hover .sidebar-post-info h5 {
  color: #324381;
}

.sidebar-post-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* SERVICES TAGS WIDGET */
.sidebar-services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  transition: var(--transition);
}

.service-pill:hover {
  background: #324381;
  color: #ffffff;
  border-color: #324381;
}

/* ==========================================================================
   8. FOOTER GLOBAL
   ========================================================================== */
footer.fc-white {
  background-color: #111827;
  padding-top: 60px;
  padding-bottom: 35px;
  border-top: 4px solid #324381;
  color: #ffffff;
  margin-top: auto;
}

/* ==========================================================================
   9. WHATSAPP FLUTUANTE
   ========================================================================== */
.whatsapp-flutuante-padrao {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  transition: all 0.25s ease;
}

.whatsapp-flutuante-padrao:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-desktop-items {
    display: none;
  }
  .btn-mob-toggle {
    display: flex;
  }
  .article-layout-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 768px) {
  .featured-post-card {
    grid-template-columns: 1fr;
  }
  .featured-content {
    padding: 24px 20px;
  }
  .featured-content h2 {
    font-size: 1.35rem;
  }
  .blog-hero h1 {
    font-size: 1.85rem;
  }
  .single-post-title {
    font-size: 1.65rem;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .btn-emergency-nav {
    display: none;
  }
}
