/* ==========================================================================
   ATENÇÃO CONCURSEIROS - DESIGN SYSTEM & PWA STYLESHEET
   Paleta Oficial: Azul (#0b3b60), Amarelo (#fbc02d) e Branco (#ffffff)
   ========================================================================== */

/* 1. VARIÁVEIS DO TEMA E RESET */
:root {
  --primary: #0b3b60;
  --primary-dark: #051f33;
  --primary-light: #165282;
  --accent: #fbc02d;
  --accent-hover: #f57f17;
  --accent-light: #fff9e6;
  --white: #ffffff;
  --bg-light: #f4f7fa;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;

  /* Auxiliares Mercado Livre & Redes */
  --ml-yellow: #ffe600;
  --ml-dark: #2d3277;
  --yt-red: #ff0000;
  --wa-green: #25d366;

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

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(11, 59, 96, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 59, 96, 0.1);
  --shadow-lg: 0 16px 36px rgba(11, 59, 96, 0.16);

  /* Bordas e Raio */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transições */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><g fill='none' stroke='%23475569' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' opacity='0.30'><rect x='15' y='15' width='30' height='44' rx='4'/><rect x='20' y='21' width='20' height='9' rx='1'/><circle cx='21' cy='36' r='1.5'/><circle cx='30' cy='36' r='1.5'/><circle cx='39' cy='36' r='1.5'/><circle cx='21' cy='43' r='1.5'/><circle cx='30' cy='43' r='1.5'/><circle cx='39' cy='43' r='1.5'/><circle cx='21' cy='50' r='1.5'/><circle cx='30' cy='50' r='1.5'/><circle cx='39' cy='50' r='1.5'/><g transform='rotate(-15 120 30)'><rect x='90' y='20' width='60' height='16' rx='2'/><line x1='95' y1='20' x2='95' y2='25'/><line x1='100' y1='20' x2='100' y2='28'/><line x1='105' y1='20' x2='105' y2='25'/><line x1='110' y1='20' x2='110' y2='28'/><line x1='115' y1='20' x2='115' y2='25'/><line x1='120' y1='20' x2='120' y2='28'/><line x1='125' y1='20' x2='125' y2='25'/><line x1='130' y1='20' x2='130' y2='28'/><line x1='135' y1='20' x2='135' y2='25'/><line x1='140' y1='20' x2='140' y2='28'/></g><polygon points='15,105 15,155 65,155'/><polygon points='23,122 23,147 48,147'/><g transform='rotate(35 60 65)'><path d='M50 50 L80 50 L80 58 L50 58 Z'/><path d='M50 50 L42 54 L50 58 Z'/><line x1='74' y1='50' x2='74' y2='58'/></g><path d='M95 95 V135 H145'/><rect x='102' y='115' width='8' height='20' rx='1'/><rect x='115' y='105' width='8' height='30' rx='1'/><rect x='128' y='110' width='8' height='25' rx='1'/><path d='M102 112 L115 100 L128 106 L140 92'/><circle cx='140' cy='92' r='2' fill='%23475569'/><path d='M170 35 C170 27 182 27 182 35 L182 55 C182 65 164 65 164 55 L164 42 C164 36 174 36 174 42 L174 52'/><rect x='150' y='125' width='30' height='38' rx='3'/><path d='M168 125 L180 137 L168 137 Z'/><line x1='156' y1='137' x2='164' y2='137'/><line x1='156' y1='144' x2='174' y2='144'/><line x1='156' y1='151' x2='174' y2='151'/><line x1='156' y1='158' x2='170' y2='158'/></g></svg>");
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 0;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

main,
.site-content {
  background-color: #ffffff;
  position: relative;
  z-index: 1;
}

@media (min-width: 1280px) {
  main {
    max-width: 1280px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
  font-size: inherit;
}

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

/* 2. BARRA DE ANÚNCIOS TOPO */
/* 2. BARRA DE ANÚNCIOS TOPO (TOP ANNOUNCEMENT BAR) */
.top-bar {
  background: linear-gradient(135deg, var(--primary-dark), #082944);
  color: var(--white);
  padding: 0.55rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(251, 192, 45, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1010;
}

.top-bar.hidden {
  display: none !important;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-link {
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.top-bar-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.top-bar-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.top-bar-close:hover {
  color: var(--accent);
  transform: scale(1.15);
}

/* 3. CABEÇALHO PRINCIPAL (STICKY) */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 59, 96, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 0;
  transition: var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: auto;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon-img {
  height: 44px;
  max-width: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-title .highlight {
  color: var(--accent);
}

.logo-sub {
  font-size: 0.725rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.desktop-nav {
  display: none;
  gap: 1.75rem;
}

@media (min-width: 992px) {
  .desktop-nav {
    display: flex;
    align-items: center;
  }
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Botão Hamburguer */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: var(--white);
  border-radius: 3px;
  transition: var(--transition-fast);
}

/* Drawer Offcanvas Mobile */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 31, 51, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--primary);
  z-index: 1060;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.3);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.drawer-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(251, 192, 45, 0.15);
  color: var(--accent);
}

/* 4. BOTÕES E COMPONENTES GERAIS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(251, 192, 45, 0.4);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(251, 192, 45, 0.5);
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

.btn-outline-primary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-ml {
  background: var(--ml-yellow);
  color: var(--ml-dark);
  font-weight: 800;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(255, 230, 0, 0.4);
  width: 100%;
}

.btn-ml:hover {
  background: #f7dd00;
  transform: translateY(-2px);
}

.btn-yt {
  background: var(--yt-red);
  color: var(--white);
}

.btn-yt:hover {
  background: #cc0000;
}

.btn-whatsapp {
  background: var(--wa-green);
  color: var(--white);
}

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

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
}

.btn-xl {
  padding: 1.1rem 2.2rem;
  font-size: 1.15rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* 5. HERO BANNER CARROSSEL */
.hero-section {
  padding: 1.5rem 0;
}

.carousel-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: var(--white);
  min-height: 380px;
}

@media (min-width: 768px) {
  .carousel-slide {
    padding: 4.5rem 3.5rem;
    min-height: 420px;
  }
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  background: rgba(251, 192, 45, 0.2);
  color: var(--accent);
  border: 1px solid rgba(251, 192, 45, 0.4);
}

.badge-red {
  background: rgba(255, 0, 0, 0.2);
  color: #ff6b6b;
  border-color: rgba(255, 0, 0, 0.4);
}

.badge-green {
  background: rgba(37, 211, 102, 0.2);
  color: #51f08e;
  border-color: rgba(37, 211, 102, 0.4);
}

.slide-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 680px;
}

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

.slide-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 600px;
}

.slide-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Estilos específicos dos 3 layouts do Hero Banner */
.carousel-slide.layout-full-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-slide.layout-full-bg .slide-content {
  position: relative;
  z-index: 2;
}

.carousel-slide.layout-side-image {
  background: linear-gradient(135deg, rgba(11, 59, 96, 0.98), rgba(5, 31, 51, 0.95));
}

.carousel-slide.layout-side-image .slide-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .carousel-slide.layout-side-image .slide-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 2.5rem;
  }
}

