/* =========================================================
   جمعية سياسات الصحة العامة — أنماط الصفحات الداخلية (تُكمّلها phps.css)
   الألوان الأساسية معرّفة كمتغيرات CSS في includes/header.php
   ========================================================= */

:root{
  --muted:#5a6b80;
  --muted-light:#8b9bb0;
  --teal-light:#f3e9e2;
  --line:#e3e8ee;
  --bg-soft:#f6f9fb;
  --white:#ffffff;
}

*{box-sizing:border-box;margin:0;padding:0;}

/* Cairo في كل مكان — العناصر التالية لا ترث الخطّ من body تلقائياً
   في المتصفّحات، فتُفرَض عليها صراحةً. */
html,body,input,button,select,textarea,optgroup,
h1,h2,h3,h4,h5,h6,p,span,a,li,td,th,label,legend{
  font-family:"Cairo",'Segoe UI',Tahoma,sans-serif;
}

body{
  font-family:"Cairo",'Segoe UI',Tahoma,sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
a{text-decoration:none;color:inherit;}
img{max-width:100%;display:block;}
ul{list-style:none;}
.container{max-width:1160px;margin:0 auto;padding:0 24px;}
.eyebrow{
  display:inline-block;font-size:13.5px;font-weight:800;color:var(--teal);
  letter-spacing:.5px;margin-bottom:10px;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;align-items:center;gap:8px;padding:13px 26px;border-radius:12px;
  font-weight:800;font-size:14px;transition:transform .25s ease, box-shadow .25s ease;
}
.btn-dark{background:var(--ink);color:#fff;}
.btn-dark:hover{background:var(--navy-mid);transform:translateY(-2px);}
.btn-outline{border:1.5px solid var(--line);color:var(--ink);}

/* ===== Header / Nav ===== */
.site-header{
  border-bottom:1px solid var(--line);padding:16px 0;position:sticky;top:0;z-index:40;
  background:rgba(255,255,255,.92);backdrop-filter:blur(8px);
}
.nav-row{display:flex;align-items:center;justify-content:space-between;gap:20px;}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;font-size:16px;}
.brand-logo{height:38px;width:auto;}
.nav-links{display:flex;gap:26px;font-weight:700;font-size:14px;color:var(--muted);}
.nav-links a:hover{color:var(--teal);}

/* ===== Hero ===== */
.hero-carousel{
  position:relative;overflow:hidden;min-height:400px;display:flex;align-items:center;
  background:linear-gradient(115deg,#06263c 0%,#0a3a58 48%,#0e5470 100%);color:#fff;
}

/* شبكة تقنية متحرّكة — طبقة خلف المحتوى */
.hero-net{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:0;}
/* حجاب متدرّج: داكن حيث النصّ، شفّاف حيث الشبكة — فتبقى الكتابة مقروءة */
.hero-veil{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(270deg, rgba(6,38,60,.72) 0%, rgba(6,38,60,.34) 46%, rgba(6,38,60,.04) 100%);
}
/* المحتوى فوق الطبقتين */
.hero-track{display:flex;width:100%;position:relative;z-index:2;}
.carousel-arrow,.hero-dots{z-index:3;}

/* الشريحة ذات الصورة تخفي الشبكة — فلا تتزاحمان */
.hero-slide.has-bg{position:relative;z-index:2;}
.hero-slide{min-width:100%;padding:62px 0;position:relative;}

/* خلفية الشريحة — صورة اختيارية فوق التدرّج اللوني.
   الطبقة الداكنة تضمن قراءة النصّ مهما كانت الصورة فاتحة. */
.hero-slide.has-bg{
  background-size:cover;background-position:center;background-repeat:no-repeat;
}
.hero-slide.has-bg::before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(160deg,rgba(11,31,59,.86),rgba(4,72,105,.72));
}
.hero-slide.has-bg > .container{position:relative;z-index:2;}
.hero-slide.has-bg h1,
.hero-slide.has-bg p{text-shadow:0 2px 18px rgba(0,0,0,.45);}
.hero-slide h1{font-size:38px;font-weight:900;line-height:1.35;max-width:760px;margin-bottom:20px;}
.hero-slide h1 .highlight{color:var(--teal);}
.hero-slide p{font-size:16px;color:#c7d0dd;max-width:560px;margin-bottom:26px;}
.carousel-arrow{
  position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);color:#fff;font-size:20px;cursor:pointer;
}
.arrow-prev{right:20px;} .arrow-next{left:20px;}
.carousel-dots{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);display:flex;gap:8px;}
.carousel-dots .dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.35);}

/* ===== Trust / Partners ===== */
.trust-row{padding:50px 0;border-bottom:1px solid var(--line);}
.trust-label{text-align:center;font-weight:800;font-size:14px;color:var(--muted);margin-bottom:24px;;margin-bottom:26px}
.trust-logos{
  display:flex;align-items:center;justify-content:center;
  gap:52px;flex-wrap:wrap;
}
.trust-item{
  height:56px;display:flex;align-items:center;justify-content:center;
  font-weight:800;color:var(--ink);transition:transform .25s;
}
.trust-item:hover{ transform:scale(1.06); }
.trust-item img{height:56px;width:auto;object-fit:contain;max-width:180px;}

@media(max-width:768px){
  .trust-logos{ gap:30px; }
  .trust-item,.trust-item img{ height:44px; }
}

/* ===== About ===== */
.about{padding:100px 0;}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;}
.about-text h2{font-size:30px;font-weight:900;margin:8px 0 16px;}
.about-text p{color:var(--muted);font-size:15.5px;}
.vmg-compact{display:grid;gap:18px;}
.vmg-card{background:var(--bg-soft);border-radius:16px;padding:26px;}
.vmg-card h4{font-size:16px;margin-bottom:8px;}
.vmg-card p{font-size:13.5px;color:var(--muted);}

