/* =========================================================================
   مدى التسهيل للتجارة — تنسيقات الصفحات الجديدة
   الأسئلة الشائعة (faq.html) · شروط الأهلية (eligibility-info.html)
   ومقتطف الأسئلة في الصفحة الرئيسية
   ========================================================================= */

:root{
  --pg-ease:cubic-bezier(.22,.9,.32,1);
  --pg-bounce:cubic-bezier(.34,1.4,.64,1);
}

/* =========================================================================
   ترويسة الصفحة
   ========================================================================= */
.page-hero{
  position:relative;overflow:hidden;
  padding:clamp(56px,7vw,104px) 0 clamp(44px,5vw,76px);
  background:radial-gradient(120% 120% at 78% 0%,var(--navy-3) 0%,var(--navy-2) 42%,var(--navy) 100%);
  color:#fff;text-align:center;
}
.page-hero::before,
.page-hero::after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.page-hero::before{
  width:min(760px,90vw);height:min(760px,90vw);left:-16%;top:-52%;
  border:2px solid rgba(127,178,255,.22);
}
.page-hero::after{
  width:min(420px,60vw);height:min(420px,60vw);right:-10%;bottom:-58%;
  background:radial-gradient(circle,rgba(47,111,237,.42),transparent 70%);filter:blur(24px);
}
.page-hero .container{position:relative;z-index:2}
.page-hero .eyebrow{color:var(--gold-light)}
.page-hero-title{
  font-size:clamp(27px,4.4vw,46px);font-weight:800;line-height:1.32;margin-bottom:14px;
  animation:pgUp .8s var(--pg-ease) both;
}
.page-hero-title span{color:var(--gold-light)}
.page-hero-text{
  color:rgba(255,255,255,.84);font-size:clamp(14px,1.4vw,17px);line-height:1.9;
  max-width:660px;margin:0 auto;
  animation:pgUp .8s .1s var(--pg-ease) both;
}
.page-hero-stats{
  display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:26px;
  animation:pgUp .8s .2s var(--pg-ease) both;
}
.phs{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 18px;border-radius:99px;font-size:14px;font-weight:600;
  color:rgba(255,255,255,.86);
  background:rgba(255,255,255,.08);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}
.phs b{color:var(--gold-light);font-weight:800;font-size:16px}
@keyframes pgUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}

/* =========================================================================
   الأسئلة الشائعة — شبكة من عمودين
   ========================================================================= */
.faq-section{position:relative}
.faq-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(14px,1.6vw,20px);
  align-items:start;
}

.faq-item{
  position:relative;
  background:#fff;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-soft);
  overflow:hidden;
  transition:box-shadow .4s var(--pg-ease),transform .4s var(--pg-ease);
}
.faq-item::before{
  content:"";position:absolute;inset-inline-start:0;top:0;bottom:0;width:3px;
  background:linear-gradient(180deg,var(--gold-light),var(--gold));
  transform:scaleY(0);transform-origin:top;
  transition:transform .45s var(--pg-ease);
}
.faq-item:hover{box-shadow:var(--shadow-strong);transform:translateY(-3px)}
.faq-item.is-open{box-shadow:var(--shadow-strong)}
.faq-item.is-open::before{transform:scaleY(1)}

/* السؤال */
.faq-q{
  width:100%;display:flex;align-items:center;gap:12px;
  padding:clamp(15px,1.7vw,20px) clamp(16px,1.8vw,22px);
  text-align:start;cursor:pointer;background:none;border:0;
  font-family:inherit;
}
.faq-num{
  flex:none;font-size:12px;font-weight:800;letter-spacing:.5px;
  color:var(--gold);opacity:.72;direction:ltr;
  min-width:22px;
}
.faq-ic{flex:none;width:34px;height:34px;border-radius:11px}
.faq-ic svg{width:18px;height:18px}
.faq-qt{
  flex:1;font-size:clamp(14px,1.15vw,16px);font-weight:700;color:var(--navy);
  line-height:1.65;
}
.faq-arrow{
  flex:none;width:30px;height:30px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(47,111,237,.10);color:var(--gold);
  transition:transform .45s var(--pg-bounce),background .3s,color .3s;
}
.faq-arrow svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;
  stroke-linecap:round;stroke-linejoin:round}
.faq-q:hover .faq-arrow{background:rgba(47,111,237,.18)}
.faq-item.is-open .faq-arrow{
  transform:rotate(180deg);
  background:linear-gradient(135deg,var(--gold-light),var(--gold));color:#fff;
  box-shadow:0 6px 16px rgba(47,111,237,.35);
}

