/*
Theme Name:  Diploma de Pastor
Theme URI:   https://diplomadepastor.com.br
Author:      Diploma de Pastor
Author URI:  https://diplomadepastor.com.br
Description: Tema WordPress de alta performance para nicho religioso cristão/evangélico. PageSpeed 100, LQIP, CSS crítico inline, zero jQuery, zero page builder.
Version:     1.1.6
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diplomadepastor
Tags:        blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
  --blue:      #1B3A6B;
  --blue-dark: #122848;
  --blue-mid:  #2a5298;
  --gold:      #C9A84C;
  --gold-dark: #a8862d;
  --white:     #ffffff;
  --off-white: #f8f7f4;
  --gray-100:  #f1efe8;
  --gray-200:  #e2e0d8;
  --gray-400:  #767370;
  --gray-600:  #5c5a55;
  --gray-800:  #2e2d2a;
  --text:      #1a1917;
  --text-muted:#5c5a55;
  --link:      #1B3A6B;
  --link-hover:#C9A84C;

  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --font-sans:  system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'Courier New', Courier, monospace;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(27,58,107,.10);
  --shadow:    0 4px 16px rgba(27,58,107,.12);
  --shadow-lg: 0 8px 32px rgba(27,58,107,.16);

  --container: 1200px;
  --content:   760px;
  --gap:       clamp(1rem, 4vw, 2rem);
}

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

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

body {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--link-hover); }
ul, ol { padding-left: 1.5em; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue-dark);
}
h1 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.25rem; }
blockquote {
  border-left: 4px solid var(--gold);
  margin: 2rem 0;
  padding: .75rem 1.5rem;
  font-style: italic;
  color: var(--gray-600);
  background: var(--off-white);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static !important; max-height: none !important; }
}

.section { padding-block: clamp(2rem, 5vw, 4rem); }
.section--alt { background: var(--off-white); }

.section-title {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: var(--blue);
  margin-bottom: 1.5rem;
  padding-bottom: .6rem;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}

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

/* ==========================================================================
   BOTÕES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--gold { background: var(--gold); color: var(--blue-dark); }
.btn--gold:hover { background: var(--gold-dark); color: var(--blue-dark); transform: translateY(-1px); }
.btn--outline { border: 2px solid var(--blue); color: var(--blue); padding: .65rem 1.4rem; }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--lg { padding: .9rem 2rem; font-size: .95rem; }

@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
  .btn--lg { padding: .85rem 1.5rem; }
}

/* ==========================================================================
   HEADER & MENU
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
  position: relative;
}
@media (max-width: 860px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .5rem;
  }
  /* nav container some do fluxo — ul#nav-primary usa position:fixed independente */
  .header-inner > nav {
    position: fixed;
    top: 0; left: 0;
    width: 0; height: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 199;
  }
  /* mas a ul do drawer fica com pointer-events normais quando aberta */
  .header-inner > nav .nav-primary {
    pointer-events: auto;
  }
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 10;
}
.site-logo__icon {
  width: 38px; height: 38px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.site-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo__name { font-family: var(--font-serif); font-size: .95rem; font-weight: 700; color: var(--blue); }
.site-logo__tagline { font-family: var(--font-sans); font-size: .6rem; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }

/* Nav desktop */
.nav-primary {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-primary li { list-style: none; }
.nav-primary a {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-800);
  padding: .45rem .7rem;
  border-radius: var(--radius-sm);
  transition: all .2s;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
  white-space: nowrap;
}
.nav-primary a:hover,
.nav-primary .current-menu-item > a,
.nav-primary .current-page-ancestor > a { color: var(--blue); background: var(--gray-100); }
.nav-primary .menu-item--cta > a {
  background: var(--gold);
  color: var(--blue-dark) !important;
  padding: .4rem .9rem;
  border-radius: var(--radius);
}
.nav-primary .menu-item--cta > a:hover { background: var(--gold-dark); }

/* Hambúrguer */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: .5rem;
  border-radius: var(--radius-sm);
  transition: background .2s;
  z-index: 300;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger:hover { background: var(--gray-100); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  pointer-events: none;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 190;
  backdrop-filter: blur(2px);
}
.nav-overlay.is-open { display: block; }

/* Mobile nav */
@media (max-width: 860px) {
  .hamburger { display: flex; }

  .nav-primary {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow-y: auto;
    z-index: 200;
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex;
  }
  .nav-primary.is-open { transform: translateX(0); }

  /* Cabeçalho interno do drawer */
  .nav-primary::before {
    content: 'Menu';
    display: block;
    font-family: var(--font-sans);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 1.25rem 1.25rem .75rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--blue-dark);
  }

  .nav-primary li {
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-primary li:last-child { border-bottom: none; }

  .nav-primary a {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    font-size: .95rem;
    font-weight: 600;
    color: var(--gray-800);
    border-radius: 0;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: background .15s, color .15s;
  }
  .nav-primary a:hover,
  .nav-primary .current-menu-item > a {
    background: var(--off-white);
    color: var(--blue);
  }

  .nav-primary .menu-item--cta {
    margin: 0;
    border-bottom: 1px solid var(--gray-100) !important;
  }
  .nav-primary .menu-item--cta > a {
    background: transparent;
    color: var(--blue-dark) !important;
    border-radius: 0;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--gold);
    font-weight: 700;
  }
  .nav-primary .menu-item--cta > a:hover {
    background: var(--off-white);
    color: var(--blue) !important;
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-mid) 100%);
  color: var(--white);
  padding-block: clamp(2.5rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23C9A84C' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 700px; }
.hero__label {
  font-family: var(--font-sans); font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem;
}
.hero__title { font-size: clamp(1.7rem, 5vw, 3rem); color: var(--white); line-height: 1.15; margin-bottom: 1rem; }
.hero__title span { color: var(--gold); }
.hero__desc { font-size: clamp(.95rem, 2vw, 1.1rem); color: rgba(255,255,255,.85); margin-bottom: 1.75rem; max-width: 560px; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; text-align: center; }
}