.carousel-slide.layout-side-image .slide-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.carousel-slide.layout-side-image .slide-img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

.carousel-slide.layout-side-image:hover .slide-img {
  transform: translateY(-4px);
}

.carousel-slide.layout-solid-blue {
  background: linear-gradient(135deg, #0b3b60 0%, #082d49 50%, #051f33 100%);
}

.carousel-slide.layout-solid-blue .slide-content {
  max-width: 780px;
}

/* Setas do Carrossel Ocultadas */
.carousel-btn,
.prev-btn,
.next-btn,
.radar-arrow,
.carousel-prev,
.carousel-next {
  display: none !important;
}

/* Indicadores Bolinhas */
.carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: var(--radius-full);
}

/* 6. SEÇÕES EM GERAL */
.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }
}

.section-header {
  margin-bottom: 2.5rem;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.tag-blue {
  color: var(--primary-light);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

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

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.5rem;
  max-width: 650px;
}

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

/* 7. DESTAQUES DO YOUTUBE - GALERIA ROTATIVA RESPONSIVA */
.youtube-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .section-header-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.yt-slider-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  align-self: flex-start;
}

@media (min-width: 768px) {
  .yt-slider-controls {
    align-self: center;
  }
}

.yt-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.yt-nav-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.yt-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.yt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition-fast);
}

