/* ==========================================================================
   blog-style.css — folha compartilhada do Blog + Literatura
   Referenciada por /blog/index.html, /literatura/index.html e todo post
   gerado a partir de /blog/_template-post.html. Mudou aqui, mudou em tudo.
   Paleta idêntica à landing/index.html — não duplicar tokens, só herdar.
   ========================================================================== */

:root {
  --navy:  #1a2744;
  --navy2: #243460;
  --gold:  #e8a020;
  --gold-dark: #c98a18;
  --white: #ffffff;
  --gray:  #f8fafc;
  --text:  #374151;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --radius: 12px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.blog-body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--gray);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.blog-body h1, .blog-body h2, .blog-body h3, .blog-body .logo {
  font-family: 'Barlow', sans-serif;
}

.blog-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Topbar (reaproveitada em blog, literatura e posts) ── */
.blog-topbar {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.blog-topbar .logo {
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.blog-topbar .logo span { color: var(--gold); }

.blog-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.blog-nav a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  transition: color var(--transition);
}
.blog-nav a:hover, .blog-nav a.active { color: var(--gold); }
.blog-nav a.btn-cta {
  background: var(--gold);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 800;
}
.blog-nav a.btn-cta:hover { background: var(--gold-dark); color: var(--navy); }

/* Botao hamburguer — só existe no DOM em telas estreitas (ver @media abaixo);
   injetado via JS em blog-engine.js (initMobileNav) pra não precisar repetir
   o markup nas ~15 páginas que usam essa topbar. */
.blog-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.blog-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.blog-nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.blog-nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.blog-nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero de seção (topo de /blog/ e /graded-readers/) — galeria de fundo
   com as capas dos posts publicados, ver .hero-gallery acima ── */
.blog-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 56px 0 40px;
  color: var(--white);
}
.blog-hero .blog-container { position: relative; z-index: 2; }
.blog-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 12px; }
.blog-hero p { color: rgba(255,255,255,.78); font-size: 1.05rem; max-width: 640px; }

/* ── Filtro de tags/chips ── */
.blog-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 28px 0 8px;
}
.blog-chip {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.blog-chip:hover { border-color: var(--gold); }
.blog-chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ── Grid de cards (blog) ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 28px 0 64px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(26,39,68,.12); }
.blog-card__img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  background: var(--navy2);
}
.blog-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card__tag {
  display: inline-block; align-self: flex-start;
  background: var(--gold-light, #fdf6e3); color: var(--gold-dark);
  border: 1px solid var(--gold); font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 6px;
}
.blog-card__title { font-size: 1.15rem; font-weight: 800; color: var(--navy); line-height: 1.3; }
.blog-card__resumo { color: var(--text-light); font-size: .92rem; flex: 1; }
.blog-card__meta { color: var(--text-light); font-size: .8rem; margin-top: 6px; }

/* ── Estante de literatura (grid de capas) ── */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px;
  margin: 28px 0 64px;
}
.shelf-card { text-decoration: none; color: inherit; display: block; }
.shelf-card__cover {
  width: 100%; aspect-ratio: 2/3; object-fit: cover;
  border-radius: 8px; background: var(--navy2);
  box-shadow: 0 6px 18px rgba(26,39,68,.18);
  transition: transform var(--transition);
}
.shelf-card:hover .shelf-card__cover { transform: translateY(-4px) scale(1.015); }
.shelf-card__level {
  display: inline-block; margin-top: 10px;
  background: var(--navy); color: var(--gold);
  font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 5px;
}
.shelf-card__title { font-weight: 800; color: var(--navy); margin-top: 6px; font-size: .95rem; line-height: 1.3; }
.shelf-card__autor { color: var(--text-light); font-size: .82rem; }

.blog-empty {
  text-align: center; padding: 60px 20px; color: var(--text-light);
}

/* ── Artigo individual ── */
.post-hero { background: var(--navy); color: var(--white); padding: 48px 0 36px; }
.post-hero .blog-container { max-width: 760px; }
/* Modificador usado só em /cursos/ ("Como estudar comigo") — galeria de
   fundo com as imagens dos cards de curso, ver .hero-gallery acima */
.post-hero--gallery { position: relative; overflow: hidden; }
.post-hero--gallery .blog-container { position: relative; z-index: 2; }
.post-hero__tag {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 6px; margin-bottom: 14px;
}
.post-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; line-height: 1.2; }
.post-hero__meta { color: rgba(255,255,255,.7); font-size: .88rem; margin-top: 14px; }

