/* --- Equações matemáticas acessíveis (Fala Fórmula + KaTeX) --- */
.fala-formula-display {
  display: block;
  text-align: center;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.fala-formula-inline {
  display: inline;
}

/* --- Variáveis de Design (Dark Mode Moderno) --- */
:root {
  --bg-body: #121214;        /* Fundo principal (quase preto) */
  --bg-card: #202024;        /* Fundo dos cartões (cinza escuro) */
  --bg-hover: #29292e;       /* Fundo ao passar o mouse */
  --primary: #8257e5;        /* Roxo principal */
  --primary-dark: #6c4ed9;   /* Roxo escuro para gradiente */
  --accent-color: #8257e5;   /* Alias de --primary para compatibilidade */
  --text-main: #e1e1e6;      /* Texto principal (off-white) */
  --text-muted: #b4b4bf;     /* Texto secundário — 5.0:1 sobre #202024 (WCAG AA) */
  --focus-color: #ffd700;    /* Amarelo Ouro para foco acessível */
  --border-color: #323238;   /* Bordas e separadores */
  --close-btn-bg: #323238;   /* Fundo do botão fechar */
  --transition: all 0.3s ease;
}

/* ===========================================================
   NAVBAR
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(18, 18, 20, 0.85);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
}

.site-header .navbar {
  padding: 0.65rem 0;
}

.nav-logo {
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.85;
}

/* --- Toggler mobile (hamburger animado) --- */
.nav-toggler {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

@media (min-width: 992px) {
  .nav-toggler {
    display: none;
  }
}

.nav-toggler:hover {
  border-color: var(--primary);
}

.nav-toggler-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggler[aria-expanded="true"] .nav-toggler-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggler[aria-expanded="true"] .nav-toggler-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggler[aria-expanded="true"] .nav-toggler-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Links de navegação --- */
.nav-link-custom {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav-link-custom:hover,
.nav-link-custom:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link-custom.dropdown-toggle::after {
  border: none;
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23b4b4bf' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.nav-link-custom.dropdown-toggle.show::after {
  transform: rotate(180deg);
}

/* --- Dropdown menu --- */
.nav-dropdown {
  background: #1a1a1e;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  min-width: 240px;
  margin-top: 0.5rem;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: normal;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus {
  color: #fff;
  background: rgba(130, 87, 229, 0.1);
}

.nav-dropdown-icon {
  font-size: 1.15rem;
  color: var(--primary);
  flex-shrink: 0;
}

.nav-external-icon {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
  opacity: 0.5;
}

/* --- Ações da nav (busca) --- */
.nav-actions {
  display: flex;
  align-items: center;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border-color);
}

.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav-search-btn i {
  font-size: 1.15rem;
}

.nav-search-btn:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(130, 87, 229, 0.08);
}

/* --- Mobile menu --- */
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 0.75rem;
  }

  .nav-link-custom {
    padding: 0.75rem 0.85rem;
    width: 100%;
    border-radius: 8px;
  }

  .nav-link-custom:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-actions {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color);
  }

  .nav-search-btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem;
  }

  .nav-dropdown {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    margin-top: 0;
  }

  .nav-dropdown-item {
    padding: 0.6rem 0.85rem;
  }
}

/* --- Estilos Globais --- */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

/* Foco visível para navegação por teclado (Acessibilidade Crítica) */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--focus-color) !important;
  outline-offset: 3px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  border-radius: 4px;
  z-index: 10;
}

