/* ===================================================================
   Espaço Jurídico — Redesign CSS (Mobile-First)
   Carregado APÓS app.css para sobrescrever Foundation styles
   =================================================================== */

/* -------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------- */
:root {
  /* Cores primárias — Azul naval institucional */
  --color-primary: #1a3a6b;
  --color-primary-medium: #2563eb;
  --color-primary-dark: #0f2548;
  --color-primary-darker: #091830;
  --color-primary-light: #dbeafe;
  --color-primary-xlight: #eff6ff;

  /* Destaque — Dourado/Âmbar para CTAs e badges */
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;
  --color-accent-light: #fef3c7;

  /* Status */
  --color-success: #059669;
  --color-success-light: #d1fae5;
  --color-danger: #dc2626;
  --color-danger-light: #fee2e2;
  --color-warning: #f59e0b;

  /* Neutros */
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-2: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-text: #1e293b;
  --color-text-muted: #475569;
  --color-text-subtle: #94a3b8;
  --color-dark: #0f172a;

  /* Tipografia */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-primary: 'Inter', 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Espaçamento */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --shadow-primary: 0 4px 16px rgba(33,153,232,.25);

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 50;
  --z-header: 210;
  --z-bottom-nav: 150;
  --z-overlay: 190;
  --z-drawer: 200;
  --z-toast: 300;

  /* Transições */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Header heights */
  --header-height-mobile: 60px;
  --bottom-nav-height: 64px;
}

/* -------------------------------------------------------------------
   2. RESET E BASE GLOBAL
   ------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Padding bottom para não sobrepor bottom nav no mobile */
@media (max-width: 639px) {
  body {
    padding-bottom: var(--bottom-nav-height);
  }

  /* Bottom nav já cobre "Área do Aluno" — evita duplicidade no header */
  .title-bar-right .primary.button {
    display: none !important;
  }
}

.wrapper {
  overflow-x: hidden;
}

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

/* Link base com baixa especificidade para permitir overrides por componente/contexto */
:where(.wrapper) a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

:where(.wrapper) a:hover {
  color: var(--color-primary-dark);
}

/* -------------------------------------------------------------------
   3. HEADER / NAVEGAÇÃO
   ------------------------------------------------------------------- */
.header {
  background: transparent;
  position: relative;
  z-index: var(--z-header);
}

/* Title bar — barra principal do header */
.title-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: none;
  box-shadow: none;
  height: var(--header-height-mobile);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow 250ms ease, backdrop-filter 250ms ease;
}

/* Borda inferior com acento de marca */
.title-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-primary-light) 15%,
    var(--color-accent) 55%,
    var(--color-primary-light) 85%,
    transparent 100%
  );
  opacity: 0.7;
  transition: opacity 250ms ease, background 250ms ease;
}

/* Estado com scroll — sombra mais evidente, borda sólida */
.title-bar.header--scrolled {
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
}

.title-bar.header--scrolled::after {
  background: var(--color-border);
  opacity: 1;
}

/* Layout flexbox para o header */
.header .title-bar-left,
.header .title-bar-middle,
.header .title-bar-right,
.header .title-bar-search,
.header .title-bar-search-mobile {
  float: none;
}

.title-bar-left {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: var(--space-3);
  min-width: 0;
}

.title-bar-middle {
  display: none;
  align-items: center;
  min-width: 0;
}

.title-bar-right {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 0;
}

.title-bar-right ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.title-bar-right > ul,
.title-bar-right > ul > li {
  float: none;
}

/* Logo */
.header .logo {
  float: none;
  width: auto;
  margin-right: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header .logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* Hamburger button — SVG inline, sem dependência de .trigger */
.nav-button-bar {
  float: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
  flex-shrink: 0;
  text-decoration: none;
}

.nav-button-bar:hover {
  background: var(--color-surface-2);
  color: var(--color-primary);
}

.nav-button-bar svg {
  display: block;
  flex-shrink: 0;
}

/* Search bar no header */
.title-bar-search {
  flex: 1;
  max-width: 480px;
}

.title-bar-search .input-wrap {
  display: flex;
  align-items: center;
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.title-bar-search .input-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-xlight);
  background: var(--color-surface);
}

.header .title-bar-search .title-bar-search-input[type="search"],
.header .title-bar-search-mobile .title-bar-search-input[type="search"] {
  flex: 1;
  border: none;
  background: transparent;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  outline: none;
  box-shadow: none;
  margin: 0;
  height: 40px;
}

.title-bar-search-input::placeholder {
  color: var(--color-text-subtle);
}

.header .title-bar-search .title-bar-search-button.button.success,
.header .title-bar-search-mobile .title-bar-search-button.button.success {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0 var(--space-4);
  height: 40px;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-base);
  white-space: nowrap;
  margin: 0;
}

.header .title-bar-search .title-bar-search-button.button.success:hover,
.header .title-bar-search-mobile .title-bar-search-button.button.success:hover {
  background: var(--color-primary-dark);
}

/* Botão "Área do Aluno" — accent âmbar para destacar da nav azul */
.header .title-bar-right .primary.button {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 14px rgba(245,158,11,.30);
  transition: all var(--transition-base);
  white-space: nowrap;
  height: 40px;
  display: flex;
  align-items: center;
}

.header .title-bar-right .primary.button:hover {
  background: var(--color-accent-dark);
  color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,158,11,.40);
}

/* Ícone do carrinho */
.title-bar-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  float: none;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: var(--radius-sm);
  transition: background var(--transition-base);
  color: var(--color-primary);
}

.title-bar-cart svg {
  display: block;
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.title-bar-cart:hover {
  background: var(--color-surface-2);
}

.title-bar-cart .number {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* User info no header */
.title-bar-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.title-bar-user .avatar,
.title-bar-user .name {
  float: none;
}

.title-bar-user .avatar img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary-light);
  object-fit: cover;
}

.title-bar-user .name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header .button-dropdown {
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  padding: var(--space-1) var(--space-2);
  height: 32px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Dropdown menu */
.header .dropdown-pane {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  min-width: 180px;
  background: var(--color-surface);
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: background var(--transition-fast);
}

.dropdown-menu li a:hover {
  background: var(--color-surface-2);
  color: var(--color-primary);
}

/* Busca mobile — oculta por padrão, exibida via .is-visible (JS toggle) */
.title-bar-search-mobile {
  display: none;
  padding: 0 var(--space-4) var(--space-3);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.title-bar-search-mobile.is-visible {
  display: block;
}

.title-bar-search-mobile .input-wrap {
  display: flex;
  align-items: center;
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

/* Header compacto no mobile */
@media (max-width: 639px) {
  .title-bar {
    padding: 0 var(--space-3);
    justify-content: space-between;
  }

  .title-bar-left {
    flex: 1 1 auto;
    gap: var(--space-2);
    min-width: 0;
  }

  .header .logo img {
    height: 30px;
  }

  .title-bar-right ul {
    gap: 2px;
  }

  .title-bar-user {
    gap: 6px;
  }

  .title-bar-user .name {
    display: none;
  }

  .title-bar-user .avatar {
    display: none;
  }

  .header .button-dropdown {
    width: 30px;
    min-width: 30px;
    padding: 0;
    justify-content: center;
  }
}

/* Tablet / notebook pequeno — faixa intermediária dedicada */
@media (min-width: 640px) and (max-width: 1023px) {
  .title-bar {
    height: 68px;
    padding: 0 var(--space-5);
    gap: var(--space-3);
  }

  .header .logo img {
    height: 38px;
  }

  .title-bar-left {
    flex: 0 0 auto;
    gap: var(--space-3);
  }

  .title-bar-middle {
    display: flex;
    flex: 1 1 auto;
    margin-left: var(--space-2);
    overflow: hidden;
  }

  .title-bar-middle .title-bar-search {
    display: block;
    flex: 1 1 260px;
    max-width: none;
    min-width: 0;
  }

  .title-bar-right {
    flex: 0 0 auto;
    margin-left: var(--space-2);
  }

  .title-bar-right ul {
    gap: var(--space-2);
  }

  .title-bar-user .name {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .title-bar-user .name {
    display: inline-block;
    max-width: 120px;
  }
}

/* -------------------------------------------------------------------
   4. DRAWER DE NAVEGAÇÃO (simple-panel)
   ------------------------------------------------------------------- */
.simple-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-drawer);
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
  padding: 0;
}

/* Gradiente inferior indica que há mais conteúdo para rolar */
.simple-panel::after {
  content: '';
  position: sticky;
  bottom: 0;
  left: 0;
  display: block;
  height: 48px;
  width: 100%;
  background: linear-gradient(to top, rgba(255,255,255,0.95), transparent);
  pointer-events: none;
}

.simple-panel.is-active {
  transform: translateX(0);
}

/* Botão fechar drawer */
.simple-panel .button.expanded {
  background: var(--color-surface-2);
  color: var(--color-text);
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  text-align: left;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  height: var(--header-height-mobile);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.simple-panel .button.expanded::before {
  content: '←';
  margin-right: var(--space-3);
  font-size: var(--text-xl);
}

/* Links do menu */
.simple-panel .menu.vertical {
  list-style: none;
  margin: 0;
  padding: var(--space-3) 0;
}

.simple-panel .menu.vertical li a {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
  min-height: 44px;
}

.simple-panel .menu.vertical li a:hover {
  background: var(--color-primary-xlight);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

/* Overlay quando drawer está aberto */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: var(--z-overlay);
  backdrop-filter: blur(2px);
}

.simple-panel.is-active ~ .nav-overlay,
.nav-overlay.is-active {
  display: block;
}

/* -------------------------------------------------------------------
   5. BOTTOM NAVIGATION (mobile only)
   ------------------------------------------------------------------- */
.bottom-nav {
  display: none;
}

@media (max-width: 639px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    z-index: var(--z-bottom-nav);
    align-items: stretch;
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 500;
    padding: var(--space-2) var(--space-1);
    transition: color var(--transition-fast);
    cursor: pointer;
    min-height: 44px;
    border: none;
    background: none;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item:hover,
  .bottom-nav-item.active {
    color: var(--color-primary);
  }

  .bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 0 0 3px 3px;
  }

  .bottom-nav-item {
    position: relative;
  }

  .bottom-nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .bottom-nav-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
  }
}

/* -------------------------------------------------------------------
   6. SEÇÕES COMUNS
   ------------------------------------------------------------------- */

/* Container padrão — padding responsivo igual ao header */
.row {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 1024px) {
  .row {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

/* Zeroa o padding lateral das colunas Foundation — o espaçamento de borda é gerenciado pelo .row */
.wrapper .row > .column,
.wrapper .row > .columns {
  padding-left: 0;
  padding-right: 0;
}

/* Remove negative margins de rows aninhados (não mais necessário com colunas zeradas) */
.wrapper .row .row {
  margin-left: 0;
  margin-right: 0;
}

/* Button area */
.button-area.big {
  text-align: center;
  margin: var(--space-8) 0 var(--space-4);
}

/* Botões globais */
.wrapper > :not(.legacy-root) .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  line-height: 1;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.wrapper > :not(.legacy-root) .button.primary,
.wrapper > :not(.legacy-root) a.button.primary {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.wrapper > :not(.legacy-root) .button.primary:hover,
.wrapper > :not(.legacy-root) a.button.primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(33,153,232,.35);
}

.header .title-bar-right a.primary.button:hover {
  background: var(--color-accent-dark);
  color: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(245,158,11,.40);
}

.wrapper > :not(.legacy-root) .button.secondary,
.wrapper > :not(.legacy-root) a.button.secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}

.wrapper > :not(.legacy-root) .button.secondary:hover,
.wrapper > :not(.legacy-root) a.button.secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-1px);
}