.post-body { max-width: 760px; margin: 0 auto; padding: 40px 24px 20px; }
.post-body img { max-width: 100%; border-radius: var(--radius); margin: 20px 0; }
.post-body h2 { color: var(--navy); font-size: 1.5rem; margin: 32px 0 14px; }
.post-body h3 { color: var(--navy); font-size: 1.2rem; margin: 26px 0 10px; }
.post-body p { margin-bottom: 16px; font-size: 1.03rem; }
.post-body ul, .post-body ol { margin: 0 0 16px 22px; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote {
  border-left: 4px solid var(--gold); background: var(--gray);
  padding: 14px 18px; margin: 20px 0; color: var(--navy); font-style: italic;
}
.post-body a { color: var(--navy2); font-weight: 700; }

/* ── Ficha do livro (só em resenhas) ── */
.book-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin: 0 auto 36px; max-width: 760px;
}
.book-card__cover { width: 110px; aspect-ratio: 2 / 3; object-fit: cover; flex-shrink: 0; border-radius: 6px; box-shadow: 0 6px 16px rgba(26,39,68,.18); }
.book-card__info h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 2px; }
.book-card__info .autor { color: var(--text-light); font-size: .9rem; margin-bottom: 10px; }
.book-card__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.book-card__facts span {
  background: var(--gray); border: 1px solid var(--border); color: var(--text);
  font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 6px;
}
.book-card__nota { color: var(--gold-dark); font-weight: 800; font-size: .92rem; }