/* --- Tipografia --- */
h1, h2, h3, h4 {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(90deg, #996DFF, #8257e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

@supports not (-webkit-background-clip: text) {
  .text-gradient {
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--primary);
  }
}

/* --- Botões --- */
.btn-primary-custom {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: #fff;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(130, 87, 229, 0.4);
  color: #fff;
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid #323238;
  color: var(--text-main);
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(130, 87, 229, 0.1);
}

/* --- Cards Modernos --- */
.custom-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.custom-card:hover {
  background-color: var(--bg-hover);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Ícone dentro do card */
.card-icon-wrapper {
  width: 64px;
  height: 64px;
  background: rgba(130, 87, 229, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #996DFF;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.custom-card:hover .card-icon-wrapper {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

/* --- Seções e Layout --- */
.section-alt {
  background-color: #1a1a1e;
  border-top: 1px solid #202024;
  border-bottom: 1px solid #202024;
}

.accent-border-left {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
}

/* Imagens e Vídeos */
.media-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #323238;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  background-color: #000;
}

/* --- Acessibilidade: elementos para leitores de tela --- */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- Componente: Cards --- */
.custom-cards .card-article {
  border-radius: 15px;
  transition: all 0.3s ease;
}

.custom-cards .card-icon-circle {
  width: 60px;
  height: 60px;
  font-size: 2.5rem;
  background: rgba(77,171,247,0.1);
}

.custom-cards .card-hover {
  background: linear-gradient(145deg, #1e1e1e, #2a2a2a) !important;
  border: 1px solid rgba(255,255,255,0.1);
}

.custom-cards .card-hover:focus {
  outline: 3px solid #0d6efd !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.3) !important;
}

.custom-cards .card-hover:focus-visible {
  outline: 3px solid #0d6efd !important;
  outline-offset: 2px;
}

.custom-cards .card-hover:hover,
.custom-cards .card-hover:focus {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4) !important;
}

.text-high-contrast {
  color: rgba(255,255,255,0.95) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

@media (prefers-reduced-motion: reduce) {
  .custom-cards .card-hover,
  .custom-card,
  .custom-card:hover,
  .card-icon-wrapper,
  .custom-card:hover .card-icon-wrapper,
  .btn-primary-custom,
  .btn-outline-custom,
  .custom-figure .image-wrapper,
  .custom-figure .image-wrapper img,
  .custom-figure .image-overlay,
  .custom-figure .figcaption-wrapper,
  .custom-figure .figure-decoration .accent-bar,
  .custom-blockquote .card,
  .nav-toggler-bar,
  .nav-link-custom,
  .nav-search-btn,
  .nav-dropdown-item,
  .home-card,
  .home-card-link:hover .home-card,
  .home-card-arrow,
  .home-card-link:hover .home-card-arrow,
  .audience-card,
  .principle-card,
  .btn-hero-primary,
  .btn-hero-outline,
  .search-result-item,
  .search-input {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}

@media (prefers-contrast: high) {
  .custom-cards .card-hover {
    border: 2px solid #ffffff !important;
    background: #000000 !important;
  }

  .text-high-contrast {
    color: #ffffff !important;
  }

  .home-card,
  .audience-card,
  .principle-card {
    border: 2px solid #ffffff !important;
  }
}

@media (max-width: 768px) {
  .custom-cards .card-body {
    padding: 1.5rem;
  }

  .custom-cards .card-hover {
    min-height: 44px;
  }
}

/* --- Componente: Blockquote --- */
.custom-blockquote .card {
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
}

.custom-blockquote .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4) !important;
  border-color: rgba(13,110,253,0.3);
}

.custom-blockquote .blockquote-accent-bar {
  width: 4px;
  background: linear-gradient(to bottom, #0d6efd, #6610f2);
  z-index: 3;
}

.custom-blockquote .blockquote-bg-pattern {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(13,110,253,0.1) 0%, transparent 70%);
  z-index: 1;
}

.custom-blockquote .blockquote-content {
  z-index: 2;
}

.custom-blockquote .blockquote p {
  font-style: italic;
  position: relative;
}

.custom-blockquote .quote-decoration {
  position: relative;
}

.custom-blockquote .quote-decoration::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50px;
  width: 20px;
  height: 1px;
  background: rgba(13,110,253,0.3);
}

.custom-blockquote .quote-decoration-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, #0d6efd, #6610f2);
}

.custom-blockquote:focus-within {
  outline: 3px solid #0d6efd;
  border-radius: 16px;
}

/* --- Componente: Figure (imagens com zoom) --- */
.custom-figure .image-wrapper {
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-figure .image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-figure .image-overlay {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8));
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: all 0.4s ease;
  border-radius: 20px;
  pointer-events: none;
}