/* ===== Capabilities / Stats ===== */
.capabilities{padding:100px 0;background:var(--bg-soft);border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.cap-head{max-width:600px;margin:0 auto 54px;text-align:center;}
.cap-head h2{font-size:32px;font-weight:900;}
.cap-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.cap-item{
  position:relative;overflow:hidden;background:#fff;border-radius:18px;padding:34px 26px;
  text-align:center;border:1px solid var(--line);box-shadow:0 10px 24px rgba(11,31,59,.05);
  transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.cap-item:hover{transform:translateY(-6px);box-shadow:0 20px 40px rgba(11,31,59,.12);border-color:var(--teal);}
.cap-icon{
  width:46px;height:46px;border-radius:12px;margin:0 auto 16px;background:var(--teal-light);color:var(--teal);
  font-size:20px;display:flex;align-items:center;justify-content:center;
}
.cap-item .big{font-size:34px;font-weight:900;}
.cap-item .lbl{font-size:13.5px;font-weight:700;color:var(--muted);margin-top:8px;}

/* ===== Services (Bento) ===== */
.services-pro{position:relative;padding:100px 0;background:var(--bg-soft);}
.services-bento{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;margin-top:54px;}
.svc-card{
  position:relative;overflow:hidden;border-radius:18px;background:#fff;border:1.5px solid var(--line);
  padding:26px 22px;text-align:center;box-shadow:0 10px 24px rgba(11,31,59,.05);
  transition:transform .3s ease, border-color .3s ease;
}
.svc-card:hover{transform:translateY(-6px);border-color:var(--teal);}
.svc-card.featured{border-color:var(--teal);box-shadow:0 16px 34px rgba(15,124,123,.16);}
.svc-ribbon{position:absolute;top:14px;left:auto;right:14px;font-size:11px;font-weight:800;color:#fff;padding:6px 12px;border-radius:999px;background:linear-gradient(135deg,var(--teal),var(--sky));}
.svc-icon-wrap{width:78px;height:78px;margin:4px auto 18px;border-radius:50%;background:var(--teal-light);display:flex;align-items:center;justify-content:center;}
.svc-icon{width:52px;height:52px;border-radius:50%;font-size:22px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--teal),var(--sky));color:#fff;}
.svc-card h4{font-size:16px;font-weight:800;margin-bottom:8px;}
.svc-card p{font-size:12.5px;color:var(--muted);line-height:1.7;margin-bottom:18px;min-height:52px;}
.svc-link{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:800;color:var(--teal);}
.svc-link .arrow{width:22px;height:22px;border-radius:50%;background:var(--ink);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;}

/* ===== Membership ===== */
.membership-pro{padding:100px 0;background:var(--bg-soft);}
/* شبكة تتمركز مهما كان عدد الباقات — عمود أو اثنان أو ثلاثة */
.mem-grid-pro{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,340px));
  gap:26px;margin-top:54px;justify-content:center;align-items:stretch;
}
/* البطاقة عمود مرن — فالزرّ ينزل لأسفل وتتساوى الارتفاعات */
.mem-card-pro{
  position:relative;background:#fff;border-radius:22px;padding:36px 30px;
  border:1px solid var(--line);box-shadow:0 10px 26px rgba(11,31,59,.06);
  display:flex;flex-direction:column;
}
.mem-check-list{flex:1;}
.mem-card-pro.featured{background:linear-gradient(165deg,var(--ink),var(--navy-mid));color:#fff;border:none;box-shadow:0 24px 50px rgba(4,72,105,.35);}
.mem-ribbon{position:absolute;top:-13px;left:50%;transform:translateX(-50%);background:linear-gradient(135deg,var(--teal),var(--sky));color:#fff;font-size:12px;font-weight:800;padding:7px 18px;border-radius:999px;}
.mem-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;}
.mem-icon-pro{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:24px;background:var(--teal-light);color:var(--teal);}
.mem-card-pro.featured .mem-icon-pro{background:rgba(255,255,255,.12);color:#fff;}
.mem-soon-pro{font-size:11px;font-weight:800;padding:5px 12px;border-radius:999px;background:#fef3e2;color:#b7791f;}
.mem-card-pro h3{font-size:19px;font-weight:900;margin-bottom:4px;}
.mem-period-pro{font-size:12.5px;font-weight:700;color:var(--muted-light);margin-bottom:22px;}
.mem-check-list li{display:flex;align-items:center;gap:10px;font-size:13.5px;font-weight:600;padding:9px 0;}
.chk{width:20px;height:20px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;background:var(--teal-light);color:var(--teal);}
.mem-card-pro.featured .chk{background:rgba(255,255,255,.15);color:var(--sky);}
.mem-btn-pro{display:flex;align-items:center;justify-content:center;width:100%;padding:13px;border-radius:12px;font-weight:800;font-size:14px;margin-top:auto;border:1.5px solid var(--ink);color:var(--ink);}
.mem-card-pro.featured .mem-btn-pro{border:none;background:linear-gradient(135deg,var(--teal),var(--sky));color:#fff;}

/* ===== Community ===== */
.community{padding:100px 0;background:linear-gradient(180deg,#f2f7fb,#eaf3f8);}
.community-head{text-align:center;max-width:640px;margin:0 auto 40px;}
.community-head h2{font-size:34px;font-weight:900;margin-bottom:10px;}
.community-head p{color:var(--muted);font-size:15px;}
.community-tabs{max-width:800px;margin:0 auto 44px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px;display:flex;gap:6px;}
.comm-tab{flex:1;padding:12px 14px;border-radius:999px;border:none;background:transparent;font-family:inherit;font-weight:800;font-size:13px;color:var(--muted);cursor:pointer;}
.comm-tab.active{background:linear-gradient(135deg,var(--teal),var(--sky));color:#fff;}
.community-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.comm-card{position:relative;border-radius:20px;overflow:hidden;background:#fff;border:1px solid var(--line);box-shadow:0 10px 24px rgba(11,31,59,.06);transition:transform .3s ease;}
.comm-card:hover{transform:translateY(-6px);}
.comm-card.comm-hidden{display:none !important;}
.comm-feature{grid-column:span 1;grid-row:span 2;display:flex;flex-direction:column;justify-content:flex-end;color:#fff;background:var(--ink);min-height:460px;position:relative;}
.comm-feature .comm-thumb{position:absolute;inset:0;}
.comm-feature .comm-thumb img{width:100%;height:100%;object-fit:cover;opacity:.55;}
.comm-feature .comm-body{position:relative;z-index:1;padding:28px;}
.comm-feature h3{font-size:20px;font-weight:900;margin-bottom:10px;}
.comm-feature p{font-size:13.5px;color:#dbe3ee;margin-bottom:16px;}
.comm-thumb{height:150px;overflow:hidden;}
.comm-thumb img{width:100%;height:100%;object-fit:cover;}
.comm-body{padding:18px;}
.comm-body h4{font-size:14px;font-weight:800;margin-bottom:6px;}
.comm-body p{font-size:12.5px;color:var(--muted);margin-bottom:8px;}
.comm-badge{position:absolute;top:12px;right:12px;z-index:2;font-size:11px;font-weight:800;color:#fff;padding:5px 12px;border-radius:999px;}
.comm-badge.b-story{background:var(--teal);} .comm-badge.b-event{background:var(--sky);} .comm-badge.b-news{background:var(--navy-mid);}
.comm-meta{font-size:11.5px;color:var(--muted-light);font-weight:700;margin-bottom:8px;}
.comm-link{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:800;color:var(--teal);}
.comm-feature .comm-link{color:var(--sky);}

/* ===== Newsletter ===== */
.signup-band{padding:90px 0;}
.signup-card{border-radius:20px;padding:44px;text-align:center;}
.signup-card.a{background:var(--ink);color:#fff;}
.signup-card h3{font-size:20px;font-weight:900;margin-bottom:10px;}
.signup-card p{font-size:14px;color:#cfd4e6;margin-bottom:24px;}
.signup-form{display:flex;gap:10px;max-width:420px;margin:0 auto;}
.signup-form input{flex:1;padding:13px;border-radius:10px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.1);color:#fff;font-family:inherit;}
.signup-form input::placeholder{color:#9aa2c0;}
.signup-form button{padding:13px 24px;border-radius:10px;border:none;background:var(--teal);color:#fff;font-weight:800;cursor:pointer;font-family:inherit;}

/* ===== Footer ===== */
.site-footer{background:linear-gradient(180deg,var(--ink),#061527);color:#c7d0dd;padding:70px 0 26px;}
.footer-top{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:40px;padding-bottom:36px;border-bottom:1px solid rgba(255,255,255,.08);}
.footer-col-title{color:#fff;font-size:16px;font-weight:900;margin-bottom:20px;}
.footer-logo-row{display:flex;align-items:center;gap:12px;margin-bottom:16px;}
.footer-logo-row .fname{color:#fff;font-weight:800;font-size:15px;}
.footer-desc{font-size:13px;line-height:1.9;color:#9fb0c4;margin-bottom:14px;}
.footer-desc.small{font-size:12px;color:#7e91a8;}
.footer-social{display:flex;gap:10px;margin-top:16px;}
.footer-social a{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;color:#c7d0dd;font-size:14px;}
.footer-social a:hover{background:var(--teal);color:#fff;}
.footer-list li{border-bottom:1px solid rgba(255,255,255,.06);}
.footer-list a{display:flex;align-items:center;justify-content:space-between;padding:12px 2px;font-size:13.5px;font-weight:600;color:#c7d0dd;}
.footer-list a:hover{color:var(--sky);}
.footer-list a .chev{color:var(--teal);font-size:12px;}
.footer-contact-list li{display:flex;align-items:center;gap:12px;padding:11px 0;font-size:13.5px;color:#c7d0dd;font-weight:600;}
.fc-icon{width:30px;height:30px;border-radius:8px;flex-shrink:0;background:rgba(15,124,123,.15);color:var(--teal);display:flex;align-items:center;justify-content:center;font-size:13px;}
.footer-bottom{padding-top:22px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:12px;color:#7e91a8;}

/* ===== Scroll reveal ===== */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease, transform .7s ease;}
.reveal.in-view{opacity:1;transform:translateY(0);}

/* ===== Responsive ===== */
@media (max-width:900px){
  .nav-links{display:none;}
  .hero-slide h1{font-size:32px;}
  .about-grid, .cap-grid{grid-template-columns:1fr;}
  .cap-grid{grid-template-columns:repeat(2,1fr);}
  .services-bento, .mem-grid-pro, .community-grid{grid-template-columns:1fr;}
  .comm-feature{grid-row:span 1;min-height:320px;}
  .footer-top{grid-template-columns:1fr;}
  .community-tabs{flex-wrap:wrap;border-radius:20px;}
}


/* ===== الإعلانات ===== */
.ads-band{padding:26px 0;}
.ads-band .container{display:grid;gap:18px;}
.ads-top    .container{grid-template-columns:1fr;}
.ads-mid    .container{grid-template-columns:repeat(2,1fr);}
.ads-bottom .container{grid-template-columns:repeat(3,1fr);}

.ad-card{
  --ad-bg:#0B1F3B; --ad-fg:#ffffff;
  display:block;border-radius:18px;overflow:hidden;text-decoration:none;
  background:var(--ad-bg);color:var(--ad-fg);
  transition:transform .25s ease, box-shadow .25s ease;
}
a.ad-card:hover{transform:translateY(-3px);box-shadow:0 16px 38px rgba(11,31,59,.18);}

/* الصورة طبقةً خلف اللون — اتركها فارغة في اللوحة ليبقى اللون وحده.
   التعتيم 0.28 يُبقي النصّ مقروءاً مهما كانت الصورة فاتحة. */
.ad-card.has-img{position:relative;}
.ad-card.has-img::before{
  content:'';position:absolute;inset:0;
  background-image:var(--ad-img);background-size:cover;background-position:center;
  opacity:.28;
}
.ad-card.has-img::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(90deg, var(--ad-bg) 8%, transparent 78%);
}
.ad-in{position:relative;z-index:2;padding:26px 28px;}

/* إعلان بصورة وحدها — تُعرَض كاملةً بلا تعتيم ولا حشو */
.ad-card.ad-bare{ background:transparent;padding:0;line-height:0; }
.ad-card.ad-bare .ad-img{
  display:block;width:100%;height:auto;border-radius:18px;
}
/* في الفتحة العلوية نحدّ الارتفاع فلا تبتلع الصورة الطويلة الشاشة */
.ads-top .ad-card.ad-bare .ad-img{ max-height:260px;object-fit:cover; }
@media(max-width:768px){
  .ads-top .ad-card.ad-bare .ad-img{ max-height:170px; }
}

.ad-badge{
  display:inline-block;background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.26);border-radius:20px;
  padding:4px 14px;font-size:11.5px;font-weight:800;margin-bottom:12px;color:inherit;
}
.ad-card h4{font-size:19px;font-weight:800;line-height:1.55;margin:0 0 7px;color:inherit;}
.ad-card p{font-size:13.5px;line-height:1.9;margin:0;opacity:.9;color:inherit;}
.ad-cta{
  display:inline-block;margin-top:16px;font-size:13.5px;font-weight:800;color:inherit;
  border-bottom:2px solid currentColor;padding-bottom:2px;
}
.ad-cta::after{content:' ←';}

/* الشريط العلوي: أفقيّ يملأ العرض */
.ads-top .ad-in{padding:22px 30px;}
.ads-top .ad-card h4{font-size:21px;margin-bottom:5px;}

@media(max-width:900px){
  .ads-mid .container,
  .ads-bottom .container{grid-template-columns:1fr;}
}

/* ===== حسابات التواصل ===== */
.footer-social{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
.footer-social .soc{
  width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.16);
  color:#fff;font-size:17px;font-weight:700;transition:.22s;
}
.footer-social .soc:hover{transform:translateY(-2px);background:var(--teal);border-color:var(--teal);}
.soc-x{font-size:16px;}

/* ===== وسائل الدفع ===== */
.footer-pay{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding:18px 0;margin-top:10px;border-top:1px solid rgba(255,255,255,.09);
}
.pay-label{font-size:12.5px;color:rgba(255,255,255,.55);font-weight:700;}
.pay-icons{display:flex;gap:9px;flex-wrap:wrap;}
.pay-chip{
  background:#fff;color:#0B1F3B;border-radius:9px;padding:7px 14px;
  font-size:12.5px;font-weight:800;letter-spacing:.3px;display:inline-flex;
  align-items:center;gap:5px;line-height:1;
}
.pay-chip.pay-stream{background:rgba(255,255,255,.12);color:#fff;
  border:1px solid rgba(255,255,255,.2);}

@media(max-width:600px){
  .footer-pay{flex-direction:column;align-items:flex-start;gap:10px;}
}

/* سعر الباقة */
.mem-price-pro{font-size:32px;font-weight:800;color:var(--ink);line-height:1.3;margin:6px 0 2px;}
.mem-price-pro span{font-size:14px;font-weight:700;color:var(--muted-light);}
.mem-card-pro.featured .mem-price-pro{color:#fff;}
.mem-card-pro.featured .mem-price-pro span{color:rgba(255,255,255,.7);}

/* ===== سطر المطوّر ===== */
.footer-dev{color:rgba(255,255,255,.5);font-size:12.5px;}
.footer-dev a{
  color:rgba(255,255,255,.82);font-weight:700;
  border-bottom:1px solid rgba(255,255,255,.24);padding-bottom:1px;transition:.2s;
}
.footer-dev a:hover{color:var(--teal);border-color:var(--teal);}

@media(max-width:600px){
  .footer-bottom{flex-direction:column;gap:8px;text-align:center;}
}

/* ===== صفحة الأخبار ===== */
.news-hero{background:linear-gradient(160deg,var(--ink),var(--navy-mid));color:#fff;padding:64px 0 54px;text-align:center;}
.news-hero .eyebrow{color:var(--teal);}
.news-hero h1{font-size:36px;font-weight:900;margin:8px 0 10px;}
.news-hero p{font-size:15px;color:#c7d0dd;margin:0;}

.news-wrap{padding:44px 0 70px;background:var(--bg-soft);}

.news-tabs{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-bottom:34px;}
.ntab{background:#fff;border:1px solid var(--line);border-radius:24px;padding:9px 18px;
  font-size:13.5px;font-weight:700;color:var(--ink);text-decoration:none;transition:.2s;}
.ntab span{color:var(--muted-light);font-weight:600;font-size:12px;margin-inline-start:4px;}
.ntab:hover{border-color:var(--teal);}
.ntab.on{background:var(--teal);border-color:var(--teal);color:#fff;}
.ntab.on span{color:rgba(255,255,255,.75);}

.news-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px;}
.ncard{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;
  display:flex;flex-direction:column;transition:.25s;}
.ncard:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(11,31,59,.10);}
.ncard.pinned{border-color:var(--teal);box-shadow:0 0 0 1px var(--teal);}
.nc-img{height:170px;background-size:cover;background-position:center;background-color:#eef4fb;}
.nc-body{padding:20px 22px;display:flex;flex-direction:column;flex:1;}
.nc-meta{display:flex;gap:8px;align-items:center;margin-bottom:10px;flex-wrap:wrap;}
.nc-topic{background:#e6f7f5;color:#0f766e;border-radius:20px;padding:3px 11px;font-size:11.5px;font-weight:800;}
.nc-src{font-size:11.5px;color:var(--muted-light);}
.ncard h3{font-size:16px;font-weight:800;line-height:1.65;margin:0 0 8px;color:var(--ink);}
.ncard p{font-size:13.5px;color:var(--muted);line-height:1.9;margin:0 0 14px;flex:1;}
.nc-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;
  padding-top:12px;border-top:1px solid var(--line);}
.nc-date{font-size:12px;color:var(--muted-light);}
.nc-link{font-size:13px;font-weight:800;color:var(--teal);text-decoration:none;}

.news-pager{display:flex;gap:8px;justify-content:center;margin-top:38px;}
.news-pager a{background:#fff;border:1px solid var(--line);border-radius:10px;
  min-width:38px;height:38px;display:flex;align-items:center;justify-content:center;
  font-size:13.5px;font-weight:700;color:var(--ink);text-decoration:none;}
.news-pager a.on{background:var(--ink);border-color:var(--ink);color:#fff;}

.news-empty{text-align:center;padding:70px 20px;}
.news-empty .ne-ic{font-size:46px;margin-bottom:14px;}
.news-empty h3{font-size:19px;color:var(--ink);margin:0 0 6px;}
.news-empty p{font-size:14px;color:var(--muted);margin:0;}

/* ارتفاع الواجهة على الشاشات الصغيرة */
@media(max-width:768px){
  .hero-carousel{min-height:330px;}
  .hero-slide{padding:46px 0 74px;}   /* حشو سفلي يفسح للأسهم */
  .hero-slide h1{font-size:27px;}
  .hero-slide p{font-size:14px;}

  /* الأسهم أسفل الشريحة لا على جانبيها — كانت تغطّي النصّ */
  .carousel-arrow{
    top:auto;bottom:16px;transform:none;
    width:38px;height:38px;font-size:17px;
  }
  .arrow-prev{right:auto;left:50%;margin-left:26px;}
  .arrow-next{left:auto;right:50%;margin-right:26px;}

  /* النقاط بينهما */
  .carousel-dots{bottom:27px;}
}
/* ═══════════ تجديد العضوية ═══════════ */
.mem-renew{
  margin-top:34px; padding:20px 24px; border-radius:16px;
  background:linear-gradient(135deg,#f8fafc,#eef4f8);
  border:1px solid #e2e8f0;
  display:flex; align-items:center; justify-content:center;
  gap:16px; flex-wrap:wrap;
}
.mem-renew-txt{ font-size:15px; color:#475569; font-weight:600 }
.mem-renew-btn{
  display:inline-flex; align-items:center; gap:8px;
  background:#0B1F3B; color:#fff; text-decoration:none;
  padding:11px 26px; border-radius:10px; font-weight:700; font-size:15px;
  transition:.18s;
}
.mem-renew-btn:hover{ background:#A56A4A; transform:translateY(-1px); color:#fff }
.mem-renew-btn .mr-ico{ font-size:17px; line-height:1 }
@media (max-width:520px){
  .mem-renew{ flex-direction:column; gap:12px; padding:18px }
  .mem-renew-btn{ width:100%; justify-content:center }
}

/* ═══════════ القيم ═══════════ */
.values-sec{ padding:78px 0; background:#fff }
.values-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:18px; margin-top:38px;
}
.value-card{
  background:linear-gradient(160deg,#f8fafc,#eef4f8);
  border:1px solid #e2e8f0; border-radius:16px;
  padding:26px 22px; text-align:center; transition:.22s;
}
.value-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 34px rgba(13,44,74,.10);
  border-color:#cfe2f3;
}
.value-icon{
  width:56px; height:56px; margin:0 auto 14px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(140deg,#0B1F3B,#A56A4A);
  color:#fff; border-radius:14px; font-size:24px;
}
.value-card h3{ font-size:17px; font-weight:800; color:#0B1F3B; margin:0 0 8px }
.value-card p{ font-size:13.5px; color:#64748b; line-height:1.8; margin:0 }

/* وصف تحت رقم الإحصائية */
.cap-desc{ font-size:12.5px; color:#94a3b8; line-height:1.7; margin-top:6px; max-width:230px }

/* ═══════════ آراء الشركاء ═══════════ */
.testi-sec{ padding:78px 0; background:linear-gradient(135deg,#eaf3fa,#e6f6f7) }
.testi-wrap{ position:relative; margin-top:38px }
.testi-track{
  display:flex; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding:6px 4px 18px; scrollbar-width:none;
}
.testi-track::-webkit-scrollbar{ display:none }
.testi-card{
  flex:0 0 330px; scroll-snap-align:start; position:relative;
  background:#fff; border:1px solid #e2e8f0; border-radius:18px;
  padding:30px 24px 24px; box-shadow:0 8px 26px rgba(13,44,74,.06);
}
.testi-quote-mark{
  position:absolute; top:8px; inset-inline-start:20px;
  font-size:56px; line-height:1; color:#dbeafe; font-family:Georgia,serif;
}
.testi-text{
  position:relative; font-size:14.5px; color:#334155;
  line-height:2; margin:0 0 14px; min-height:112px;
}
.testi-stars{ color:#e3a008; font-size:15px; letter-spacing:2px; margin-bottom:16px }
.testi-person{
  display:flex; align-items:center; gap:12px;
  border-top:1px solid #eef1f5; padding-top:15px;
}
.testi-photo{
  width:46px; height:46px; border-radius:50%; object-fit:cover;
  border:2px solid #eaf3fa; flex-shrink:0;
}
.testi-initial{
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(140deg,#0B1F3B,#A56A4A);
  color:#fff; font-weight:800; font-size:19px; border:0;
}
.testi-name{ font-weight:800; font-size:14.5px; color:#0B1F3B }
.testi-role{ font-size:12px; color:#94a3b8; margin-top:2px }
.testi-nav{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:42px; height:42px; border-radius:50%; border:1px solid #e2e8f0;
  background:#fff; color:#0B1F3B; font-size:24px; line-height:1;
  cursor:pointer; box-shadow:0 4px 14px rgba(13,44,74,.12); transition:.18s;
}
.testi-nav:hover{ background:#0B1F3B; color:#fff }
.testi-prev{ inset-inline-start:-14px }
.testi-next{ inset-inline-end:-14px }
@media (max-width:760px){
  .testi-card{ flex:0 0 86% }
  .testi-nav{ display:none }
  .values-sec,.testi-sec{ padding:56px 0 }
}

/* ═══════════ تقليص ارتفاع الفوتر ═══════════
   تعديلات مضغوطة تأتي بعد القواعد الأصلية فتغلبها. */
.site-footer{ padding:44px 0 18px }
.footer-top{ gap:28px; padding-bottom:24px }
.footer-col-title{ font-size:15px; margin-bottom:12px }
.footer-logo-row{ margin-bottom:10px }
.footer-logo-row img{ height:36px !important }
.footer-desc{ font-size:12.5px; line-height:1.75; margin-bottom:8px }
.footer-desc.small{ font-size:11.5px; margin-bottom:0 }

/* الروابط وبيانات التواصل — أقلّ حشواً بين السطور */
.footer-list a{ padding:8px 2px; font-size:13px }
.footer-contact-list li{ padding:7px 0; font-size:13px; gap:10px }
.fc-icon{ width:26px; height:26px; border-radius:7px; font-size:12px }

/* أيقونات التواصل */
.footer-social{ margin-top:12px; gap:8px }
.footer-social .soc{ width:34px; height:34px; border-radius:10px; font-size:15px }
.soc-x{ font-size:14px }

/* وسائل الدفع */
.footer-pay{ padding:12px 0; margin-top:4px; gap:10px }
.pay-chip{ padding:5px 11px; font-size:11.5px }
.pay-label{ font-size:11.5px }

.footer-bottom{ padding-top:14px; font-size:11.5px }

@media (max-width:760px){
  .site-footer{ padding:34px 0 16px }
  .footer-top{ gap:22px; padding-bottom:18px }
}

/* روابط سريعة في عمودين — سبعة روابط في أربعة أسطر بدل سبعة */
.footer-list{ display:grid; grid-template-columns:1fr 1fr; gap:0 18px }
.footer-list li:nth-last-child(-n+2){ border-bottom:0 }
@media (max-width:760px){
  .footer-list{ grid-template-columns:1fr }
  .footer-list li:nth-last-child(-n+2){ border-bottom:1px solid rgba(255,255,255,.06) }
  .footer-list li:last-child{ border-bottom:0 }
}

/* السطر السفلي: الحقوق + وسائل الدفع + المطوّر في صفّ واحد */
.footer-bottom{
  padding-top:12px; margin-top:0;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; flex-wrap:wrap;
}
.footer-bottom .pay-icons{ display:flex; gap:7px; flex-wrap:wrap }
.footer-bottom .pay-chip{ padding:4px 10px; font-size:11px }
.footer-top{ padding-bottom:18px }
@media (max-width:900px){
  .footer-bottom{ justify-content:center; text-align:center; gap:10px }
}

/* ترتيب السطر السفلي: الدفع يميناً · الحقوق وسطاً · المطوّر يساراً */
.footer-bottom .pay-icons{ order:1 }
.footer-bottom > span:first-of-type{ order:2; flex:1; text-align:center }
.footer-bottom .footer-dev{ order:3 }
@media (max-width:900px){
  .footer-bottom{ flex-direction:column }
  .footer-bottom > span:first-of-type{ flex:none }
}

/* ═══════════ الهيكل التنظيمي ═══════════ */
.board-sec{ padding:78px 0; background:#fff }
.board-group{ margin-top:38px }
.board-group-title{
  position:relative; text-align:center; margin:0 0 26px;
  font-size:17px; font-weight:800; color:#0B1F3B;
}
.board-group-title::before{
  content:''; position:absolute; inset-inline:0; top:50%;
  height:1px; background:#e2e8f0;
}
.board-group-title span{
  position:relative; background:#fff; padding:0 18px;
}
.board-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(196px,1fr));
  gap:18px;
}
.board-card{
  background:linear-gradient(160deg,#f8fafc,#eef4f8);
  border:1px solid #e2e8f0; border-radius:16px;
  padding:24px 18px; text-align:center; transition:.22s;
}
.board-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 34px rgba(13,44,74,.10);
  border-color:#cfe2f3;
}
.board-photo{
  width:92px; height:92px; border-radius:50%; object-fit:cover;
  margin:0 auto 14px; display:block;
  border:3px solid #fff; box-shadow:0 4px 16px rgba(13,44,74,.14);
}
.board-initial{
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(140deg,#0B1F3B,#A56A4A);
  color:#fff; font-size:34px; font-weight:800;
}
.board-name{ font-size:15.5px; font-weight:800; color:#0B1F3B; margin:0 0 5px }
.board-pos{ font-size:12.5px; color:#A56A4A; font-weight:600; margin-bottom:8px }
.board-bio{
  font-size:12.5px; color:#64748b; line-height:1.8; margin:0;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.board-links{
  display:flex; justify-content:center; gap:8px;
  margin-top:14px; padding-top:12px; border-top:1px solid #e2e8f0;
}
.board-links a{
  width:32px; height:32px; border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  background:#fff; border:1px solid #e2e8f0; color:#0B1F3B;
  font-size:14px; text-decoration:none; transition:.18s;
}
.board-links a:hover{ background:#0B1F3B; color:#fff; border-color:#0B1F3B }
@media (max-width:760px){
  .board-sec{ padding:56px 0 }
  .board-grid{ grid-template-columns:repeat(auto-fit,minmax(148px,1fr)); gap:12px }
  .board-photo{ width:74px; height:74px }
  .board-initial{ font-size:28px }
}

/* ═══════════ الصفحات النظامية (الخصوصية / الشروط) ═══════════ */
.legal-hero{
  background:linear-gradient(140deg,#0B1F3B,#123f63 55%,#A56A4A);
  color:#fff; padding:64px 0 54px; text-align:center;
}
.legal-hero .eyebrow{ color:#9fd4ec }
.legal-hero h1{ font-size:32px; font-weight:800; margin:8px 0 10px }
.legal-hero p{ opacity:.88; font-size:15px; margin:0 }
.legal-updated{
  display:inline-block; margin-top:16px; padding:6px 16px;
  background:rgba(255,255,255,.12); border-radius:20px; font-size:12.5px;
}
.legal-wrap{ padding:52px 0 78px; background:#fff }
.legal-grid{ display:grid; grid-template-columns:250px 1fr; gap:34px; align-items:start }

.toc-box{
  position:sticky; top:90px;
  background:#f8fafc; border:1px solid #e2e8f0; border-radius:14px; padding:18px;
}
.toc-box h4{ font-size:14px; font-weight:800; color:#0B1F3B; margin:0 0 12px }
.toc-box ol{ margin:0; padding-inline-start:18px }
.toc-box li{ margin-bottom:7px }
.toc-box a{
  font-size:13px; color:#64748b; text-decoration:none; transition:color .15s;
}
.toc-box a:hover{ color:#A56A4A }

.legal-body{ max-width:820px }
.legal-body h2{
  font-size:19px; font-weight:800; color:#0B1F3B;
  margin:34px 0 12px; padding-bottom:9px; border-bottom:2px solid #eaf3fa;
  scroll-margin-top:90px;
}
.legal-body h2:first-child{ margin-top:0 }
.legal-body h3{ font-size:15.5px; font-weight:700; color:#123f63; margin:20px 0 8px }
.legal-body p{ font-size:14.5px; line-height:2.05; color:#374151; margin:0 0 13px }
.legal-body ul{ margin:0 0 15px; padding-inline-start:22px }
.legal-body li{ font-size:14.5px; line-height:2; color:#374151; margin-bottom:7px }
.legal-body b{ color:#0B1F3B }
.legal-body a{ color:#A56A4A }

.legal-note{
  background:#eaf3fa; border:1px solid #cfe2f3; border-inline-start:4px solid #A56A4A;
  border-radius:12px; padding:15px 18px; margin:16px 0 20px;
  font-size:14px; line-height:1.95; color:#0B1F3B;
}
.legal-contact{
  background:#f8fafc; border:1px solid #e2e8f0; border-radius:14px;
  padding:18px 20px; margin-top:14px;
}
.legal-contact div{
  display:flex; gap:14px; padding:9px 0; font-size:14px;
  border-bottom:1px solid #eef1f5;
}
.legal-contact div:last-child{ border-bottom:0 }
.legal-contact span{ min-width:74px; color:#94a3b8; font-size:13px }

@media (max-width:900px){
  .legal-grid{ grid-template-columns:1fr; gap:22px }
  .toc-box{ position:static }
  .legal-hero{ padding:48px 0 40px }
  .legal-hero h1{ font-size:25px }
}

/* ═══════════ قائمة الجوّال ═══════════ */
.nav-burger{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:42px; height:42px; padding:0 9px; cursor:pointer;
  background:#fff; border:1px solid var(--line,#e2e8f0); border-radius:11px;
}
.nav-burger span{
  display:block; height:2px; width:100%; border-radius:2px;
  background:var(--ink,#0B1F3B); transition:.25s;
}
.nav-burger.on span:nth-child(1){ transform:translateY(7px) rotate(45deg) }
.nav-burger.on span:nth-child(2){ opacity:0 }
.nav-burger.on span:nth-child(3){ transform:translateY(-7px) rotate(-45deg) }

.mnav-veil{
  position:fixed; inset:0; background:rgba(11,31,59,.45);
  opacity:0; visibility:hidden; transition:.25s; z-index:60;
}
.mnav-veil.on{ opacity:1; visibility:visible }

.mnav{
  position:fixed; top:0; inset-inline-end:0; height:100dvh; width:min(84vw,320px);
  background:#fff; z-index:61; display:flex; flex-direction:column;
  transform:translateX(-100%); transition:transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow:-8px 0 40px rgba(11,31,59,.16);
}

.mnav-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 20px 16px; border-bottom:1px solid #eef2f7;
}
.mnav-title{ font-weight:900; font-size:15px; color:var(--ink,#0B1F3B) }
.mnav-x{
  background:none; border:0; font-size:30px; line-height:1;
  color:#94a3b8; cursor:pointer; padding:0 4px;
}
.mnav-links{ flex:1; overflow-y:auto; padding:10px 12px }
.mnav-links a{
  display:flex; align-items:center; gap:12px;
  padding:14px 14px; border-radius:12px;
  font-weight:700; font-size:15px; color:#334155; text-decoration:none;
  transition:background .15s, color .15s;
}
.mnav-links a i{ font-size:17px; color:#94a3b8; width:20px; text-align:center }
.mnav-links a:hover{ background:#f4f8fc; color:var(--teal,#0F7C7B) }
.mnav-links a:hover i{ color:var(--teal,#0F7C7B) }
.mnav-foot{ padding:16px 16px 22px; border-top:1px solid #eef2f7; display:grid; gap:9px }
.mnav-cta,.mnav-cta2{
  display:block; text-align:center; padding:13px; border-radius:12px;
  font-weight:800; font-size:14.5px; text-decoration:none;
}
.mnav-cta{ background:var(--ink,#0B1F3B); color:#fff }
.mnav-cta2{ background:#f4f8fc; color:var(--ink,#0B1F3B); border:1px solid #e2e8f0 }

@media (max-width:900px){
  .nav-burger{ display:flex }
  .nav-cta{ display:none }
  .site-header{ padding:12px 0 }
  .brand span{ font-size:14px }
  .brand-logo{ height:32px }
}
@media (max-width:400px){
  .brand span{ font-size:12.5px }
}

/* ═══════════ توافق عام مع الجوّال ═══════════ */
@media (max-width:600px){
  .container{ padding-inline:16px }
  h1{ font-size:26px !important; line-height:1.4 }
  h2{ font-size:21px !important }
  /* الجداول والصور لا تتجاوز عرض الشاشة */
  img,video,iframe,table{ max-width:100%; height:auto }
  /* الأزرار بعرض مريح للّمس */
  .btn{ min-height:44px; display:inline-flex; align-items:center; justify-content:center }
  /* شبكات الأخبار والبطاقات عموداً واحداً */
  .news-grid{ grid-template-columns:1fr !important }

  .news-pager{ flex-wrap:wrap }
}
/* منع التمرير الأفقي — على body وحده.
   وضعه على html يكسر position:fixed في متصفّحات الجوّال. */
body{ overflow-x:clip; max-width:100% }

/* ═══════════ تبويب أخبار ليب ═══════════ */
.ntab-leap{
  position:relative;
  background:linear-gradient(135deg,#fff5f5,#fff) !important;
  border-color:#fbcaca !important;
  color:#b3261e !important;
  font-weight:800;
}
.ntab-leap.on{
  background:#b3261e !important; border-color:#b3261e !important; color:#fff !important;
}
.ntab-leap span{ background:#fdeaea !important; color:#b3261e !important }
.ntab-leap.on span{ background:rgba(255,255,255,.24) !important; color:#fff !important }
.leap-dot{
  display:inline-block; width:8px; height:8px; border-radius:50%;
  background:#e53935; margin-inline-end:6px; vertical-align:middle;
  box-shadow:0 0 0 0 rgba(229,57,53,.6); animation:leapPulse 1.9s infinite;
}
@keyframes leapPulse{
  70%{ box-shadow:0 0 0 8px rgba(229,57,53,0) }
  100%{ box-shadow:0 0 0 0 rgba(229,57,53,0) }
}
.leap-note{
  background:#fff5f5; border:1px solid #fbcaca; border-inline-start:4px solid #e53935;
  border-radius:12px; padding:13px 17px; margin-bottom:20px;
  font-size:13.5px; line-height:1.9; color:#7a1c17;
}
.leap-note b{ color:#b3261e }
.leap-note span{ color:#a1665f; margin-inline-start:8px; font-size:12.5px }

/* ═══ تصحيحات قائمة الجوّال ═══ */
.mnav{
  right:0; left:auto;                    /* بديل inset-inline لمتصفّحات أقدم */
  transform:translateX(110%);            /* مخفيّة يميناً في RTL */
  visibility:hidden; opacity:0;
  transition:transform .28s cubic-bezier(.4,0,.2,1), visibility .28s, opacity .2s;
}
.mnav.on{ transform:translateX(0) !important; visibility:visible; opacity:1 }
.mnav-links a{ color:#334155 !important; text-decoration:none !important }
.mnav-links a i{ flex-shrink:0 }
.mnav-veil{ position:fixed; top:0; right:0; bottom:0; left:0 }
/* لا تُخفِ الروابط داخل القائمة بقاعدة nav-links العامّة */
@media (max-width:900px){
  .mnav .mnav-links{ display:block !important }
  .mnav .mnav-links a{ display:flex !important }
}

/* ═══════════ تبويبات الأخبار على الجوّال ═══════════
   شريط أفقي واحد ينزلق باللمس — لا تكدّس ولا التفاف. */
@media (max-width:768px){
  .news-tabs{
    display:flex; flex-wrap:nowrap; justify-content:flex-start;
    gap:8px; margin:0 -16px 22px; padding:2px 16px 12px;
    overflow-x:auto; overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
    scrollbar-width:none; -ms-overflow-style:none;
    /* تلاشٍ عند الحافة يوحي بوجود المزيد */
    -webkit-mask-image:linear-gradient(to left,#000 88%,transparent 100%);
            mask-image:linear-gradient(to left,#000 88%,transparent 100%);
  }
  .news-tabs::-webkit-scrollbar{ display:none }
  .ntab{
    flex:0 0 auto; white-space:nowrap; scroll-snap-align:start;
    padding:9px 15px; font-size:13px; border-radius:20px;
    min-height:38px; display:inline-flex; align-items:center; gap:5px;
  }
  .ntab span{
    background:#f1f5f9; color:#64748b; border-radius:11px;
    padding:1px 7px; font-size:11px; margin:0;
  }
  .ntab.on span{ background:rgba(255,255,255,.22); color:#fff }
  .leap-note{ font-size:12.5px; padding:11px 14px; margin-bottom:16px }
  .leap-note span{ display:block; margin:4px 0 0 }
}

/* ═══════════ تبويبات الأخبار — تصحيح الجوّال ═══════════ */
@media (max-width:768px){
  .news-tabs{
    justify-content:flex-start !important;
    /* لا تلاشي — كان يُخفي حافة أول تبويب */
    -webkit-mask-image:none !important; mask-image:none !important;
    margin:0 0 20px !important; padding:2px 0 12px !important;
    scroll-padding-inline-start:0;
  }
  .ntab{ padding:10px 16px !important; font-size:13.5px !important }
  /* مساحة تنفّس في آخر الشريط ليُعرف أنّه ينزلق */
  .news-tabs::after{ content:''; flex:0 0 8px }
}

/* ═══════════ وميض تبويب ليب ═══════════ */
.ntab-leap{
  overflow:hidden;
  animation:leapGlow 2.6s ease-in-out infinite;
}
.ntab-leap::after{
  content:''; position:absolute; top:0; bottom:0; width:45%;
  inset-inline-start:-60%;
  background:linear-gradient(90deg,
             transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform:skewX(-18deg);
  animation:leapFlash 2.6s ease-in-out infinite;
  pointer-events:none;
}
@keyframes leapFlash{
  0%   { inset-inline-start:-60% }
  55%  { inset-inline-start:130% }
  100% { inset-inline-start:130% }
}
@keyframes leapGlow{
  0%,100%{ box-shadow:0 0 0 0 rgba(229,57,53,.35) }
  50%    { box-shadow:0 0 14px 2px rgba(229,57,53,.35) }
}
/* التبويب المختار: وميض أهدأ */
.ntab-leap.on::after{ background:linear-gradient(90deg,
             transparent 0%, rgba(255,255,255,.32) 50%, transparent 100%) }
.ntab-leap.on{ animation:none }

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion:reduce){
  .ntab-leap,.ntab-leap::after,.leap-dot{ animation:none !important }
}

/* ═══════════ تبويبات الأخبار على الجوّال — شبكة سطرين ═══════════
   بدل الشريط المنزلق: كل التبويبات ظاهرة دفعةً واحدة. */
@media (max-width:768px){
  .news-tabs{
    display:grid !important;
    grid-template-columns:repeat(3,1fr);
    gap:8px !important;
    overflow:visible !important;
    margin:0 0 22px !important;
    padding:0 !important;
  }
  .news-tabs::after{ display:none }
  .ntab{
    display:flex !important; align-items:center; justify-content:center;
    gap:6px; width:100%; min-height:46px;
    padding:8px 6px !important; font-size:13px !important;
    border-radius:14px !important; white-space:nowrap;
    text-align:center; line-height:1.3;
  }
  .ntab span{
    background:#f1f5f9; color:#64748b;
    border-radius:9px; padding:1px 6px; font-size:11px; margin:0;
  }
  .ntab.on span{ background:rgba(255,255,255,.24); color:#fff }
  /* تبويب ليب يأخذ صفّاً كاملاً فوق البقيّة */
  .ntab-leap{
    grid-column:1 / -1; order:-1;
    min-height:50px; font-size:14.5px !important;
  }
}
@media (max-width:360px){
  .news-tabs{ grid-template-columns:repeat(2,1fr) }
  .ntab{ font-size:12.5px !important }
}

/* ═══════════ تبويب ليب — هوية LEAP البنفسجية ═══════════
   يغلب القواعد الحمراء السابقة. */
.ntab-leap{
  background:linear-gradient(120deg,#2a0a52 0%,#5b1fa8 45%,#8b3ff0 100%) !important;
  border:1px solid #7c3aed !important;
  color:#fff !important;
  font-weight:800;
  box-shadow:0 4px 16px rgba(91,31,168,.28);
  animation:leapGlowV 2.8s ease-in-out infinite !important;
}
.ntab-leap:hover{ border-color:#a855f7 !important }
.ntab-leap.on{
  background:linear-gradient(120deg,#1b0538 0%,#4c1d95 45%,#7c3aed 100%) !important;
  border-color:#a855f7 !important;
  box-shadow:0 6px 22px rgba(124,58,237,.42);
  animation:none !important;
}
.ntab-leap span{
  background:rgba(255,255,255,.18) !important;
  color:#f3e8ff !important;
}
.ntab-leap.on span{ background:rgba(255,255,255,.26) !important; color:#fff !important }

/* النقطة: سماوية تتباين مع البنفسجي */
.ntab-leap .leap-dot{
  background:#22d3ee;
  box-shadow:0 0 0 0 rgba(34,211,238,.75);
  animation:leapPulseV 1.9s infinite;
}
@keyframes leapPulseV{
  70%  { box-shadow:0 0 0 8px rgba(34,211,238,0) }
  100% { box-shadow:0 0 0 0 rgba(34,211,238,0) }
}
@keyframes leapGlowV{
  0%,100%{ box-shadow:0 4px 16px rgba(91,31,168,.28) }
  50%    { box-shadow:0 4px 22px 3px rgba(139,63,240,.48) }
}
/* الشعاع المارّ — أوضح على الخلفية الداكنة */
.ntab-leap::after{
  background:linear-gradient(90deg,
             transparent 0%, rgba(255,255,255,.42) 50%, transparent 100%) !important;
}
@media (prefers-reduced-motion:reduce){
  .ntab-leap{ animation:none !important }
}

/* ═══════════ توقيت النشر النسبي ═══════════ */
.nc-date.fresh{
  color:#7c3aed; font-weight:700;
  display:inline-flex; align-items:center; gap:5px;
}
.nc-date.fresh::before{
  content:''; width:6px; height:6px; border-radius:50%;
  background:#22d3ee; flex-shrink:0;
  box-shadow:0 0 0 0 rgba(34,211,238,.7);
  animation:leapPulseV 2.2s infinite;
}
@media (prefers-reduced-motion:reduce){
  .nc-date.fresh::before{ animation:none }
}

/* ═══════════ نموذج فريق ليب ═══════════ */
.leap-hero{
  background:linear-gradient(120deg,#2a0a52 0%,#5b1fa8 48%,#8b3ff0 100%);
  color:#fff; padding:62px 0 54px; text-align:center;
}
.leap-hero .eyebrow{ color:#d8b4fe }
.leap-hero h1{ font-size:30px; font-weight:800; margin:8px 0 10px }
.leap-hero p{ opacity:.9; font-size:15px; margin:0; line-height:1.9 }
.leap-wrap{ padding:44px 0 76px; background:#fff }
.leap-card{
  max-width:680px; margin:0 auto;
  background:#fff; border:1px solid #e6ebf2; border-radius:20px;
  padding:30px; box-shadow:0 14px 44px rgba(42,10,82,.07);
}
.lf-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px }
.lf-row:has(.lf-sm){ grid-template-columns:130px 1fr }
.lf-col{ display:flex; flex-direction:column; margin-bottom:16px }
.lf-row .lf-col{ margin-bottom:0 }
.lf label{ font-weight:700; font-size:13.5px; color:#334155; margin-bottom:6px }
.lf label span{ color:#dc2626 }
.lf input,.lf select,.lf textarea{
  border:1.5px solid #e2e8f0; border-radius:12px; padding:12px 14px;
  font-family:inherit; font-size:15px; min-height:48px;
  transition:border-color .15s, box-shadow .15s; background:#fff;
}
.lf input:focus,.lf select:focus,.lf textarea:focus{
  outline:none; border-color:#8b3ff0; box-shadow:0 0 0 3px rgba(139,63,240,.13);
}
.lf textarea{ resize:vertical; line-height:1.8 }
.lf small{ font-size:11.5px; color:#94a3b8; margin-top:5px }
.lf-btn{
  width:100%; border:0; border-radius:14px; padding:15px;
  background:linear-gradient(120deg,#2a0a52,#5b1fa8 50%,#8b3ff0);
  color:#fff; font-family:inherit; font-size:15.5px; font-weight:800;
  cursor:pointer; transition:.18s; margin-top:8px;
}
.lf-btn:hover{ transform:translateY(-1px); box-shadow:0 8px 24px rgba(91,31,168,.32) }
.lf-btn i{ margin-inline-end:7px }
.lf-msg{ border-radius:13px; padding:14px 18px; font-size:14px; line-height:1.95; margin-bottom:20px }
.lf-msg.err{ background:#fef2f2; border:1px solid #fecaca; color:#b91c1c }
.lf-msg.warn{ background:#fff8e6; border:1px solid #f5e2b0; color:#92400e; text-align:center }
.lf-msg i{ font-size:26px; display:block; margin-bottom:8px }
.lf-done{ text-align:center; padding:16px 0 6px }
.lf-ic{
  width:78px; height:78px; border-radius:50%; margin:0 auto 18px;
  background:linear-gradient(120deg,#5b1fa8,#8b3ff0);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:38px;
}
.lf-done h3{ font-size:21px; font-weight:800; color:#2a0a52; margin:0 0 10px }
.lf-done p{ font-size:14.5px; color:#64748b; line-height:2; margin:0 0 20px }
.lf-back{
  display:inline-block; padding:12px 30px; border-radius:12px;
  background:#f4f8fc; color:#2a0a52; font-weight:700; font-size:14px; text-decoration:none;
}
@media (max-width:600px){
  .leap-hero{ padding:46px 0 40px }
  .leap-hero h1{ font-size:24px }
  .leap-card{ padding:22px 18px; border-radius:16px }
  .lf-row,.lf-row:has(.lf-sm){ grid-template-columns:1fr; gap:0 }
  .lf-row .lf-col{ margin-bottom:16px }
}

/* ═══════════ رابط بنك النماذج الأولية ═══════════ */
.nav-mvp{
  position:relative;
  background:linear-gradient(120deg,#0B1F3B,#A56A4A);
  color:#fff !important; border-radius:9px;
  padding:7px 14px !important; white-space:nowrap;
  transition:.18s;
}
.nav-mvp:hover{ color:#fff !important; box-shadow:0 4px 14px rgba(17,115,164,.32); transform:translateY(-1px) }
.mnav-mvp{ color:#0B1F3B !important; font-weight:800 !important }
.mnav-mvp i{ color:#A56A4A !important }
@media (max-width:1100px) and (min-width:901px){
  .nav-links{ gap:16px !important; font-size:13px }
  .nav-mvp{ padding:6px 11px !important }
}

/* ═══════════ أنماط قديمة غير مستخدمة ═══════════ */
.bp-hero{
  background:linear-gradient(135deg,#0B1F3B 0%,#0d3d63 55%,#A56A4A 100%);
  color:#fff; padding:66px 0 58px; text-align:center; position:relative; overflow:hidden;
}
.bp-hero::after{
  content:''; position:absolute; inset:0;
  background:radial-gradient(circle at 78% 22%, rgba(240,185,60,.16), transparent 55%);
  pointer-events:none;
}
.bp-hero .eyebrow{ color:#f0b93c; position:relative }
.bp-hero h1{ font-size:32px; font-weight:900; margin:8px 0 12px; position:relative }
.bp-hero p{ opacity:.92; font-size:15.5px; margin:0 auto; max-width:640px; line-height:2; position:relative }

.bp-about{ padding:56px 0; background:#fff }
.bp-intro{ max-width:820px; margin:0 auto 46px; text-align:center }
.bp-intro h2{ font-size:23px; font-weight:800; color:#0B1F3B; margin:0 0 14px }
.bp-intro p{ font-size:15px; line-height:2.15; color:#475569; margin:0 }
.bp-h3{ text-align:center; font-size:19px; font-weight:800; color:#0B1F3B; margin:0 0 30px }

.bp-badges{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:22px; max-width:860px; margin:0 auto 50px;
}
.bp-badge{ text-align:center }
.bp-hex{
  width:132px; height:150px; margin:0 auto 16px;
  background:linear-gradient(160deg,#f0d089,#c9982f 45%,#f4dfa4);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display:flex; align-items:center; justify-content:center;
  filter:drop-shadow(0 8px 18px rgba(11,31,59,.20)); transition:.25s;
}
.bp-badge:hover .bp-hex{ transform:translateY(-5px) scale(1.03) }
.bp-hex-in{
  width:118px; height:136px;
  background:linear-gradient(165deg,#0d3157,#0B1F3B);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.bp-eng{ font-size:8.5px; letter-spacing:1.4px; color:#cfe2f3; font-weight:700 }
.bp-lvl{
  font-size:12.5px; font-weight:900; color:#fff; letter-spacing:.6px;
  background:#123f63; padding:3px 10px; border-radius:3px;
  border-top:1px solid #f0b93c; border-bottom:1px solid #f0b93c;
}
.bp-stars{ color:#f0b93c; font-size:13px; letter-spacing:2px; line-height:1 }
.bp-badge h4{ font-size:15px; font-weight:700; color:#475569; margin:0 0 5px }
.bp-badge h4 b{ color:#0B1F3B; font-weight:900 }
.bp-badge p{ font-size:12.5px; color:#94a3b8; margin:0; line-height:1.8 }

.bp-method{ max-width:820px; margin:0 auto; text-align:center }
.bp-method h3{ font-size:19px; font-weight:800; color:#0B1F3B; margin:0 0 14px }
.bp-method p{ font-size:14.5px; line-height:2.15; color:#475569; margin:0 0 18px }
.bp-note{
  background:#f4f8fc; border:1px solid #dbe6f0; border-inline-start:4px solid #A56A4A;
  border-radius:12px; padding:14px 18px; font-size:13.5px; line-height:1.95;
  color:#334155; text-align:start;
}

/* ── النموذج ── */
.bp-form-wrap{ padding:52px 0 78px; background:linear-gradient(180deg,#f4f8fc,#fff) }
.bp-card{
  max-width:760px; margin:0 auto; background:#fff;
  border:1px solid #e6ebf2; border-radius:20px; padding:32px;
  box-shadow:0 16px 46px rgba(11,31,59,.07);
}
.bp-form-title{ font-size:21px; font-weight:800; color:#0B1F3B; margin:0 0 22px; text-align:center }
.bp-sec{
  font-size:13px; font-weight:800; color:#A56A4A; letter-spacing:.4px;
  margin:26px 0 14px; padding-bottom:8px; border-bottom:2px solid #eaf3fa;
}
.bp-lbl{ display:block; font-weight:700; font-size:13.5px; color:#334155; margin:16px 0 8px }
.bp-lbl span,.bp label span{ color:#dc2626 }

.bp-roles{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:6px }
.bp-role{
  border:2px solid #e2e8f0; border-radius:16px; padding:20px 16px;
  text-align:center; cursor:pointer; transition:.18s; display:block;
}
.bp-role:hover{ border-color:#A56A4A }
.bp-role.on{ border-color:#A56A4A; background:#f4f9fd; box-shadow:0 4px 16px rgba(17,115,164,.12) }
.bp-role input{ display:none }
.bp-role i{ font-size:28px; color:#A56A4A; display:block; margin-bottom:8px }
.bp-role b{ display:block; font-size:16px; color:#0B1F3B; margin-bottom:3px }
.bp-role span{ font-size:12px; color:#94a3b8 }

.bp-opts{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:4px }
.bp-opt{
  border:1.5px solid #e2e8f0; border-radius:11px; padding:10px 20px;
  font-size:14px; font-weight:600; color:#475569; cursor:pointer; transition:.15s;
}
.bp-opt:hover{ border-color:#A56A4A }
.bp-opt.on{ border-color:#A56A4A; background:#eaf3fa; color:#0B1F3B }
.bp-opt input{ display:none }

.bp-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px }
.bp-name-row{ grid-template-columns:130px 1fr }
.bp-col{ display:flex; flex-direction:column; margin-bottom:16px }
.bp-row .bp-col{ margin-bottom:0 }
.bp label{ font-weight:700; font-size:13.5px; color:#334155; margin-bottom:6px }
.bp input,.bp select,.bp textarea{
  border:1.5px solid #e2e8f0; border-radius:12px; padding:12px 14px;
  font-family:inherit; font-size:15px; min-height:48px; background:#fff;
  transition:border-color .15s, box-shadow .15s;
}
.bp input[type=file]{ padding:10px; font-size:13px }
.bp input:focus,.bp select:focus,.bp textarea:focus{
  outline:none; border-color:#A56A4A; box-shadow:0 0 0 3px rgba(17,115,164,.13);
}
.bp textarea{ resize:vertical; line-height:1.8 }
.bp small{ font-size:11.5px; color:#94a3b8; margin-top:5px }

.bp-hint{ border-radius:12px; padding:13px 16px; font-size:13.5px; line-height:1.9; margin:10px 0 4px }
.bp-hint.ok{ background:#f0fdf4; border:1px solid #bbf7d0; color:#14532d }
.bp-hint.warn{ background:#fff8e6; border:1px solid #f5e2b0; color:#92400e }
.bp-hint a{ color:#A56A4A; font-weight:700; margin-inline-start:6px }

.bp-btn{
  width:100%; border:0; border-radius:14px; padding:16px; margin-top:22px;
  background:linear-gradient(135deg,#0B1F3B,#0d3d63 55%,#A56A4A);
  color:#fff; font-family:inherit; font-size:16px; font-weight:800; cursor:pointer; transition:.18s;
}
.bp-btn:hover{ transform:translateY(-1px); box-shadow:0 10px 26px rgba(11,31,59,.28) }
.bp-btn i{ margin-inline-end:7px }

.bp-msg{ border-radius:13px; padding:15px 18px; font-size:14px; line-height:1.95; margin-bottom:20px }
.bp-msg.err{ background:#fef2f2; border:1px solid #fecaca; color:#b91c1c }
.bp-msg.warn{ background:#fff8e6; border:1px solid #f5e2b0; color:#92400e; text-align:center }
.bp-msg i{ font-size:26px; display:block; margin-bottom:8px }
.bp-done{ text-align:center; padding:16px 0 6px }
.bp-ic{
  width:82px; height:82px; border-radius:50%; margin:0 auto 18px;
  background:linear-gradient(135deg,#0d3d63,#A56A4A);
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:40px;
}
.bp-done h3{ font-size:22px; font-weight:800; color:#0B1F3B; margin:0 0 10px }
.bp-done p{ font-size:15px; color:#64748b; line-height:2.1; margin:0 0 22px }
.bp-back{ display:inline-block; padding:12px 32px; border-radius:12px;
  background:#f4f8fc; color:#0B1F3B; font-weight:700; font-size:14px; text-decoration:none }

@media (max-width:640px){
  .bp-hero{ padding:48px 0 42px } .bp-hero h1{ font-size:25px }
  .bp-card{ padding:22px 18px; border-radius:16px }
  .bp-row,.bp-name-row,.bp-roles{ grid-template-columns:1fr; gap:0 }
  .bp-row .bp-col{ margin-bottom:16px }
  .bp-roles{ gap:10px; margin-bottom:16px }
  .bp-badges{ gap:26px }
}

/* ── مقدّمة المبادرة ── */
.bp-mission{
  max-width:880px; margin:0 auto 56px; text-align:center;
  padding:36px 30px; border-radius:22px;
  background:linear-gradient(165deg,#f4f9fd,#fff);
  border:1px solid #e2ecf5;
}
.bp-tag{
  display:inline-flex; align-items:center; gap:7px;
  background:#0B1F3B; color:#f0b93c; border-radius:22px;
  padding:7px 18px; font-size:12.5px; font-weight:800; margin-bottom:16px;
}
.bp-mission h2{ font-size:25px; font-weight:900; color:#0B1F3B; margin:0 0 18px; line-height:1.6 }
.bp-mission p{ font-size:15.5px; line-height:2.25; color:#475569; margin:0 0 16px }
.bp-mission b{ color:#0B1F3B }
.bp-why{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:16px; margin:28px 0 24px; text-align:center;
}
.bp-why div{
  background:#fff; border:1px solid #e2ecf5; border-radius:15px; padding:20px 14px;
}
.bp-why i{ font-size:26px; color:#A56A4A; display:block; margin-bottom:9px }
.bp-why b{ display:block; font-size:14.5px; color:#0B1F3B; margin-bottom:4px }
.bp-why span{ font-size:12.5px; color:#94a3b8; line-height:1.75 }
.bp-cta-line{ font-size:15px !important; color:#334155 !important; margin-bottom:22px !important }
.bp-cta{
  display:inline-flex; align-items:center; gap:9px;
  background:linear-gradient(135deg,#0B1F3B,#A56A4A);
  color:#fff; text-decoration:none; border-radius:13px;
  padding:14px 34px; font-size:15.5px; font-weight:800; transition:.18s;
}
.bp-cta:hover{ color:#fff; transform:translateY(-2px); box-shadow:0 10px 26px rgba(11,31,59,.26) }
@media (max-width:640px){
  .bp-mission{ padding:26px 18px; border-radius:16px }
  .bp-mission h2{ font-size:20px }
  .bp-mission p{ font-size:14.5px; line-height:2.1 }
}

/* ── توحيد ارتفاع بطاقات المبادرة الثلاث ── */
.bp-why{ align-items:stretch }
.bp-why div{
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  height:100%; min-height:150px;
}
.bp-why span{ display:block }

/* تنبيه التحقّق من العضوية */
.bp-hint.info{ background:#eaf3fa; border:1px solid #cfe2f3; color:#0B1F3B }

/* ═══════════════════════════════════════════════════════════
   تكثيف الصفحة — تقليل المسافات بين الأقسام وأحجام الواجهة
   أُضيف في آخر الملف عمداً: يغلب ما سبقه ويُحذف كاملاً بحذف الكتلة.
   ═══════════════════════════════════════════════════════════ */

/* المسافات الرأسية للأقسام — كانت 100px فوق وتحت */
.about,
.capabilities,
.services-pro,
.membership-pro,
.community{ padding:54px 0 }
.values-sec,
.testi-sec,
.board-sec{ padding:48px 0 }
.signup-band{ padding:48px 0 }
.trust-row{ padding:26px 0 }
.ads-band{ padding:16px 0 }
.site-footer{ padding:40px 0 20px }
.footer-top{ gap:26px; padding-bottom:24px }

/* الواجهة (السلايدر) — كانت 400px بحشو 62px */
.hero-carousel{ min-height:300px }
.hero-slide{ padding:38px 0 }
.hero-slide h1{ font-size:31px; margin-bottom:13px }
.hero-slide p{ font-size:15px; margin-bottom:18px }

/* الإعلانات العلوية: لا قصّ للصورة.
   object-fit:cover مع سقف ارتفاع كان يقتطع أطراف البنر.
   contain يُظهر الصورة كاملة، والسقف حماية من صورة طويلة فقط. */
.ads-top .ad-card.ad-bare .ad-img{ max-height:none; height:auto; object-fit:contain }
.ads-top .ad-in{ padding:14px 22px }
.ads-top .ad-card h4{ font-size:17px; margin-bottom:3px }
.ad-card h4{ font-size:16.5px; line-height:1.45 }
.ad-card p{ font-size:13px; line-height:1.7 }
.ad-in{ padding:18px 20px }
.ad-badge{ margin-bottom:8px; padding:3px 11px }
.ad-cta{ margin-top:10px }

/* عناوين الأقسام وفراغاتها */
.about-text h2{ font-size:26px; margin:6px 0 12px }
.cap-head h2{ font-size:27px }
.community-head h2{ font-size:28px }
.community-tabs{ margin:0 auto 26px }
.news-tabs{ margin-bottom:22px }
.section-label{ margin-bottom:7px }

/* البطاقات الداخلية */
.cap-card{ padding:24px 20px }
.svc-card{ padding:20px 18px }
.svc-card p{ margin-bottom:12px; min-height:0 }
.mem-card-pro{ padding:26px 22px }
.mem-period-pro{ margin-bottom:14px }
.mem-check-list li{ padding:7px 0 }
.comm-feature{ min-height:340px }
.vmg-card{ padding:20px }

@media(max-width:768px){
  .about,.capabilities,.services-pro,.membership-pro,.community{ padding:36px 0 }
  .values-sec,.testi-sec,.board-sec,.signup-band{ padding:34px 0 }
  .hero-carousel{ min-height:250px }
  .hero-slide{ padding:28px 0 }
  .hero-slide h1{ font-size:25px }
  .ads-top .ad-card.ad-bare .ad-img{ max-height:none }
  .comm-feature{ min-height:260px }
}