/* ── CTA de conversão dentro do post ── */
.post-cta {
  max-width: 760px; margin: 40px auto; background: linear-gradient(135deg, var(--navy), var(--navy2));
  border-radius: var(--radius); padding: 28px 30px; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.post-cta h3 { font-size: 1.1rem; margin-bottom: 4px; }
.post-cta p { color: rgba(255,255,255,.78); font-size: .9rem; }
.post-cta a {
  background: var(--gold); color: var(--navy); text-decoration: none; font-weight: 800;
  padding: 11px 20px; border-radius: 8px; white-space: nowrap;
}

/* ── Comentários ── */
.blog-comments { max-width: 760px; margin: 20px auto 60px; }
.blog-comments h2 { color: var(--navy); font-size: 1.3rem; margin-bottom: 16px; }
.blog-comments__placeholder {
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 20px; color: var(--text-light); font-size: .9rem; text-align: center;
}

.blog-comment {
  border-bottom: 1px solid var(--border); padding: 14px 0;
}
.blog-comment:last-child { border-bottom: none; }
.blog-comment__autor { font-weight: 800; color: var(--navy); font-size: .92rem; }
.blog-comment__data { color: var(--text-light); font-size: .76rem; margin-bottom: 6px; }
.blog-comment__texto { font-size: .94rem; }
.blog-comments__vazio { color: var(--text-light); font-size: .9rem; padding: 10px 0; }

.blog-comments__form {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.blog-comments__row { display: flex; gap: 10px; flex-wrap: wrap; }
.blog-comments__row input {
  flex: 1; min-width: 180px;
}
.blog-comments__form input[type="text"],
.blog-comments__form input[type="email"],
.blog-comments__form textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
  font-family: inherit; font-size: .92rem; color: var(--text);
}
.blog-comments__form textarea { resize: vertical; }
.blog-comments__form button {
  align-self: flex-start; background: var(--navy); color: var(--white);
  border: none; padding: 10px 22px; border-radius: 8px; font-weight: 800;
  cursor: pointer; transition: background var(--transition);
}
.blog-comments__form button:hover { background: var(--navy2); }
.blog-comments__form button:disabled { opacity: .6; cursor: default; }
.blog-comments__status { font-size: .85rem; }
.blog-comments__status.ok { color: #15803d; }
.blog-comments__status.erro { color: #b91c1c; }
.blog-comments__aviso { font-size: .78rem; color: var(--text-light); }
.blog-comments__aviso a { color: var(--navy2); }
/* honeypot: existe no DOM (bots preenchem), invisivel e inalcancavel por humano/leitor de tela */
.blog-comments__honeypot, .form-honeypot {
  position: absolute !important; left: -9999px !important; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

.related-posts { max-width: 760px; margin: 0 auto 20px; }
.related-posts h2 { color: var(--navy); font-size: 1.2rem; margin-bottom: 14px; }
.related-posts .blog-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0; }

/* ── Footer ── */
.blog-footer {
  background: var(--navy); color: rgba(255,255,255,.6);
  text-align: center; padding: 28px 20px; font-size: .85rem;
}
.blog-footer a { color: var(--gold); text-decoration: none; }

/* ── Menu mobile: abaixo de 860px a barra fica compacta (logo + hamburguer)
   e os links viram um painel que abre por baixo, em vez de quebrar linha
   dentro da própria barra sticky (o que empurrava ~250-300px de links pro
   topo de toda página no celular). ── */
@media (max-width: 860px) {
  .blog-topbar { padding: 0 16px; position: relative; }
  .blog-nav__toggle { display: flex; }
  .blog-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 16px 28px rgba(10,16,32,.28);
    padding: 8px 16px 18px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .blog-nav.is-open { display: flex; }
  .blog-nav a { width: 100%; padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .blog-nav a.btn-cta { text-align: center; margin-top: 10px; }
  .blog-nav a.btn-cta:hover { color: var(--navy); }
}

@media (max-width: 640px) {
  .book-card { flex-direction: column; }
  .post-cta { flex-direction: column; align-items: flex-start; }
}


/* ==========================================================================
   Extensao para Home (/), Sobre (/sobre/) e Cursos (/cursos/) -- adicionado
   quando o site deixou de ser landing unica e virou multipagina. Mesmos
   tokens, mesma topbar/footer, so componentes novos abaixo.
   ========================================================================== */

/* Hero institucional (home) -- mais calmo que o blog-hero: sem urgencia,
   com dois CTAs (explorar cursos / ja sou aluno). Fundo = galeria de fotos
   em crossfade (ver .hero-gallery mais abaixo), texto fixo por cima. */
.home-hero { position:relative; overflow:hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); padding: 96px 0 80px; color: var(--white); }
.home-hero .blog-container { position:relative; z-index:2; }
.home-hero__badge { display:inline-block; background: rgba(232,160,32,.15); border:1px solid rgba(232,160,32,.4); color: var(--gold); font-size:.76rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; padding:5px 14px; border-radius:999px; margin-bottom:18px; }
.home-hero h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight:900; line-height:1.15; margin-bottom:16px; max-width: 680px; }
.home-hero p { color: rgba(255,255,255,.85); font-size:1.08rem; max-width:600px; margin-bottom:28px; }
.home-hero__ctas { display:flex; gap:14px; flex-wrap:wrap; }

/* ── Galeria de fundo com crossfade — usada em .home-hero, .post-hero--gallery
   e .blog-hero. Bloco inteiro, sem cantos arredondados; só a imagem faz fade,
   o texto por cima fica fixo. Populada via BlogEngine.initHeroGallery(). ── */
.hero-gallery { position:absolute; inset:0; z-index:0; overflow:hidden; }
.hero-gallery img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition: opacity 1.6s ease; }
.hero-gallery img.is-active { opacity:1; }
.hero-gallery__overlay { position:absolute; inset:0; z-index:1; background: linear-gradient(135deg, rgba(26,39,68,.88) 0%, rgba(20,30,56,.82) 100%); }
.btn { display:inline-block; padding:13px 26px; border-radius:8px; font-weight:800; text-decoration:none; font-size:.95rem; transition: all var(--transition); border: none; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* Secoes genericas de pagina institucional */
.home-section { padding: 56px 0; }
.home-section--alt { background: var(--white); }
.home-section h2 { color: var(--navy); font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight:900; margin-bottom:10px; }
.home-section__sub { color: var(--text-light); font-size:1rem; max-width:600px; margin-bottom:30px; }
.home-section__foot { margin-top: 24px; }

/* Teaser "Sobre mim" -- usado na home e no /sobre/ */
.sobre-wrap { display:flex; gap:40px; align-items:center; flex-wrap:wrap; }
.sobre-wrap--reverse { flex-direction: row-reverse; }
.sobre-photo { width: 260px; height:260px; object-fit:cover; border-radius: var(--radius); box-shadow: 0 14px 34px rgba(26,39,68,.22); flex-shrink:0; }
.sobre-text { flex:1; min-width:280px; }
.sobre-text p { margin-bottom:14px; font-size:1.02rem; color: var(--text); }
.sobre-stats { display:flex; flex-wrap:wrap; gap:10px; margin: 18px 0 22px; }
.stat-chip { background: var(--gray); border:1px solid var(--border); border-radius:8px; padding:8px 14px; font-size:.85rem; font-weight:700; color: var(--navy); }
.stat-chip strong { color: var(--gold-dark); }

/* Cursos -- catalogo (/cursos/) e preview (home) */
.cursos-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap:22px; margin: 24px 0; }
.curso-card { background: var(--white); border:1px solid var(--border); border-radius: var(--radius); padding:26px 24px; display:flex; flex-direction:column; gap:10px; transition: all var(--transition); }
.curso-card__img { width: calc(100% + 48px); margin: -26px -24px 4px; height: 160px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; display:block; }
.curso-card:hover { border-color: var(--gold); box-shadow: 0 12px 28px rgba(26,39,68,.1); transform: translateY(-3px); }
.curso-card__badge { align-self:flex-start; background: rgba(232,160,32,.15); color: var(--gold-dark); font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; padding:3px 10px; border-radius:6px; }
.curso-card__badge--soon { background: var(--gray); color: var(--text-light); border:1px solid var(--border); }
.curso-card__need { color: var(--text-light); font-size:.82rem; font-weight:700; }
.curso-card__logo { height: 30px; width: auto; max-width: 100%; object-fit: contain; align-self: flex-start; }
.curso-card h3 { color: var(--navy); font-size:1.2rem; font-weight:800; }
.curso-card p { color: var(--text-light); font-size:.94rem; flex:1; }
.curso-card a.btn { align-self:flex-start; padding:10px 20px; font-size:.88rem; margin-top: 6px; }

@media (max-width:640px){
  .sobre-wrap, .sobre-wrap--reverse { flex-direction:column; }
  .sobre-photo { width:100%; max-width:280px; height:auto; aspect-ratio:1/1; }
  .home-hero { padding: 52px 0 40px; }
  .home-section { padding: 40px 0; }
}

/* ── FAQ (accordion nativo, sem JS) — usado em /cursos/ ── */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item summary {
  cursor: pointer; font-weight: 800; color: var(--navy); font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.5rem; line-height: 1; color: var(--gold-dark); font-weight: 400;
  flex-shrink: 0; transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--text-light); font-size: .96rem; }

