/* ====== سکشن How to Join / Order ====== */
/* از متغیرهای رنگی همون main.css استفاده می‌کنیم.  :contentReference[oaicite:2]{index=2} */
.how-join-or-order {
  padding: 32px 0 12px;
}

.hjo-container {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 36px;
}

@media (max-width: 980px) {
  .hjo-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ستون */
.hjo-col {
  display: grid;
  grid-template-rows: auto auto;
  gap: 16px;
}

/* کارت ویدئو */
.video-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  isolation: isolate;
  background: #0e1224;
}

.hjo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* اورلی با تینت اختصاصی هر ستون */
.video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.video-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.tint-expert::before,
.tint-order::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  mix-blend-mode: screen;
  border-radius: inherit;
}

.tint-expert::before { /* سبز - از گرادیان متخصص الهام گرفته */
  background: linear-gradient(90deg, #00FFD1 0%, #19C3B1 100%);
}

.tint-order::before { /* آبی - از گرادیان سفارش الهام گرفته */
  background: linear-gradient(90deg, #2390E6 0%, #1280E2 100%);
}

/* پلی‌باتن */
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  transition: transform .12s ease, opacity .2s ease;
}

.play-btn:hover {
  transform: scale(1.04);
}

.play-btn::before {
  content: "";
  display: block;
  margin-left: 2px;
  border-left: 18px solid #0c0a22;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

/* هنگام پخش: اورلی و دکمه محو شوند */
.video-card.playing .video-overlay {
  opacity: 0;
  transition: opacity .25s ease;
}

.video-card.playing .play-btn {
  opacity: 0;
  pointer-events: none;
}

/* متن زیر هر کارت */
.hjo-text {
  text-align: right;
  color: var(--color-white);
}

.hjo-kicker {
  color: #737A88;
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}

.hjo-title {
  font-size: clamp(22px, 3.1vw, 30px);
  line-height: 1.35;
  margin: 0 0 14px;
  letter-spacing: -0.2px;
  color: #D9D9D9;
}

/* دکمه‌ها: از buttons.css استفاده می‌شود (کلاس‌های expert-btn و order-btn).  :contentReference[oaicite:3]{index=3} */
.expert-btn svg, .order-btn svg {
  width: 18px;
  height: 18px;
}


@media (max-width: 980px) {
    .hjo-title{
        font-size: 30px;
        margin-bottom: 25px;
    }
    .video-card{
        border-radius: 6px;
    }
}
