/* =============================================== */
/* CAROUSEL - Case study carousel */
/* =============================================== */

.carousel {
  position: relative;
  margin-bottom: 3rem;
}

.carousel__container {
  display: flex;
  transition: opacity var(--transition-normal);
  gap: 2rem;
  padding: 1.5rem 0;
}

.carousel__slide {
  flex-shrink: 0;
  width: 100%;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
}

.carousel__slide--active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.carousel__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.carousel__arrow {
  background: none;
  border: 1px solid var(--linea2);
  font-size: 18px;
  color: var(--ocre);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0.8rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0px;
  font-weight: 600;
}

.carousel__arrow:hover:not(:disabled) {
  border-color: var(--ocre);
  background-color: rgba(196, 151, 43, 0.08);
}

.carousel__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: var(--linea);
}

.carousel__bullets {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel__bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--ocre);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.carousel__bullet--active {
  background-color: var(--ocre);
  box-shadow: 0 0 8px rgba(196, 151, 43, 0.3);
}

.carousel__bullet:hover {
  transform: scale(1.3);
}