/* ── Depoimentos reais (texto + nome + foto quando houver) ── */
.testimonial-carousel { position: relative; }
.testimonial-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 4px;
  padding: 4px 4px 14px;
  margin: -4px -4px -14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.testimonial-grid::-webkit-scrollbar { height: 7px; }
.testimonial-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.testimonial-grid::-webkit-scrollbar-track { background: transparent; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 14px;
  flex: 0 0 300px; scroll-snap-align: start;
}
.testimonial-carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; background: var(--white);
  border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(26,39,68,.14);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--navy); font-size: 1.1rem; z-index: 3;
  transition: background var(--transition), color var(--transition);
}
.testimonial-carousel__btn:hover { background: var(--navy); color: var(--white); }
.testimonial-carousel__btn--prev { left: -18px; }
.testimonial-carousel__btn--next { right: -18px; }
@media (max-width: 900px) { .testimonial-carousel__btn { display: none; } }
.testimonial-card--featured { border-color: var(--gold); border-width: 1.5px; box-shadow: 0 8px 26px rgba(232,160,32,.14); position: relative; }
.testimonial-card--featured::after {
  content: 'Aprovação CAE'; position: absolute; top: -11px; right: 18px;
  background: var(--gold); color: var(--navy); font-size: .68rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
}
.testimonial-card__quote { color: var(--text); font-size: .96rem; line-height: 1.55; flex: 1; }
.testimonial-card__quote::before { content: '“'; color: var(--gold); font-weight: 900; font-size: 1.3rem; line-height: 0; }
.testimonial-card__author { display: flex; align-items: center; gap: 10px; }
.testimonial-card__photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial-card__photo--placeholder { background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; }
.testimonial-card__name { color: var(--navy); font-weight: 700; font-size: .9rem; }