.custom-figure .image-overlay .zoom-icon {
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.custom-figure .image-overlay .zoom-text {
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  letter-spacing: 0.5px;
  font-weight: 500;
}

.custom-figure .figure-decoration {
  bottom: -12px;
}

.custom-figure .figure-decoration .accent-bar {
  width: 80px;
  height: 6px;
  opacity: 0.8;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.3);
}

.custom-figure .figcaption-wrapper {
  background-color: rgba(32, 32, 36, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.1);
}

.custom-figure .figcaption-text {
  padding: 2px 8px;
  letter-spacing: 0.3px;
  font-weight: 500;
}

/* --- Acessibilidade: focusable mas visualmente oculto --- */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- Página: Listagem de Cursos --- */
.filter-nav-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.nav-pills-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.btn-filter {
  background: transparent;
  border: 1px solid #323238;
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-filter:hover {
  border-color: var(--primary);
  color: #fff;
  background-color: rgba(130, 87, 229, 0.1);
}

.btn-filter.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(130, 87, 229, 0.4);
}

.badge-count {
  background-color: #323238;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  transition: var(--transition);
}

.btn-filter.active .badge-count {
  background-color: rgba(0,0,0,0.3);
}

.course-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  position: relative;
}

.course-card:hover {
  background-color: var(--bg-hover);
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.course-icon {
  width: 48px;
  height: 48px;
  background: rgba(130, 87, 229, 0.1);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.course-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.course-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.btn-details {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}

.btn-details:hover {
  color: #fff;
}

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

/* --- Animação de entrada (filtro de cursos) --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .course-item {
    animation: none !important;
    transition: none !important;
  }
}

/* --- Utilitários de z-index --- */
.back-to-top {
  z-index: 1000;
}

.vlibras-widget {
  z-index: 9999;
}

/* --- Utilitários --- */
.text-muted-custom {
  color: var(--text-muted);
}

.text-muted-sm {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-eyebrow {
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.lead-muted {
  color: var(--text-muted);
  max-width: 700px;
}

.section-filter-title {
  letter-spacing: 1px;
  opacity: 0.8;
}

.author-comment-quote {
  font-style: italic;
}

.author-comment-gradient {
  background: linear-gradient(135deg, rgba(13,110,253,0.1), rgba(102,16,242,0.1));
  z-index: 1;
}

.author-comment-body {
  z-index: 2;
}

.author-comment-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-comment-dot-1 { width: 6px; height: 6px; opacity: 0.7; }
.author-comment-dot-2 { width: 6px; height: 6px; opacity: 0.5; }
.author-comment-dot-3 { width: 6px; height: 6px; opacity: 0.3; }

.author-comment-card {
  border-radius: 20px;
}

/* ===========================================================
   ABOUT — Página de perfil pessoal
   =========================================================== */

.about-page {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

/* --- Hero de perfil --- */
.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.about-photo-wrapper {
  margin-bottom: 1.5rem;
}

.about-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(130, 87, 229, 0.15),
              0 8px 30px rgba(0, 0, 0, 0.4);
}

.about-role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.about-name {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .about-name {
    font-size: 2.75rem;
  }
}

.about-bio {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 1.25rem;
}

/* --- Links de perfil --- */
.about-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.about-link:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(130, 87, 229, 0.08);
}

.about-link i {
  font-size: 1rem;
}

/* --- Conteúdo reutiliza .post-content --- */
.about-content {
  margin-bottom: 2rem;
}

/* --- Footer --- */
.about-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

@media (prefers-reduced-motion: reduce) {
  .about-link {
    transition: none !important;
  }
}

@media (prefers-contrast: high) {
  .about-photo {
    border: 3px solid #ffffff !important;
  }
  .about-link {
    border: 2px solid #ffffff !important;
  }
}

/* ===========================================================
   POST — Layout de artigo individual (inspirado Rocketseat)
   =========================================================== */

.post-article {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

/* --- Breadcrumb --- */
.post-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2rem;
  font-size: 0.82rem;
}

.post-breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.post-breadcrumb-link:hover {
  color: var(--primary);
}

.post-breadcrumb-sep {
  color: var(--border-color);
}

.post-breadcrumb-current {
  color: var(--text-main);
  font-weight: 500;
}

/* --- Header do post --- */
.post-header {
  margin-bottom: 2.5rem;
}

.post-category-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}

.post-category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  padding: 4px 12px;
  border-radius: 6px;
}

.post-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .post-title {
    font-size: 2.5rem;
  }
}