/* ==========================================================================
   VERSÍCULO
   ========================================================================== */
.versiculo-widget {
  background: var(--blue);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.versiculo-widget::before {
  content: '\201C';
  position: absolute; top: -10px; left: 10px;
  font-size: 7rem; color: var(--gold); opacity: .12;
  font-family: Georgia, serif; line-height: 1;
}
.versiculo-widget__text { font-style: italic; font-size: 1rem; line-height: 1.6; margin-bottom: .6rem; position: relative; }
.versiculo-widget__ref { font-family: var(--font-sans); font-size: .78rem; font-weight: 700; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }

/* ==========================================================================
   HOME — SEÇÃO EM ALTA + CTA
   ========================================================================== */
.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .home-split { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   CARDS DE POST
   ========================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-200);
  display: block;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.post-card__cat { font-family: var(--font-sans); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.post-card__cat a { color: inherit; }
.post-card__title { font-size: 1rem; line-height: 1.35; color: var(--blue-dark); margin-bottom: .6rem; flex: 1; }
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--blue-mid); }
.post-card__meta { font-family: var(--font-sans); font-size: .72rem; color: var(--gray-400); display: flex; gap: .75rem; flex-wrap: wrap; }

/* ==========================================================================
   EM ALTA
   ========================================================================== */
.trending-list { list-style: none; padding: 0; counter-reset: trending; display: flex; flex-direction: column; gap: .5rem; }
.trending-list li { counter-increment: trending; }
.trending-list a {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 4px rgba(27,58,107,.06);
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.trending-list a::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gray-200);
  transition: background .2s;
}
.trending-list a:hover {
  border-color: var(--blue);
  box-shadow: 0 3px 12px rgba(27,58,107,.12);
  transform: translateY(-1px);
}
.trending-list a:hover::after { background: var(--gold); }
.trending-list a::before {
  content: counter(trending, decimal-leading-zero);
  font-family: var(--font-sans); font-size: 1.3rem; font-weight: 700;
  color: var(--gray-200); line-height: 1; flex-shrink: 0; width: 2.2rem;
  transition: color .2s;
}
.trending-list a:hover::before { color: var(--gold); }
.trending-list .trending-info { flex: 1; min-width: 0; }
.trending-list .trending-title {
  font-size: .88rem; color: var(--gray-800); font-weight: 600;
  line-height: 1.35; display: block; margin-bottom: .25rem;
  transition: color .2s;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}