/* ── Área do aluno (login) — mesma topbar/rodapé do resto do site ── */
.login-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 64px 20px 90px;
  display: flex;
  justify-content: center;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
}
.login-card h1 { color: var(--navy); font-size: 1.5rem; font-weight: 900; text-align: center; margin-bottom: 6px; }
.login-card .login-sub { color: var(--text-light); font-size: .9rem; text-align: center; margin-bottom: 26px; }
.field-label { display: block; font-size: .7rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; letter-spacing: 1px; text-transform: uppercase; }
.field-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: .95rem; color: var(--text); background: var(--gray);
  outline: none; transition: border-color var(--transition), box-shadow var(--transition); margin-bottom: 16px;
}
.field-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,160,32,.15); background: var(--white); }
.btn-login {
  width: 100%; padding: 13px; background: var(--navy); color: var(--white); border: none; border-radius: 8px;
  font-family: inherit; font-size: .92rem; font-weight: 800; letter-spacing: .5px; cursor: pointer;
  transition: all var(--transition); margin-top: 2px;
}
.btn-login:hover { background: var(--navy2); }
.btn-login:disabled { opacity: .6; cursor: default; }
.login-footer-note { text-align: center; font-size: .8rem; color: var(--text-light); margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.login-footer-note a { color: var(--navy); font-weight: 700; text-decoration: none; }
.login-footer-note a:hover { text-decoration: underline; }
.login-error { color: #b91c1c; font-size: .85rem; display: none; margin-top: 8px; text-align: center; background: #fef2f2; padding: 9px 12px; border-radius: 8px; border: 1px solid #fecaca; }
.login-spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.35); border-top-color: var(--white); border-radius: 50%; animation: login-spin .7s linear infinite; margin-right: 7px; vertical-align: middle; }
@keyframes login-spin { to { transform: rotate(360deg); } }

/* ── Layout com sidebar de destaques — usado em /blog/ e /graded-readers/
   pra dar visibilidade a cursos/CTAs sem competir com o conteudo principal.
   Reaproveitavel: so trocar os .highlight-card de cada pagina. ── */
.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 36px; align-items: start; }
.blog-layout__main { min-width: 0; }
.highlights-sidebar {
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 84px;
}
.highlights-sidebar__label {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: -6px;
}
.highlight-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
}
.highlight-card--dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.highlight-card__tag {
  align-self: flex-start; background: rgba(232,160,32,.15); color: var(--gold-dark);
  font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 9px; border-radius: 6px;
}
.highlight-card--dark .highlight-card__tag { background: rgba(232,160,32,.22); color: var(--gold); }
.highlight-card h4 { font-size: 1rem; font-weight: 800; color: var(--navy); }
.highlight-card--dark h4 { color: var(--white); }
.highlight-card p { font-size: .85rem; color: var(--text-light); line-height: 1.5; }
.highlight-card--dark p { color: rgba(255,255,255,.7); }
.highlight-card a.btn { align-self: flex-start; padding: 8px 16px; font-size: .82rem; margin-top: 4px; }

@media (max-width: 860px) {
  .blog-layout { grid-template-columns: 1fr; }
  .highlights-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .highlights-sidebar .highlight-card { flex: 1 1 240px; }
}

/* ── Formulario de triagem (/comece/) — mesmos tokens de field-label/
   field-input do login, so acrescenta grupos de checkbox/radio. ── */
.intake-card { background: var(--white); border-radius: var(--radius); box-shadow: 0 10px 34px rgba(26,39,68,.08); border: 1px solid var(--border); padding: 36px 40px; max-width: 620px; margin: 0 auto; }
.intake-section { margin-bottom: 26px; }
.intake-section:last-of-type { margin-bottom: 0; }
.intake-section__title { font-size: .95rem; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.intake-section__hint { font-size: .82rem; color: var(--text-light); margin-bottom: 12px; }
.form-check-group { display: flex; flex-direction: column; gap: 9px; }
.form-check-group--row { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.form-check {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .9rem; color: var(--text); transition: border-color var(--transition), background var(--transition);
}
.form-check:has(input:checked) { border-color: var(--gold); background: rgba(232,160,32,.06); }
.form-check input { accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.form-check-group--row .form-check { flex: 0 0 auto; }
.intake-submit { width: 100%; margin-top: 6px; }
.intake-submit svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; fill: currentColor; }
.intake-note { font-size: .78rem; color: var(--text-light); text-align: center; margin-top: 14px; }
.intake-error { font-size: .82rem; color: #b91c1c; text-align: center; margin-top: 14px; }
.intake-error a { color: #b91c1c; text-decoration: underline; }
.intake-success { text-align: center; padding: 20px 0; }
.intake-success h3 { color: var(--navy); font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.intake-success p { color: var(--text-light); font-size: .95rem; line-height: 1.6; margin-bottom: 20px; }
