/* টিউটোরিয়াল পেজ */

.tut-wrap { max-width: 1040px; }

.tut-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.tut-head h1 { margin: 0 0 6px; font-size: 27px; letter-spacing: -.02em; }
.tut-head .sub { margin: 0; max-width: 58ch; font-size: 13px; line-height: 1.8; color: var(--muted); }

.tut-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  min-width: 260px;
}

.tut-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); }
.tut-search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.tut-search input { border: 0; outline: none; font: inherit; font-size: 13px; width: 100%; background: transparent; color: var(--ink); }

.tut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.tut-card {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 32px -28px rgba(11, 23, 45, .5);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
}

.tut-card:hover { transform: translateY(-2px); border-color: rgba(37, 99, 235, .35); box-shadow: 0 20px 40px -28px rgba(11, 23, 45, .55); }

.tut-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e9eef8 center/cover no-repeat;
}

.tut-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 15, 28, .55));
}

.tut-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: grid;
  place-items: center;
  color: #1d4ed8;
  font-size: 18px;
  z-index: 1;
  box-shadow: 0 6px 18px rgba(8, 15, 28, .3);
}

.tut-body { display: block; padding: 13px 15px 15px; }
.tut-body h3 { margin: 0; font-size: 13.5px; line-height: 1.6; font-weight: 600; }
.tut-body small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }

.tut-empty { text-align: center; padding: 60px 20px 70px; }
.tut-empty-icon { width: 62px; height: 62px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 18px; background: rgba(37, 99, 235, .08); color: var(--blue); }
.tut-empty-icon svg { width: 30px; height: 30px; }
.tut-empty h2 { margin: 0 0 8px; font-size: 17px; }
.tut-empty p { margin: 0 auto; max-width: 46ch; font-size: 13px; line-height: 1.8; color: var(--muted); }
.tut-empty a { color: var(--blue); text-decoration: none; }

#tut-dialog {
  width: min(920px, 94vw);
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: #0b1220;
  color: #fff;
  overflow: hidden;
}

#tut-dialog::backdrop { background: rgba(6, 10, 18, .7); }

.tut-player-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.tut-player-head h2 { margin: 0; font-size: 14.5px; font-weight: 600; }

.tut-close {
  border: 0;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.tut-close:hover { background: rgba(255, 255, 255, .2); }

.tut-player { aspect-ratio: 16 / 9; background: #000; }
.tut-player iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 640px) {
  .tut-head h1 { font-size: 22px; }
  .tut-search { width: 100%; min-width: 0; }
  .tut-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tut-body { padding: 10px 11px 12px; }
  .tut-body h3 { font-size: 12px; }
  .tut-play { width: 42px; height: 42px; font-size: 15px; }
}

@media (max-width: 420px) {
  .tut-grid { grid-template-columns: 1fr; }
}