.post-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* --- Barra de autor (estilo Rocketseat) --- */
.post-author-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(130, 87, 229, 0.4);
}

.post-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

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

.post-reading-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* --- Tags --- */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.25rem;
}

.post-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: 20px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.post-tag:hover {
  border-color: var(--primary);
  color: #fff;
}

/* --- Alerta / Aviso --- */
.post-alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(255, 193, 7, 0.06);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-left: 3px solid #ffc107;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-main);
  font-size: 0.92rem;
  line-height: 1.6;
}

.post-alert i {
  color: #ffc107;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Sumário (TOC) --- */
.post-toc {
  margin-bottom: 2rem;
}

.post-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.post-toc-toggle:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
}

.post-toc-toggle-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-toc-toggle-left i {
  color: var(--primary);
  font-size: 1.1rem;
}

.post-toc-chevron {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.post-toc-toggle[aria-expanded="true"] .post-toc-chevron {
  transform: rotate(180deg);
}

.post-toc-body {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 0.75rem 1rem;
  margin-top: -1px;
}

.post-toc-body .list-group {
  gap: 2px;
}

.post-toc-body .list-group-item {
  background: transparent !important;
  border: none !important;
  padding: 0.2rem 0;
}

.post-toc-body .list-group-item a {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.post-toc-body .list-group-item a:hover {
  color: #fff;
  background: rgba(130, 87, 229, 0.1);
}

.post-toc-body .badge {
  background: var(--primary) !important;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

/* --- Conteúdo do post --- */
.post-content {
  color: var(--text-main);
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  word-spacing: 0.05em;
  max-width: 72ch;
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}


/* Imagens diretas no conteúdo (exclui .custom-figure que tem estilos próprios) */
.post-content > img,
.post-content > p > img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.5rem 0;
}

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

.post-content a:hover {
  color: #fff;
}

/* Blockquotes simples (exclui .custom-blockquote que tem layout próprio) */
.post-content > blockquote {
  border-left: 3px solid var(--primary);
  background: var(--bg-card);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.post-content > blockquote p:last-child {
  margin-bottom: 0;
}

/* Garante que componentes customizados não herdem estilos do post-content */
.post-content .custom-blockquote blockquote {
  border-left: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  font-style: normal;
}

/* Corrige figure-container d-inline-block que colapsa largura das imagens */
.post-content .custom-figure .figure-container {
  display: block !important;
  width: 100%;
}

/* Espaçamento dos componentes customizados dentro do post */
.post-content .custom-figure,
.post-content .custom-blockquote {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.post-content .custom-figure img {
  border: none;
  border-radius: inherit;
  margin: 0;
}

/* --- Inline code --- */
.post-content code {
  background: rgba(130, 87, 229, 0.12);
  color: #c9b1ff;                /* ~7.2:1 sobre #121214 — WCAG AAA */
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.85em;
  word-break: break-word;
}

/* Inline code com classes Bootstrap dos posts (text-white-50 etc.) */
.post-content code[class] {
  background: rgba(130, 87, 229, 0.12);
  color: #c9b1ff !important;
}

/* --- Code blocks (estilo IDE moderna) --- */
.post-content .highlighter-rouge {
  background: #1a1a2e;           /* Fundo escuro uniforme tipo VS Code */
  border: 1px solid rgba(130, 87, 229, 0.2);
  border-radius: 10px;
  margin: 1.25rem 0;
  overflow: hidden;
  position: relative;
}

/* Remove classes Bootstrap inline (bg-dark, p-3) que conflitam */
.post-content .highlighter-rouge[class*="bg-"] {
  background: #1a1a2e !important;
  padding: 0 !important;
}

.post-content .highlighter-rouge .highlight {
  background: transparent;
}

.post-content .highlighter-rouge pre.highlight {
  background: transparent;
  margin: 0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  border-radius: 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #e1e1e6;                /* --text-main — 12.6:1 sobre #1a1a2e */
  -webkit-overflow-scrolling: touch;
}

.post-content .highlighter-rouge pre.highlight code {
  background: transparent !important;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  font-family: inherit;
  word-break: normal;
}

/* Scrollbar estilizada nos blocos de código */
.post-content .highlighter-rouge pre.highlight::-webkit-scrollbar {
  height: 6px;
}

.post-content .highlighter-rouge pre.highlight::-webkit-scrollbar-track {
  background: transparent;
}

.post-content .highlighter-rouge pre.highlight::-webkit-scrollbar-thumb {
  background: rgba(130, 87, 229, 0.3);
  border-radius: 3px;
}

/* <pre> sem classe (markdown indentado) */
.post-content pre:not([class]) {
  background: #1a1a2e;
  border: 1px solid rgba(130, 87, 229, 0.2);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #e1e1e6;
}

.post-content pre:not([class]) code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* =============================================
   Syntax Highlighting — tema escuro tipo IDE
   Cores verificadas com contraste ≥ 4.5:1 sobre #1a1a2e (WCAG AA)
   ============================================= */

/* Comentários */
.highlight .c,
.highlight .c1,
.highlight .cm,
.highlight .cs,
.highlight .ch,
.highlight .cp,
.highlight .cpf {
  color: #6b7280;               /* cinza — 4.6:1 */
  font-style: italic;
}

/* Strings */
.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sh,
.highlight .sx,
.highlight .dl {
  color: #a5d6a7;               /* verde claro — 8.9:1 */
}

/* Números */
.highlight .mi,
.highlight .mf,
.highlight .mh,
.highlight .mo,
.highlight .mb,
.highlight .mx,
.highlight .il {
  color: #f9a825;               /* amarelo dourado — 7.5:1 */
}

/* Keywords (def, class, if, end, do, etc.) */
.highlight .k,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kv,
.highlight .kc {
  color: #c9b1ff;               /* roxo claro — 7.2:1 */
  font-weight: 600;
}

/* Nomes de funções/métodos */
.highlight .nf,
.highlight .fm {
  color: #82b1ff;               /* azul claro — 6.7:1 */
}

/* Nomes de classes/módulos */
.highlight .nc,
.highlight .nn {
  color: #f9a825;               /* amarelo dourado — 7.5:1 */
  font-weight: 600;
}

/* Builtins (puts, print, require, etc.) */
.highlight .nb {
  color: #82b1ff;               /* azul claro — 6.7:1 */
}

/* Variáveis de instância/classe */
.highlight .vi,
.highlight .vc,
.highlight .vg,
.highlight .va {
  color: #ef9a9a;               /* vermelho claro — 6.5:1 */
}

/* Operadores */
.highlight .o,
.highlight .ow {
  color: #ce93d8;               /* lilás — 5.5:1 */
}

/* Símbolos (Ruby :symbol) */
.highlight .ss {
  color: #80cbc4;               /* teal — 8.3:1 */
}

/* Regex */
.highlight .sr {
  color: #ef9a9a;               /* vermelho claro — 6.5:1 */
}

/* Flags de comando (--force, -v, etc.) */
.highlight .nt {
  color: #ce93d8;               /* lilás — 5.5:1 */
}

/* Nomes genéricos / texto */
.highlight .n,
.highlight .na,
.highlight .no,
.highlight .nd,
.highlight .ni,
.highlight .ne,
.highlight .nl,
.highlight .nx,
.highlight .py,
.highlight .nt {
  color: #e1e1e6;               /* texto padrão */
}

/* Erros de syntax */
.highlight .err {
  color: #ef5350;
}

/* Escape em strings */
.highlight .se {
  color: #f9a825;               /* amarelo dourado */
  font-weight: 600;
}

/* Prompt de shell ($) */
.highlight .gp {
  color: #6b7280;               /* cinza — não destacar */
  user-select: none;
}

/* Output genérico */
.highlight .go {
  color: #b4b4bf;               /* --text-muted */
}

/* Horizontal rules */
.post-content hr {
  border: none;
  height: 1px;
  background: var(--border-color);
  margin: 1.25rem 0;
  opacity: 0.6;
}

.post-content ul,
.post-content ol {
  margin-bottom: 0.85rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  border-radius: 10px;
  overflow: hidden;
}

.post-content th,
.post-content td {
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.post-content th {
  background: var(--bg-card);
  font-weight: 600;
  color: #fff;
}

.post-content td {
  background: var(--bg-body);
}

@media (max-width: 768px) {
  .post-content {
    font-size: 1rem;
  }

  .post-content h2 {
    font-size: 1.3rem;
  }

  .post-content h3 {
    font-size: 1.12rem;
  }

  .post-content .highlighter-rouge {
    border-radius: 8px;
  }
}

/* --- Author Comment (estilos movidos de inline) --- */
.author-comment .card {
  transition: all 0.3s ease;
  border: 1px solid rgba(13, 110, 253, 0.2);
}

.author-comment .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
  border-color: rgba(13, 110, 253, 0.4);
}

.author-comment .quote-icon-wrapper {
  position: relative;
}

.author-comment .quote-icon-wrapper::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, #0d6efd, transparent);
}

/* --- Imagem centralizada (include) --- */
.post-centered-image {
  text-align: center;
  margin: 1.5rem 0;
}

.post-centered-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* --- Callout / Dica / Aviso / Importante --- */
.post-callout {
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.post-callout-dica {
  background: rgba(130, 87, 229, 0.1);
  border-left-color: var(--primary);
}

.post-callout-aviso {
  background: rgba(255, 215, 0, 0.1);
  border-left-color: #ffd700;
}

.post-callout-importante {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: #ef4444;
}

.post-callout-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.post-callout-dica .post-callout-header i { color: var(--primary); }
.post-callout-aviso .post-callout-header i { color: #ffd700; }
.post-callout-importante .post-callout-header i { color: #ef4444; }

.post-callout-body {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* --- Video embed (16:9 responsivo) --- */
.post-video-embed {
  margin: 1.5rem 0;
}

.post-video-wrapper {
  position: relative;
  padding-top: 56.25%;
}

.post-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .author-comment .card {
    transition: none !important;
    transform: none !important;
  }
}

/* --- Footer do post --- */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* --- Navegação entre posts --- */
.post-nav {
  margin-bottom: 1.5rem;
}

.post-nav-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text-main);
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-nav-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--text-main);
}

.post-nav-next {
  text-align: end;
  align-items: flex-end;
}

.post-nav-direction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-nav-direction i {
  font-size: 1rem;
}

.post-nav-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

/* --- Artigos relacionados --- */
.post-related {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.post-related-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  text-decoration: none;
  color: var(--text-main);
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-related-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--text-main);
}

.post-related-card-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.post-related-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.post-related-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .post-related-card {
    transition: none !important;
    transform: none !important;
  }
}

/* --- Botão voltar --- */
.post-back {
  text-align: center;
}

.post-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.post-back-btn:hover {
  color: #fff;
  border-color: var(--primary);
}

.post-back-btn i {
  font-size: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
  .post-nav-card,
  .post-toc-toggle,
  .post-toc-chevron,
  .post-breadcrumb-link,
  .post-back-btn,
  .post-tag {
    transition: none !important;
    transform: none !important;
  }
}

@media (prefers-contrast: high) {
  .post-nav-card {
    border: 2px solid #ffffff !important;
  }
  .post-toc-toggle {
    border: 2px solid #ffffff !important;
  }
  .post-category-badge {
    outline: 2px solid #ffffff;
  }
}

/* ===========================================================
   PÁGINAS DE LISTAGEM (Artigos & Cursos)
   =========================================================== */

/* --- Subtítulo da página --- */
.page-subtitle {
  max-width: 650px;
}

/* --- Card de filtros --- */
.filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.filter-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* --- Filter pills --- */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: #fff;
  background: rgba(130, 87, 229, 0.08);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(130, 87, 229, 0.35);
}

