@charset "UTF-8";
/* تنسيقات صفحة article-details.php — كانت مكتوبة جوّه الصفحة في <style>.
   اتنقلت لملف منفصل عشان المتصفح يخزّنها (الـHTML نفسه max-age=0
   فكان بيتحمّل بالتنسيقات دي كاملة مع كل زيارة). الوسم <link> في نفس
   مكان الـ<style> القديم بالظبط، فترتيب القواعد ماتغيّرش.
   ⚠️ أي تعديل هنا لازم يرفع رقم ?v= في article-details.php. */
:root{
  --logo-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='48' fill='%23063F60'/%3E%3Ccircle cx='50' cy='50' r='46' fill='none' stroke='%230786AD' stroke-width='4'/%3E%3Cpath d='M50 26 L84 43 L50 60 L16 43 Z' fill='%23ffffff'/%3E%3Cpath d='M28 49 L28 65 Q50 76 72 65 L72 49' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='84' cy='43' r='3.5' fill='%230786AD'/%3E%3Cline x1='84' y1='43' x2='84' y2='62' stroke='%230786AD' stroke-width='3'/%3E%3C/svg%3E");
  --navy:#062B4A;
  --navy-deep:#031C34;
  --cyan:#20B7D9;
  --orange:#20B7D9;
  --blue-mid:#175B8C;
  --orange-dark:#175B8C;
  --bg:#FFFFFF;
  --bg-soft:#EDF3F7;
  --text:#0B3350;
  --text-muted:#5A7288;
  --border:#D8E2EA;
  --gold:#E8AD3F;
  --gold-soft:#F3C56B;
  --radius:12px;
  --shadow:0 12px 30px -14px rgba(6,63,96,0.25);
  --font-head:'IBM Plex Sans Arabic', sans-serif;
  --font-body:'Tajawal', sans-serif;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
::selection{background:var(--cyan); color:#fff;}
::-moz-selection{background:var(--cyan); color:#fff;}
html{scrollbar-color:var(--navy) var(--bg-soft); scrollbar-width:thin;}
::-webkit-scrollbar{width:11px; height:11px;}
::-webkit-scrollbar-track{background:var(--bg-soft);}
::-webkit-scrollbar-thumb{background:var(--navy); border-radius:20px; border:2px solid var(--bg-soft);}
::-webkit-scrollbar-thumb:hover{background:var(--navy-deep);}
body{background:var(--bg); color:var(--text); font-family:var(--font-body); line-height:1.75;}
img,svg{display:block; max-width:100%;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
button{font-family:inherit; cursor:pointer; border:none; background:none;}
h1,h2,h3{font-family:var(--font-head); font-weight:800;}
.wrap{max-width:1200px; margin:0 auto; padding:0 28px;}
.section{padding:80px 0;}
.section-soft{background:var(--bg-soft);}
.eyebrow{font-size:13.5px; font-weight:700; color:var(--orange); margin-bottom:10px;}
.head-title{font-size:32px; font-weight:800; color:var(--navy); margin-bottom:10px;}
.head-desc{color:var(--text-muted); font-size:15.5px; max-width:640px;}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:40px;}

.btn{display:inline-flex; align-items:center; gap:8px; padding:14px 28px; border-radius:999px; font-weight:700; font-size:14.5px; transition:transform .2s ease, box-shadow .2s ease;}
.btn-orange{background:linear-gradient(135deg,#F2965A,var(--orange)); color:#fff; box-shadow:0 12px 26px -10px rgba(224,123,57,.6);}
.btn-orange:hover{transform:translateY(-2px);}
.btn-navy{background:var(--navy); color:#fff;}
.btn-navy:hover{background:var(--navy-deep);}
.btn-outline{border:1.5px solid var(--navy); color:var(--navy);}
.btn-outline:hover{background:var(--navy); color:#fff;}
.btn-outline-white{border:1.5px solid #fff; color:#fff;}
.btn-outline-white:hover{background:#fff; color:var(--navy);}
.logo-badge{width:40px; height:40px; border-radius:50%; background-image:var(--logo-img); background-size:cover; background-position:center; flex-shrink:0;}

.topbar{background:linear-gradient(90deg, var(--navy-deep), var(--navy)); color:#B9CBDA; font-size:12.5px; position:relative;}
.topbar::after{content:""; position:absolute; inset:auto 0 0 0; height:2px; background:linear-gradient(90deg, var(--cyan), var(--orange)); opacity:.75;}
.topbar .wrap{display:flex; align-items:center; justify-content:space-between; padding:9px 28px; gap:18px; flex-wrap:wrap;}
.topbar-tagline{display:flex; align-items:center; gap:7px; color:#CFE3EE; font-weight:600; font-size:12.5px;}
.topbar-tagline svg{flex-shrink:0; color:var(--orange);}
.topbar-links{display:flex; align-items:center; gap:14px; flex-wrap:wrap;}
.topbar-links a{display:inline-flex; align-items:center; gap:6px; transition:color .15s ease;}
.topbar-links a:hover{color:#fff;}
.topbar-links svg{opacity:.8; flex-shrink:0;}
.topbar-divider{width:1px; height:12px; background:rgba(255,255,255,.18); display:inline-block;}
.topbar-cta{background:rgba(255,255,255,.12); padding:5px 14px; border-radius:999px; font-weight:700; color:#fff !important;}
.topbar-cta:hover{background:rgba(255,255,255,.22);}
.topbar-social{display:flex; align-items:center; gap:10px;}
.topbar-social a{width:24px; height:24px; border-radius:50%; background:rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; color:#CFE3EE;}
.topbar-social a:hover{background:rgba(255,255,255,.22); color:#fff;}
@media (max-width:1100px){ .topbar-social{display:none;} }
@media (max-width:1100px){ .topbar-tagline{display:none;} }
@media (max-width:600px){
  .topbar .wrap{justify-content:center;}
  .topbar-links{gap:8px;}
  .topbar-links .contact-email-link{display:none;}
  .topbar-cta{padding:5px 10px; font-size:11.5px;}
}

header{background:#fff;}
.site-header-wrap{position:sticky; top:0; z-index:100; box-shadow:0 2px 14px -8px rgba(0,0,0,.15);}
.nav{display:flex; align-items:center; justify-content:space-between; padding:16px 0;}
.logo{display:flex; align-items:center; gap:10px;}
.logo .word{font-family:var(--font-head); font-weight:800; font-size:19px; color:var(--navy); line-height:1.2;}
.logo .word small{display:block; font-weight:400; font-size:10.5px; color:var(--text-muted);}
.nav-links{display:flex; align-items:center; gap:18px; font-weight:600; font-size:13.5px; color:var(--navy); white-space:nowrap;}
.nav-links a{position:relative; padding:4px 0;}
.nav-links a.active{color:var(--orange);}
.nav-links a:hover{color:var(--orange);}
.burger{display:none; flex-direction:column; gap:5px; width:26px; margin-inline-start:14px;}
.burger span{height:2px; background:var(--navy);}
.mobile-menu{display:none; flex-direction:column; gap:16px; padding:20px 28px 24px; border-top:1px solid var(--border);}
.mobile-menu.open{display:flex;}
.mobile-menu a.active{color:var(--orange);}

/* breadcrumb / page header band */
.page-hero{background:linear-gradient(150deg,var(--navy) 0%, var(--navy-deep) 65%); color:#fff; padding:56px 0; position:relative; overflow:hidden; isolation:isolate;}
.page-hero::before{content:""; position:absolute; inset:0; z-index:-1; opacity:.16; background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size:42px 42px; mask-image:linear-gradient(to left,#000,transparent 88%);}
.page-hero::after{content:""; position:absolute; inset:0; background:radial-gradient(circle at 85% 20%, rgba(14,165,212,.25), transparent 55%);}
.page-hero .wrap{position:relative; z-index:2;}
.breadcrumb{font-size:13px; color:#9FC3D8; margin-bottom:14px;}
.breadcrumb a:hover{color:#fff;}
.page-hero h1{font-size:32px;}
.page-hero p{color:#B9CBDA; margin-top:10px; max-width:600px;}

/* hero carousel (home only) */
.hero{background:linear-gradient(150deg,var(--navy) 0%, var(--navy-deep) 65%); position:relative; overflow:hidden; color:#fff;}
.hero::after{content:""; position:absolute; inset:0; background:radial-gradient(circle at 85% 20%, rgba(14,165,212,.25), transparent 55%);}
.carousel{position:relative; z-index:2; padding:70px 0 60px;}
.slide{display:none; animation:fadeIn .5s ease;}
.slide.active{display:block;}
@keyframes fadeIn{ from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);} }
.slide-tag{display:inline-block; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); padding:6px 16px; border-radius:999px; font-size:12.5px; margin-bottom:20px;}
.slide h1{font-size:40px; line-height:1.4; margin-bottom:18px; max-width:640px;}
.slide-badge{display:inline-flex; align-items:center; gap:8px; background:var(--orange); color:#fff; font-weight:700; font-size:14px; padding:10px 22px; border-radius:8px; margin-bottom:30px;}
.carousel-dots{display:flex; gap:8px; margin-top:10px;}
.carousel-dots button{width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.35);}
.carousel-dots button.active{background:var(--orange); width:22px; border-radius:5px;}

.search-bar{position:relative; z-index:3; margin-top:-30px;}
.search-box{background:#fff; border-radius:var(--radius); box-shadow:var(--shadow); padding:22px 26px; display:flex; gap:14px; align-items:center; flex-wrap:wrap;}
.search-box input{flex:1; min-width:200px; border:1px solid var(--border); border-radius:8px; padding:13px 16px; font-family:inherit; font-size:14.5px;}
.search-box input:focus{outline:2px solid var(--cyan); border-color:transparent;}

.about-strip p{font-size:15.5px; color:var(--text-muted); max-width:900px; margin:0 auto; text-align:center;}

.stats-row{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
.stat-card{background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:28px 20px; text-align:center; box-shadow:var(--shadow);}
.stat-card b{display:block; font-family:var(--font-head); font-size:28px; color:var(--navy); margin-bottom:6px;}
.stat-card span{font-size:13px; color:var(--text-muted);}

.programs-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.program-card{background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:transform .25s ease, box-shadow .25s ease;}
.program-card:hover{transform:translateY(-6px); box-shadow:var(--shadow);}
.program-top{background:linear-gradient(135deg,var(--navy),var(--navy-deep)); padding:26px; color:#fff; position:relative;}
.program-code{font-size:11.5px; letter-spacing:.05em; color:#9FC3D8; margin-bottom:8px;}
.program-top h3{font-size:17px; line-height:1.5;}
.program-body{padding:20px 26px;}
.program-tags{display:flex; gap:8px; margin-bottom:14px; flex-wrap:wrap;}
.tag{background:var(--bg-soft); color:var(--navy); font-size:12px; font-weight:600; padding:5px 12px; border-radius:999px;}
.program-body a.cta-link{font-weight:700; color:var(--orange); font-size:14px;}
.program-body a.cta-link:hover{text-decoration:underline;}

.articles-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.article-card{background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden;}
.article-thumb{height:130px; background:linear-gradient(135deg,var(--cyan),var(--navy)); display:flex; align-items:center; justify-content:center; color:#fff; font-size:12px; letter-spacing:.05em;}
.article-body{padding:20px 22px;}
.article-body h3{font-size:15.5px; line-height:1.6; margin-bottom:10px; color:var(--navy);}
.article-body p{font-size:13px; color:var(--text-muted); margin-bottom:12px;}
.article-body a{font-size:13px; font-weight:700; color:var(--cyan);}

.testi-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.testi-card{background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow);}
.stars{color:var(--orange); font-size:14px; margin-bottom:14px; letter-spacing:2px;}
.testi-card p{font-size:14px; color:var(--text-muted); margin-bottom:18px;}
.testi-who{display:flex; align-items:center; gap:12px;}
.testi-avatar{width:38px; height:38px; border-radius:50%; background:var(--navy); flex-shrink:0;}
.testi-who b{font-size:13.5px; display:block; color:var(--navy);}
.testi-who span{font-size:12px; color:var(--text-muted);}

.clients-row{display:grid; grid-template-columns:repeat(6,1fr); gap:16px;}
.client-tile{background:#fff; border:1px dashed var(--border); border-radius:8px; height:64px; display:flex; align-items:center; justify-content:center; font-size:11px; color:var(--text-muted); text-align:center; padding:6px; transition:border-color .2s ease, color .2s ease;}
.client-tile:hover{border-color:var(--cyan); color:var(--navy);}

.disclaimer{background:#FFF7E8; border:1px solid #F0D89B; color:#8A6417; font-size:13px; padding:14px 16px; border-radius:8px; margin-top:18px; line-height:1.8;}

/* simple panel / form components (used on certificates & payments pages) */
.panel{background:var(--card, #fff); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden;}
.panel-head{padding:18px 22px; border-bottom:1px solid var(--border);}
.panel-head h3{font-size:16px; color:var(--navy); font-family:var(--font-head);}
.field{margin-bottom:14px;}
.field label{display:block; font-size:13px; font-weight:600; color:var(--navy); margin-bottom:6px;}
.field input, .field select{width:100%; border:1.5px solid var(--border); border-radius:8px; padding:11px 14px; font-size:14px; font-family:inherit;}
.field input:focus, .field select:focus{outline:none; border-color:var(--cyan);}
.btn-block{width:100%; justify-content:center;}

/* scroll reveal */
.reveal{opacity:0; transform:translateY(20px); transition:opacity .6s ease, transform .6s ease;}
.reveal.in{opacity:1; transform:translateY(0);}
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1; transform:none; transition:none;} html{scroll-behavior:auto;} }

/* why choose us */
.why-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px;}
.why-card{background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:28px 24px; box-shadow:var(--shadow); transition:transform .3s ease, box-shadow .3s ease;}
.why-card:hover{transform:translateY(-6px);}
.why-icon{width:48px; height:48px; border-radius:12px; background:var(--bg-soft); display:flex; align-items:center; justify-content:center; margin-bottom:16px;}
.why-card h3{font-size:16.5px; color:var(--navy); margin-bottom:8px;}
.why-card p{font-size:13.5px; color:var(--text-muted);}

/* mini process timeline */
.mini-timeline{display:grid; grid-template-columns:repeat(4,1fr); gap:24px; position:relative; margin-top:8px;}
.mini-timeline::before{content:""; position:absolute; top:23px; right:12%; left:12%; height:2px; background:var(--border);}
.mt-step{text-align:center; position:relative; padding:0 10px;}
.mt-num{width:46px; height:46px; border-radius:50%; background:var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--font-head); font-weight:800; margin:0 auto 16px; position:relative; z-index:2; border:4px solid #fff; box-shadow:0 0 0 1px var(--border);}
.mt-step h3{font-size:15px; color:var(--navy); margin-bottom:6px;}
.mt-step p{font-size:13px; color:var(--text-muted);}

.cta-band{background:linear-gradient(120deg,var(--navy),var(--navy-deep)); border-radius:20px; padding:56px 44px; color:#fff; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;}
.cta-band h2{font-size:26px; max-width:480px;}
.cta-band p{color:#B9CBDA; margin-top:10px; max-width:440px;}

/* pricing table */
.price-table{width:100%; border-collapse:collapse; margin-top:10px; background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);}
.price-table th{font-size:12.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); text-align:start; padding:14px 20px; border-bottom:2px solid var(--border); background:var(--bg-soft);}
.price-table td{padding:22px 20px; border-bottom:1px solid var(--border); vertical-align:top;}
.price-table .ptitle{font-weight:700; color:var(--navy); font-size:16px; margin-bottom:6px;}
.price-table .pdesc{font-size:13.5px; color:var(--text-muted); max-width:340px;}
.price-table .pval{font-weight:700; font-size:13.5px; color:var(--orange);}

/* FAQ */
.faq-list{max-width:820px;}
.faq-item{border-bottom:1px solid var(--border); padding:20px 0;}
.faq-q{display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:16px; font-weight:700; color:var(--navy); width:100%; text-align:start;}
.faq-q .plus{font-size:20px; color:var(--orange); transition:transform .3s ease; flex-shrink:0;}
.faq-item.open .plus{transform:rotate(45deg);}
.faq-a{max-height:0; overflow:hidden; transition:max-height .35s ease;}
.faq-a p{padding-top:12px; color:var(--text-muted); font-size:14px; max-width:640px;}

footer{background:var(--navy-deep); color:#B9CBDA; padding:60px 0 24px;}
.footer-grid{display:grid; grid-template-columns:1.3fr .9fr .9fr 1fr; gap:36px; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,.15);}
.footer-logo{display:flex; align-items:center; gap:10px; font-family:var(--font-head); font-weight:800; font-size:18px; color:#fff; margin-bottom:14px;}
.footer-col h3{color:#fff; font-size:18px; margin-bottom:16px;}
.footer-col li{margin-bottom:11px; font-size:14px;}
.footer-col a:hover{color:var(--cyan);}
.footer-social{display:flex; gap:10px; margin-top:2px;}
.footer-social a{width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; color:#B9CBDA;}
.footer-social a:hover{background:var(--cyan); color:#fff;}
.footer-bottom{padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:13px; color:#7E93A3;}
.footer-payment-row{display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding-top:24px; border-top:1px solid rgba(255,255,255,.1); margin-top:6px;}
.footer-payment-label{font-size:12.5px; color:#8CA3B3;}
.footer-payment-icon{border-radius:5px; overflow:hidden; line-height:0; opacity:.92;}

.whatsapp-float{position:fixed; bottom:24px; left:24px; z-index:80; width:56px; height:56px; border-radius:50%; background:#25D366; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 24px -8px rgba(0,0,0,.4); transition:transform .25s ease; animation:waPulse 2.2s ease-in-out infinite;}
.whatsapp-float::before{content:""; position:absolute; inset:0; border-radius:50%; background:#25D366; z-index:-1; animation:waPulseRing 2.2s ease-out infinite;}
@keyframes waPulse{ 0%,100%{transform:scale(1);} 50%{transform:scale(1.08);} }
@keyframes waPulseRing{ 0%{transform:scale(1); opacity:.55;} 100%{transform:scale(1.9); opacity:0;} }
@media (prefers-reduced-motion: reduce){ .whatsapp-float, .whatsapp-float::before{animation:none;} }
.whatsapp-float:hover{transform:scale(1.08);}

.mobile-bottom-nav{display:none; position:fixed; bottom:0; left:0; right:0; z-index:90; background:var(--navy-deep); border-top:1px solid rgba(255,255,255,.1); box-shadow:0 -6px 20px -10px rgba(0,0,0,.4); padding:9px 6px calc(9px + env(safe-area-inset-bottom));}
.mobile-bottom-nav .wrap{display:flex; align-items:flex-end; justify-content:space-around; max-width:none; padding:0;}
.mobile-bottom-nav a{display:flex; flex-direction:column; align-items:center; gap:4px; font-size:10.5px; font-weight:600; color:#B9CBDA; text-decoration:none; flex:1; min-width:0;}
.mobile-bottom-nav a svg{flex-shrink:0;}
.mobile-bottom-nav a.active{color:var(--gold, #E8AD3F);}
.mobile-bottom-nav a.elevated{margin-top:-30px;}
.mobile-bottom-nav a.elevated .icon-circle{width:54px; height:54px; border-radius:50%; background:linear-gradient(135deg,var(--gold, #E8AD3F),var(--gold-soft, #F3C56B)); display:flex; align-items:center; justify-content:center; color:var(--navy-deep); box-shadow:0 10px 22px -6px rgba(232,173,63,.5); margin-bottom:2px; border:4px solid var(--navy-deep);}
.mobile-bottom-nav a.elevated{color:var(--gold, #E8AD3F); font-weight:700;}
@media (max-width:768px){
  .mobile-bottom-nav{display:block;}
  body{padding-bottom:78px;}
  .whatsapp-float{bottom:100px; left:16px; width:48px; height:48px;}
}


a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible, .btn:focus-visible{
  outline:2.5px solid var(--cyan); outline-offset:2px; border-radius:4px;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible{
  outline:2.5px solid var(--cyan); outline-offset:1px; border-color:var(--cyan);
}

@media (max-width:1100px){
  .nav-links{display:none;}
  .burger{display:flex;}
  .nav-cta{display:none;}
  .slide h1{font-size:30px;}
  .stats-row, .programs-grid, .articles-grid, .testi-grid, .why-grid{grid-template-columns:1fr 1fr;}
  .clients-row{grid-template-columns:repeat(3,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr; row-gap:30px;}
  .mini-timeline{grid-template-columns:1fr 1fr; row-gap:34px;}
  .mini-timeline::before{display:none;}
}
@media (max-width:620px){
  .section{padding:56px 0;}
  .stats-row, .programs-grid, .articles-grid, .testi-grid, .footer-grid, .why-grid, .mini-timeline{grid-template-columns:1fr;}
  .clients-row{grid-template-columns:repeat(2,1fr);}
  .cta-band{flex-direction:column; text-align:center; padding:40px 26px;}
  .search-box{flex-direction:column; align-items:stretch;}
  .page-hero h1{font-size:26px;}
}

/* ---- program-details page enhancements ---- */
.pd-info-row{display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--border);}
.pd-info-row:last-child{border-bottom:none;}
.pd-info-icon{width:34px; height:34px; border-radius:9px; background:var(--bg-soft); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--navy);}
.pd-info-text .lbl{font-size:11.5px; color:var(--text-muted); margin-bottom:2px;}
.pd-info-text .val{font-weight:700; color:var(--navy); font-size:13.5px; line-height:1.4;}
.pd-audience-box{display:flex; gap:14px; align-items:flex-start; background:var(--bg-soft); border-radius:var(--radius); padding:18px 20px; margin-top:16px;}
.pd-audience-box .pd-info-icon{background:#fff;}
.pd-main-grid{display:grid; grid-template-columns:2fr 1fr; gap:30px; align-items:start;}
.pd-sticky{position:sticky; top:20px;}
@media (max-width:1100px){ .pd-sticky{position:static;} }
@media (max-width:900px){ .pd-main-grid{grid-template-columns:1fr;} }
@media (max-width:620px){ .pd-related-grid{grid-template-columns:1fr !important;} }

.faq-item{border-bottom:1px solid var(--border);}
.faq-item:last-child{border-bottom:none;}
.faq-q{width:100%; text-align:start; padding:18px 22px; background:none; border:none; font-family:inherit; font-size:14.5px; font-weight:700; color:var(--navy); display:flex; justify-content:space-between; align-items:center; gap:12px; cursor:pointer;}
.faq-q .chevron{transition:transform .2s ease; flex-shrink:0; color:var(--text-muted);}
.faq-item.open .faq-q .chevron{transform:rotate(180deg);}
.faq-a{max-height:0; overflow:hidden; transition:max-height .25s ease;}
.faq-a p{padding:0 22px 18px; font-size:13.5px; color:var(--text-muted); line-height:1.8;}
.faq-item.open .faq-a{max-height:220px;}

.related-card{background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:20px; transition:transform .2s ease, box-shadow .2s ease; text-decoration:none; display:block;}
.related-card:hover{transform:translateY(-4px); box-shadow:var(--shadow);}
.related-card .code{font-size:11px; color:var(--text-muted); margin-bottom:6px;}
.related-card h4{font-size:14.5px; color:var(--navy); line-height:1.5; margin-bottom:10px; min-height:42px;}

/* ================= 2026 Design Upgrade: micro-interactions, skeleton, parallax ================= */
.btn:active{transform:scale(.96);}
.testi-card, .article-card, .avail-card{transition:transform .25s ease, box-shadow .25s ease;}
.testi-card:hover, .article-card:hover, .avail-card:hover{transform:translateY(-5px); box-shadow:var(--shadow);}
.why-card{transition:transform .25s ease, box-shadow .25s ease;}
.why-card:hover{transform:translateY(-4px); box-shadow:var(--shadow);}
.related-card{transition:transform .25s ease, box-shadow .25s ease;}

/* skeleton loading shimmer */
.skeleton-card{position:relative; overflow:hidden; background:#E8EEF2; border-radius:var(--radius); height:230px;}
.skeleton-line{position:relative; overflow:hidden; background:#E8EEF2; border-radius:6px; height:13px; margin:10px 0;}
.skeleton-card::after, .skeleton-line::after{content:""; position:absolute; inset:0; background:linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation:skeletonShimmer 1.3s infinite;}
@keyframes skeletonShimmer{ from{transform:translateX(-100%);} to{transform:translateX(100%);} }
.skeleton-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
@media (max-width:900px){ .skeleton-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:620px){ .skeleton-grid{grid-template-columns:1fr;} }

/* subtle parallax for card watermark icons */
.cat-watermark{ will-change:transform; }

/* ============ Print Stylesheet: طباعة نضيفة بدون هيدر/فوتر/أزرار ============ */
@media print{
  .site-header-wrap, .topbar, header, footer,
  .whatsapp-float, .mobile-bottom-nav, .mobile-menu,
  .testi-arrow, .cta-band, .advisor-bar, .burger,
  .btn, button, .skeleton-card, .skeleton-line{
    display:none !important;
  }
  body{ padding-bottom:0 !important; background:#fff !important; }
  .page-hero, .hero{ background:#fff !important; color:#000 !important; padding:16px 0 !important; box-shadow:none !important; }
  .page-hero *, .hero *, .page-hero h1, .page-hero p{ color:#000 !important; text-shadow:none !important; }
  .page-hero::after, .hero::after{ display:none !important; }
  a{ text-decoration:none; color:#000 !important; }
  .panel, .program-card, .testi-card, .article-card{ box-shadow:none !important; border:1px solid #ccc !important; break-inside:avoid; }
  .wrap{ max-width:100% !important; padding:0 16px !important; }
  .pd-main-grid{ grid-template-columns:1fr !important; }
  * { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}
.reading-progress-bar{position:fixed; top:0; right:0; height:3px; width:0%; background:linear-gradient(90deg,var(--cyan),var(--gold, #E8AD3F)); z-index:200; transition:width .1s ease-out;}


/* ================= صفحة تفاصيل المقال الاحترافية ================= */
.article-detail-hero{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  color:#fff;
  background:
    radial-gradient(circle at 84% 12%, rgba(32,183,217,.28), transparent 36%),
    radial-gradient(circle at 8% 88%, rgba(232,173,63,.15), transparent 30%),
    linear-gradient(145deg,var(--navy) 0%,var(--navy-deep) 72%);
  padding:54px 0 92px;
}
.article-detail-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:.18;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(to left,#000,transparent 94%);
}
.article-detail-hero::after{
  content:"";
  position:absolute;
  width:280px;
  height:280px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
  left:-110px;
  top:-90px;
  box-shadow:0 0 0 34px rgba(255,255,255,.025),0 0 0 72px rgba(255,255,255,.018);
}
.article-breadcrumb{font-size:12.5px;color:#9FC3D8;margin-bottom:22px;display:flex;gap:7px;align-items:center;flex-wrap:wrap;}
.article-breadcrumb a:hover{color:#fff;}
.article-hero-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.55fr);gap:46px;align-items:center;}
.article-category-pill{display:inline-flex;align-items:center;gap:8px;padding:7px 15px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.09);border-radius:999px;color:#D8EFF7;font-size:12.5px;font-weight:700;margin-bottom:17px;backdrop-filter:blur(8px);}
.article-category-pill::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 5px rgba(232,173,63,.12);}
.article-detail-hero h1{font-size:clamp(29px,4.3vw,52px);line-height:1.32;max-width:850px;margin:0 0 18px;color:#fff;letter-spacing:-.02em;}
.article-hero-excerpt{max-width:760px;color:#BDD2E0;font-size:16.5px;line-height:1.9;}
.article-meta-row{display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap;margin-top:24px;color:#AFC8D8;font-size:12.8px;}
.article-meta-item{display:inline-flex;align-items:center;gap:7px;}
.article-meta-item svg{color:var(--cyan);}
.article-cover-card{min-height:285px;border-radius:28px;overflow:hidden;position:relative;border:1px solid rgba(255,255,255,.16);box-shadow:0 28px 55px -30px rgba(0,0,0,.75);background:linear-gradient(145deg,rgba(32,183,217,.26),rgba(255,255,255,.05));}
.article-cover-card img{width:100%;height:100%;min-height:285px;object-fit:cover;position:absolute;inset:0;}
.article-cover-card::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(3,28,52,.78),transparent 62%);}
.article-cover-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.8);}
.article-cover-placeholder svg{width:92px;height:92px;opacity:.74;filter:drop-shadow(0 14px 18px rgba(0,0,0,.2));}
.article-cover-mark{position:absolute;z-index:2;right:20px;bottom:18px;left:20px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#fff;font-size:12px;font-weight:700;}
.article-cover-mark span:last-child{color:var(--gold-soft);}
.article-detail-main{background:var(--bg-soft);padding:0 0 88px;}
.article-detail-shell{position:relative;margin-top:-48px;z-index:3;}
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:28px;align-items:start;}
.article-content-card{background:#fff;border:1px solid rgba(216,226,234,.95);border-radius:24px;box-shadow:0 22px 55px -38px rgba(3,28,52,.45);overflow:hidden;}
.article-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 22px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,#fff,#FAFCFD);}
.article-toolbar-label{display:flex;align-items:center;gap:9px;color:var(--navy);font-size:13px;font-weight:700;}
.article-action-row{display:flex;align-items:center;gap:8px;}
.article-icon-btn{width:38px;height:38px;border:1px solid var(--border);border-radius:11px;background:#fff;color:var(--navy);display:flex;align-items:center;justify-content:center;transition:.2s ease;}
.article-icon-btn:hover{transform:translateY(-2px);border-color:var(--cyan);color:var(--cyan);box-shadow:0 9px 18px -14px rgba(6,43,74,.6);}
/* ══ كارت البرنامج في آخر المقالة ══
   القارئ اللي خلص المقالة هو أقرب حد للتسجيل. الكارت بلون مميّز عن
   جسم المقال عشان يبان إنه دعوة مش فقرة، بس من غير ما يقطع القراءة:
   بيجي بعد آخر سطر مش وسط النص. */
.article-prog-cta{
  margin:34px 42px 42px; padding:22px 24px;
  background:linear-gradient(135deg,#F4F9FF,#EEF5FF);
  border:1px solid #D8E7F8; border-radius:14px;
  border-inline-start:4px solid var(--gold,#E8A63A);
}
.article-prog-eyebrow{
  display:block; font-size:11.5px; font-weight:800; letter-spacing:.02em;
  color:#5B7FA6; margin-bottom:6px;
}
.article-prog-title{
  font-size:18px; line-height:1.6; color:var(--navy,#0B3B60);
  margin:0 0 8px; font-weight:800;
}
.article-prog-sum{
  font-size:14px; line-height:1.9; color:#4A6784; margin:0 0 14px;
}
.article-prog-btn{
  display:inline-flex; align-items:center; gap:7px;
  background:var(--navy,#0B3B60); color:#fff; text-decoration:none;
  font-size:14px; font-weight:800; padding:10px 18px; border-radius:10px;
  transition:background .18s ease, transform .18s ease;
}
.article-prog-btn:hover{ background:#0A4E82; transform:translateY(-1px); }
.article-prog-btn:focus-visible{ outline:2px solid var(--gold,#E8A63A); outline-offset:2px; }
@media (max-width:620px){
  .article-prog-cta{ margin:24px 18px 28px; padding:18px; }
  .article-prog-title{ font-size:16px; }
}
.article-body{padding:34px 42px 42px;font-size:17px;line-height:2.05;color:#173F5A;overflow-wrap:anywhere;}
.article-body .article-lead{font-size:19px;line-height:2;color:var(--navy);font-weight:400;border-right:4px solid var(--gold);padding:4px 18px 4px 0;margin-bottom:28px;}
.article-body h2,.article-body h3{scroll-margin-top:125px;color:var(--navy);line-height:1.55;}
.article-body h2{font-size:25px;margin:38px 0 14px;padding-bottom:10px;border-bottom:1px solid var(--border);}
.article-body h3{font-size:20px;margin:30px 0 10px;}
.article-body p{margin:0 0 20px;}
.article-body ul,.article-body ol{padding-right:24px;margin:0 0 22px;}
.article-body ul{list-style:disc;}.article-body ol{list-style:decimal;}
.article-body li{margin-bottom:8px;padding-right:4px;}
.article-body strong{color:var(--navy);}
.article-body blockquote{margin:28px 0;padding:20px 22px;border-right:4px solid var(--cyan);background:#F1F8FB;border-radius:14px 0 0 14px;color:#34566C;}
.article-empty{padding:45px 24px;text-align:center;color:var(--text-muted);}
.article-side{position:sticky;top:112px;display:flex;flex-direction:column;gap:18px;}
.article-side-card{background:#fff;border:1px solid var(--border);border-radius:20px;box-shadow:0 18px 42px -34px rgba(3,28,52,.45);overflow:hidden;}
.article-side-head{padding:17px 19px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:9px;color:var(--navy);font-weight:800;font-size:15px;}
.article-side-body{padding:18px 19px;}
.article-info-list{display:grid;gap:14px;}
.article-info-item{display:grid;grid-template-columns:38px 1fr;gap:11px;align-items:center;}
.article-info-icon{width:38px;height:38px;border-radius:11px;background:var(--bg-soft);color:var(--blue-mid);display:flex;align-items:center;justify-content:center;}
.article-info-item small{display:block;color:var(--text-muted);font-size:11px;margin-bottom:2px;}
.article-info-item b{display:block;color:var(--navy);font-size:13px;line-height:1.45;}
.article-toc{display:grid;gap:5px;}
.article-toc a{display:block;padding:8px 10px;border-radius:9px;color:#49677B;font-size:12.5px;line-height:1.55;transition:.18s ease;}
.article-toc a:hover,.article-toc a.active{background:var(--bg-soft);color:var(--navy);transform:translateX(-2px);}
.article-side-actions{display:grid;gap:9px;margin-top:16px;}
.article-side-actions .btn{justify-content:center;padding:12px 16px;font-size:13px;border-radius:12px;}
.article-related-section{margin-top:28px;}
.article-related-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:18px;}
.article-related-head h2{color:var(--navy);font-size:23px;}
.article-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.article-related-card{background:#fff;border:1px solid var(--border);border-radius:18px;overflow:hidden;transition:.25s ease;display:flex;flex-direction:column;min-height:100%;}
.article-related-card:hover{transform:translateY(-5px);box-shadow:0 20px 36px -28px rgba(3,28,52,.5);}
.article-related-thumb{height:120px;background:linear-gradient(135deg,var(--blue-mid),var(--navy-deep));position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.72);}
.article-related-thumb img{width:100%;height:100%;object-fit:cover;}
.article-related-body{padding:16px 17px 18px;display:flex;flex-direction:column;flex:1;}
.article-related-cat{color:var(--cyan);font-size:11px;font-weight:700;margin-bottom:7px;}
.article-related-card h3{font-size:15px;line-height:1.65;color:var(--navy);margin-bottom:8px;}
.article-related-card p{font-size:12px;line-height:1.7;color:var(--text-muted);margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.article-related-link{margin-top:auto;color:var(--blue-mid);font-weight:700;font-size:12.5px;}
.article-loading-card{background:#fff;border:1px solid var(--border);border-radius:24px;padding:34px;box-shadow:var(--shadow);}
.article-loading-line{height:14px;border-radius:8px;background:#E8EEF2;margin:12px 0;position:relative;overflow:hidden;}
.article-loading-line::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.9),transparent);animation:skeletonShimmer 1.25s infinite;}
.article-error-state{background:#fff;border:1px solid var(--border);border-radius:24px;padding:48px 24px;text-align:center;box-shadow:var(--shadow);}
.article-error-icon{width:68px;height:68px;margin:0 auto 16px;border-radius:20px;background:var(--bg-soft);display:flex;align-items:center;justify-content:center;color:var(--navy);}
.article-error-state h2{font-size:24px;color:var(--navy);margin-bottom:8px;}
.article-error-state p{color:var(--text-muted);margin-bottom:20px;}
.copy-toast{position:fixed;left:50%;bottom:105px;transform:translate(-50%,18px);z-index:300;background:var(--navy-deep);color:#fff;border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:11px 17px;font-size:12.5px;opacity:0;pointer-events:none;transition:.25s ease;box-shadow:0 15px 35px -20px #000;}
.copy-toast.show{opacity:1;transform:translate(-50%,0);}
@media (max-width:980px){
  .article-hero-grid{grid-template-columns:1fr;gap:28px;}
  .article-cover-card{max-width:560px;min-height:230px;}
  .article-cover-card img{min-height:230px;}
  .article-layout{grid-template-columns:1fr;}
  .article-side{position:static;display:grid;grid-template-columns:1fr 1fr;}
  .article-related-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:700px){
  .article-detail-hero{padding:28px 0 66px;}
  .article-detail-hero h1{font-size:29px;}
  .article-hero-excerpt{font-size:14.5px;line-height:1.85;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
  .article-cover-card{min-height:190px;border-radius:20px;}
  .article-cover-card img{min-height:190px;}
  .article-detail-shell{margin-top:-34px;}
  .article-content-card{border-radius:20px;}
  .article-toolbar{padding:12px 14px;}
  .article-toolbar-label span{display:none;}
  .article-body{padding:25px 20px 30px;font-size:15.5px;line-height:1.95;}
  .article-body .article-lead{font-size:17px;padding-right:13px;}
  .article-body h2{font-size:21px;margin-top:30px;}
  .article-body h3{font-size:18px;}
  .article-side{grid-template-columns:1fr;}
  .article-related-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;padding-bottom:8px;scrollbar-width:none;}
  .article-related-grid::-webkit-scrollbar{display:none;}
  .article-related-card{min-width:82%;scroll-snap-align:start;}
  .article-breadcrumb{font-size:11px;margin-bottom:15px;}
  .article-meta-row{font-size:11.5px;margin-top:18px;}
  .article-category-pill{font-size:11.5px;}
  .article-detail-main{padding-bottom:45px;}
  .article-side-card.toc-card{display:none;}
  .whatsapp-float{display:none !important;}
}
@media print{
  .article-toolbar,.article-side,.article-related-section,.reading-progress-bar,.copy-toast{display:none!important;}
  .article-detail-main{background:#fff!important;padding:0!important;}
  .article-detail-shell{margin:0!important;}
  .article-content-card{border:0!important;box-shadow:none!important;}
  .article-body{padding:0!important;}
}
