/* Tutorial page — videos & blog/articles Swiper carousels */

.ttt-tutorial-videos__carousel,
.ttt-tutorial-articles__carousel {
  position: relative;
  margin-top: 0.5rem;
}

.ttt-tutorial-videos__nav,
.ttt-tutorial-articles__nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.ttt-tutorial-videos__nav-btn,
.ttt-tutorial-articles__nav-btn {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(var(--ttt-tradly-nw1), 0.15);
  background: rgba(var(--ttt-tradly-nb3), 0.6);
  color: rgb(var(--ttt-tradly-nw1));
  cursor: pointer;
  transition: var(--ttt-tradly-transition);
}

.ttt-tutorial-videos__nav-btn:hover,
.ttt-tutorial-videos__nav-btn:focus,
.ttt-tutorial-articles__nav-btn:hover,
.ttt-tutorial-articles__nav-btn:focus {
  border-color: var(--ttt-tradly-p1);
  color: var(--ttt-tradly-p1);
}

.ttt-tutorial-videos__nav-btn.swiper-button-disabled,
.ttt-tutorial-articles__nav-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ttt-tutorial-videos__nav-btn [data-lucide],
.ttt-tutorial-articles__nav-btn [data-lucide] {
  width: 1.25rem;
  height: 1.25rem;
}

.ttt-tutorial-videos-swiper,
.ttt-tutorial-articles-swiper {
  overflow: hidden;
  padding-bottom: 2.75rem;
}

.ttt-tutorial-videos-swiper .swiper-pagination,
.ttt-tutorial-articles-swiper .swiper-pagination {
  bottom: 0;
}

.ttt-tutorial-videos-swiper .swiper-pagination-bullet,
.ttt-tutorial-articles-swiper .swiper-pagination-bullet {
  width: 0.5rem;
  height: 0.5rem;
  background: rgba(var(--ttt-tradly-nw1), 0.35);
  opacity: 1;
}

html[data-theme="light"] .ttt-tutorial-articles-swiper .swiper-pagination-bullet {
  background: rgba(15, 23, 42, 0.25);
}

.ttt-tutorial-videos-swiper .swiper-pagination-bullet-active,
.ttt-tutorial-articles-swiper .swiper-pagination-bullet-active {
  background: var(--ttt-tradly-p1);
  width: 1.5rem;
  border-radius: 999px;
}

.ttt-tutorial-articles__card {
  height: 100%;
}

.ttt-tutorial-articles-swiper .swiper-slide {
  height: auto;
}

.ttt-tutorial-video-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ttt-tutorial-video-card__thumb {
  position: relative;
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgb(var(--ttt-tradly-nb3));
}

.ttt-tutorial-video-card__thumb .video-thumb:focus-visible {
  outline: 2px solid var(--ttt-tradly-p1);
  outline-offset: 3px;
}

.ttt-tutorial-video-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ttt-tutorial-video-card__thumb:has(.video-thumb:hover) .ttt-tutorial-video-card__img,
.ttt-tutorial-video-card__thumb:has(.video-thumb:focus-visible) .ttt-tutorial-video-card__img {
  transform: scale(1.03);
}

.ttt-tutorial-video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: rgb(var(--ttt-tradly-nw1));
  cursor: pointer;
  z-index: 2;
}

.ttt-tutorial-video-card__play svg {
  display: block;
}

.ttt-tutorial-video-card__title {
  margin: 1rem 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: rgb(var(--ttt-tradly-nw1));
}

.ttt-tutorial-video-card__desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ttt-tradly-par1);
  line-height: 1.6;
}

html[data-theme="light"] .ttt-tutorial-videos__nav-btn,
html[data-theme="light"] .ttt-tutorial-articles__nav-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #1e293b;
}

html[data-theme="light"] .ttt-tutorial-video-card__title {
  color: #0f172a;
}

html[data-theme="light"] .ttt-tutorial-video-card__desc {
  color: #64748b;
}

@media (max-width: 767px) {
  .ttt-tutorial-video-card__play {
    width: 3.5rem;
    height: 3.5rem;
  }

  .ttt-tutorial-video-card__play svg {
    width: 26px;
    height: 26px;
  }
}