/* الجواب — ارتداد ناعم عند الفتح */
.faq-a{
  display:grid;grid-template-rows:0fr;
  transition:grid-template-rows .5s var(--pg-ease);
}
.faq-item.is-open .faq-a{grid-template-rows:1fr}
.faq-a-in{overflow:hidden}
.faq-a-in p{
  padding:0 clamp(16px,1.8vw,22px) clamp(16px,1.8vw,20px) clamp(16px,1.8vw,22px);
  margin-inline-start:calc(22px + 34px + 24px);
  color:var(--ink-soft);font-size:clamp(13.5px,1vw,15px);line-height:1.95;
  opacity:0;transform:translateY(-8px);
  transition:opacity .4s .1s var(--pg-ease),transform .45s .1s var(--pg-bounce);
}
.faq-item.is-open .faq-a-in p{opacity:1;transform:none}

/* زر المزيد */
.faq-more{
  display:flex;flex-direction:column;align-items:center;gap:10px;
  margin-top:clamp(28px,3.4vw,46px);
}
.faq-more .btn{position:relative;overflow:hidden}
.faq-more-ar{display:inline-block;font-size:20px;line-height:1;transition:transform .3s var(--pg-ease)}
.faq-more .btn:hover .faq-more-ar{transform:translateX(-5px)}
.faq-more-note{font-size:13.5px;color:var(--ink-soft)}

/* =========================================================================
   صفحة شروط الأهلية
   ========================================================================= */
.ei-section .section-head{margin-bottom:clamp(28px,3.4vw,44px)}

/* الخطوات */
.ei-steps{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(14px,1.6vw,20px);
}
.ei-step{
  position:relative;background:#fff;border-radius:var(--radius-lg);
  padding:clamp(22px,2.4vw,30px) clamp(18px,2vw,24px);
  box-shadow:var(--shadow-soft);text-align:center;
  transition:transform .45s var(--pg-ease),box-shadow .45s var(--pg-ease);
}
.ei-step:hover{transform:translateY(-7px);box-shadow:var(--shadow-strong)}
.ei-step-num{
  position:absolute;top:12px;inset-inline-end:16px;
  font-size:34px;font-weight:800;color:rgba(47,111,237,.12);direction:ltr;line-height:1;
}
.ei-step-ic{width:52px;height:52px;border-radius:16px;margin:0 auto 14px}
.ei-step-ic svg{width:26px;height:26px}
.ei-step h4{font-size:17px;font-weight:800;color:var(--navy);margin-bottom:8px}
.ei-step p{font-size:14px;color:var(--ink-soft);line-height:1.85}

/* ما تحتاجه */
.ei-needs{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:clamp(14px,1.6vw,18px);
}
.ei-need{
  display:flex;align-items:flex-start;gap:14px;
  background:var(--off-white);border-radius:var(--radius-md);
  padding:18px 20px;
  box-shadow:inset 0 0 0 1px var(--line);
  transition:transform .4s var(--pg-ease),box-shadow .4s var(--pg-ease),background .4s;
}
.ei-need:hover{
  background:#fff;transform:translateY(-4px);
  box-shadow:var(--shadow-soft),inset 0 0 0 1px rgba(47,111,237,.2);
}
.ei-need-ic{flex:none;width:44px;height:44px;border-radius:14px}
.ei-need-ic svg{width:22px;height:22px}
.ei-need h4{font-size:15.5px;font-weight:800;color:var(--navy);margin-bottom:5px}
.ei-need p{font-size:13.5px;color:var(--ink-soft);line-height:1.8}

/* الشروط */
.ei-conds{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:clamp(16px,1.8vw,22px);
}
.ei-cond{
  background:#fff;border-radius:var(--radius-lg);
  padding:clamp(22px,2.4vw,30px);
  box-shadow:var(--shadow-soft);
  border-top:3px solid var(--gold);
  transition:transform .45s var(--pg-ease),box-shadow .45s var(--pg-ease);
}
.ei-cond:hover{transform:translateY(-6px);box-shadow:var(--shadow-strong)}
.ei-cond-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.ei-cond-ic{flex:none;width:44px;height:44px;border-radius:14px}
.ei-cond-ic svg{width:22px;height:22px}
.ei-cond-head h4{font-size:16px;font-weight:800;color:var(--navy);line-height:1.6}
.ei-cond ul{display:flex;flex-direction:column;gap:11px}
.ei-cond li{
  display:flex;align-items:flex-start;gap:10px;
  font-size:14.5px;color:var(--ink-soft);line-height:1.85;
}
.ei-tick{
  flex:none;width:22px;height:22px;border-radius:50%;margin-top:3px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(145deg,var(--gold-light),var(--gold));
  box-shadow:0 4px 10px rgba(47,111,237,.3);
}
.ei-tick svg{width:12px;height:12px;fill:none;stroke:#fff;stroke-width:3;
  stroke-linecap:round;stroke-linejoin:round}