.wrapper > :not(.legacy-root) .button.success,
.wrapper > :not(.legacy-root) a.button.success {
  background: var(--color-success);
  color: white;
}

/* Inputs */
.wrapper > :not(.legacy-root) input[type="text"],
.wrapper > :not(.legacy-root) input[type="email"],
.wrapper > :not(.legacy-root) input[type="password"],
.wrapper > :not(.legacy-root) input[type="tel"],
.wrapper > :not(.legacy-root) input[type="search"],
.wrapper > :not(.legacy-root) input[type="number"],
.wrapper > :not(.legacy-root) select,
.wrapper > :not(.legacy-root) textarea {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  background: var(--color-surface);
  color: var(--color-text);
  height: 48px;
  box-shadow: none;
}

.wrapper > :not(.legacy-root) input:focus,
.wrapper > :not(.legacy-root) select:focus,
.wrapper > :not(.legacy-root) textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-xlight);
  outline: none;
}

.wrapper > :not(.legacy-root) textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.wrapper > :not(.legacy-root) label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

/* -------------------------------------------------------------------
   7. BANNER HERO (orbit)
   ------------------------------------------------------------------- */
#banners {
  position: relative;
  overflow: hidden;
}

#banners .orbit-container {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  max-height: 540px;
}

#banners .orbit-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}

#banners .orbit-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

#banners .orbit-slide.mui-enter,
#banners .orbit-slide.mui-leave {
  opacity: 1;
  visibility: visible;
}

#banners .orbit-slide.slide-in-right.mui-enter,
#banners .orbit-slide.slide-in-left.mui-enter,
#banners .orbit-slide.slide-out-right.mui-leave,
#banners .orbit-slide.slide-out-left.mui-leave {
  transition-property: transform, opacity;
  transition-duration: 650ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  backface-visibility: hidden;
}

#banners .orbit-slide.slide-in-right.mui-enter {
  transform: translateX(100%);
  z-index: 2;
}

#banners .orbit-slide.slide-in-right.mui-enter.mui-enter-active {
  transform: translateX(0);
}

#banners .orbit-slide.slide-in-left.mui-enter {
  transform: translateX(-100%);
  z-index: 2;
}

#banners .orbit-slide.slide-in-left.mui-enter.mui-enter-active {
  transform: translateX(0);
}

#banners .orbit-slide.slide-out-right.mui-leave {
  transform: translateX(0);
  z-index: 1;
}

#banners .orbit-slide.slide-out-right.mui-leave.mui-leave-active {
  transform: translateX(100%);
}

#banners .orbit-slide.slide-out-left.mui-leave {
  transform: translateX(0);
  z-index: 1;
}

#banners .orbit-slide.slide-out-left.mui-leave.mui-leave-active {
  transform: translateX(-100%);
}

#banners .orbit-slide > a,
#banners .orbit-slide picture {
  display: block;
}

#banners .orbit-slide img {
  display: block;
  width: 100%;
  object-fit: cover;
}

#banners .orbit-previous,
#banners .orbit-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  border: none;
  border-radius: var(--radius-full);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

#banners .orbit-previous {
  left: var(--space-4);
}

#banners .orbit-next {
  right: var(--space-4);
}

#banners .orbit-previous:hover,
#banners .orbit-next:hover {
  background: var(--color-primary);
  color: white;
}

@media (max-width: 639px) {
  #banners .orbit-container {
    max-height: none;
  }
}

#banners .orbit-bullets {
  position: absolute;
  bottom: var(--space-3);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  text-align: center;
  background: transparent;
  z-index: 10;
}

#banners .orbit-bullets button {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  border: none;
  margin: 0 var(--space-1);
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base);
}

#banners .orbit-bullets button.is-active {
  width: 28px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  transform: none;
  position: relative;
  overflow: hidden;
}

#banners .orbit-bullets button.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  right: 100%;
  background: var(--color-primary);
  animation: orbit-progress 5s linear forwards;
}

@keyframes orbit-progress {
  to { right: 0; }
}

/* -------------------------------------------------------------------
   8. SEÇÃO DE NOTÍCIAS (homepage)
   ------------------------------------------------------------------- */
.news-home {
  padding: var(--space-16) 0;
  background: var(--color-bg);
}


/* Lista de notícias — scroll horizontal no mobile */
.news-list {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
  width: unset;
}

@media (max-width: 639px) {
  .news-home > .row {
    padding: 0;
  }

  .news-list {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 var(--space-4) var(--space-4);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .news-list::-webkit-scrollbar {
    display: none;
  }

  .news-list-item {
    flex: 0 0 calc(85vw);
    max-width: 300px;
    scroll-snap-align: start;
    width: unset;
  }
}

@media (min-width: 640px) {
  .news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .news-list-item {
    width: 100%;
  }
}

/* Card de notícia */
.news-list-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.news-list-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-list-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--color-text);
}

/* Thumbnail da notícia: acima do texto */
.news-thumbnail {
  width: 100%;
  max-width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  float: none;
}

.news-thumbnail span {
  display: block;
  height: 100%;
}

.news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-list-item:hover .news-thumbnail img {
  transform: scale(1.04);
}

/* Texto da notícia */
.news-text {
  padding: var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  float: none;
}

.news-published-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin: var(--space-2) 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-short-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -------------------------------------------------------------------
   9. CURSOS EM DESTAQUE (homepage)
   ------------------------------------------------------------------- */
.courses-home {
  padding: var(--space-16) 0;
  background-color: var(--color-bg);
  background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: inset 0 1px 0 var(--color-border), inset 0 -1px 0 var(--color-border);
}

.courses-home-header {
  padding: 0;
  text-align: center;
}