.filter-pill-count {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 7px;
  border-radius: 6px;
  line-height: 1.5;
}

.filter-pill.active .filter-pill-count {
  background: rgba(0, 0, 0, 0.2);
}

/* --- Listing card (compartilhado por artigos e cursos) --- */
.listing-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.listing-card-link:hover .listing-card {
  border-color: var(--primary);
  background: var(--bg-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.listing-card-link:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
  border-radius: 16px;
}

.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.listing-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.listing-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.listing-card-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.listing-card-date i {
  color: var(--primary);
}

.listing-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: #fff;
}

.listing-card-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.listing-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.listing-card-action {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.listing-card-link:hover .listing-card-action {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .listing-card,
  .listing-card-link:hover .listing-card,
  .listing-card-action,
  .listing-card-link:hover .listing-card-action,
  .filter-pill {
    transition: none !important;
    transform: none !important;
  }
}

@media (prefers-contrast: high) {
  .listing-card {
    border: 2px solid #ffffff !important;
  }
  .filter-pill {
    border: 2px solid #ffffff !important;
  }
  .filter-pill.active {
    border-color: var(--primary) !important;
  }
}

/* ===========================================================
   HOMEPAGE — Design inspirado em Rocketseat
   =========================================================== */

/* --- Espaçamento de seções --- */
.py-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-5-compact {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* --- Linha divisória entre seções (estilo Rocketseat) --- */
.section-divider-line {
  height: 1px;
  background: var(--border-color);
  border: none;
  margin: 0;
}

/* --- Cabeçalho de seção --- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title-lg {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .section-title-lg {
    font-size: 2.5rem;
  }
}

/* ===========================================================
   HERO
   =========================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(130, 87, 229, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.min-vh-75 {
  min-height: 60vh;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(130, 87, 229, 0.3);
  border-radius: 50px;
  background: rgba(130, 87, 229, 0.08);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #996DFF 0%, #c084fc 50%, #8257e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

@supports not (-webkit-background-clip: text) {
  .hero-gradient-text {
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--primary);
  }
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  font-style: italic;
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-section {
    padding: 6rem 0 5rem;
  }
}

@media (max-width: 991.98px) {
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Hero: Botões */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-hero-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  box-shadow: 0 8px 25px rgba(130, 87, 229, 0.4);
  transform: translateY(-2px);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-hero-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(130, 87, 229, 0.08);
}

/* Hero: Vídeo */
.hero-video-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  background-color: #000;
}