/* ملاحظة */
.ei-note{
  display:flex;align-items:flex-start;gap:14px;
  margin-top:clamp(22px,2.6vw,32px);
  padding:20px 22px;border-radius:var(--radius-md);
  background:linear-gradient(135deg,rgba(47,111,237,.07),rgba(127,178,255,.10));
  box-shadow:inset 0 0 0 1px rgba(47,111,237,.18);
}
.ei-note .icon-3d{flex:none;width:40px;height:40px;border-radius:13px}
.ei-note .icon-3d svg{width:20px;height:20px}
.ei-note p{font-size:14px;color:var(--ink-soft);line-height:1.9}
.ei-note b{color:var(--navy)}

/* =========================================================================
   نداء الفعل أسفل الصفحات
   ========================================================================= */
.page-cta{
  margin-top:clamp(34px,4vw,56px);
  text-align:center;
  padding:clamp(30px,3.6vw,48px) clamp(22px,3vw,40px);
  border-radius:var(--radius-lg);
  background:radial-gradient(120% 140% at 50% 0%,var(--navy-3),var(--navy) 70%);
  color:#fff;box-shadow:var(--shadow-strong);
  position:relative;overflow:hidden;
}
.page-cta::after{
  content:"";position:absolute;width:340px;height:340px;border-radius:50%;
  right:-90px;bottom:-160px;
  background:radial-gradient(circle,rgba(47,111,237,.5),transparent 70%);filter:blur(20px);
}
.page-cta>*{position:relative;z-index:2}
.page-cta .icon-3d{width:56px;height:56px;border-radius:18px;margin:0 auto 16px}
.page-cta .icon-3d svg{width:28px;height:28px}
.page-cta h3{font-size:clamp(19px,2.2vw,26px);font-weight:800;margin-bottom:10px}
.page-cta p{color:rgba(255,255,255,.82);font-size:15px;line-height:1.9;
  max-width:520px;margin:0 auto 24px}
.page-cta-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.page-cta .btn-outline-navy{border-color:rgba(255,255,255,.5);color:#fff}
.page-cta .btn-outline-navy:hover{background:rgba(255,255,255,.14);color:#fff}

/* =========================================================================
   قسم الأهلية في الصفحة الرئيسية بعد الاختصار
   ========================================================================= */
.elig-learn{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:14px;margin:6px auto clamp(28px,3.2vw,42px);
}
.elig-learn .btn .ar{display:inline-block;transition:transform .3s var(--pg-ease)}
.elig-learn .btn:hover .ar{transform:translateX(-5px)}
.elig-learn-note{font-size:13.5px;color:var(--ink-soft)}

/* الرابط النشط في القائمة الجانبية */
.nav-link[aria-current="page"]{color:var(--gold-light);background:rgba(47,111,237,.14)}

/* =========================================================================
   الشاشات المتوسطة والجوالات
   ========================================================================= */
@media (max-width:1024px){
  .ei-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:860px){
  .faq-grid{grid-template-columns:1fr}
  .faq-a-in p{margin-inline-start:0}
}

@media (max-width:640px){
  .page-hero{padding:44px 0 36px}
  .page-hero-stats{gap:8px}
  .phs{padding:8px 14px;font-size:13px}
  .ei-steps{grid-template-columns:1fr}
  .faq-q{gap:10px;padding:14px 15px}
  .faq-num{display:none}
  .faq-ic{width:30px;height:30px;border-radius:10px}
  .faq-ic svg{width:16px;height:16px}
  .faq-qt{font-size:14px}
  .faq-arrow{width:26px;height:26px}
  .faq-a-in p{padding:0 15px 15px;font-size:13.5px}
  .ei-note{flex-direction:column;gap:10px}
  .page-cta-actions{flex-direction:column}
  .page-cta-actions .btn{width:100%;justify-content:center}
}

/* =========================================================================
   تقليل الحركة
   ========================================================================= */
@media (prefers-reduced-motion:reduce){
  .page-hero-title,.page-hero-text,.page-hero-stats{animation:none}
  .faq-a{transition:none}
  .faq-a-in p{transition:none;opacity:1;transform:none}
  .faq-arrow{transition:none}
  .ei-step:hover,.ei-need:hover,.ei-cond:hover,.faq-item:hover{transform:none}
}
