:root {
  --tut-navy: #1F2D66;
  --tut-indigo: #2B1573;
  --tut-violet: #3D2BC7;
  --tut-amber: #F59E0B;
  --tut-ink: #1E2A5E;
  --tut-muted: #5F6788;
  --tut-line: #E4E6EF;
}

.tut-page {
  background: #FFFFFF;
  color: var(--tut-ink);
  font-family: 'Outfit', 'Urbanist', system-ui, sans-serif;
}

.tut-page *,
.tut-page *::before,
.tut-page *::after {
  box-sizing: border-box;
}

.tut-sr {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* ---- hero ---- */
.tut-hero {
  position: relative;
  overflow: hidden;
  background: var(--tut-navy);
  padding: 44px 52px 150px;
}

.tut-hero-rings {
  position: absolute;
  right: -120px;
  top: -180px;
  pointer-events: none;
}

.tut-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tut-hero-inner h1 {
  margin: 0;
  max-width: 760px;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.tut-hero-inner p {
  margin: 0;
  max-width: 620px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 300;
  color: #D5DAF2;
}

/* ---- layout ---- */
.tut-main {
  position: relative;
  z-index: 2;
  margin: -90px auto 64px;
  width: 100%;
  max-width: 1200px;
  padding: 0 24px;
}

.tut-card {
  background: #FFFFFF;
  border-radius: 28px;
  padding: 44px 52px 48px;
  box-shadow: 0 20px 50px rgba(31, 45, 102, 0.14);
}

.tut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* ---- video card ---- */
.tut-vcard {
  border: 1.5px solid var(--tut-line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.tut-vcard:hover {
  border-color: #C4B5FD;
  box-shadow: 0 16px 36px rgba(31, 45, 102, 0.12);
}

.tut-media {
  position: relative;
  width: 100%;
  padding-top: 58%;
  overflow: hidden;
  background: #1F2D66;
}

.tut-thumb-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}

.tut-thumb-btn:focus-visible {
  outline: 3px solid var(--tut-amber);
  outline-offset: -3px;
}

.tut-thumb-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1F2D66;
}

.tut-thumb-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.1);
  transition: background 0.2s ease;
}

.tut-thumb-btn:hover .tut-thumb-bg::after {
  background: rgba(15, 23, 42, 0.22);
}

.tut-thumb-1 {
  background-image: url('../images/tutorials/tutorial-1.png');
}

.tut-thumb-2 {
  background-image: url('../images/tutorials/tutorial-2.png');
}

.tut-thumb-3 {
  background-image: url('../images/tutorials/tutorial-3.png');
}

.tut-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform .2s ease;
}

.tut-thumb-btn:hover .tut-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.tut-play svg {
  margin-left: 3px;
}

.tut-vframe {
  position: absolute;
  inset: 0;
  display: none;
}

.tut-vframe iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Playing state swaps the thumbnail overlay for the lazy-loaded YouTube embed */
.tut-vcard.is-playing .tut-thumb-btn {
  display: none;
}

.tut-vcard.is-playing .tut-vframe {
  display: block;
}

.tut-vbody {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tut-vhead {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tut-vnum {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ECEBFA;
  color: var(--tut-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
}

.tut-vtitle {
  font-size: 17px;
  font-weight: 600;
  color: var(--tut-ink);
  line-height: 1.3;
}

.tut-vsub {
  font-size: 14px;
  font-weight: 300;
  color: var(--tut-muted);
  line-height: 1.5;
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .tut-hero {
    padding: 36px 24px 120px;
  }

  .tut-hero-inner h1 {
    font-size: 38px;
  }

  .tut-card {
    padding: 32px 24px 32px;
  }

  .tut-main {
    margin-top: -80px;
  }
}