/* ===========================================================
   NÚMEROS / IMPACTO
   =========================================================== */
.impact-stat {
  display: flex;
  flex-direction: column-reverse;
  padding: 1.5rem 0;
}

.impact-number {
  display: block;
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin: 0 0 0.4rem;
  background: linear-gradient(135deg, #fff 0%, #b4b4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@supports not (-webkit-background-clip: text) {
  .impact-number {
    background: none;
    -webkit-text-fill-color: unset;
    color: #fff;
  }
}

.impact-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

@media (min-width: 992px) {
  .impact-number {
    font-size: 3.25rem;
  }
}

/* Animação de entrada dos números de impacto */
@keyframes count-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.impact-number {
  animation: count-in 0.6s ease-out both;
}

.col-6:nth-child(2) .impact-number { animation-delay: 0.1s; }
.col-6:nth-child(3) .impact-number { animation-delay: 0.2s; }
.col-6:nth-child(4) .impact-number { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .impact-number {
    animation: none !important;
  }
}

/* ===========================================================
   HOME CARDS (Artigos & Cursos)
   =========================================================== */
.home-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-card-link:hover .home-card {
  border-color: var(--primary);
  background-color: var(--bg-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.home-card-link:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
  border-radius: 16px;
}

.home-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.home-card-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1rem;
}

.badge-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(130, 87, 229, 0.1);
  border: 1px solid rgba(130, 87, 229, 0.25);
  padding: 3px 10px;
  border-radius: 6px;
}