.courses-home-header .section-subtitle {
  margin-bottom: var(--space-6);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Tabs modernas */
.courses-home .tabs {
  border: none;
  background: transparent;
  display: flex;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
}

.courses-home .tabs::-webkit-scrollbar { display: none; }

.courses-home .tabs-title {
  list-style: none;
  flex-shrink: 0;
}

.courses-home .tabs-title > a {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  transition: all var(--transition-base);
  white-space: nowrap;
  min-height: 44px;
  text-decoration: none;
}

.courses-home .tabs-title > a:hover,
.courses-home .tabs-title.is-active > a,
.courses-home .tabs-title > a[aria-selected="true"] {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.courses-home .tabs-title > a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.courses-home .tabs-title > a[aria-disabled="true"],
.courses-home .tabs-title > a.is-loading-tab {
  pointer-events: none;
  opacity: .7;
}

/* Container dos painéis de tabs (compatível com markup Foundation) */
.courses-home .tabs-content {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
}

/* Títulos separadores dos blocos Presenciais / Online */
.courses-home-block-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.courses-home-block-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0;
}

.courses-home-ver-todos {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.courses-home-ver-todos:hover {
  color: var(--color-primary-dark);
}

.courses-home .courses-home-header + .row .courses-home-block-header {
  margin-top: 0;
}

/* Fade ao ativar tab panel */
.courses-home .tabs-panel {
  display: none;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  padding: 0;
}

.courses-home .tabs-panel.is-active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Category sub-tabs — menor e mais sutil que as main tabs */
.courses-home .courses-home-categories {
  margin: 0 0 var(--space-4);
  gap: var(--space-1);
}

.courses-home .courses-home-categories .tabs-title > a {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 6px var(--space-3);
  min-height: 36px;
  background: var(--color-surface-2);
  border-color: transparent;
  color: var(--color-text-muted);
}

.courses-home .courses-home-categories .tabs-title > a:hover,
.courses-home .courses-home-categories .tabs-title.is-active > a,
.courses-home .courses-home-categories .tabs-title > a[aria-selected="true"] {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-color: var(--color-primary-light);
}

/* Grid de cursos — row aninhado, não soma padding de borda */
.cursos.row {
  gap: var(--space-4);
  padding-left: 0;
  padding-right: 0;
}

/* Restaura gutter lateral entre cards (zeramos colunas globalmente acima) */
.cursos.row > .column,
.cursos.row > .columns {
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

/* Scroll horizontal de cursos no mobile */
@media (max-width: 639px) {
  .cursos.row,
  .cursos.small-up-1 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 var(--space-4) var(--space-4);
    scrollbar-width: none;
    gap: var(--space-4);
    -webkit-overflow-scrolling: touch;
  }

  .cursos.row::-webkit-scrollbar { display: none; }

  .cursos.row .column.course-box,
  .cursos.row .columns.course-box {
    flex: 0 0 280px;
    width: 280px;
    max-width: 280px;
    scroll-snap-align: start;
    padding: 0;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .cursos.row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .cursos.row .column,
  .cursos.row .columns {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .cursos.large-up-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
  }

  .cursos.large-up-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }

  .cursos.row .column,
  .cursos.row .columns {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
}

/* -------------------------------------------------------------------
   10. COURSE CARD
   ------------------------------------------------------------------- */
.course-box {
  cursor: pointer;
}

.course-box-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  will-change: transform;
  position: relative;
}

.course-box-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Ícone do tipo de curso */
.course-icon {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sem thumbnail: ícone estático no topo do anchor, parte do fluxo do card */
.courses-home .course-anchor > .course-icon {
  position: static;
  margin-bottom: var(--space-1);
}

/* Reset de padding em todos os .columns aninhados da seção (não apenas filhos diretos do .row) */
.courses-home .columns {
  padding-left: 0;
  padding-right: 0;
}

/* Livro único — cursos gerais */
.course-icon.course-type-1::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Balança da justiça — OAB / Área Jurídica */
.course-icon.course-type-2::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='3' x2='12' y2='21'/%3E%3Cpath d='M3 9l4 4-4 4M21 9l-4 4 4 4'/%3E%3Cline x1='5' y1='21' x2='19' y2='21'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Três livros — Tribunais / Fiscal */
.course-icon.course-type-3::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Thumbnail */
.course-thumbnail {
  width: 100%;
  height: 175px;
  overflow: hidden;
  background: var(--color-primary-xlight);
  flex-shrink: 0;
  margin: 0;
  position: relative;
}

.course-thumbnail.course-thumbnail-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
}

.course-thumbnail.course-thumbnail-fallback span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.course-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.course-box-content:hover .course-thumbnail-img {
  transform: scale(1.05);
}

/* Link do curso */
.course-anchor {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: var(--color-text);
  padding: var(--space-4);
  gap: var(--space-2);
}

/* Categoria badge */
.course-box-category {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-xlight);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

/* Título do curso */
.course-box-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin: 0;
}

/* Tags (Promo, Lançamento, Gratuito) */
.course-box-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  width: fit-content;
}

.course-box-tag.promo {
  background: #ef4444;
  color: #fff;
  padding: 4px var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.course-box-tag.new {
  background: #10b981;
  color: #fff;
  padding: 4px var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.course-box-tag.free {
  background: #d1fae5;
  color: #065f46;
  padding: 4px var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.course-box-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.course-box-tag .highlight {
  opacity: 0.8;
  font-weight: 500;
}

.course-box-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.course-box-installment {
  font-size: var(--text-sm);
  color: var(--color-text);
}

.course-box-installment strong {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #dc2626;
}

.course-box-installment-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@keyframes pulse-promo {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

.course-box-tag.countdown {
  animation: pulse-promo 2s ease-in-out infinite;
}

/* Localização */
.course-box-location {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.course-box-location li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}

.course-box-location .calendar,
.course-box-location .pin {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.course-box-location .calendar {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232196e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2' ry='2'/%3E%3Cline x1='16' y1='3' x2='16' y2='7'/%3E%3Cline x1='8' y1='3' x2='8' y2='7'/%3E%3Cline x1='3' y1='11' x2='21' y2='11'/%3E%3C/svg%3E");
}

.course-box-location .pin {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232196e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 6-9 13-9 13S3 16 3 10a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* Preços */
.course-box-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}

.course-box-prices .from {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.course-box-prices .to {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary-dark);
}

.course-box-prices.discount .to {
  color: var(--color-text);
}

/* CTA do card */
.course-cta {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-medium);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-light);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.course-box-content:hover .course-cta {
  gap: var(--space-2);
  color: var(--color-primary-dark);
}

/* Sem resultados */
.no-results {
  padding: var(--space-12) var(--space-4);
  text-align: center;
  color: var(--color-text-muted);
}

.no-results h3 {
  font-size: var(--text-xl);
  color: var(--color-text);
}

.no-results ul {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
}

.courses-loader-content {
  display: flex;
  justify-content: center;
  padding: var(--space-6) 0;
}

/* CTA "Ver todos os cursos" — accent dourado para destacar conversão */
.courses-home .button-area.big a.button.primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: 0 4px 16px rgba(245,158,11,.30);
  padding: 0.75rem 2rem;
}

.courses-home .button-area.big a.button.primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(245,158,11,.45);
  transform: translateY(-1px);
}

/* Fade-out indicador de scroll horizontal no mobile */
@media (max-width: 639px) {
  .courses-home .tabs-panel {
    position: relative;
  }

  .courses-home .tabs-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--color-bg));
    pointer-events: none;
    z-index: 1;
  }
}

/* Animação de entrada dos cards após troca de tab */
@keyframes card-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cursos.row.is-animating .course-box {
  animation: card-enter 250ms ease both;
}

.cursos.row.is-animating .course-box:nth-child(2) { animation-delay: 50ms; }
.cursos.row.is-animating .course-box:nth-child(3) { animation-delay: 100ms; }
.cursos.row.is-animating .course-box:nth-child(4) { animation-delay: 150ms; }

/* -------------------------------------------------------------------
   11. DEPOIMENTOS (homepage)
   ------------------------------------------------------------------- */
.testimonials-list {
  padding: var(--space-12) 0;
  background: var(--color-surface);
  display: flex;
  gap: var(--space-4);
  flex-wrap: nowrap;
  overflow: hidden;
}

@media (max-width: 639px) {
  .testimonials-list {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: var(--space-8) var(--space-4);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .testimonials-list::-webkit-scrollbar { display: none; }

  .testimonials-list-item {
    flex: 0 0 85vw;
    max-width: 320px;
    scroll-snap-align: start;
    width: unset;
  }
}

@media (min-width: 640px) {
  .testimonials-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    padding: var(--space-8) var(--space-4);
  }

  .testimonials-list-item {
    width: 100%;
    max-width: 100%;
  }
}

/* Card de depoimento */
.testimonials-list-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.symbol-area {
  padding: 0;
  width: auto;
  float: none;
  flex-shrink: 0;
}

.testimonials-list-item > .row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
  width: 100%;
}

.symbol-area .symbol {
  font-size: 64px;
  line-height: 1;
  color: var(--color-primary);
  font-family: Georgia, serif;
  font-weight: 700;
  display: block;
  opacity: 0.3;
  margin-bottom: var(--space-2);
}

.testimonials-list-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  font-style: italic;
  margin: 0;
}

.testimonials-list-text a {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-style: normal;
}

.testimonials-list-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.testimonials-list-author-avatar.avatar img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary-light);
  object-fit: cover;
}

.testimonials-list-author-name.name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}

.testimonials-list-author-name.name small {
  font-weight: 400;
  color: var(--color-text-muted);
  display: block;
}

/* -------------------------------------------------------------------
   14. PÁGINA DE PROFESSORES
   ------------------------------------------------------------------- */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-6);
  padding: var(--space-8) var(--space-4);
}

.teacher-card {
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-4);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.teacher-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.teacher-photo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto var(--space-3);
  border: 3px solid var(--color-primary-light);
}

/* -------------------------------------------------------------------
   15. DEPOIMENTOS (página /depoimentos)
   ------------------------------------------------------------------- */
.depoimento-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}

/* -------------------------------------------------------------------
   16. NOTÍCIAS (página /noticias)
   ------------------------------------------------------------------- */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
  padding: var(--space-4);
}

.noticia-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  cursor: pointer;
}

.noticia-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Detalhe de notícia */
.noticia-detalhe-content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.noticia-detalhe-content h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-4);
}

@media (max-width: 639px) {
  .noticia-detalhe-content h1 {
    font-size: var(--text-2xl);
  }
}

.noticia-detalhe-content p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

/* -------------------------------------------------------------------
   17. AUTENTICAÇÃO (login, cadastro, esqueci-senha)
   ------------------------------------------------------------------- */
.auth-wrapper {
  min-height: calc(100vh - var(--header-height-mobile));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  background: linear-gradient(135deg, #f0f7ff 0%, var(--color-bg) 100%);
}

.auth-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
  width: 100%;
  max-width: 440px;
}

.auth-card h1,
.auth-card h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.auth-card .subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.auth-card .button {
  width: 100%;
  height: 48px;
  font-size: var(--text-base);
}

.auth-card .form-group {
  margin-bottom: var(--space-4);
}

.auth-card .form-group label {
  display: block;
  margin-bottom: var(--space-2);
}

.auth-card input {
  width: 100%;
}

