/* =========================================================
   CARROSSEL FOOTER - VERSÃO ESTÁVEL PARA BLOCKSY
   Estrutura visual semelhante à demo:
   card central + cards laterais menores
   ========================================================= */

.catedra-footer-widget {
  position: relative;
  width: 100%;
  padding: 2rem 0 1rem;
}

.catedra-footer-widget__header {
  margin-bottom: 1.5rem;
}

.catedra-footer-widget__title {
  margin: 0 0 0.5rem;
}

.catedra-footer-widget__divider {
  margin: 0;
  border: 0;
  height: 2px;
  width: 100%;
  background: var(--theme-palette-color-1, #0093dd);
}

/* área geral */
.catedra-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* palco */
.catedra-carousel__stage {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  touch-action: pan-y;
}

/* reset forte contra o tema */
.catedra-carousel__cards,
.catedra-carousel__cards li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.catedra-carousel__cards li::marker {
  content: '' !important;
}

.catedra-carousel__cards {
  position: relative;
  width: 100%;
  height: 460px;
}

/* cada card ocupa o palco central */
.catedra-carousel__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  max-width: 78vw;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  pointer-events: none;
}

/* card visual */
.catedra-info-card {
  position: relative;
  width: 100%;
  min-height: 400px;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 30px rgba(18, 63, 82, 0.22);
}

.catedra-info-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 1;
}

.catedra-info-card__content {
  position: relative;
  z-index: 2;
  min-height: 400px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.catedra-info-card__title {
  margin: 0 0 0.75rem;
  color: #fff !important;
  font-size: clamp(1.65rem, 2vw, 2.3rem);
  line-height: 1.15;
}

.catedra-info-card__text {
  margin: 0 0 1rem;
  color: #fff !important;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 24ch;
}

.catedra-info-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.catedra-info-card__link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* controles */
.catedra-carousel__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.catedra-carousel__button {
  appearance: none;
  border: 1px solid currentColor;
  background: transparent;
  color: currentColor;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  font: inherit;
}

.catedra-carousel__drag-proxy {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

/* responsivo */
@media (max-width: 1024px) {
  .catedra-carousel__stage {
    min-height: 470px;
  }

  .catedra-carousel__cards {
    height: 410px;
  }

  .catedra-carousel__card {
    width: 280px;
    max-width: 78vw;
  }

  .catedra-info-card,
  .catedra-info-card__content {
    min-height: 350px;
  }
}

@media (max-width: 767px) {
  .catedra-carousel__stage {
    min-height: 420px;
  }

  .catedra-carousel__cards {
    height: 360px;
  }

  .catedra-carousel__card {
    width: 240px;
    max-width: 80vw;
  }

  .catedra-info-card,
  .catedra-info-card__content {
    min-height: 300px;
  }

  .catedra-info-card__content {
    padding: 1.5rem 1rem;
  }

  .catedra-info-card__title {
    font-size: 1.45rem;
  }
}