/* v1.0.48: original horizontal touch carousel + real desktop mouse dragging.
   Scoped to Treinamentos; original typography, surfaces and responsive grids stay. */
#trilhas-tabs.sef-trails-draggable .animated-tabs-content {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 28px 0;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
#trilhas-tabs.sef-trails-draggable .animated-tabs-content::-webkit-scrollbar { display: none; }
#trilhas-tabs.sef-trails-draggable .animated-tabs-content.sef-is-dragging {
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
  cursor: grabbing;
}
#trilhas-tabs.sef-trails-draggable .animated-tabs-content-panel,
#trilhas-tabs.sef-trails-draggable .animated-tabs-content-panel.active {
  display: grid !important;
  position: relative;
  box-sizing: border-box;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  padding: 0 28px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  animation: none; /* avoids moving the snap target; child reveal animations remain */
}
#trilhas-tabs.sef-trails-draggable .animated-tabs-content-panel .tab-image {
  -webkit-user-drag: none;
  user-select: none;
}
#trilhas-tabs.sef-trails-draggable .animated-tabs-content-panel .tab-text {
  min-width: 0;
}
@media (max-width: 768px) {
  #trilhas-tabs.sef-trails-draggable .animated-tabs-content { gap: 0; }
  #trilhas-tabs.sef-trails-draggable .animated-tabs-content-panel { padding: 0 24px; }
}
@media (orientation: portrait) and (min-width: 641px) and (max-width: 1100px) {
  #trilhas-tabs.sef-trails-draggable .animated-tabs-content-panel { padding: 0 26px; }
}
@media (prefers-reduced-motion: reduce) {
  #trilhas-tabs.sef-trails-draggable .animated-tabs-content { scroll-behavior: auto; }
}