.auth-link {
  text-align: center;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------
   18. CARRINHO E CHECKOUT
   ------------------------------------------------------------------- */
.cart-section {
  padding: var(--space-8) 0;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cart-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.cart-item-title {
  flex: 1;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.cart-item-price {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.cart-summary .cart-total {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-4);
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

/* Checkout stepper */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  margin-bottom: var(--space-6);
}

.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.checkout-step-number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  transition: all var(--transition-base);
}

.checkout-step.active .checkout-step-number {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.checkout-step.done .checkout-step-number {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
}

.checkout-step-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.checkout-step-line {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  max-width: 60px;
  margin-bottom: var(--space-4);
}

/* PIX */
.pix-container {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  max-width: 480px;
  margin: 0 auto;
}

.pix-qrcode {
  display: inline-block;
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  margin: var(--space-6) auto;
  box-shadow: var(--shadow-sm);
}

.pix-qrcode img {
  width: 200px;
  height: 200px;
}

.pix-timer {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

/* Sucesso */
.sucesso-container {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  max-width: 480px;
  margin: 0 auto;
}

.sucesso-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--color-success-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.sucesso-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-success);
}

/* -------------------------------------------------------------------
   19b. CTA STICKY DO CURSO (mobile)
   ------------------------------------------------------------------- */
.course-mobile-cta {
  display: none;
}

@media (max-width: 639px) {
  .course-mobile-cta {
    display: block;
    position: fixed;
    bottom: var(--bottom-nav-height);
    left: 0;
    right: 0;
    padding: var(--space-3) var(--space-4);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    z-index: calc(var(--z-bottom-nav) - 1);
  }
}

.course-mobile-cta-button {
  margin: 0;
  width: 100%;
  border-radius: var(--radius-full) !important;
  height: 48px;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------------------------
   20. FOCUS STATES (acessibilidade)
   ------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* -------------------------------------------------------------------
   21. LOADER / SPINNER
   ------------------------------------------------------------------- */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

/* Skeleton loader para courses-home */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.courses-home .loader {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding: 0 var(--space-4) var(--space-4);
  align-items: unset;
  justify-content: unset;
}

.courses-home .loader.is-visible {
  display: grid;
}

@media (max-width: 639px) {
  .courses-home .loader.is-visible {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 var(--space-4) var(--space-4);
    gap: var(--space-4);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .courses-home .loader::-webkit-scrollbar {
    display: none;
  }

  .courses-home .loader .course-skeleton {
    flex: 0 0 280px;
    width: 280px;
    min-width: 280px;
  }
}

.course-skeleton {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 260px;
}

.course-skeleton-thumb {
  width: 100%;
  height: 150px;
  background: linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-border-light) 50%, var(--color-surface-2) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.course-skeleton-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.course-skeleton-line {
  height: 11px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-border-light) 50%, var(--color-surface-2) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.course-skeleton-line.short  { width: 40%; }
.course-skeleton-line.medium { width: 65%; }
.course-skeleton-line.full   { width: 100%; }

/* -------------------------------------------------------------------
   22. UTILITÁRIOS
   ------------------------------------------------------------------- */
.sr-only, .show-for-sr {
  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;
}

/* Ajuste para conteúdo não ficar atrás do header fixo */
.wrapper > div:first-child:not(.header) {
  scroll-margin-top: var(--header-height-mobile);
}

/* Seção com fundo alternado */
.section-alt {
  background: var(--color-surface);
}

/* Seção com padding padrão */
.section-padded {
  padding: var(--space-12) 0;
}

/* -------------------------------------------------------------------
   REDESIGN — NOVOS COMPONENTES (Fases 1–7)
   ------------------------------------------------------------------- */

/* === TIPOGRAFIA GLOBAL ATUALIZADA === */
.wrapper > :not(.legacy-root) h1,
.wrapper > :not(.legacy-root) h2,
.wrapper > :not(.legacy-root) h3,
.wrapper > :not(.legacy-root) h4,
.wrapper > :not(.legacy-root) h5,
.wrapper > :not(.legacy-root) h6 {
  font-family: var(--font-serif);
  color: inherit;
  line-height: 1.25;
  font-weight: 700;
}

.wrapper > :not(.legacy-root) .title-section {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: inherit;
  margin-bottom: var(--space-2);
  position: relative;
  display: inline-block;
}

.wrapper > :not(.legacy-root) .title-section::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin-top: var(--space-2);
  border-radius: 2px;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
  max-width: 640px;
}

/* Proteção de contraste em superfícies escuras */
.home-hero,
.home-numeros,
.home-cta-final,
.footer,
.internal-section-header {
  color: #fff;
}

.home-hero h1,
.home-hero h2,
.home-hero h3,
.home-hero h4,
.home-numeros h1,
.home-numeros h2,
.home-numeros h3,
.home-numeros h4,
.home-cta-final h1,
.home-cta-final h2,
.home-cta-final h3,
.home-cta-final h4,
.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6,
.internal-section-header h1,
.internal-section-header h2,
.internal-section-header h3 {
  color: inherit;
}

/* === FASE 1: HERO === */
.home-hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-darker) 0%, var(--color-primary) 60%, #1e4a8a 100%);
  color: #fff;
  padding: 100px 0 80px;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
}

/* Padrão geométrico sutil no fundo */
.home-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 75% 50%, rgba(245,158,11,.12) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.04) 0%, transparent 40%);
  pointer-events: none;
}

.home-hero-bg::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
}

.home-hero-bg::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: 60px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(245,158,11,.15);
  border-radius: 50%;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 1024px) {
  .home-hero-content {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(245,158,11,.18);
  border: 1px solid rgba(245,158,11,.35);
  color: #fde68a;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  letter-spacing: 0.02em;
}

.home-hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: var(--space-5);
}

.home-hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: var(--space-8);
}

.home-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.home-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
  box-shadow: 0 4px 20px rgba(245,158,11,.4);
  cursor: pointer;
}

.home-hero-btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,158,11,.5);
  color: #fff;
  text-decoration: none;
}

.home-hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: var(--text-base);
  padding: 14px var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 2px solid rgba(255,255,255,.35);
  transition: border-color var(--transition-base), background var(--transition-base), color var(--transition-base);
  cursor: pointer;
}

.home-hero-btn-secondary:hover {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
}

.home-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.12);
}

.home-hero-stat {
  display: flex;
  flex-direction: column;
}

.home-hero-stat strong {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.home-hero-stat span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.home-hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
}

@media (max-width: 639px) {
  .home-hero {
    padding: 80px 0 60px;
    min-height: auto;
  }

  .home-hero-headline {
    font-size: 2.2rem;
  }

  .home-hero-stat-divider {
    display: none;
  }

  .home-hero-stats {
    gap: var(--space-4);
  }
}

/* === FASE 2: TRUST BAR === */
.trust-bar {
  background: linear-gradient(to bottom, var(--color-surface), var(--color-bg));
  border-bottom: 3px solid var(--color-accent);
  padding: var(--space-5) 0;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 1024px) {
  .trust-bar .row {
    max-width: 1360px;
    padding-left: var(--space-10);
    padding-right: var(--space-10);
  }
}

.trust-bar-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: transform 0.2s ease;
}

.trust-bar-item:hover {
  transform: translateY(-2px);
}

.trust-bar-item:hover .trust-bar-icon {
  transform: scale(1.15);
  transition: transform 0.2s ease;
}

.trust-bar-item div {
  display: flex;
  flex-direction: column;
}

.trust-bar-item strong {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.trust-bar-item span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-bar-icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.trust-bar-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
}

@media (max-width: 639px) {
  .trust-bar-divider { display: none; }
  .trust-bar-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    flex-wrap: unset;
    justify-content: unset;
  }
}

/* === FASE 2: CONCURSOS EM ALTA === */
.concursos-alta {
  padding: var(--space-16) 0;
  background: var(--color-bg);
}

.section-header {
  margin-bottom: var(--space-10);
}

.section-header--center {
  text-align: center;
}

.section-header--center .title-section {
  display: block;
}

.section-header--center .title-section::after {
  margin-left: auto;
  margin-right: auto;
}

.section-header--center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.concursos-alta-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.concurso-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  text-decoration: none;
  color: var(--color-text);
  position: relative;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
  cursor: pointer;
}

.concurso-card:hover {
  border-color: var(--color-primary-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--color-text);
}

.concurso-card-badge {
  position: absolute;
  top: -1px;
  right: var(--space-3);
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.concurso-card-icon {
  width: 42px;
  height: 42px;
  background: var(--color-primary-xlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.concurso-card-icon svg {
  width: 22px;
  height: 22px;
}

.concurso-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.concurso-card-name {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.concurso-card-org {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.concurso-card-arrow {
  color: var(--color-text-subtle);
  flex-shrink: 0;
  transition: color var(--transition-base), transform var(--transition-base);
}

.concurso-card-arrow svg {
  width: 16px;
  height: 16px;
}

.concurso-card:hover .concurso-card-arrow {
  color: var(--color-primary-medium);
  transform: translateX(3px);
}

@media (max-width: 1023px) {
  .concursos-alta-scroll { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .concursos-alta-scroll {
    grid-template-columns: 1fr;
  }
}

/* === FASE 2: ÁREAS DE CARREIRA === */
.home-areas {
  padding: var(--space-16) 0;
  background: var(--color-surface);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.area-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--area-color, var(--color-primary-medium));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.area-card:hover {
  border-color: var(--area-color, var(--color-primary-medium));
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--color-text);
}

.area-card:hover::before {
  opacity: 1;
}

.area-card-icon {
  width: 52px;
  height: 52px;
  background: var(--area-color-light, var(--color-primary-xlight));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--area-color, var(--color-primary-medium));
}

.area-card-icon svg {
  width: 26px;
  height: 26px;
}

.area-card-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.area-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-4);
}

.area-card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--area-color, var(--color-primary-medium));
  margin-top: auto;
  transition: gap var(--transition-base);
}

.area-card-cta svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-base);
}

.area-card:hover .area-card-cta svg {
  transform: translateX(3px);
}

@media (max-width: 1023px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .area-card { padding: var(--space-4); }
}

/* === FASE 3: DIFERENCIAIS === */
/* === FASE 3: NÚMEROS === */
.home-numeros {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-16) 0;
  overflow: hidden;
}

.home-numeros-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 50%, rgba(255,255,255,.04) 0%, transparent 50%),
    radial-gradient(circle at 90% 20%, rgba(245,158,11,.1) 0%, transparent 40%);
  pointer-events: none;
}

