/* ─── TutorialsSection ────────────────────────────────────────────────────── */

.new-landing-tutorials-section {
  background-color: white;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

#tutPlayIcon { display: none; }
#tutTogglePause.is-paused #tutPauseIcon { display: none; }
#tutTogglePause.is-paused #tutPlayIcon { display: block; }

/* Title */
.new-landing-tutorials-section__title {
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -2.88px;
  color: #282834;
  text-align: center;
  max-width: 968px;
  padding: 0 24px;
  font-feature-settings: 'salt', 'calt' 0;
  transition: opacity 0.25s ease;
  margin: 0;
}


/* Carousel */
.new-landing-tutorials-section__carousel {
  width: 100%;
  overflow: hidden;
  transition: opacity 0.25s ease;
  margin: -24px 0;
}

.new-landing-tutorials-section__track {
  display: flex;
  gap: 8px;
  width: max-content;
  will-change: transform;
  padding: 24px 0;
}

/* Card */
.new-landing-tutorials-section__card {
  width: 356px;
  height: 212px;
  background: #E7E9F3;
  border: none;
  border-radius: 20px;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.new-landing-tutorials-section__card img,
.new-landing-tutorials-section__card svg,
.new-landing-tutorials-section__card span,
.new-landing-tutorials-section__card p,
.new-landing-tutorials-section__card div {
  pointer-events: none;
}

.new-landing-tutorials-section__control-btn svg,
.new-landing-tutorials-section__player-close svg,
.new-landing-tutorials-section__player-play svg {
  pointer-events: none;
}

.new-landing-tutorials-section__card:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 12px rgba(40, 40, 52, 0.1);
  z-index: 1;
}

.new-landing-tutorials-section__card--push-left {
  transform: translateX(-7px);
}

.new-landing-tutorials-section__card--push-right {
  transform: translateX(7px);
}

/* Card image + overlay */
.new-landing-tutorials-section__card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.new-landing-tutorials-section__card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(40, 40, 52, 0.5);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.new-landing-tutorials-section__card:hover .new-landing-tutorials-section__card-img,
.new-landing-tutorials-section__card:hover .new-landing-tutorials-section__card-overlay {
  opacity: 1;
}

/* Card top */
.new-landing-tutorials-section__card-top {
  position: relative;
  z-index: 1;
  padding: 24px 48px 0 24px;
}

.new-landing-tutorials-section__card-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: #282834;
  margin: 0;
  transition: color 0.35s ease;
}

.new-landing-tutorials-section__card > .new-landing-tutorials-section__card-title {
  position: relative;
  z-index: 1;
  padding: 24px 48px 0 24px;
}

.new-landing-tutorials-section__card:hover .new-landing-tutorials-section__card-title {
  color: white;
}

/* Card bottom */
.new-landing-tutorials-section__card-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 12px 12px;
}

.new-landing-tutorials-section__play-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.35s ease, width 0.35s ease, height 0.35s ease;
}

.new-landing-tutorials-section__play-btn img {
  width: 24px;
  height: 24px;
}

.new-landing-tutorials-section__card:hover .new-landing-tutorials-section__play-btn {
  width: 48px;
  height: 48px;
  background-color: white;
}

.new-landing-tutorials-section__card-time {
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  color: #282834;
  transition: color 0.35s ease;
}

.new-landing-tutorials-section__card:hover .new-landing-tutorials-section__card-time {
  color: white;
}

/* Controls */
.new-landing-tutorials-section__controls-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  transition: opacity 0.25s ease;
}

.new-landing-tutorials-section__controls {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e9f1ff;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.new-landing-tutorials-section__control-btn {
  width: 48px;
  height: 40px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: #e9f1ff;
  color: #4850E5;
  transition: background-color 0.2s ease;
}

.new-landing-tutorials-section__control-btn:hover {
  background-color: #DEE9FF;
}

.new-landing-tutorials-section__control-btn:active {
  background-color: #C6D8FF;
}

/* Player open state */
.new-landing-tutorials-section--player-open {
  overflow: visible;
  min-height: 600px;
}

.new-landing-tutorials-section--player-open .new-landing-tutorials-section__title,
.new-landing-tutorials-section--player-open .new-landing-tutorials-section__carousel,
.new-landing-tutorials-section--player-open .new-landing-tutorials-section__controls-wrapper {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Player overlay */
.new-landing-tutorials-section__player {
  display: none;
  position: absolute;
  inset: 0;
  background-color: white;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  z-index: 10;
  border-radius: 20px;
  cursor: none;
  padding: 40px 24px;
  box-sizing: border-box;
}

.new-landing-tutorials-section--player-open .new-landing-tutorials-section__player {
  display: flex;
  opacity: 0;
  animation: tutFadeIn 0.35s ease forwards;
}

.new-landing-tutorials-section__player-title {
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -2.88px;
  color: #282834;
  text-align: center;
  text-wrap: balance;
  margin: 0;
  font-feature-settings: 'salt' 1, 'calt' 0;
}

.new-landing-tutorials-section__player-card {
  width: 100%;
  max-width: 656px;
  aspect-ratio: 656 / 376;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  will-change: transform;
  transform-origin: center center;
  cursor: default;
  flex-shrink: 0;
}

.new-landing-tutorials-section__player-card--animating {
  transition: transform 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

.new-landing-tutorials-section__player-thumb,
.new-landing-tutorials-section__player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #282834;
}

.new-landing-tutorials-section__player-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background-color 0.2s ease;
  padding-left: 4px;
}

.new-landing-tutorials-section__player-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}