.trending-list a:hover .trending-title { color: var(--blue); }
.trending-list .trending-meta {
  font-family: var(--font-sans); font-size: .68rem; color: var(--gray-400);
}
.trending-list .trending-arrow {
  font-size: .75rem; color: var(--gray-200);
  flex-shrink: 0; transition: color .2s, transform .2s;
}
.trending-list a:hover .trending-arrow { color: var(--gold); transform: translateX(3px); }

/* ==========================================================================
   CATEGORIAS
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .85rem;
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

.cat-card {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem .75rem;
  text-align: center;
  text-decoration: none;
  transition: all .25s;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
}
.cat-card:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card__icon { font-size: 1.75rem; line-height: 1; }
.cat-card__name { font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.cat-card__count { font-family: var(--font-sans); font-size: .7rem; color: rgba(255,255,255,.6); }


/* ==========================================================================
   HOME CTA BOX (Em Alta — coluna direita)
   ========================================================================== */
.home-cta-box {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.home-cta-box__label {
  font-family: var(--font-sans);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: .5rem; margin-bottom: 1rem;
}
.home-cta-box__title {
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: .75rem;
  line-height: 1.35;
  word-wrap: break-word;
}
.home-cta-box__desc {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  word-wrap: break-word;
}
.home-cta-box__btn {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

/* ==========================================================================
   OPT-IN
   ========================================================================== */
.optin-box {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}
.optin-box__title { font-size: clamp(1.15rem, 3vw, 1.7rem); color: var(--white); margin-bottom: .6rem; }
.optin-box__title span { color: var(--gold); }
.optin-box__desc { color: rgba(255,255,255,.8); margin-bottom: 1.25rem; max-width: 480px; margin-inline: auto; font-size: .95rem; }
.optin-form { display: flex; gap: .6rem; max-width: 460px; margin-inline: auto; flex-wrap: wrap; }
.optin-form input[type="email"] {
  flex: 1; min-width: 180px;
  padding: .8rem 1.1rem;
  border: none; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: .88rem;
  background: rgba(255,255,255,.15); color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
}
.optin-form input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.optin-form input[type="email"]:focus { outline: 2px solid var(--gold); }
.optin-privacy { font-family: var(--font-sans); font-size: .7rem; color: rgba(255,255,255,.45); margin-top: .6rem; }

@media (max-width: 480px) {
  .optin-form { flex-direction: column; }
  .optin-form input[type="email"],
  .optin-form .btn { width: 100%; }
}

/* ==========================================================================
   POST ÚNICO
   ========================================================================== */
.post-header { margin-bottom: 1.75rem; }
.post-header__cat { font-family: var(--font-sans); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.post-header__cat a { color: inherit; }
.post-header__title { font-size: clamp(1.5rem, 4vw, 2.5rem); color: var(--blue-dark); margin-bottom: .85rem; line-height: 1.2; }
.post-header__meta {
  font-family: var(--font-sans); font-size: .78rem; color: var(--gray-400);
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  margin-bottom: 1.25rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}
.post-header__meta strong { color: var(--blue); }

/* Sumário */
.toc {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.75rem;
}
.toc__title { font-family: var(--font-sans); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { margin-bottom: .3rem; }
.toc a { font-family: var(--font-sans); font-size: .83rem; color: var(--gray-600); }
.toc a:hover { color: var(--blue); }

/* Conteúdo */
.entry-content { font-size: 1rem; line-height: 1.8; }
.entry-content h2 { margin: 2.25rem 0 .85rem; color: var(--blue); font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
.entry-content h3 { margin: 1.75rem 0 .6rem; color: var(--blue-dark); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: .35rem; }
.entry-content a { color: var(--blue-mid); border-bottom: 1px solid var(--gold); }
.entry-content a:hover { color: var(--blue); }
.entry-content img { border-radius: var(--radius); margin-block: 1.25rem; }

/* Compartilhar */
.share-section {
  margin-block: 2rem;
}
.share-buttons {
  display: flex; gap: .5rem; align-items: center; flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(27,58,107,.08);
  row-gap: .5rem;
}
.share-label {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--gold);
  margin-right: .35rem; white-space: nowrap;
}
.share-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem;
  border-radius: 6px;
  font-family: var(--font-sans); font-size: .8rem; font-weight: 700;
  color: var(--white); text-decoration: none;
  transition: filter .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  border: none; cursor: pointer; white-space: nowrap;
}
.share-btn:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.22); color: var(--white); }
.share-btn svg, .share-btn .share-icon { width: 16px; height: 16px; flex-shrink: 0; }
.share-btn--whatsapp  { background: #25D366 !important; color: #fff !important; }
.share-btn--facebook  { background: #1877F2 !important; color: #fff !important; }
.share-btn--twitter   { background: #000000 !important; color: #fff !important; }
.share-btn--pinterest { background: #E60023 !important; color: #fff !important; }
.share-btn--copy {
  background: var(--white) !important;
  border: 1.5px solid var(--gray-200) !important;
  color: var(--gray-800) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.06) !important;
}
.share-btn--copy:hover { background: var(--off-white) !important; color: var(--blue) !important; border-color: var(--blue) !important; filter: none; }

@media (max-width: 600px) {
  .share-buttons { gap: .4rem; padding: .9rem 1rem; }
  .share-btn { padding: .45rem .75rem; font-size: .75rem; }
  .share-label { width: 100%; margin-bottom: .25rem; }
}

/* Autor */
.author-box {
  display: flex; gap: 1.25rem;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-block: 1.75rem;
  border: 1px solid var(--gray-200);
}
.author-box__avatar { flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); }
.author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box__name { font-size: .95rem; color: var(--blue-dark); margin-bottom: .2rem; }
.author-box__role { font-family: var(--font-sans); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.author-box__bio { font-size: .88rem; color: var(--gray-600); margin: 0; line-height: 1.55; }

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

/* Carrossel relacionados */
.related-posts { margin-block: 2rem; }
.carousel-scroll {
  display: flex; gap: .85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .5rem;
}
.carousel-scroll::-webkit-scrollbar { display: none; }
.carousel-scroll .post-card { flex: 0 0 260px; scroll-snap-align: start; }

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-200) transparent;
}
.sidebar-widget {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  margin-bottom: 1.25rem;
}
.sidebar-widget__title {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .85rem;
  padding-bottom: .45rem; border-bottom: 2px solid var(--gold);
}
.sidebar-widget--cta { background: var(--blue); border-color: var(--blue); text-align: center; }
.sidebar-widget--cta .sidebar-widget__title { color: var(--gold); border-color: var(--gold); }
.sidebar-widget--cta p { color: rgba(255,255,255,.8); font-size: .88rem; margin-bottom: .85rem; }

/* AdSense */
.ad-slot {
  background: var(--gray-100); border: 1px dashed var(--gray-200);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: .68rem; color: var(--gray-400);
  min-height: 90px; text-transform: uppercase; letter-spacing: .06em;
  margin-block: 1.25rem;
}

/* ==========================================================================
   ARCHIVE / CATEGORIAS
   ========================================================================== */
.archive-header {
  background: var(--blue); color: var(--white);
  padding: clamp(1.75rem, 5vw, 3.5rem) 0;
  margin-bottom: 2rem;
}
.archive-header__label { font-family: var(--font-sans); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.archive-header__title { color: var(--white); }
.archive-header__count { font-family: var(--font-sans); font-size: .83rem; color: rgba(255,255,255,.65); margin-top: .4rem; }

/* Paginação */
.pagination { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }
.pagination a, .pagination span {
  font-family: var(--font-sans); font-size: .82rem; font-weight: 600;
  padding: .45rem .85rem; border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200); color: var(--gray-600); transition: all .2s;
}
.pagination a:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.pagination .current { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ==========================================================================
   PÁGINA DE CURSOS
   ========================================================================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 640px) {
  .courses-grid { grid-template-columns: 1fr; }
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.course-card__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--gray-200); }
.course-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.course-card:hover .course-card__thumb img { transform: scale(1.05); }
.course-card__badge {
  position: absolute; top: .6rem; left: .6rem;
  background: var(--gold); color: var(--blue-dark);
  font-family: var(--font-sans); font-size: .62rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: var(--radius-sm);
}
.course-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.course-card__cat { font-family: var(--font-sans); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.course-card__title { font-size: 1.05rem; color: var(--blue-dark); margin-bottom: .6rem; line-height: 1.3; }
.course-card__desc { font-size: .88rem; color: var(--gray-600); line-height: 1.55; margin-bottom: 1rem; flex: 1; }
.course-card__meta { display: flex; gap: .75rem; font-family: var(--font-sans); font-size: .75rem; color: var(--gray-400); margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray-200); flex-wrap: wrap; }
.course-card__price-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.course-card__price { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 700; color: var(--blue); }
.course-card__price small { display: block; font-size: .68rem; color: var(--gray-400); font-weight: 400; }
.course-card__cta {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem 1.1rem; background: var(--gold); color: var(--blue-dark);
  border-radius: var(--radius); font-family: var(--font-sans); font-size: .82rem; font-weight: 700;
  text-decoration: none; transition: all .2s; white-space: nowrap;
}
.course-card__cta:hover { background: var(--gold-dark); color: var(--blue-dark); transform: translateY(-1px); }

/* ==========================================================================
   BUSCA
   ========================================================================== */
.search-form-wrap {
  display: flex; gap: .6rem;
  max-width: 580px; margin-bottom: 2rem; flex-wrap: wrap;
}
.search-form-wrap input[type="search"] {
  flex: 1; min-width: 200px;
  padding: .72rem 1.1rem;
  border: 2px solid var(--gray-200); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: .95rem; transition: border-color .2s;
}
.search-form-wrap input[type="search"]:focus { outline: none; border-color: var(--blue); }

@media (max-width: 480px) {
  .search-form-wrap { flex-direction: column; }
  .search-form-wrap input[type="search"],
  .search-form-wrap .btn { width: 100%; }
}

/* ==========================================================================
   404
   ========================================================================== */
.error-404 { text-align: center; padding: clamp(2.5rem, 7vw, 6rem) 0; }
.error-404__number { font-size: clamp(5rem, 18vw, 10rem); font-weight: 700; color: var(--gray-200); line-height: 1; margin-bottom: .75rem; }
.error-404__title { margin-bottom: .85rem; }
.error-404__desc { color: var(--gray-600); max-width: 400px; margin-inline: auto; margin-bottom: 1.5rem; }

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb { font-family: var(--font-sans); font-size: .78rem; }
.breadcrumb__list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem; align-items: center; color: var(--gray-400); }
.breadcrumb__list li + li::before { content: '›'; margin-right: .2rem; }
.breadcrumb__list a { color: var(--blue); }
.breadcrumb__list a:hover { color: var(--gold); }
.breadcrumb__list [aria-current="page"] { color: var(--gray-400); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,.75); padding-top: clamp(2rem, 5vw, 3.5rem); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col__title { font-family: var(--font-sans); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .85rem; }
.footer-col p { font-size: .85rem; line-height: 1.65; }
.footer-nav { list-style: none; padding: 0; }
.footer-nav li { margin-bottom: .35rem; }
.footer-nav a { color: rgba(255,255,255,.65); font-size: .85rem; transition: color .2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .75rem; padding-block: 1.1rem;
}
.footer-bottom p { font-family: var(--font-sans); font-size: .75rem; color: rgba(255,255,255,.4); margin: 0; }
.footer-legal { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-legal a { font-family: var(--font-sans); font-size: .75rem; color: rgba(255,255,255,.4); }
.footer-legal a:hover { color: var(--gold); }

/* ==========================================================================
   LQIP
   ========================================================================== */
.lqip-wrap { position: relative; overflow: hidden; background: var(--gray-200); }
.lqip-wrap img.lazy { opacity: 0; transition: opacity .5s ease; }
.lqip-wrap img.loaded { opacity: 1; }
.lqip-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(12px); transform: scale(1.08); transition: opacity .5s ease; }
.lqip-wrap.loaded .lqip-placeholder { opacity: 0; pointer-events: none; }