.numeros-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.numeros-title {
  color: #fff;
  display: inline-block;
}

.numeros-title::after {
  background: var(--color-accent);
  margin: var(--space-2) auto 0;
}

.numeros-subtitle {
  color: rgba(255,255,255,.75);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.numeros-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}

.numero-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.numero-value {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.numero-suffix {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-accent);
  position: absolute;
  top: 0;
  right: -18px;
}

.numero-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: var(--space-2);
}

.numero-divider {
  width: 1px;
  height: 80px;
  background: rgba(255,255,255,.15);
}

@media (max-width: 639px) {
  .numeros-grid { gap: var(--space-6); }
  .numero-divider { width: 60px; height: 1px; }
}

/* === FASE 3: METODOLOGIA === */
.home-metodologia {
  padding: var(--space-16) 0;
  background: var(--color-surface);
}

.metodologia-steps {
  display: flex;
  gap: 0;
  position: relative;
}

.metodo-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-4);
  position: relative;
}

.metodo-step-number {
  font-family: var(--font-serif);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.metodo-step-connector {
  position: absolute;
  top: 58px;
  left: calc(50% + 28px);
  right: calc(-50% + 28px);
  height: 2px;
  background: linear-gradient(to right, var(--color-border), var(--color-border));
  z-index: 0;
}

.metodo-step-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-xlight);
  border: 2px solid var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.metodo-step-icon svg {
  width: 24px;
  height: 24px;
}

.metodo-step:hover .metodo-step-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Last step gets accent color */
.metodo-step:last-child .metodo-step-icon {
  background: var(--color-accent);
  border-color: var(--color-accent-dark);
  color: #fff;
}

.metodo-step-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.metodo-step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1023px) {
  .metodologia-steps { flex-direction: column; gap: var(--space-6); }
  .metodo-step { flex-direction: row; align-items: flex-start; text-align: left; padding: 0; gap: var(--space-4); }
  .metodo-step-connector { display: none; }
  .metodo-step-number { position: absolute; top: 0; left: 56px; margin: 0; }
  .metodo-step-icon { flex-shrink: 0; }
  .metodo-step-title, .metodo-step-desc { text-align: left; }
}

/* === FASE 4: PROFESSORES === */
.home-professores {
  padding: var(--space-16) 0;
  background: var(--color-primary-dark);
}

.home-professores .section-header .title-section,
.home-professores .title-section {
  color: #ffffff !important;
}

.home-professores .section-subtitle {
  color: var(--color-primary-light);
}

.professores-slider {
  overflow: hidden;
  position: relative;
  margin-bottom: var(--space-8);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.professores-track {
  display: flex;
  gap: var(--space-5);
  width: max-content;
  animation: professors-scroll 50s linear infinite;
  will-change: transform;
  padding: var(--space-2) 2px;
}

.professores-slider:hover .professores-track,
.professores-slider:focus-within .professores-track {
  animation-play-state: paused;
}

@keyframes professors-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.professor-card {
  background: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow var(--transition-base), background var(--transition-base);
  cursor: default;
  user-select: none;
}

.professor-card:hover {
  background: #1e4a88;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.professor-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--space-4);
  border: 3px solid var(--color-primary-light);
  position: relative;
}

.professor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.professor-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

.professor-avatar-placeholder svg {
  width: 40px;
  height: 40px;
}

.professor-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: #ffffff !important;
  margin-bottom: var(--space-1);
}

.professor-area {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

.professor-bio {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1;
}

.professores-cta {
  text-align: center;
}

/* === FASE 4: DEPOIMENTOS === */
.home-depoimentos {
  padding: var(--space-16) 0;
  background: var(--color-surface);
}

.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.depoimento-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow var(--transition-base);
}

.depoimento-card:hover {
  box-shadow: var(--shadow-md);
}

.depoimento-quote svg {
  color: var(--color-accent);
  opacity: 0.8;
}

.depoimento-texto {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  flex: 1;
  margin: 0;
  font-style: italic;
}

.depoimento-link {
  color: var(--color-primary-medium);
  font-style: normal;
  font-weight: 600;
  text-decoration: none;
}

.depoimento-link:hover {
  text-decoration: underline;
}

.depoimento-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.depoimento-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--color-primary-light);
}

.depoimento-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.depoimento-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-primary-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.depoimento-avatar-placeholder svg {
  width: 26px;
  height: 26px;
}

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

.depoimento-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-dark);
}

.depoimento-cargo {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.depoimento-stars {
  display: flex;
  gap: 2px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.depoimentos-cta {
  text-align: center;
}

@media (max-width: 1023px) {
  .depoimentos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .depoimentos-grid { grid-template-columns: 1fr; }
}

/* === BOTÕES UTILITÁRIOS === */
.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 11px var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base);
  cursor: pointer;
}

.btn-outline-primary svg {
  transition: transform var(--transition-base);
}

.btn-outline-primary:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.btn-outline-primary:hover svg {
  transform: translateX(3px);
}

/* === FASE 4: FAQ === */
.home-faq {
  padding: var(--space-16) 0;
  background: var(--color-surface);
}

/* Compatibilidade de largura/centralizacao com classes utilitarias do markup legado */
.home-faq .large-10,
.home-cta-final .large-10 {
  width: 100%;
}

.home-faq .large-centered,
.home-cta-final .large-centered {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .home-faq .large-10,
  .home-cta-final .large-10 {
    width: 83.333333%;
  }
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item:has(.faq-question.is-open) {
  border-color: var(--color-primary-medium);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  transition: color var(--transition-base);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question.is-open {
  color: var(--color-primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--transition-base), color var(--transition-base);
}

.faq-question.is-open .faq-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
}

.faq-answer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 639px) {
  .faq-question { padding: var(--space-4); font-size: var(--text-sm); }
  .faq-answer { padding: 0 var(--space-4) var(--space-4); }
}

/* === FASE 5: CTA FINAL === */
.home-cta-final {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-darker) 0%, var(--color-primary) 100%);
  padding: var(--space-16) 0;
  overflow: hidden;
  color: #fff;
}

.home-cta-final-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 50%, rgba(245,158,11,.12) 0%, transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(255,255,255,.04) 0%, transparent 40%);
  pointer-events: none;
}

.cta-final-badge {
  display: inline-block;
  background: rgba(245,158,11,.2);
  border: 1px solid rgba(245,158,11,.4);
  color: #fde68a;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.cta-final-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--space-5);
}

.cta-final-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto var(--space-8);
}

.cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.cta-final-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
  box-shadow: 0 4px 24px rgba(245,158,11,.4);
  cursor: pointer;
}

.cta-final-btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245,158,11,.5);
  color: #fff;
  text-decoration: none;
}

.cta-final-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  border: none;
  text-decoration: none;
  transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.cta-final-btn-secondary:hover {
  background: #1ebe5d;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.cta-final-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  align-items: center;
}

.cta-final-trust span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.7);
}

.cta-final-trust svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* === FASE 5: NOTÍCIAS REDESENHADAS === */
.news-home {
  padding: var(--space-16) 0;
  background: var(--color-bg);
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  list-style: none;
  margin: 0 0 var(--space-8);
  padding: 0;
}

.news-list-item {
  padding: 0;
}

.news-list-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow var(--transition-base), transform var(--transition-fast);
  cursor: pointer;
}

.news-list-link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--color-text);
}

.news-thumbnail {
  margin: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-surface-2);
}

.news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
  display: block;
}

.news-list-link:hover .news-thumbnail img {
  transform: scale(1.04);
}

.news-text {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-2);
}

.news-published-date {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.news-short-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex: 1;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: var(--space-2);
  transition: gap var(--transition-base);
}

.news-list-link:hover .news-read-more {
  gap: var(--space-2);
}

.noticias-cta {
  text-align: center;
}

@media (max-width: 1023px) {
  .news-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .news-list { grid-template-columns: 1fr; }
}

/* === FASE 5: RODAPÉ REDESENHADO === */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.75);
  margin-top: 0;
}

.footer-inner {
  padding: 0;
}

/* Grid local do footer (independente do legacy/Foundation) */
.footer .row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.footer .columns {
  width: 100%;
  box-sizing: border-box;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

@media (min-width: 640px) {
  .footer .medium-2 { width: 16.666667%; }
  .footer .medium-4 { width: 33.333333%; }
  .footer .medium-12 { width: 100%; }
}

@media (min-width: 1024px) {
  .footer .large-2 { width: 16.666667%; }
  .footer .large-4 { width: 33.333333%; }
  .footer .large-12 { width: 100%; }
}

.footer-primary {
  padding: var(--space-12) 0 var(--space-10);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo img {
  height: 44px;
  filter: invert(1) grayscale(1) brightness(2);
  mix-blend-mode: screen;
  object-fit: contain;
  margin-bottom: var(--space-4);
  display: block;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  max-width: 280px;
}

.footer .social-media {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer .social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  transition: background var(--transition-base), transform var(--transition-fast);
  text-decoration: none;
}

.footer .social-media a:hover {
  background: var(--color-primary-medium);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.footer-col-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-col-links a:hover {
  color: rgba(255,255,255,.9);
}

.footer-col-contact address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: .6;
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #25D366;
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.footer-whatsapp:hover {
  opacity: .8;
  color: #25D366;
}

.footer-trust-badges {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255,255,255,.45);
}

.footer-trust-badge svg {
  color: var(--color-success);
  flex-shrink: 0;
}

.footer-secondary {
  padding: var(--space-5) 0;
}

.footer-secondary-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-secondary p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.35);
  margin: 0;
}

.footer-secondary-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-secondary-links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-secondary-links a:hover {
  color: rgba(255,255,255,.7);
}

.footer-secondary-links span {
  color: rgba(255,255,255,.2);
}