.yt-dot.active {
  width: 26px;
  border-radius: var(--radius-full);
  background: var(--accent);
}

/* Container da Galeria YouTube */
.yt-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  margin-bottom: 2.5rem;
  position: relative;
  padding: 0.5rem 0;
}

.yt-carousel-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

/* Comportamento dos Cards no Slider:
   - Mobile (< 768px): 1 vídeo por slide (100% largura)
   - Desktop (>= 768px): 4 vídeos visíveis por bloco (calc 25% menos lacunas) */
.yt-carousel-track .video-card {
  flex: 0 0 100%;
  max-width: 100%;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .yt-carousel-track .video-card {
    flex: 0 0 calc((100% - (3 * 1.25rem)) / 4);
    max-width: calc((100% - (3 * 1.25rem)) / 4);
  }
}

.yt-carousel-track .video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(11, 59, 96, 0.3);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--primary-dark);
  overflow: hidden;
}

.video-thumbnail iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-thumbnail img.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img.thumb-img {
  transform: scale(1.06);
}

.thumb-play-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(11, 59, 96, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-play-overlay svg {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.video-card:hover .thumb-play-overlay svg {
  transform: scale(1.15);
}

.video-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.badge-live {
  background: var(--yt-red);
}

.badge-new {
  background: var(--primary);
}

.badge-tip {
  background: #d97706;
}

.badge-purple {
  background: #7e22ce;
}

.video-duration {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.85);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.video-info {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.video-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.video-play-link {
  margin-top: auto;
  width: 100%;
}

.yt-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 1.75rem 2rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .yt-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.yt-banner-text h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.yt-banner-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* 8. MATERIAL GRATUITO & BANNER DE CAPTURA */
.secao-padrao-wrapper {
  width: 100%;
  padding: 30px 16px 40px;
  box-sizing: border-box;
  scroll-margin-top: 80px;
  /* Evita que o cabeçalho fixo tampe o título ao rolar */
}

.secao-header-titulo {
  text-align: center;
  margin-bottom: 20px;
}

.secao-tag-chapeu {
  font-size: 13px;
  font-weight: 800;
  color: #0f2744;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}

#material-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  background: #0d2238 !important;
  border-radius: 20px !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.mat-slider-track {
  display: flex !important;
  width: 100% !important;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Permite que a garota encoste no fundo sem corte */
.mat-slide-item {
  min-width: 100% !important;
  width: 100% !important;
  display: flex !important;
  align-items: flex-end !important;
  /* Alinha os elementos pela base */
  justify-content: space-between !important;
  padding: 32px 48px 0 !important;
  /* Remove o espaço inferior */
  box-sizing: border-box !important;
  gap: 20px !important;
}

.mat-text-col {
  flex: 1 1 40% !important;
  max-width: 40% !important;
  color: #ffffff !important;
  align-self: center !important;
  /* Mantém o texto centralizado na altura */
  padding-bottom: 32px !important;
}

.mat-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: #ffc107;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.mat-text-col h2 {
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 10px 0;
  line-height: 1.25;
  word-break: normal;
  overflow-wrap: break-word;
}

.mat-text-col p {
  color: #cbd5e1;
  font-size: 14px;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.mat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
}

.mat-list li {
  color: #f1f5f9;
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mat-btn {
  background: #ffc107;
  color: #0d2238;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mat-btn:hover {
  background: #e0a800;
  transform: translateY(-2px);
}

.mat-book-col {
  flex: 0 0 26% !important;
  max-width: 26% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  align-self: center !important;
  /* Mantém o livro centralizado na altura */
  padding-bottom: 32px !important;
}

.mat-book-img {
  max-width: 200px !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35) !important;
}

.mat-girl-col {
  flex: 0 0 32% !important;
  max-width: 32% !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: flex-end !important;
  align-self: flex-end !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  line-height: 0 !important;
  /* Remove qualquer folga residual de linha */
}

.mat-girl-img {
  max-width: 290px !important;
  /* Aumenta a proporção visual */
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin-bottom: 0 !important;
  vertical-align: bottom !important;
}

.mat-dots-wrapper {
  position: absolute !important;
  bottom: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: 8px !important;
  z-index: 20 !important;
}

.mat-dot {
  width: 20px !important;
  height: 5px !important;
  background: rgba(255, 255, 255, 0.3) !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.mat-dot.active {
  background: #ffc107 !important;
  width: 30px !important;
}

@media (max-width: 900px) {
  .mat-girl-col {
    display: none !important;
  }

  .mat-slide-item {
    flex-direction: column-reverse !important;
    padding: 24px 16px 36px !important;
    text-align: center !important;
  }

  .mat-text-col,
  .mat-book-col {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  .mat-list li {
    justify-content: center !important;
  }
}

/* 9. RADAR DE CONCURSOS */
.radar-section {
  background: var(--bg-light);
}

.radar-filtros-bar,
.radar-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {

  .radar-filtros-bar,
  .radar-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box {
  position: relative;
  flex-grow: 1;
  max-width: 450px;
}

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-box input,
#radarSearchInput {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--white);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  font-size: 0.95rem;
  box-sizing: border-box;
}

.search-box input:focus,
#radarSearchInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 59, 96, 0.1);
}

.radar-filtros-bar {
  margin-bottom: 1.75rem;
  width: 100%;
}

.filtro-chips,
.radar-filters {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth !important;
  gap: 10px !important;
  padding: 8px 4px 12px 4px !important;
  width: 100% !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  cursor: grab;
}

.filtro-chips.dragging,
.radar-filters.dragging {
  cursor: grabbing !important;
  user-select: none !important;
}

.filtro-chips::-webkit-scrollbar,
.radar-filters::-webkit-scrollbar {
  display: none !important;
}

.filtro-radar-btn,
.filter-btn {
  flex-shrink: 0 !important;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap !important;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.filtro-radar-btn:hover,
.filtro-radar-btn.active,
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(11, 59, 96, 0.25) !important;
  transform: translateY(-1px);
}

.radar-cards-grid,
.radar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {

  .radar-cards-grid,
  .radar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.radar-card {
  background: var(--card-bg, #ffffff);
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border, #e2e8f0);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.radar-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(11, 59, 96, 0.3);
}

.radar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-status,
.status-badge {
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-block;
  background: #dcfce7;
  color: #166534;
}

.badge-status.inscrições-abertas,
.badge-status.inscricoes-abertas,
.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-status.edital-publicado,
.badge-primary {
  background: #e0f2fe;
  color: #075985;
}

.badge-status.previsto,
.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-status.banca-definida,
.badge-info {
  background: #f3e8ff;
  color: #6b21a8;
}

.badge-banca,
.radar-banca {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
}

.radar-card-title,
.radar-title {
  font-family: var(--font-heading, inherit);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark, #0b3b60);
  margin: 0.25rem 0 1.25rem 0;
  line-height: 1.3;
}

.radar-card-info-grid,
.radar-details {
  background: var(--bg-light, #f8fafc);
  border-radius: var(--radius-sm, 8px);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.info-item,
.radar-detail-item {
  display: flex;
  flex-direction: column;
}

.info-item .label,
.radar-detail-item .label {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 2px;
}

.info-item strong,
.radar-detail-item .value {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main, #1e293b);
}

.text-green,
.highlight-val {
  color: #15803d !important;
  font-size: 0.95rem;
}

.radar-card-actions,
.radar-card-footer {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

.btn-full-width {
  flex: 1 1 100% !important;
  width: 100% !important;
  text-align: center !important;
}

.btn-radar-apostila {
  flex: 1;
  background: #ffc107;
  color: #0d2238;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-size: 0.875rem;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-radar-apostila:hover {
  background: #e0a800;
  transform: translateY(-1px);
}

.btn-radar-edital {
  flex: 1;
  background: transparent;
  color: var(--primary, #0b3b60);
  border: 1px solid var(--primary, #0b3b60);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-size: 0.875rem;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-radar-edital:hover {
  background: rgba(11, 59, 96, 0.08);
}

.btn-radar-previsto {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: not-allowed;
}

/* 10. BLOCO DIVIDIDO (APOSTILAS FÍSICAS ML & NOTÍCIAS) */
#apostilas-fisicas {
  scroll-margin-top: 85px;
}

.split-section {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .split-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.col-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.col-title-wrap h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.col-badge {
  font-size: 0.775rem;
  font-weight: 700;
  background: var(--accent-light);
  color: #854d0e;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.col-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

/* Products List (Mercado Livre) */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition-normal);
}

@media (min-width: 576px) {
  .product-card {
    flex-direction: row;
    align-items: center;
  }
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.product-cover {
  width: 100px;
  height: 130px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
}

.cover-pf {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.cover-bb {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.cover-graphic {
  text-align: center;
  color: var(--white);
  padding: 0.5rem;
}

.cover-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.cover-org {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}

.cover-sub {
  font-size: 0.6rem;
  opacity: 0.8;
}

.product-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-badge {
  font-size: 0.725rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 0.35rem;
}

.badge-blue {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-green {
  background: #dcfce7;
  color: #15803d;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.product-features {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.price-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.price-shipping {
  font-size: 0.775rem;
  color: #15803d;
  font-weight: 600;
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-item {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
}

.news-item:last-child {
  border-bottom: none;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.news-category {
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.category-edital {
  background: #e0f2fe;
  color: #0284c7;
}

.category-banca {
  background: #f3e8ff;
  color: #7e22ce;
}

.category-dica {
  background: #fef3c7;
  color: #b45309;
}

.category-legis {
  background: #fee2e2;
  color: #b91c1c;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.news-title a:hover {
  color: var(--primary-light);
}

.news-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.65rem;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.read-time {
  color: var(--text-muted);
}

.read-more {
  font-weight: 700;
  color: var(--primary);
}

.read-more:hover {
  text-decoration: underline;
}

/* 11. SUPORTE */
.support-section {
  background: var(--bg-light);
}

.support-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .support-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.support-icon {
  font-size: 3rem;
}

.support-info h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}

.support-info p {
  color: var(--text-muted);
  max-width: 550px;
}

/* 12. RODAPÉ & AUTOR */
.main-footer {
  background: #0b3b60;
  color: var(--white);
  padding-top: 3.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 0;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2.3fr 1fr 1fr;
    gap: 3rem;
    align-items: flex-end;
  }
}

.footer-author-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 0;
}

.footer-author-photo {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  margin-bottom: 0;
}

.footer-author-img {
  height: 235px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 0;
  vertical-align: bottom;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  padding-bottom: 1.25rem;
}

.footer-brand-info .logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.footer-brand-info .logo-title .highlight {
  color: var(--accent);
}

.footer-brand-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  max-width: 360px;
}

.footer-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-family: var(--font-heading, inherit);
  font-size: 1.05rem;
  font-weight: 700;
  font-style: italic;
  color: var(--white);
  letter-spacing: 0.02em;
}

.author-role {
  font-size: 0.85rem;
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links,
.footer-social {
  padding-bottom: 1.5rem;
}

.footer-links h4,
.footer-social h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.social-icons a:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 13. BARRA FIXA DE NAVEGAÇÃO INFERIOR PARA MOBILE (MOBILE BOTTOM NAV) */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 59, 96, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(251, 192, 45, 0.25);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0.25rem;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  width: 20%;
  text-align: center;
}

.bottom-nav-item.active {
  color: var(--accent);
}

.bottom-nav-item.active svg {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 4px rgba(251, 192, 45, 0.4));
}

/* 14. MODAL DE CAPTURA DE LEADS (NOME & WHATSAPP) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  background: rgba(5, 31, 51, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  display: flex !important;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 2.25rem 1.75rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  z-index: 10001;
  pointer-events: auto;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--primary-dark);
  transform: scale(1.1);
}

.modal-badge {
  background: var(--accent-light);
  color: #b45309;
  font-size: 0.775rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.65rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-group input {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 59, 96, 0.1);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-checkbox input {
  margin-top: 0.2rem;
}

.success-icon {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.download-box {
  margin-top: 1.5rem;
}

/* 15. PWA TOAST BANNER */
.pwa-toast {
  position: fixed;
  bottom: 84px;
  right: 1.25rem;
  left: 1.25rem;
  max-width: 420px;
  margin: 0 auto;
  background: var(--primary-dark);
  color: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 1500;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 768px) {
  .pwa-toast {
    left: auto;
    bottom: 1.5rem;
  }
}

.pwa-toast.show {
  transform: translateY(0);
}

.pwa-toast-icon {
  font-size: 2rem;
}

.pwa-toast-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pwa-toast-info strong {
  font-size: 0.95rem;
  color: var(--accent);
}

.pwa-toast-info span {
  font-size: 0.775rem;
  color: rgba(255, 255, 255, 0.8);
}

.pwa-toast-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 16. TOAST DE SUCESSO (AUTOMAÇÃO WHATSAPP) */
.success-toast {
  position: fixed;
  top: 1.5rem;
  right: 1.25rem;
  left: 1.25rem;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary-dark), #072a47);
  color: var(--white);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 12px 32px rgba(11, 59, 96, 0.35);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-30px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 768px) {
  .success-toast {
    left: auto;
  }
}

.success-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.toast-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.toast-content strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent);
}

.toast-content span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.35;
}

.toast-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
  transition: var(--transition-fast);
}

.toast-close:hover {
  color: var(--accent);
}

/* Seção Preta Inferior de Créditos (PWM Digital) */
.footer-credits-section {
  background-color: #000000;
  width: 100%;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-credits-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Selo PWM Digital fixo dentro da seção preta */
.pwm-credit-badge {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0 auto;
}

.pwm-badge-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  cursor: pointer;
  font-size: 12px;
  color: #1e293b;
  font-weight: 600;
  background: #ffffff;
  user-select: none;
  white-space: nowrap;
}

.pwm-logo-img {
  height: 18px;
  width: auto;
  object-fit: contain;
}

/* Gaveta de links */
.pwm-menu-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.pwm-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.pwm-menu-item:last-child {
  border-bottom: none;
}

.pwm-menu-item:hover,
.pwm-menu-item:active {
  background: #f8fafc;
  color: #0284c7;
}

/* Expansão ao passar o mouse ou clicar */
.pwm-credit-badge:hover .pwm-menu-drawer,
.pwm-credit-badge.open .pwm-menu-drawer {
  max-height: 120px;
  opacity: 1;
  padding: 4px 0;
}

.pwm-credit-badge:hover,
.pwm-credit-badge.open {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {

  /* 1. Oculta o menu hambúrguer ao lado da logo no topo */
  .header-actions .menu-toggle,
  .nav-toggle,
  header .menu-icon,
  header button[aria-label*="menu"],
  header button[aria-label*="Menu"],
  .main-header .menu-btn {
    display: none !important;
  }

  /* 1. Centralização perfeita dos botões YouTube e Instagram */
  .main-footer .social-icons,
  .footer-section .social-icons,
  .social-icons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 auto 20px auto !important;
  }

  .footer-social h4 {
    text-align: center !important;
    width: 100% !important;
  }

  body {
    padding-bottom: 0 !important;
  }

  /* Barra inferior 100% fixa */
  .mobile-bottom-nav,
  .bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 56px !important;
    padding: 0 !important;
    z-index: 99999 !important;
    background: rgba(11, 59, 96, 0.98) !important; /* Azul idêntico ao menu superior */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3) !important;
    box-sizing: border-box !important;
  }

  /* Estado padrão dos links da navegação inferior */
  .mobile-bottom-nav a,
  .mobile-bottom-nav .bottom-nav-item,
  .bottom-nav a,
  .bottom-nav .bottom-nav-item,
  .bottom-nav-item {
    color: #94a3b8 !important;
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
  }

  .mobile-bottom-nav a svg,
  .mobile-bottom-nav .bottom-nav-item svg,
  .bottom-nav a svg,
  .bottom-nav .bottom-nav-item svg,
  .bottom-nav-item svg {
    stroke: currentColor !important;
    transition: stroke 0.2s ease, fill 0.2s ease, transform 0.2s ease;
  }

  /* Item ativo: amarelo ouro com destaque */
  .mobile-bottom-nav a.active,
  .mobile-bottom-nav .bottom-nav-item.active,
  .bottom-nav a.active,
  .bottom-nav .bottom-nav-item.active,
  .bottom-nav-item.active {
    color: #fbc02d !important; /* Amarelo da identidade visual */
    font-weight: 800 !important;
  }

  .mobile-bottom-nav a.active svg,
  .mobile-bottom-nav .bottom-nav-item.active svg,
  .bottom-nav a.active svg,
  .bottom-nav .bottom-nav-item.active svg,
  .bottom-nav-item.active svg {
    stroke: #fbc02d !important;
    color: #fbc02d !important;
    transform: translateY(-2px);
    filter: drop-shadow(0 2px 6px rgba(251, 192, 45, 0.45));
  }

  /* Seção Preta Inferior esticada no Mobile */
  .footer-credits-section {
    background-color: #000000 !important;
    width: 100% !important;
    min-height: 140px !important;
    padding: 24px 0 110px 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border: none !important;
  }

  .footer-credits-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }

  /* Botão PWM Digital dentro da seção preta no Mobile */
  .pwm-credit-badge {
    position: static !important;
    transform: none !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 auto !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: auto !important;
    max-width: 90vw !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    overflow: hidden !important;
    transition: box-shadow 0.25s ease !important;
    font-family: inherit !important;
  }

  .pwm-credit-badge:hover,
  .pwm-credit-badge.open {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
  }

  .pwm-badge-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    cursor: pointer !important;
    font-size: 11.5px !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    background: #ffffff !important;
    user-select: none !important;
    white-space: nowrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .pwm-logo-img {
    height: 16px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .pwm-menu-drawer {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.25s ease !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .pwm-credit-badge:hover .pwm-menu-drawer,
  .pwm-credit-badge.open .pwm-menu-drawer {
    max-height: 120px !important;
    opacity: 1 !important;
    padding: 4px 0 !important;
  }

  .pwm-menu-item {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0f2744 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: #ffffff !important;
    white-space: nowrap !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .pwm-menu-item:last-child {
    border-bottom: none !important;
  }

  .pwm-menu-item:hover,
  .pwm-menu-item:active {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
  }

  .main-footer {
    padding-bottom: 0px !important;
    text-align: center !important;
  }

  .footer-bottom {
    margin-bottom: 0px !important;
  }

  /* 4. Ocultar setas de navegação do carrossel no mobile */
  .carousel-prev,
  .carousel-next,
  .radar-arrow,
  .arrow-btn,
  button[class*="arrow"],
  div[class*="arrow"] {
    display: none !important;
  }

  /* 5. Centralização total dos cards de Apostilas Físicas */
  .products-list .product-card {
    text-align: center !important;
    padding: 20px 16px !important;
  }

  .products-list .product-card .card-trigger,
  .products-list .product-card [style*="display: flex"],
  .products-list .product-card [style*="display:flex"] {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 12px !important;
  }

  .products-list .product-card img,
  .products-list .product-card .product-cover {
    margin: 0 auto 8px auto !important;
    display: block !important;
  }

  .products-list .product-card .product-details,
  .products-list .product-card .product-details * {
    text-align: center !important;
  }

  .products-list .product-card .product-price-row {
    justify-content: center !important;
    margin-top: 6px !important;
  }

  .products-list .product-card .btn-ml {
    width: 100% !important;
    margin-top: 14px !important;
  }

  /* 6. Carrossel de botões de filtro no Radar no Mobile */
  .radar-filtros-bar {
    margin-bottom: 1.25rem !important;
  }

  .filtro-chips,
  .radar-filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    gap: 8px !important;
    padding: 6px 2px 14px 2px !important;
    width: 100% !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .filtro-chips::-webkit-scrollbar,
  .radar-filters::-webkit-scrollbar {
    display: none !important;
  }

  .filtro-radar-btn,
  .filter-btn {
    flex-shrink: 0 !important;
    font-size: 13px !important;
    padding: 8px 16px !important;
    white-space: nowrap !important;
  }

  /* 7. Alinhamento da foto e dados do Professor Silvano no Mobile */
  .footer-content {
    padding-bottom: 0 !important;
  }

  .footer-author-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.25rem !important;
    margin-bottom: 0 !important;
  }

  .footer-author-photo {
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: flex-end !important;
  }

  .footer-author-img {
    height: 190px !important;
    margin: 0 auto !important;
    display: block !important;
    vertical-align: bottom !important;
  }

  .footer-brand-info {
    align-items: center !important;
    text-align: center !important;
  }

  .footer-brand-info p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .footer-author-meta {
    align-items: center !important;
    text-align: center !important;
  }
}
/* Leitura e navegação por toque: Hero e materiais. */
.carousel-wrapper, #material-container { touch-action: pan-y pinch-zoom; }
.carousel-slide { flex: 0 0 100%; box-sizing: border-box; min-width: 0; }
.carousel-slide .slide-content { min-width: 0; }
.carousel-slide.layout-full-bg { background-color:#082d49; background-image:linear-gradient(110deg,rgba(5,31,51,.93),rgba(5,31,51,.72)),var(--hero-desktop); }
.carousel-slide .slide-title { overflow-wrap:anywhere; text-wrap:balance; }
.carousel-slide .slide-desc { color:#f1f5f9; line-height:1.6; max-width:60ch; }
.slide-actions { flex-wrap:wrap; gap:12px; }
.slide-actions .btn-outline-white { background:rgba(5,31,51,.5); }
.carousel-slide img, .mat-slide-item img { -webkit-user-drag:none; user-select:none; }
.dot:focus-visible, .mat-dot:focus-visible { outline:3px solid #fff; outline-offset:5px; }
@media(max-width:767px) {
  .carousel-slide.layout-full-bg { background-image:linear-gradient(110deg,rgba(5,31,51,.93),rgba(5,31,51,.78)),var(--hero-mobile,var(--hero-desktop)); }
  .carousel-slide { padding:2rem 1.25rem 3rem; }
  .slide-title { font-size:clamp(1.6rem,7vw,2.2rem); line-height:1.2; }
  .slide-actions { width:100%; }
  .slide-actions .btn { width:100%; min-height:48px; white-space:normal; text-align:center; }
  .carousel-slide.layout-side-image .slide-img { max-height:220px; width:auto; object-fit:contain; }
}
@media(prefers-reduced-motion:reduce) { .carousel-track, .mat-slider-track { transition:none !important; } }

#ytCarouselWrapper { touch-action:pan-y pinch-zoom; cursor:grab; }
#ytCarouselWrapper:active { cursor:grabbing; }
#ytCarouselWrapper:focus-visible { outline:3px solid #0284c7; outline-offset:4px; }
#ytCarouselWrapper img { user-select:none; -webkit-user-drag:none; }

.pwa-install-bar {background:#082d49;color:#fff;padding:12px 0;}
.pwa-install-bar[hidden], #pwaInstallHelp[hidden] {display:none!important;}
.pwa-install-content {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.pwa-install-content strong {display:block;font-size:14px;line-height:1.4;}
.pwa-install-content span {display:block;font-size:12px;color:#dbeafe;margin-top:3px;}
#pwaInstallButton {border:0;border-radius:8px;padding:12px 16px;min-height:44px;background:#fbc02d;color:#082d49;font-weight:700;cursor:pointer;}
#pwaInstallButton:focus-visible {outline:3px solid white;outline-offset:3px;}
#pwaInstallHelp {flex-basis:100%;margin:0;font-size:14px;line-height:1.5;}
@media(max-width:480px){.pwa-install-content>div{flex:1 1 180px;}#pwaInstallButton{font-size:12px;padding:10px 12px;}}