/* ==========================================================================
   UTILITÁRIOS
   ========================================================================== */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }
.hidden { display: none !important; }

/* ==========================================================================
   COMENTÁRIOS
   ========================================================================== */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px solid var(--blue);
}
.comments-title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--blue-dark);
  margin-bottom: 1.5rem;
}
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment {
  padding: 1.25rem;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  margin-bottom: 1rem;
}
.comment-author .fn {
  font-family: var(--font-sans); font-size: .88rem;
  font-weight: 700; color: var(--blue-dark);
}
.comment-author img {
  border-radius: 50%; border: 2px solid var(--gold);
  float: left; margin-right: .75rem;
}
.comment-meta {
  font-family: var(--font-sans); font-size: .72rem;
  color: var(--gray-400); margin-bottom: .75rem; margin-top: .15rem;
}
.comment-meta a { color: var(--gray-400); }
.comment-content p { font-size: .92rem; color: var(--gray-600); margin-bottom: .5rem; line-height: 1.65; }
.reply a {
  font-family: var(--font-sans); font-size: .75rem; font-weight: 600;
  color: var(--blue); text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid var(--blue); padding: .25rem .65rem;
  border-radius: 20px; transition: all .2s; display: inline-block;
}
.reply a:hover { background: var(--blue); color: var(--white); }
.children {
  list-style: none; padding-left: 1.5rem;
  margin-top: .75rem; border-left: 3px solid var(--gold);
}