@media (max-width: 639px) {
  .footer-primary { padding: var(--space-8) 0; }
  .footer-col-brand { margin-bottom: var(--space-6); }
  .footer-col-links { margin-bottom: var(--space-5); }
  .footer-secondary-inner { flex-direction: column; text-align: center; }
  .footer-tagline { max-width: 100%; }
}

/* === FASE 6: PÁGINA DE CURSOS === */
.internal-section {
  padding-bottom: var(--space-12);
}

.internal-section-header {
  background: linear-gradient(135deg, var(--color-primary-darker) 0%, var(--color-primary) 100%);
  padding: var(--space-8) 0 var(--space-6);
  margin-bottom: var(--space-8);
}

.internal-section-title,
.internal-section-header h1 {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: #fff;
  margin: var(--space-2) 0 0;
}

.internal-section-header .breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}

.internal-section-header .breadcrumbs a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color var(--transition-base);
}

.internal-section-header .breadcrumbs a:hover {
  color: #fff;
}

.internal-section-header .breadcrumbs span {
  color: rgba(255,255,255,.4);
}

/* Sidebar de filtros */
.courses-list-bar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: sticky;
  top: calc(var(--header-height-mobile) + var(--space-4));
}

.courses-list-bar strong {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  margin-top: var(--space-4);
}

.courses-list-bar strong:first-child {
  margin-top: 0;
}

.courses-filter-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.courses-filter-close {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px var(--space-2);
}

.courses-filter-close:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.courses-list-bar-categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.courses-list-bar-categories li a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition-base), color var(--transition-base);
}

.courses-list-bar-categories li a:hover,
.courses-list-bar-categories li a.active {
  background: var(--color-primary-xlight);
  color: var(--color-primary);
  font-weight: 600;
}

/* Botão de filtro mobile */
.courses-filter-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  margin-bottom: var(--space-4);
  width: 100%;
  transition: border-color var(--transition-base);
}

.courses-filter-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Sidebar mobile colapsável */
@media (max-width: 639px) {
  .courses-list-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-drawer);
    border-radius: 0;
    overflow-y: auto;
    padding: var(--space-8) var(--space-5);
  }

  .courses-list-bar.is-open {
    display: block;
  }

  .courses-filter-header {
    display: flex;
  }
}

/* === BARRA DE FILTROS HORIZONTAIS (listagem de cursos) === */
.courses-filter-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.courses-filter-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.courses-filter-group-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  white-space: nowrap;
  min-width: 72px;
  padding-top: 5px;
  flex-shrink: 0;
}

.courses-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.courses-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-light);
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
}

.courses-filter-chip:hover {
  background: var(--color-primary-xlight);
  color: var(--color-primary);
  border-color: var(--color-primary-light);
}

.courses-filter-chip.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 639px) {
  .courses-filter-bar {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-2);
    margin-bottom: var(--space-4);
  }

  .courses-filter-group {
    flex-direction: column;
    gap: var(--space-2);
  }

  .courses-filter-group-label {
    min-width: unset;
    padding-top: 0;
  }

  .courses-filter-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .courses-filter-chips::-webkit-scrollbar {
    display: none;
  }
}

/* === FASE 6: DETALHE DO CURSO === */
.course-detail-header {
  padding-bottom: var(--space-8);
}

.course-purchase-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}

@media (min-width: 640px) {
  .course-purchase-box {
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
  }
}

#player {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.player-demo-label {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  text-align: center;
  margin-top: var(--space-2);
  margin-bottom: 0;
}

#player iframe {
  width: 100% !important;
  max-width: 100%;
}

/* Preços */
/* Bloco de preço total — contexto secundário */
#course-detail .course-box-prices {
  display: block;
  margin: var(--space-3) 0 0;
  line-height: 1.4;
}

#course-detail .course-box-prices::before {
  content: 'à vista: ';
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  font-weight: 500;
}

#course-detail .course-box-prices .from {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  text-decoration: line-through;
  margin-right: var(--space-1);
}

#course-detail .course-box-prices .to {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
}

#course-detail .course-box-prices .to strong {
  font-family: inherit;
  font-weight: 700;
  color: var(--color-dark);
}

/* Sem label quando não há parcela hero (curso sem parcelamento) */
#course-detail .course-box-prices.normal::before {
  content: none;
}
#course-detail .course-box-prices.normal .to {
  font-size: var(--text-3xl);
  color: var(--color-dark);
}
#course-detail .course-box-prices.normal .to strong {
  font-family: var(--font-serif);
  font-size: inherit;
}

/* Tag de promoção */
#course-detail .course-box-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

#course-detail .course-box-tag.promo {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  border: 1px solid var(--color-accent);
}

#course-detail .course-box-tag.free {
  background: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

#course-detail .course-box-tag .highlight {
  font-weight: 400;
  opacity: .8;
}

/* Botão de compra principal */
.button-add-cart,
.course-detail-button-area .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px var(--space-6);
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
  box-shadow: 0 4px 16px rgba(245,158,11,.35);
  margin-top: var(--space-4);
}

.button-add-cart:hover,
.course-detail-button-area .button:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,.45);
  color: #fff;
  text-decoration: none;
}

/* Countdown de promoção */
#course-promo-countdown {
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  text-align: center;
}

#course-promo-countdown p {
  font-size: var(--text-sm);
  color: var(--color-accent-dark);
  margin-bottom: var(--space-2);
}

/* Badge de economia — fica colado ao bloco de preço total */
.course-saving-badge {
  display: block;
  width: fit-content;
  background: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px var(--space-3);
  margin-top: var(--space-2);
  margin-bottom: 0;
}

/* Parcelamento hero — separado do bloco de total por divisor */
.course-price-hero {
  border-top: 1px solid var(--color-border);
  margin: var(--space-3) 0 var(--space-4);
  padding-top: var(--space-3);
}

.course-price-hero-inner {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.course-price-hero-count {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  font-weight: 500;
}

.course-price-hero-value {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
}

.course-price-hero-note {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-success);
  font-weight: 600;
  margin-top: 4px;
}

/* Trust indicators abaixo do botão de compra */
.trust-indicators {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.trust-indicators span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  text-align: center;
  padding: var(--space-2) var(--space-1);
  background: var(--color-primary-xlight);
  border-radius: var(--radius-md);
  line-height: 1.3;
}

.trust-indicators svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-primary);
}

/* Formas de pagamento */
.payment-methods {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
}

.payment-methods-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  margin-bottom: var(--space-2);
}

.payment-methods-icons {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.payment-method-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  background: var(--color-surface-alt, #f8fafc);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 4px var(--space-2);
}

.payment-method-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* PIX na página de detalhe */
.pix-detail-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}

.pix-detail-label {
  color: var(--color-text-subtle);
}

.pix-detail-key {
  font-weight: 600;
  color: var(--color-dark);
  font-family: monospace;
}

.pix-detail-copy {
  padding: 2px var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--color-success);
  color: var(--color-success);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  line-height: 1.6;
}

.pix-detail-copy:hover {
  background: var(--color-success);
  color: #fff;
}

/* Seção "Veja também" */
.courses-see-more {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.see-more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 1024px) {
  .see-more-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .see-more-grid {
    grid-template-columns: 1fr;
  }
}

/* Badge de modalidade (presencial / online) */
.course-modality-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--space-4);
}

.course-modality-badge.presencial {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.course-modality-badge.online {
  background: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.course-modality-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary-xlight);
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-primary-dark);
}

.course-modality-meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.course-modality-meta-item strong {
  font-weight: 700;
}

/* Content area */
.course-detail-content {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  margin-top: var(--space-8);
}

.course-detail-content-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: var(--space-2);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.course-detail-content-title:first-of-type {
  margin-top: 0;
}

.course-detail-content h3 {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

/* Bloco de professor */
.course-professor-block {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.course-professor-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--text-lg);
  color: var(--color-primary);
  font-weight: 700;
}

.course-professor-info strong {
  display: block;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

/* Grid de informações adicionais */
.course-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.course-info-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.course-info-item-label {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: var(--space-1);
}

.course-info-item-value {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}

/* Botão de ação no rodapé da seção */
.course-detail-content-button-area {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

/* Tabelas vindas do banco de dados (rich text) */
.course-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0;
  font-size: var(--text-sm);
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.course-detail-content table th,
.course-detail-content table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--color-border);
  line-height: 1.5;
}

.course-detail-content table th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.course-detail-content table tbody tr:nth-child(even) td {
  background: var(--color-bg);
}

.course-detail-content table tbody tr:hover td {
  background: var(--color-primary-xlight);
}

/* === FASE 7: POLIMENTO MOBILE + ACESSIBILIDADE === */

/* Garantia de padding-top correto para conteúdo pós-header */
.header + div,
.header + section,
.home-hero {
  margin-top: 0;
}


