:root {
  --cor-primaria: #0d6efd;
  --cor-secundaria: #6c757d;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

.categorias-nav-scroll {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.categorias-nav-scroll::-webkit-scrollbar {
  height: 4px;
}

.categorias-nav-scroll a:hover {
  color: var(--cor-primaria) !important;
}

.hero-banner {
  position: relative;
  overflow: hidden;
}

.hero-banner .carousel-item {
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-banner-compacto .carousel-item {
  min-height: 300px;
}

.categoria-card {
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.categoria-card i {
  color: var(--cor-primaria);
}

.categoria-card:hover {
  border-color: var(--cor-primaria) !important;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.08);
}

.hero-banner .carousel-caption-custom {
  background: rgba(0, 0, 0, 0.45);
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 600px;
}

.curso-card {
  transition: box-shadow 0.15s ease-in-out;
  border-color: #e3e3e3 !important;
  overflow: hidden;
}

.curso-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
}

.curso-card .card-img-top {
  height: 130px;
  object-fit: cover;
}

.curso-card-titulo {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.curso-card-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  pointer-events: none;
}

.cursos-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x proximity;
}

.curso-card-scroll-item {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

@media (max-width: 575.98px) {
  .curso-card-scroll-item {
    flex-basis: 200px;
  }
}

.progresso-barra {
  height: 8px;
}

.badge-nivel {
  font-size: 0.7rem;
}

.aula-item.ativa {
  background-color: var(--bs-primary-bg-subtle);
  font-weight: 600;
}

.aula-item.concluida i.bi-check-circle-fill {
  color: #198754;
}

@media (max-width: 767.98px) {
  .hero-banner .carousel-item {
    min-height: 320px;
  }
}

@media print {
  .no-print {
    display: none !important;
  }

  .area-impressao {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body {
    background: #fff !important;
  }

  .card {
    border: 1px solid #dee2e6 !important;
    box-shadow: none !important;
  }

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