.home-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: #fff;
}

.home-card-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1rem;
}

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

.home-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
}

.home-card-date i {
  color: var(--primary);
}

.home-card-arrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.home-card-link:hover .home-card-arrow {
  transform: translateX(6px);
  color: #996DFF;
}

/* Card horizontal (cursos na homepage) */
.home-card-horizontal {
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
}

.home-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(130, 87, 229, 0.12);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-card-icon i {
  font-size: 1.75rem;
}

.home-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-card-horizontal .home-card-arrow {
  margin-top: auto;
}

@media (max-width: 575.98px) {
  .home-card-horizontal {
    flex-direction: column;
  }
}

/* ===========================================================
   PARA QUEM É (Audience)
   =========================================================== */
.audience-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: var(--transition);
  height: 100%;
}

.audience-card:hover {
  background-color: var(--bg-hover);
}

.audience-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(130, 87, 229, 0.12);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audience-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.audience-card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ===========================================================
   VISÃO E MISSÃO
   =========================================================== */
.vm-card {
  height: 100%;
}

.vm-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.vm-card-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, #996DFF, #8257e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@supports not (-webkit-background-clip: text) {
  .vm-card-icon {
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--primary);
  }
}

/* ===========================================================
   DESAFIOS — Callout
   =========================================================== */