/* prefers-reduced-motion: desativar todas as animações */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .professores-track {
    animation: none !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .professores-slider {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* Focus visible melhorado para todos contextos de cor */
.home-hero *:focus-visible,
.home-numeros *:focus-visible,
.home-cta-final *:focus-visible,
.footer *:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Touch targets mínimos */
.home-hero-btn-primary,
.home-hero-btn-secondary,
.cta-final-btn-primary,
.cta-final-btn-secondary,
.btn-outline-primary,
.faq-question,
.concurso-card,
.area-card,
.news-list-link,
.professor-card,
.home-hero-stats a {
  min-height: 44px;
}

/* Cursos destaque: reforço de acessibilidade em tabs */
.courses-home .tabs-title > a {
  min-height: 44px;
}

/* Garante que o bottom nav não tape o conteúdo de formulários */
@media (max-width: 639px) {
  .wrapper > :not(.legacy-root) input,
  .wrapper > :not(.legacy-root) select,
  .wrapper > :not(.legacy-root) textarea {
    font-size: 16px; /* Previne zoom automático no iOS */
  }
}

/* ============================================================
   HEADER NAV DESKTOP — hamburger + 2 links principais (≥1024px)
   ============================================================ */

.header-nav-desktop {
  display: none;
}

/* Busca desktop: oculta em mobile, aparece apenas no desktop */
.title-bar-middle .title-bar-search {
  display: none;
}

@media (min-width: 1024px) {
  .title-bar {
    height: 72px;
    padding: 0 var(--space-8);
    gap: var(--space-4);
  }

  .header .logo img {
    height: 42px;
  }

  .title-bar-left {
    flex: 0 0 auto;
    gap: var(--space-4);
  }

  .title-bar-middle {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: var(--space-3);
    gap: var(--space-4);
    overflow: hidden;
  }

  /* 2 pill-links após o logo */
  .header-nav-desktop {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-shrink: 0;
  }

  .header-nav-desktop > ul {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .header-nav-desktop > ul > li > a {
    display: block;
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
    border: 1.5px solid var(--color-primary-light);
    border-radius: var(--radius-full);
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 150ms ease;
    cursor: pointer;
  }

  .header-nav-desktop > ul > li > a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-1px);
  }

  .header-nav-desktop > ul > li > a.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
  }

  /* Busca cresce com o espaço disponível */
  .title-bar-middle .title-bar-search {
    display: block;
    flex: 1 1 240px;
    min-width: 0;
    max-width: 320px;
  }

  /* Espaço entre busca e grupo CTA+carrinho */
  .title-bar-right {
    margin-left: var(--space-4);
    flex-shrink: 0;
  }

  .title-bar-right ul {
    gap: var(--space-2);
  }

  .title-bar-user .name {
    display: inline-block;
    max-width: clamp(110px, 10vw, 180px);
  }
}

/* ===================================================================
   HERO VITRINE — Lançamentos & Promoções
   =================================================================== */

/* Modifier: hero focado em cursos (sem coluna institucional) */
.home-hero--vitrine {
  padding: 60px 0 56px;
  min-height: auto;
}

.home-hero--vitrine .home-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  position: relative;
  z-index: 2;
}

/* Cabeçalho: eyebrow + link "ver todos" */
.hero-vitrine-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-vitrine-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0;
}

.hero-vitrine-ver-todos {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.hero-vitrine-ver-todos:hover {
  color: #fff;
  gap: var(--space-2);
  text-decoration: none;
}

/* Slider de cards */
.hero-slider {
  position: relative;
}

.hero-slider-track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Espaço vertical para o hover (translate + sombra) não ser cortado */
  padding-top: 10px;
  padding-bottom: 18px;
  cursor: grab;
}

.hero-slider-track:active {
  cursor: grabbing;
}

.hero-slider-track::-webkit-scrollbar {
  display: none;
}

.hero-slider-item {
  flex: 0 0 calc(33.333% - 11px);
  scroll-snap-align: start;
  min-width: 0;
}

.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 37, 72, 0.7);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-slider-btn:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.8);
  border-color: transparent;
}

.hero-slider-btn:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.hero-slider-btn--prev {
  left: -20px;
}

.hero-slider-btn--next {
  right: -20px;
}

@media (max-width: 63.9375em) {
  .hero-slider-btn {
    display: none;
  }
}

@media (min-width: 40em) and (max-width: 63.9375em) {
  .hero-slider-item {
    flex: 0 0 calc(50% - 8px);
  }
}

@media (max-width: 39.9375em) {
  .home-hero--vitrine {
    padding: 44px 0 48px;
  }

  .hero-slider-item {
    flex: 0 0 calc(100% - 32px);
  }
}

/* Dots de paginação do hero slider */
.hero-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-5);
}

.hero-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, width 0.25s ease, border-radius 0.25s ease;
  flex-shrink: 0;
}

.hero-slider-dot.is-active {
  width: 20px;
  border-radius: 3px;
  background: var(--color-accent);
}

/* Animação de entrada staggered */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-card-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero-slider-item {
    animation: hero-card-in 0.5s ease-out both;
  }

  .hero-slider-item:nth-child(1) { animation-delay: 0.05s; }
  .hero-slider-item:nth-child(2) { animation-delay: 0.18s; }
  .hero-slider-item:nth-child(3) { animation-delay: 0.31s; }
  .hero-slider-item:nth-child(4) { animation-delay: 0.44s; }
  .hero-slider-item:nth-child(5) { animation-delay: 0.57s; }
  .hero-slider-item:nth-child(6) { animation-delay: 0.70s; }
}

/* Card glassmorphism */
.hero-course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background: rgba(15, 37, 72, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}


@supports (backdrop-filter: blur(1px)) {
  .hero-course-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.hero-course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-accent) 40%,
    var(--color-accent-dark) 60%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.hero-course-card:hover::before {
  opacity: 1;
}

.hero-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border-color: rgba(245, 158, 11, 0.45);
  text-decoration: none;
  color: inherit;
}

/* Imagem do curso */
.hero-course-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.hero-course-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.hero-course-card:hover .hero-course-img-wrap img {
  transform: scale(1.04);
}

/* Corpo do card */
.hero-course-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Linha do topo: badge + área */
.hero-course-card-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

/* Badges (PROMOÇÃO / NOVO) */
.hero-course-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.hero-course-badge--promo {
  background: #ef4444;
  color: #fff;
}

.hero-course-badge--novo {
  background: var(--color-success);
  color: #fff;
}

/* Tag da área */
.hero-course-area {
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

/* Título */
.hero-course-title {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Preço */
.hero-course-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.hero-course-price-original {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.38);
  text-decoration: line-through;
}

.hero-course-price-atual {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
}

.hero-course-installment {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-5);
}

.hero-course-installment strong {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
}

/* Componente unificado: badge de desconto + countdown */
@keyframes hero-badge-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.75; }
}

.hero-promo-strip {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(239, 68, 68, 0.6);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-4);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.15),
              0 4px 24px rgba(239, 68, 68, 0.2);
}

.hero-promo-strip-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #ef4444;
  padding: 12px 8px;
  flex: 1;
  min-width: 0;
  animation: hero-badge-pulse 2s ease-in-out infinite;
}

.hero-promo-strip-badge-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
}

.hero-promo-strip-badge-pct {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero-promo-strip-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  gap: 4px;
  flex: 1;
  min-width: 0;
  background: rgba(245, 158, 11, 0.12);
}

.hero-promo-strip-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  text-align: center;
}

/* Alternância de modo dias / hms */
.hero-cd-days-wrap {
  display: none;
  align-items: baseline;
  gap: 5px;
}

.hero-cd-days-num {
  font-size: 2rem;
  line-height: 1;
}

.hero-cd-days-label {
  font-size: 1rem;
  font-weight: 600;
}

.hero-promo-strip.is-days-mode .hero-cd-days-wrap   { display: flex; }
.hero-promo-strip.is-days-mode .hero-countdown-timer { display: none; }
.hero-promo-strip.is-hms-mode  .hero-cd-days-wrap   { display: none; }
.hero-promo-strip.is-hms-mode  .hero-countdown-timer { display: flex; }

/* Timer hms (compartilhado) */
.hero-countdown-timer {
  display: flex;
  align-items: center;
  gap: 3px;
}

.hero-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 28px;
}

.hero-countdown-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.hero-countdown-unit-label {
  font-size: 0.46rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 1px;
}

.hero-countdown-sep {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.7;
  align-self: flex-start;
  margin-top: 1px;
  padding: 0 1px;
}

/* Variante para contexto claro (página de detalhe do curso) */
.hero-promo-strip--course {
  margin-bottom: var(--space-3);
}
.hero-promo-strip--course .hero-promo-strip-timer {
  background: rgba(245, 158, 11, 0.08);
}
.hero-promo-strip--course .hero-promo-strip-label {
  color: var(--color-dark);
}
.hero-promo-strip--course .hero-cd-days-num {
  color: var(--color-dark);
}
.hero-promo-strip--course .hero-cd-days-label {
  color: var(--color-dark);
}
.hero-promo-strip--course .hero-countdown-unit-label {
  color: var(--color-text-subtle);
}
.hero-promo-strip--course .hero-countdown-sep {
  color: var(--color-accent-dark);
  opacity: 1;
}

/* Botão CTA dentro do card */
.hero-course-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 9px var(--space-4);
  border-radius: var(--radius-full);
  transition: background 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
  margin-top: auto;
  align-self: flex-start;
}

.hero-course-card:hover .hero-course-cta-btn {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  gap: var(--space-3);
}

/* Data de início (somente cursos presenciais) */
.hero-course-start-date {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  margin: calc(var(--space-1) * -1) 0 var(--space-3);
}

.hero-course-last-spots {
  display: inline-flex;
  align-items: center;
  margin-left: var(--space-1);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Link interno do card (substitui o <a> externo) */
.hero-course-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
  min-height: 0;
}

.hero-course-card-inner:hover,
.hero-course-card-inner:focus {
  text-decoration: none;
  color: inherit;
}

/* Linha de ações: Saiba mais + WhatsApp */
.hero-course-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-5) var(--space-5);
  flex-wrap: wrap;
}

.hero-course-cta-btn {
  text-decoration: none;
}

/* Botão WhatsApp */
.hero-course-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25d366;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 9px var(--space-4);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.hero-course-whatsapp-btn:hover,
.hero-course-whatsapp-btn:focus {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  text-decoration: none;
}

/* -------------------------------------------------------------------
   30. COMPATIBILIDADE DE MIGRACAO (AUTH + CARRINHO/CHECKOUT)
   ------------------------------------------------------------------- */

/* Nota tecnica: .hero-course-card--full, .professor-info e .buscar-curso
   permanecem sem regra dedicada por nao apresentarem regressao funcional. */