.new-landing-tutorials-section__player-actions-mobile {
  display: none;
}

/* Close button (follows cursor on desktop)
   Selector chains both classes so it always wins over shared.css's
   .landing-icon-btn (40x40 transparent round) regardless of CSS load order. */
.new-landing-tutorials-section__player-close.landing-icon-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #282834;
  border: none;
  color: white;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 20;
  pointer-events: none;
}

.new-landing-tutorials-section__player-close svg path {
  stroke: white;
}

.new-landing-tutorials-section__player:hover .new-landing-tutorials-section__player-close {
  opacity: 1;
}

.new-landing-tutorials-section__player-card:hover ~ .new-landing-tutorials-section__player-close {
  opacity: 0;
}

/* Desktop >= 1280 */
@media (min-width: 1280px) {
  .new-landing-tutorials-section {
    padding: 120px 0;
  }
}

@keyframes tutFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── Mobile (max-width: 767px) ──────────────────────────────────────────── */

@media only screen and (max-width: 767px) {
  .new-landing-tutorials-section {
    gap: 40px;
    padding: 80px 0;
  }

  .new-landing-tutorials-section__control-btn {
    width: 32px;
    height: 32px;
  }

  .new-landing-tutorials-section__title {
    font-size: 32px;
    letter-spacing: -1.28px;
    max-width: 302px;
    padding: 0 16px;
  }

  .new-landing-tutorials-section__card {
    width: 260px;
    height: 160px;
  }

  .new-landing-tutorials-section__card-top {
    padding: 16px 32px 0 16px;
  }

  .new-landing-tutorials-section__card-title {
    font-size: 16px;
    line-height: 20px;
  }

  .new-landing-tutorials-section__card-bottom {
    padding: 0 16px 12px 8px;
  }

  .new-landing-tutorials-section__play-btn {
    width: 36px;
    height: 36px;
  }

  .new-landing-tutorials-section__play-btn img {
    width: 20px;
    height: 20px;
  }

  .new-landing-tutorials-section__card:hover .new-landing-tutorials-section__play-btn {
    width: 44px;
    height: 44px;
  }

  .new-landing-tutorials-section__card-time {
    font-size: 14px;
  }

  .new-landing-tutorials-section__player-title {
    font-size: 32px;
    letter-spacing: -1.28px;
  }

  .new-landing-tutorials-section__player {
    position: fixed;
    inset: 0;
    border-radius: 0;
    z-index: 1000;
    padding: 80px 24px 40px;
    cursor: auto;
    gap: 32px;
    pointer-events: none;
  }

  .new-landing-tutorials-section__player-card,
  .new-landing-tutorials-section__player-actions-mobile {
    pointer-events: auto;
  }

  .new-landing-tutorials-section__player-close {
    display: none;
  }

  .new-landing-tutorials-section__player-actions-mobile {
    display: flex;
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px;
    border: 1px solid #e9f1ff;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.1);
  }
}

/* ─── Tablet (768px – 1024px) ──────────────────────────────────────────── */

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .new-landing-tutorials-section {
    padding: 48px 0;
    gap: 32px;
  }

  .new-landing-tutorials-section__title {
    font-size: 48px;
    letter-spacing: -1.92px;
    max-width: 656px;
  }

  .new-landing-tutorials-section__card {
    width: 300px;
    height: 188px;
  }

  .new-landing-tutorials-section__card-top {
    padding: 20px 40px 0 20px;
  }

  .new-landing-tutorials-section__card-title {
    font-size: 18px;
    line-height: 22px;
  }

  .new-landing-tutorials-section__player-title {
    font-size: 48px;
    letter-spacing: -1.92px;
  }

  .new-landing-tutorials-section__player {
    position: fixed;
    inset: 0;
    border-radius: 0;
    z-index: 1000;
    padding: 80px 32px 40px;
    cursor: auto;
    gap: 40px;
    pointer-events: none;
  }

  .new-landing-tutorials-section__player-card,
  .new-landing-tutorials-section__player-actions-mobile {
    pointer-events: auto;
  }

  .new-landing-tutorials-section__player-close {
    display: none;
  }

  .new-landing-tutorials-section__player-actions-mobile {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px;
    border: 1px solid #e9f1ff;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.1);
  }
}