.challenge-callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
  margin-top: 2rem;
}

.challenge-callout p {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.7;
}

.challenge-callout i {
  flex-shrink: 0;
  font-size: 1.5rem;
  margin-top: 2px;
}

.challenge-text {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ===========================================================
   PRINCÍPIOS
   =========================================================== */
.principle-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.principle-card:hover {
  border-color: rgba(130, 87, 229, 0.4);
  border-top-color: var(--primary);
  background-color: var(--bg-hover);
}

.principle-card-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: #9b8cbf;  /* ~4.5:1 sobre #202024 — WCAG AA para texto grande */
  margin-bottom: 1rem;
}

.principle-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.principle-card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===========================================================
   CTA FINAL
   =========================================================== */
.cta-final-card {
  background: radial-gradient(ellipse at top, rgba(130, 87, 229, 0.12) 0%, transparent 60%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4rem 2rem;
}

.cta-final-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-final-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto 2rem;
}

@media (min-width: 992px) {
  .cta-final-title {
    font-size: 2.5rem;
  }
}

/* ===========================================================
   BUSCA — Modal
   =========================================================== */
.search-modal-content {
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.search-modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
}

.search-modal-body {
  padding: 1.5rem;
}

/* --- Busca: Input --- */
.search-input {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
}

.search-input:focus {
  background-color: var(--bg-card);
  border-color: var(--primary);
  color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(130, 87, 229, 0.25);
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

.search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.search-input-lg {
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
}

.search-input-wrapper-page {
  max-width: 700px;
}

/* --- Busca: Resultados --- */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-result-item {
  display: block;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

.search-result-item:hover {
  border-color: var(--primary);
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.search-result-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.search-result-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.search-result-excerpt mark {
  background-color: rgba(130, 87, 229, 0.3);
  color: #fff;
  padding: 1px 3px;
  border-radius: 3px;
}
