/* Carousel dùng chung — ảnh hoạt động + video feedback (09/09/2026) */
.rk-carousel { max-width: 760px; margin-inline: auto; }
.rk-carousel--video { max-width: 640px; }

.rk-carousel__frame { position: relative; }
.rk-carousel__viewport { overflow: hidden; border-radius: 18px; }
.rk-carousel__track { display: flex; transition: transform .5s ease; }
.rk-carousel__slide { flex: 0 0 100%; min-width: 0; margin: 0; }

.rk-carousel--activity .rk-carousel__slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.rk-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(10, 10, 13, .65);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 2;
  touch-action: manipulation;
}
.rk-carousel__arrow:hover { background: rgba(136, 92, 246, .8); }
.rk-carousel__arrow:focus-visible,
.rk-carousel__dot:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.rk-carousel__arrow--prev { left: 10px; }
.rk-carousel__arrow--next { right: 10px; }

.rk-carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.rk-carousel__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .22);
  transition: background .3s, transform .3s;
  touch-action: manipulation;
}
.rk-carousel__dot.is-active { background: #9f7afa; transform: scale(1.3); }

@media (max-width: 620px) {
  .rk-carousel__arrow { width: 44px; height: 44px; font-size: 20px; }
  .rk-carousel__arrow--prev { left: 6px; }
  .rk-carousel__arrow--next { right: 6px; }
  .rk-carousel__dots {
    max-width: 308px;
    margin: 4px auto 0;
    gap: 0;
    flex-wrap: wrap;
  }
  .rk-carousel__dot {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    background: transparent;
    transition: none;
  }
  .rk-carousel__dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    transform: translate(-50%, -50%);
    transition: background .3s, transform .3s;
  }
  .rk-carousel__dot.is-active { background: transparent; transform: none; }
  .rk-carousel__dot.is-active::before {
    background: #9f7afa;
    transform: translate(-50%, -50%) scale(1.3);
  }
}