/* Formulário de comentário */
#respond {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2rem;
}
#reply-title {
  font-size: 1.1rem; color: var(--blue-dark);
  margin-bottom: 1.25rem; padding-bottom: .6rem;
  border-bottom: 2px solid var(--gold);
}
#reply-title small a {
  font-family: var(--font-sans); font-size: .72rem;
  color: var(--gray-400); font-weight: 400; margin-left: .5rem;
}
.comment-form { display: flex; flex-direction: column; gap: 1rem; }
.comment-form label {
  display: block;
  font-family: var(--font-sans); font-size: .78rem; font-weight: 600;
  color: var(--blue-dark); margin-bottom: .3rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-sans); font-size: .88rem;
  background: var(--white); color: var(--text);
  transition: border-color .2s;
  resize: vertical;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none; border-color: var(--blue);
}
.comment-form textarea { min-height: 120px; }
.comment-form-cookies-consent {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-sans); font-size: .78rem; color: var(--gray-600);
}
.comment-form-cookies-consent input { width: auto; }
.comment-form .form-submit { margin: 0; }
.comment-form .submit,
#submit {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.75rem;
  background: var(--blue); color: var(--white);
  border: none; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: .88rem; font-weight: 700;
  cursor: pointer; transition: background .2s, transform .2s;
}
.comment-form .submit:hover,
#submit:hover { background: var(--blue-dark); transform: translateY(-1px); }
.comment-notes {
  font-family: var(--font-sans); font-size: .75rem;
  color: var(--gray-400); margin-bottom: .75rem;
}
.required-field-message { font-size: .72rem; color: var(--gray-400); }
.comment-awaiting-moderation {
  font-family: var(--font-sans); font-size: .75rem;
  color: var(--gold); font-style: italic; margin-top: .5rem;
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .site-header, .sidebar, .share-buttons, .related-posts,
  .optin-box, .ad-slot, .site-footer { display: none; }
  .content-wrap { grid-template-columns: 1fr; }
  body { font-size: 12pt; }
}