/* Grid utilitario para templates migrados */
:is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

:is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .columns,
:is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .column {
  width: 100%;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
  box-sizing: border-box;
}

:is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .align-center {
  justify-content: center;
}

@media (min-width: 640px) {
  :is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .medium-4 { width: 33.333333%; }
  :is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .medium-5 { width: 41.666667%; }
  :is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .medium-6 { width: 50%; }
  :is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .medium-7 { width: 58.333333%; }
  :is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .medium-8 { width: 66.666667%; }
  :is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .medium-12 { width: 100%; }
}

@media (min-width: 1024px) {
  :is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .large-3 { width: 25%; }
  :is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .large-4 { width: 33.333333%; }
  :is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .large-5 { width: 41.666667%; }
  :is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .large-6 { width: 50%; }
  :is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .large-8 { width: 66.666667%; }
  :is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .large-12 { width: 100%; }
  :is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .large-offset-2 { margin-left: 16.666667%; }
}

.form-error {
  display: none;
  font-size: var(--text-xs);
  color: var(--color-danger);
  margin-top: 4px;
}

/* Header simplificado para autenticacao/carrinho */
.header-login .title-bar {
  min-height: 84px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.header-login .logo img {
  height: 42px;
}

/* Autenticacao */
.auth-card-wide {
  max-width: 760px;
}

.auth-link-top {
  margin-top: 0;
  margin-bottom: var(--space-4);
}

.auth-forgot-link {
  text-align: right;
  margin-bottom: var(--space-4);
}

.auth-callout {
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
}

.auth-callout p {
  margin: 0;
}

.auth-callout.success {
  background: var(--color-success-light);
  border-color: var(--color-success);
  color: var(--color-success);
}

.auth-callout.alert {
  background: #fce6e2;
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.auth-callout-hidden {
  display: none;
}

.auth-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.auth-radio-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-2);
}

.auth-radio-group input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.auth-radio-group label {
  margin: 0 var(--space-3) 0 0;
  font-weight: 500;
}

.auth-inline-fields {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.auth-inline-field-sm {
  width: 90px;
}

.auth-inline-field-md {
  width: 130px;
}

.auth-hint {
  display: block;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* Carrinho */
.cart-continue-btn {
  width: auto;
  margin-top: 0;
  font-size: var(--text-base);
}

.internal-section-header .checkout-step-label {
  color: rgba(255, 255, 255, .55);
}

.internal-section-header .checkout-step.active .checkout-step-label {
  color: #fff;
  font-weight: 600;
}

.internal-section-header .checkout-step.done .checkout-step-label {
  color: rgba(255, 255, 255, .8);
}

@media screen and (max-width: 767px) {
  #course-detail .internal-section-header {
    text-align: center;
  }

  #course-detail .internal-section-header .breadcrumbs {
    justify-content: center;
  }

  #course-detail .internal-section-header .checkout-steps {
    justify-content: center;
  }
}

.cart-actions,
.cart-coupon-total {
  margin-top: var(--space-6);
}

.cart-actions-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.cart-actions-terms p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cart-table th,
.cart-table td {
  padding: var(--space-3);
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.cart-table th {
  background: #f8fafc;
  font-weight: 700;
}

.cart-table tr:last-child td {
  border-bottom: 0;
}

.cart-course-box .course-box-title {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.cart-course-box .course-box-title:hover {
  color: var(--color-primary);
}

.cart-course-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: #fee2e2;
  color: var(--color-danger);
  text-decoration: none;
  font-weight: 700;
}

.cart-note {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
}

.cart-note-danger {
  color: var(--color-danger);
}

.cart-note-info {
  color: var(--color-primary);
}

.cart-coupon .input-group {
  display: flex;
  gap: var(--space-2);
}

.cart-coupon .input-group-field {
  flex: 1;
}

.cart-total {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: var(--space-3);
}

.cart-total .desc {
  color: var(--color-text-muted);
}

.cart-total .value {
  font-size: var(--text-2xl);
  color: var(--color-primary-dark);
}

#modal-cart-email {
  display: none;
  position: relative;
  z-index: calc(var(--z-overlay) + 2);
  width: min(520px, calc(100vw - 2rem));
  margin: 10vh auto 0;
  background: var(--color-surface);
  overflow-y: auto;
  max-width: 520px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
}

#modal-cart-email .modal-title {
  margin-top: 0;
}

#modal-cart-email .close-button {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1;
}

#modal-cart-email .modal-subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: calc(var(--space-1) * -1);
  margin-bottom: var(--space-4);
}

#modal-cart-email input[type="email"] {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  transition: border-color var(--transition-fast);
  box-sizing: border-box;
}

#modal-cart-email input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary-medium);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

#modal-cart-email .button-area {
  margin-top: var(--space-2);
}

#modal-cart-email .button-area button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-base);
  font-family: var(--font-primary);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-base);
}

#modal-cart-email .button-area button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(33,153,232,.35);
}

/* Estado vazio do carrinho */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-16) var(--space-6);
  text-align: center;
  color: var(--color-text-muted);
}

.cart-empty svg {
  opacity: 0.35;
  color: var(--color-primary);
}

.cart-empty h2 {
  font-size: var(--text-2xl);
  font-family: var(--font-serif);
  color: var(--color-text);
  margin: 0;
}

.cart-empty p {
  font-size: var(--text-base);
  margin: 0;
  max-width: 360px;
}

/* Badge de desconto ativo */
.cart-discount-badge {
  display: inline-block;
  background: var(--color-success-light);
  color: var(--color-success);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Feedback do cupom */
#cupom-feedback {
  min-height: 20px;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}

#cupom-feedback.success {
  color: var(--color-success);
}

#cupom-feedback.error {
  color: var(--color-danger);
}

/* Summary card */
.cart-summary-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-light);
}

.cart-summary-row:last-child {
  border-bottom: 0;
}

.cart-summary-discount {
  color: var(--color-success);
}

.cart-summary-total {
  padding-top: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text);
}

.cart-summary-total strong {
  font-size: var(--text-2xl);
  color: var(--color-primary-dark);
}

/* Tabela do carrinho responsiva (mobile) */
@media screen and (max-width: 767px) {
  .cart-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table tr {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    padding: var(--space-3);
    background: var(--color-surface);
  }

  .cart-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
  }

  .cart-table td:last-child {
    border-bottom: 0;
    justify-content: flex-end;
  }

  .cart-table td[data-label]::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: var(--space-3);
    flex-shrink: 0;
  }

  /* Célula do curso ocupa linha inteira */
  .cart-table td[data-label="Curso"] {
    display: block;
    padding-bottom: var(--space-3);
  }

  .cart-table td[data-label="Curso"]::before {
    display: none;
  }

  .cart-summary-card {
    margin-top: var(--space-4);
  }
}

.reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-overlay) + 1);
  background: rgba(15, 23, 42, 0.55);
  pointer-events: none;
  opacity: 0;
}

html.is-reveal-open .reveal-overlay {
  pointer-events: auto;
  opacity: 1;
}

/* Checkout */
.checkout-steps-inline {
  justify-content: flex-start;
  gap: var(--space-2);
  padding: var(--space-4) 0 0;
  margin-bottom: 0;
}

.steps {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.steps li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
}

.steps .number {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #fff;
}

.steps .number.is-clickable {
  cursor: pointer;
}

.steps li.active .number {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.steps .description {
  font-size: var(--text-sm);
}

.payment-content {
  align-items: flex-start;
}

.payment-form-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.payment-form-title {
  margin: 0 0 var(--space-4);
  font-size: var(--text-lg);
  color: var(--color-text);
}

.payment-form-title-greeting {
  padding-bottom: var(--space-4);
}

.payment-form-subtitle {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
}

.payment-methods-brand {
  margin-bottom: var(--space-4);
}

.payment-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.payment-sidebar-title {
  margin-top: 0;
}

.payment-sidebar .course-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.payment-sidebar ul {
  margin: 0 0 var(--space-3) var(--space-4);
}

.payment-processed-by {
  margin-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}

.payment-processed-by .description {
  display: block;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.payment-processed-by figure {
  margin: 0;
}

.payment-processed-by img {
  max-width: 180px;
  width: 100%;
}

.opaco {
  opacity: 0.3;
  filter: alpha(opacity=30);
}

.is-hidden-initial {
  display: none;
}

.checkout-lgpd-modal {
  max-width: 100%;
  z-index: 3;
}

.checkout-lgpd-item {
  font-weight: 700;
}

/* Pix e sucesso */
.pix-card {
  border: 2px solid var(--color-success);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  background: #f8fffb;
  box-shadow: var(--shadow-sm);
}

.pix-title {
  color: var(--color-success);
  text-align: center;
  margin-bottom: var(--space-5);
}

.pix-qrcode-area {
  text-align: center;
  margin-bottom: var(--space-5);
}

.pix-qrcode-image {
  max-width: 200px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.pix-copy-paste-area {
  margin-bottom: var(--space-4);
}

.pix-code-label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.pix-copy-container {
  display: flex;
  align-items: center;
}

.pix-code-input {
  cursor: copy;
  background: #fff;
}

.pix-qrcode-validity {
  text-align: center;
  color: var(--color-text-muted);
}

.pix-loading-area {
  text-align: center;
  margin-top: var(--space-5);
}

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

.loading-spinner {
  margin: var(--space-2) auto;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-top-color: var(--color-success);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.sucesso-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  background: var(--color-surface);
}

@media (max-width: 1023px) {
  :is(.auth-wrapper, #course-detail, #payment, #modal-cart-email, .checkout-lgpd-modal) .large-offset-2 {
    margin-left: 0;
  }

  .cart-actions-buttons {
    justify-content: flex-start;
  }

  .steps {
    gap: var(--space-3);
  }

  .payment-sidebar {
    margin-top: var(--space-4);
  }
}
