/* Alvo Revalida – Provas em carrossel (estilo Netflix) + barra de atalhos agrupada */

.exam-section { scroll-margin-top: 180px; margin-bottom: 28px !important; }
.exam-section .section-header { margin-bottom: 12px !important; }

/* Carrossel */
.nfx-wrap { position: relative; }
.nfx-wrap .exams-grid {
  display: flex !important; grid-template-columns: none !important;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  gap: 16px !important; padding: 6px 4px 14px !important; scrollbar-width: none;
}
.nfx-wrap .exams-grid::-webkit-scrollbar { display: none; }
.nfx-wrap .exam-card {
  flex: 0 0 205px !important; width: 205px !important;
  scroll-snap-align: start; transition: transform .2s, box-shadow .2s;
}
.nfx-wrap .exam-card:hover { transform: scale(1.04); box-shadow: 0 12px 28px rgba(10,30,70,.25); z-index: 2; }

.nfx-btn {
  position: absolute; top: 0; bottom: 14px; width: 48px; border: 0; cursor: pointer;
  z-index: 5; font-size: 30px; color: #fff; opacity: 0; transition: opacity .2s;
}
.nfx-wrap:hover .nfx-btn { opacity: 1; }
.nfx-btn.l { left: -8px;  background: linear-gradient(90deg, rgba(12,30,62,.85), transparent); border-radius: 12px 0 0 12px; }
.nfx-btn.r { right: -8px; background: linear-gradient(270deg, rgba(12,30,62,.85), transparent); border-radius: 0 12px 12px 0; }
.nfx-btn[hidden] { display: none; }

/* "Ver todas" */
.nfx-actions { display: flex; align-items: center; gap: 12px; }
.nfx-all { font-size: 14px; font-weight: 600; color: #0ea5c6; cursor: pointer; background: none; border: 0; }
.nfx-all:hover { text-decoration: underline; }
.nfx-expanded .exams-grid { flex-wrap: wrap; overflow: visible; }
.nfx-expanded .nfx-btn { display: none; }

/* Barra de atalhos fixa */
#nfx-nav {
  position: sticky; top: 70px; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid #e3e8f0; box-shadow: 0 4px 12px rgba(0,0,0,.05);
  padding: 8px 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
}
#nfx-nav .grp {
  display: flex; align-items: center; flex-wrap: wrap; gap: 3px;
  padding: 3px 4px 3px 10px; border-radius: 999px; background: #f5f7fb; border: 1px solid #e3e8f0;
}
#nfx-nav .grp b {
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: #6b7a93; margin-right: 2px; white-space: nowrap;
}
#nfx-nav a {
  padding: 5px 9px; border-radius: 999px; background: #eef2f8; color: #12294d;
  font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: .15s;
}
#nfx-nav a:hover { background: #dbe5f3; }
#nfx-nav a.on { background: #12294d; color: #fff; }

/* Celular: barra rola para o lado em vez de ocupar várias linhas */
@media (max-width: 768px) {
  #nfx-nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  #nfx-nav::-webkit-scrollbar { display: none; }
  #nfx-nav .grp { flex: 0 0 auto; flex-wrap: nowrap; }
  .nfx-wrap .exam-card { flex-basis: 66vw !important; width: 66vw !important; }
  .nfx-btn { display: none; }
}
