/* ═══════════════════════════════════════════════════════
   AviationHub — Exam Platform Showcase
═══════════════════════════════════════════════════════ */

.avhub-exam {
  background: #eef2f8;
  font-family: 'Inter', -apple-system, sans-serif;
  padding: 80px 48px;
  overflow: hidden;
}
@media (max-width: 900px) { .avhub-exam { padding: 56px 24px; } }

.avhub-exam-row {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.avhub-exam-row + .avhub-exam-row { margin-top: 96px; }

/* ─ موکاپ‌ها ─ */
.avhub-exam-visual {
  display: flex; align-items: center; justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
}
.avhub-mock-phone { max-width: 78%; height: auto; display: block; filter: drop-shadow(0 30px 50px rgba(15,52,96,.22)); }
.avhub-mock-desktop { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(15,52,96,.25)); }

/* ─ متن معرفی ─ */
.avhub-exam-intro {
  font-size: 15.5px; line-height: 2; color: #2C3E50;
  margin-bottom: 32px;
}
.avhub-exam[dir="rtl"] .avhub-exam-intro { text-align: right; }

/* ─ دکمه‌ها ─ */
.avhub-exam-btns { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.avhub-exam[dir="rtl"] .avhub-exam-btns { flex-direction: row-reverse; justify-content: flex-end; }

.avhub-btn-exam {
  display: inline-flex; align-items: center; justify-content: center;
  background: #1A6ABF; color: #fff !important;
  font-size: 14px; font-weight: 600;
  padding: 14px 32px; border-radius: 8px; text-decoration: none;
  border: 1px solid #1A6ABF;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 6px 18px rgba(26,106,191,.28);
}
.avhub-btn-exam:hover { background: #0F3460; border-color: #0F3460; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,52,96,.32); }

.avhub-btn-video {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
  background: none !important; border: none !important; box-shadow: none !important;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  font-family: inherit; padding: 6px 4px; text-decoration: none;
  vertical-align: middle;
}
.avhub-btn-video-ic {
  flex: 0 0 auto;
  width: 42px; height: 42px; min-width: 42px; max-width: 42px;
  border-radius: 50% !important;
  background: #1A6ABF !important; color: #fff !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(26,106,191,.35);
  transition: transform .2s, box-shadow .2s;
  padding: 0; overflow: visible;
}
.avhub-btn-video-ic svg { display: block; width: 15px; height: 15px; margin-left: 2px; }
.avhub-btn-video:hover .avhub-btn-video-ic { transform: scale(1.08); box-shadow: 0 6px 20px rgba(26,106,191,.5); }
.avhub-btn-video-txt {
  position: relative; white-space: nowrap;
  color: #0F3460 !important; font-size: 14px; font-weight: 600; line-height: 1;
}
.avhub-btn-video-txt::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: #0F3460; transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.avhub-btn-video:hover .avhub-btn-video-txt::after { transform: scaleX(1); }

/* ═══ ردیف ۲ ═══ */
.avhub-exam-row-2 { grid-template-columns: 1fr 1.15fr; }
.avhub-exam-title {
  font-size: clamp(24px, 3vw, 34px); font-weight: 700;
  color: #0F3460; line-height: 1.3; margin-bottom: 16px;
}
.avhub-exam-sub {
  font-size: 14.5px; line-height: 1.9; color: #4A6B8A; margin-bottom: 28px;
}
.avhub-exam[dir="rtl"] .avhub-exam-sub { text-align: right; }

/* کارت‌های شماره‌دار */
.avhub-exam-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.avhub-exam-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid #e3e9f2; border-radius: 14px;
  padding: 18px; box-shadow: 0 4px 14px rgba(15,52,96,.05);
  transition: transform .2s, box-shadow .2s;
}
.avhub-exam[dir="rtl"] .avhub-exam-card { flex-direction: row-reverse; text-align: right; }
.avhub-exam-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(15,52,96,.12); }
.avhub-exam-card-n {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid #cfe0f2; color: #1A6ABF;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.avhub-exam-card-title { font-size: 14px; font-weight: 600; color: #0F3460; margin: 0 0 5px; line-height: 1.3; }
.avhub-exam-card-desc  { font-size: 12.5px; color: #6b829c; margin: 0; line-height: 1.5; }

/* ─ ریسپانسیو ─ */
@media (max-width: 900px) {
  .avhub-exam-row, .avhub-exam-row-2 { grid-template-columns: 1fr; gap: 40px; }
  .avhub-exam-row + .avhub-exam-row { margin-top: 64px; }
  .avhub-mock-phone { max-width: 62%; }
  .avhub-exam-cards { grid-template-columns: 1fr; gap: 12px; }
  /* در موبایل موکاپ لپ‌تاپ بالای متن، گوشی بالای متن */
  .avhub-exam-visual { order: -1; }

  /* کارت‌ها مینیمال و جمع‌وجور — عنوان‌ها در موبایل کوچک‌تر
     (قالب Hello Elementor به h3 اندازه‌ی بزرگ می‌دهد؛ اینجا خنثی می‌شود) */
  .avhub-exam-card {
    padding: 16px 18px !important;
    gap: 14px !important;
    border-radius: 14px !important;
  }
  .avhub-exam-card-n {
    width: 30px !important; height: 30px !important;
    font-size: 11px !important; flex-shrink: 0;
  }
  .avhub-exam-card-title {
    font-size: 15px !important; line-height: 1.25 !important;
    margin: 0 0 3px !important; font-weight: 600 !important;
  }
  .avhub-exam-card-desc {
    font-size: 12px !important; line-height: 1.4 !important;
  }
  /* عنوان اصلی بخش هم کمی جمع‌تر */
  .avhub-exam-title { font-size: 24px !important; line-height: 1.25 !important; }
  .avhub-exam-sub { font-size: 13.5px !important; }
}

/* ─ Reveal (GSAP یا CSS fallback) ─ */
.avhub-reveal { opacity: 0; transform: translateY(28px); }
.no-gsap .avhub-reveal,
.avhub-reveal.is-in { opacity: 1; transform: translateY(0); transition: opacity .7s ease, transform .7s cubic-bezier(.4,0,.2,1); }

/* ─ مودال ویدیو ─ */
.avhub-video-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; }
.avhub-video-modal[hidden] { display: none; }
.avhub-video-backdrop { position: absolute; inset: 0; background: rgba(7,20,40,.82); backdrop-filter: blur(6px); animation: avhubVbIn .25s ease both; }
@keyframes avhubVbIn { from { opacity: 0; } to { opacity: 1; } }
.avhub-video-box {
  position: relative; z-index: 1; width: min(90vw, 900px); aspect-ratio: 16/9;
  background: #000; border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
  animation: avhubVbRise .32s cubic-bezier(.4,0,.2,1) both;
}
@keyframes avhubVbRise { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.avhub-video-el { width: 100%; height: 100%; display: block; }
.avhub-video-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: none; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.avhub-video-close:hover { background: rgba(0,0,0,.75); }

@media (prefers-reduced-motion: reduce) {
  .avhub-reveal { opacity: 1; transform: none; }
}

/* ─ راست‌چینی کامل نسخه‌ی فارسی ─ */
.avhub-exam[dir="rtl"] { text-align: right; }
.avhub-exam[dir="rtl"] .avhub-exam-title,
.avhub-exam[dir="rtl"] .avhub-exam-card-title,
.avhub-exam[dir="rtl"] .avhub-exam-card-desc { text-align: right; }
.avhub-exam[dir="rtl"] .avhub-exam-text,
.avhub-exam[dir="rtl"] .avhub-exam-info { direction: rtl; }

/* ═══════════════════════════════════════════════════════
   بازطراحی متن‌ها و کارت‌های بخش آزمون
   (هماهنگ‌سازی تایپوگرافی با بقیه‌ی سایت + ظاهر تمیزتر کارت‌ها)
═══════════════════════════════════════════════════════ */

/* — تایپوگرافی هماهنگ — */
.avhub-exam .avhub-exam-intro {
  font-size: 15px !important;
  line-height: 1.85 !important;
  color: #46617f !important;
  font-weight: 400 !important;
  letter-spacing: -.003em !important;
  margin-bottom: 28px !important;
}
.avhub-exam .avhub-exam-title {
  font-size: clamp(22px, 2.6vw, 30px) !important;
  font-weight: 600 !important;
  letter-spacing: -.02em !important;
  line-height: 1.28 !important;
  color: #0F3460 !important;
  margin-bottom: 14px !important;
}
.avhub-exam .avhub-exam-sub {
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: #5b7794 !important;
  margin-bottom: 26px !important;
}

/* — کارت‌های شماره‌دار: تمیز، هم‌ارتفاع، بدون شلوغی — */
.avhub-exam .avhub-exam-cards {
  gap: 12px !important;
}
.avhub-exam .avhub-exam-card {
  align-items: center !important;
  gap: 13px !important;
  padding: 15px 16px !important;
  border-radius: 12px !important;
  border: 1px solid #e6ecf4 !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(15,52,96,.045) !important;
  transition: transform .22s cubic-bezier(.4,0,.2,1),
              box-shadow .22s cubic-bezier(.4,0,.2,1),
              border-color .22s !important;
}
.avhub-exam .avhub-exam-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 22px rgba(15,52,96,.11) !important;
  border-color: #cfdcec !important;
}
/* شماره: مربع گرد با ته‌رنگ برند (به‌جای دایره‌ی توخالی) */
.avhub-exam .avhub-exam-card-n {
  width: 32px !important; height: 32px !important;
  min-width: 32px !important;
  border-radius: 9px !important;
  background: #eef4fc !important;
  border: none !important;
  color: #1A6ABF !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.avhub-exam .avhub-exam-card-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #0F3460 !important;
  letter-spacing: -.01em !important;
  line-height: 1.25 !important;
  margin: 0 0 3px !important;
}
.avhub-exam .avhub-exam-card-desc {
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #7a8fa6 !important;
  margin: 0 !important;
}
