/* =========================================
   UCM — Vitrine (Título + Carrossel + Arrows Desktop)
   ========================================= */

.ucm-vitrine{
  width: 100%;
}

.ucm-course-section{
  margin: 0 0 28px 0;
}

.ucm-course-title{
  margin: 0 0 12px 0;
}

.ucm-empty{
  opacity: .75;
  margin: 6px 0 0 0;
}

/* =========================================
   WRAP do carrossel
   ========================================= */

.ucm-carousel-wrap{
  position: relative;
  width: 100%;
}

/* =========================================
   Carrossel (sem scrollbar visível - FORÇADO)
   ========================================= */

.ucm-carousel{
  display: flex;
  gap: 14px;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 6px 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  /* Firefox */
  scrollbar-width: none !important;

  /* IE/Edge antigo */
  -ms-overflow-style: none !important;

  background: transparent;
}

/* Chrome/Edge/Safari */
.ucm-carousel::-webkit-scrollbar{
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}
.ucm-carousel::-webkit-scrollbar-thumb{ background: transparent !important; }
.ucm-carousel::-webkit-scrollbar-track{ background: transparent !important; }
.ucm-carousel::-webkit-scrollbar-corner{ background: transparent !important; }

.ucm-carousel-item{
  flex: 0 0 auto;
  width: 243px;
  scroll-snap-align: start;
  text-decoration: none;
}

/* Card fixo */
.ucm-card{
  position: relative;
  width: 243px;
  height: 372px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease;
  will-change: transform;
}

.ucm-carousel-item:hover .ucm-card{
  transform: translateY(-8px);
}

.ucm-card-thumb{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Badge (cadeado) */
.ucm-badge{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  z-index: 2;
}

.ucm-badge.locked{ background: rgba(70,65,42,0.85); }
.ucm-badge.unlocked{ background: rgba(44,61,38,0.85); }

/* =========================================
   Arrows abaixo do carrossel (DESKTOP)
   - o estilo base pode ser sobrescrito pelo widget (selectors)
   ========================================= */

.ucm-carousel-arrows{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.ucm-arrow-btn{
  width: 42px;
  height: 42px;

  /* mantém o ícone centralizado SEMPRE */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.35);
  cursor: pointer;
  background: rgba(255,255,255,0.15);
  color: #fff;

  padding: 0; /* widget pode sobrescrever */
  transition: transform .2s ease, background-color .2s ease, opacity .2s ease, border-color .2s ease, color .2s ease;
}

.ucm-arrow-btn span{
  font-size: 22px;
  line-height: 1;
  display: block;
}

.ucm-arrow-btn:hover{
  transform: scale(1.05);
  background: rgba(255,255,255,0.25);
}

.ucm-arrow-btn.is-disabled,
.ucm-arrow-btn:disabled{
  opacity: .3;
  cursor: default;
}

/* Tablet e Mobile: SEM ARROWS */
@media (max-width: 1024px){
  .ucm-carousel-arrows{
    display: none !important;
  }
}

/* =========================================
   Mobile: mostrar 2 cards
   ========================================= */
@media (max-width: 767px){
  .ucm-carousel-item{
    width: calc((100% - 14px) / 2);
  }

  .ucm-card{
    width: 100%;
    height: auto;
    aspect-ratio: 243 / 372;
  }
}