/* =========================================================
   FILE: assets/css/style.css
   PURPOSE:
   ملف التنسيق العام الأساسي لمنصة ConsuTrain-MVP.

   DESIGN RULES:
   - الاعتماد على الأزرق والذهبي والرمادي الفاتح
   - أسلوب نظيف واحترافي
   - وضوح القراءة
   - قابلية إعادة الاستخدام في أكثر من صفحة

   IMPORTANT:
   هذا الملف سيكبر لاحقًا، لذلك تم تقسيمه إلى أقسام واضحة
   مع تعليقات لتسهيل الصيانة والتعلم والتعديل.
   ========================================================= */
@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo-VariableFont_slnt,wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* =========================================================
   1) ROOT VARIABLES
   متغيرات الألوان والأبعاد العامة للمشروع
   ========================================================= */
:root{
  --bg:#f5f7fb;
  --surface:#ffffff;

  /* تدرجات الأزرق */
  --primary:#0f2747;
  --primary-2:#163760;
  --primary-3:#1d4d82;

  /* تدرجات الذهبي */
  --gold:#d4a63a;
  --gold-2:#c39221;
  --gold-soft:#f4ead1;

  /* تدرجات محايدة */
  --text:#1a1f2b;
  --muted:#667085;
  --border:#e4e7ec;
  --light:#f9fafb;

  /* الظلال والانحناءات */
  --shadow:0 10px 30px rgba(15,39,71,.08);
  --radius:18px;

  /* عرض المحتوى العام */
  --max-width:1200px;
}

/* =========================================================
   2) GLOBAL RESET
   تهيئة عامة للعناصر
   ========================================================= */
*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  
  font-family: "Cairo", Arial, "Segoe UI", Tahoma, sans-serif;
  background:var(--bg);
  color:var(--text);
  direction:rtl;
}
html, body, button, input, select, textarea {
  font-family: "Cairo", Arial, "Segoe UI", Tahoma, sans-serif;
}
/* روابط عامة */
a{
  color:inherit;
  text-decoration:none;
}

/* الصور بشكل آمن */
img{
  max-width:100%;
  display:block;
}

/* حاوية موحدة للعناصر */
.container{
  width:min(100% - 32px, var(--max-width));
  margin-inline:auto;
}

/* =========================================================
   3) HEADER
   تنسيقات الهيدر العام
   ========================================================= */
.site-header{
  background:var(--surface);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:1000;
}

.header-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:76px;
}

/* الشعار النصي */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

/* الأيقونة المربعة للشعار */
.brand-mark{
  width:42px;
  height:42px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, var(--primary), var(--gold));
  color:#fff;
  font-weight:700;
  font-size:1.2rem;
}

/* نص الشعار */
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.2;
}

.brand-text strong{
  font-size:1.05rem;
  color:var(--primary);
}

.brand-text small{
  color:var(--muted);
  font-size:.8rem;
}

/* القائمة الرئيسية */
.main-nav{
  display:flex;
  align-items:center;
  gap:18px;
}

.main-nav a{
  color:var(--primary);
  font-weight:600;
  font-size:.95rem;
}

.main-nav a:hover{
  color:var(--gold-2);
}

/* زر القائمة في الهاتف */
.nav-toggle{
  display:none;
  border:none;
  background:var(--primary);
  color:#fff;
  width:42px;
  height:42px;
  border-radius:12px;
  cursor:pointer;
  font-size:1.2rem;
}

/* =========================================================
   4) HERO SECTION
   تنسيقات مقدمة الصفحة الرئيسية
   ========================================================= */
.hero{
  padding:72px 0 40px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:28px;
  align-items:center;
}

/* بطاقات عامة تشترك في المظهر */
.hero-card,
.feature-card,
.section-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

/* البطاقة الرئيسية الكبيرة */
.hero-card{
  padding:34px;
}

/* سطر تمهيدي صغير أعلى العنوان */
.eyebrow{
  display:inline-block;
  margin-bottom:12px;
  color:var(--gold-2);
  font-weight:700;
  font-size:.95rem;
}

/* عنوان المنصة */
.hero h1{
  margin:0 0 14px;
  color:var(--primary);
  font-size:clamp(2rem, 4vw, 3.2rem);
  line-height:1.2;
}

/* النص الوصفي الرئيسي */
.hero p{
  margin:0 0 22px;
  color:var(--muted);
  font-size:1.02rem;
  line-height:1.9;
}

/* أزرار الدعوة إلى الإجراء */
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

/* نمط زر عام */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:140px;
  padding:12px 18px;
  border-radius:14px;
  font-weight:700;
  transition:.2s ease;
}

/* الزر الأساسي */
.btn-primary{
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
}

.btn-primary:hover{
  background:linear-gradient(135deg, var(--primary-2), var(--primary-3));
}

/* الزر الثانوي */
.btn-secondary{
  background:var(--gold-soft);
  color:var(--primary);
}

.btn-secondary:hover{
  background:#ebddb9;
}

/* بطاقات الجانب */
.hero-side{
  display:grid;
  gap:18px;
}

.feature-card{
  padding:22px;
}

.feature-card h3{
  margin:0 0 8px;
  color:var(--primary);
}

.feature-card p{
  margin:0;
  color:var(--muted);
  line-height:1.8;
}

/* =========================================================
   5) HOME SECTIONS
   تنسيقات الأقسام التي تأتي بعد المقدمة
   ========================================================= */
.home-section{
  padding:18px 0 54px;
}

/* عنوان القسم ووصفه */
.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}

.section-head h2{
  margin:0;
  color:var(--primary);
  font-size:1.6rem;
}

.section-head p{
  margin:8px 0 0;
  color:var(--muted);
}

/* شبكة البطاقات */
.cards-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

/* بطاقة كل قسم */
.section-card{
  padding:24px;
}

.section-card h3{
  margin:0 0 10px;
  color:var(--primary);
}

.section-card p{
  margin:0 0 16px;
  color:var(--muted);
  line-height:1.8;
}

/* رابط أسفل البطاقة */
.card-link{
  color:var(--gold-2);
  font-weight:700;
}



/* =========================================================
   HOME FREE RESOURCES SECTION
   قسم الموارد المجانية في الصفحة الرئيسية
   ========================================================= */
.home-free-resources{
  padding:18px 0 38px;
}

.home-free-resources-box{
  display:grid;
  grid-template-columns:1.5fr .9fr;
  gap:24px;
  align-items:center;
  background:linear-gradient(135deg, rgba(15,39,71,.06), rgba(212,166,58,.13));
  border:1px solid var(--border);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:30px;
}

.section-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  background:var(--gold-soft);
  color:var(--primary);
  font-weight:800;
  font-size:.9rem;
}

.home-free-resources h2{
  margin:14px 0 10px;
  color:var(--primary);
  font-size:clamp(1.45rem, 3vw, 2rem);
}

.home-free-resources p{
  margin:0 0 12px;
  color:var(--muted);
  line-height:1.95;
}

.home-free-resources-note{
  font-weight:700;
  color:var(--primary) !important;
}

.home-free-resources-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.home-free-resources-list{
  display:grid;
  gap:12px;
}

.home-resource-item{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px 18px;
  box-shadow:0 8px 24px rgba(15,39,71,.06);
}

.home-resource-item strong{
  display:block;
  color:var(--primary);
  margin-bottom:4px;
}

.home-resource-item span{
  color:var(--muted);
  font-size:.92rem;
}

@media (max-width: 900px){
  .home-free-resources-box{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .home-free-resources-box{
    padding:22px;
  }

  .home-free-resources-actions .btn{
    width:100%;
  }
}

/* =========================================================
   6) FOOTER
   تنسيقات الفوتر العام
   ========================================================= */
.site-footer{
  margin-top:40px;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:24px;
  padding:42px 0 28px;
}

.site-footer h3,
.site-footer h4{
  margin-top:0;
  margin-bottom:12px;
}

.site-footer p,
.footer-links a{
  color:rgba(255,255,255,.88);
  line-height:1.9;
}

.footer-links{
  list-style:none;
  padding:0;
  margin:0;
}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  text-align:center;
  padding:14px 12px;
  color:rgba(255,255,255,.8);
}

/* =========================================================
   7) RESPONSIVE RULES
   قواعد الشاشات المتوسطة والصغيرة
   ========================================================= */
@media (max-width: 900px){
  .hero-grid,
  .cards-grid,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .main-nav{
    position:absolute;
    top:76px;
    right:16px;
    left:16px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    box-shadow:var(--shadow);
    padding:14px;
    display:none;
    flex-direction:column;
    align-items:flex-start;
  }

  .main-nav.open{
    display:flex;
  }

  .nav-toggle{
    display:inline-grid;
    place-items:center;
  }
}

/* =========================================================
   8) INNER PAGES
   تنسيقات الصفحات الداخلية مثل:
   - learn
   - tools
   - services
   - about
   - contact
   - expert
   ========================================================= */
.inner-page{
  min-height:60vh;
}

.page-hero{
  padding:64px 0 24px;
}

.page-hero h1{
  margin:0 0 14px;
  color:var(--primary);
  font-size:clamp(1.8rem, 3vw, 2.6rem);
}

.page-hero p{
  margin:0;
  max-width:850px;
  color:var(--muted);
  line-height:1.9;
  font-size:1rem;
}


/* =========================================================
   9) GLOSSARY PAGE
   تنسيقات صفحة القاموس الإداري
   ========================================================= */

/* صندوق البحث أعلى القاموس */
.glossary-search-box h2{
  margin:0 0 10px;
  color:var(--primary);
}

.section-intro{
  margin:0 0 16px;
  color:var(--muted);
  line-height:1.8;
}

/* حقل البحث */
.search-input{
  width:100%;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:14px;
  font-size:1rem;
  outline:none;
  background:#fff;
  color:var(--text);
}

.search-input:focus{
  border-color:var(--gold);
  box-shadow:0 0 0 4px rgba(212,166,58,.12);
}

/* شبكة المصطلحات */
.glossary-list{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:18px;
}

/* بطاقة كل مصطلح */
.glossary-item h3{
  margin:0 0 10px;
  color:var(--primary);
}

.glossary-item p{
  margin:0;
  color:var(--muted);
  line-height:1.9;
}

@media (max-width: 900px){
  .glossary-list{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   10) GLOSSARY PAGE - DYNAMIC VERSION
   تنسيقات إضافية لنسخة القاموس المرتبطة بملف JSON
   ========================================================= */

/* شريط البحث مع زر إعادة الضبط */
.glossary-toolbar{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.glossary-toolbar .search-input{
  flex:1 1 320px;
}

.glossary-action-btn{
  min-width:140px;
  border:none;
  cursor:pointer;
}

/* سطر المعلومات أسفل البحث */
.glossary-meta{
  margin-top:14px;
  color:var(--muted);
  font-weight:600;
}

/* رأس بطاقة المصطلح */
.glossary-item-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
}

.glossary-item-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

/* أزرار صغيرة داخل البطاقة */
.mini-btn{
  border:1px solid var(--border);
  background:var(--light);
  color:var(--primary);
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  font-size:.88rem;
  font-weight:700;
}

.mini-btn:hover{
  border-color:var(--gold);
  background:var(--gold-soft);
}

/* حالة عدم وجود نتائج أو وجود خطأ */
.glossary-empty,
.glossary-error{
  text-align:center;
}

.glossary-empty h3,
.glossary-error h3{
  margin-top:0;
  color:var(--primary);
}

.glossary-empty p,
.glossary-error p{
  margin-bottom:0;
  color:var(--muted);
  line-height:1.8;
}

/* زر العودة للأعلى */
.back-to-top{
  position:fixed;
  left:20px;
  bottom:20px;
  width:46px;
  height:46px;
  border:none;
  border-radius:50%;
  background:linear-gradient(135deg, var(--primary), var(--gold));
  color:#fff;
  font-size:1.2rem;
  cursor:pointer;
  box-shadow:var(--shadow);
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:.25s ease;
  z-index:1200;
}

.back-to-top.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

@media (max-width: 700px){
  .glossary-item-head{
    flex-direction:column;
  }

  .glossary-item-actions{
    width:100%;
  }

  .mini-btn{
    width:100%;
  }

  .glossary-action-btn{
    width:100%;
  }
}

/* =========================================================
   11) GLOSSARY ENGLISH TERM
   عرض المصطلح الإنجليزي داخل بطاقة القاموس
   ========================================================= */
.glossary-item-title-wrap{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.glossary-item-en{
  color:var(--muted);
  font-size:.92rem;
  font-weight:600;
  direction:ltr;
  text-align:right;
}

/* =========================================================
   12) ARTICLES PAGE
   تنسيقات صفحة مكتبة المعرفة الإدارية
   ========================================================= */

.articles-toolbar{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.articles-toolbar .search-input{
  flex:1 1 320px;
}

.articles-tags-bar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}

.tag-chip{
  border:1px solid var(--border);
  background:#fff;
  color:var(--primary);
  padding:8px 12px;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  font-size:.9rem;
}

.tag-chip:hover{
  border-color:var(--gold);
  background:var(--gold-soft);
}

.tag-chip.active{
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  border-color:transparent;
}

.articles-list{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:18px;
}

.article-card h3{
  margin:0 0 12px;
  color:var(--primary);
}

.article-card p{
  margin:0 0 16px;
  color:var(--muted);
  line-height:1.9;
}

.article-meta-row{
  display:flex;
  justify-content:flex-start;
  margin-bottom:10px;
}

.article-date{
  color:var(--muted);
  font-size:.9rem;
  font-weight:600;
}

.article-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}

.article-tag{
  background:var(--gold-soft);
  color:var(--primary);
  padding:6px 10px;
  border-radius:999px;
  font-size:.85rem;
  font-weight:700;
}

@media (max-width: 900px){
  .articles-list{
    grid-template-columns:1fr;
  }

  .articles-toolbar{
    flex-direction:column;
    align-items:stretch;
  }
}

/* =========================================================
   13) SINGLE ARTICLE PAGE
   تنسيقات صفحة المقال المفرد
   ========================================================= */

.article-loading,
.article-error-state{
  text-align:center;
}

.article-loading h2,
.article-error-state h2{
  margin-top:0;
  color:var(--primary);
}

.article-loading p,
.article-error-state p{
  color:var(--muted);
  line-height:1.9;
  margin-bottom:18px;
}

.article-full{
  padding:32px;
}

.article-full-top{
  margin-bottom:18px;
}

.back-link{
  color:var(--gold-2);
  font-weight:700;
}

.article-full-header{
  margin-bottom:28px;
  padding-bottom:20px;
  border-bottom:1px solid var(--border);
}

.article-full-header h1{
  margin:0 0 14px;
  color:var(--primary);
  font-size:clamp(1.8rem, 3vw, 2.6rem);
  line-height:1.4;
}

.article-full-excerpt{
  margin:0 0 16px;
  color:var(--muted);
  font-size:1.05rem;
  line-height:1.9;
}

.article-full-meta{
  margin-bottom:14px;
}

.article-full-content{
  display:grid;
  gap:18px;
}

.article-full-content p{
  margin:0;
  color:var(--text);
  line-height:2;
  font-size:1.02rem;
}

/* تحسين عرض الفقرات التي تحتوي على strong */
.article-full-content strong{
  color:var(--primary);
}

@media (max-width: 700px){
  .article-full{
    padding:22px;
  }
}

/* =========================================================
   14) AI GUIDE PAGE
   تنسيقات صفحة learn/ai.html
   ========================================================= */

/* =========================================================
   شريط تقدم القراءة
   نثبته على نافذة العرض مباشرة أسفل الهيدر
   ========================================================= */
.reading-progress{
  position: fixed !important;
top: 0 !important;
  left: 0 !important;
  right: auto !important;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--primary));
  z-index: 2000;
  pointer-events: none;
}

.ai-layout{
  display:grid;
  grid-template-columns:300px 1fr;
  gap:24px;
  align-items:start;
  padding-top:36px;
  padding-bottom:40px;
}

.ai-sidebar{
  position:sticky;
  top:100px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:20px;
}

.ai-sidebar h3{
  margin-top:0;
  margin-bottom:14px;
  color:var(--primary);
}

.ai-toc-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}

.ai-toc-list a{
  display:block;
  color:var(--primary);
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  font-size:.95rem;
  line-height:1.7;
}

.ai-toc-list a:hover,
.ai-toc-list a.active{
  background:var(--gold-soft);
  border-color:var(--gold);
}

.ai-content{
  background:transparent;
}

.ai-content .page-title{
  margin:0 0 12px;
  color:var(--primary);
  font-size:clamp(2rem, 4vw, 3rem);
  line-height:1.3;
}

.reading-meta{
  margin-bottom:10px;
  color:var(--muted);
  font-weight:700;
}

.ai-content .page-subtitle{
  margin:0 0 26px;
  color:var(--muted);
  line-height:1.9;
  font-size:1.05rem;
}

.ai-content section{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:26px;
  margin-bottom:18px;
}

.ai-content section h2{
  margin-top:0;
  color:var(--primary);
}

.ai-content section h3{
  color:var(--primary);
  margin-top:18px;
  margin-bottom:10px;
}

.ai-content section p,
.ai-content section li,
.ai-content blockquote{
  line-height:1.95;
  color:var(--text);
}

.ai-content ul{
  padding-right:20px;
}

.callout{
  border-radius:14px;
  padding:16px 18px;
  margin:14px 0 18px;
  line-height:1.9;
}

.callout.insight{
  background:#eef4fb;
  border-right:4px solid var(--primary);
}

.callout.strategy{
  background:#faf4e4;
  border-right:4px solid var(--gold);
}

.callout.warning{
  background:#fff3f0;
  border-right:4px solid #c75b39;
}

.faq-list{
  display:grid;
  gap:12px;
}

.faq-item{
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}

.faq-question{
  width:100%;
  border:none;
  background:#fff;
  padding:16px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  cursor:pointer;
  font-weight:700;
  color:var(--primary);
  text-align:right;
}

.faq-answer{
  padding:0 18px 18px;
  color:var(--muted);
  line-height:1.9;
}

.ai-cta{
  background:linear-gradient(135deg, #f9fbff, #f8f3e5);
}

.cta-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.cta-primary,
.cta-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:180px;
  padding:12px 18px;
  border-radius:14px;
  font-weight:700;
}

.cta-primary{
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
}

.cta-secondary{
  background:var(--gold-soft);
  color:var(--primary);
}

@media (max-width: 1000px){
  .ai-layout{
    grid-template-columns:1fr;
  }

  .ai-sidebar{
    position:static;
  }
}


/* =========================================================
   15) AI PROMPTS PAGE
   تنسيقات صفحة learn/ai-prompts.html
   ========================================================= */

.prompts-toolbar{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.prompts-toolbar .search-input{
  flex:1 1 320px;
}

.prompts-list{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:18px;
}

.prompt-card{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.prompt-card-top{
  display:flex;
  justify-content:flex-start;
}

.prompt-card h3{
  margin:0;
  color:var(--primary);
}

.prompt-box{
  background:#fbfbfd;
  border:1px solid var(--border);
  border-radius:14px;
  padding:16px 18px;
}

.prompt-box p{
  margin:0;
  color:var(--text);
  line-height:2;
  white-space:pre-wrap;
}

.prompt-actions{
  display:flex;
  justify-content:flex-start;
}

.prompt-copy-btn{
  border:none;
  cursor:pointer;
}

@media (max-width: 900px){
  .prompts-list{
    grid-template-columns:1fr;
  }

  .prompts-toolbar{
    flex-direction:column;
    align-items:stretch;
  }
}

/* =========================================================
   16) SOFT SKILLS PAGE
   تنسيقات صفحة learn/soft-skills.html
   ========================================================= */

.soft-inline-note{
  margin-top:16px;
  background:var(--gold-soft);
  border-right:4px solid var(--gold);
  border-radius:14px;
  padding:14px 16px;
  line-height:1.9;
  color:var(--text);
}

.soft-accordion{
  display:grid;
  gap:16px;
}

.soft-group{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.soft-group summary{
  list-style:none;
  cursor:pointer;
  padding:20px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:linear-gradient(135deg, #eef4fb, #f7f9fc);
}

/* رمز الأكورديون */
.soft-group summary::after{
  content:"+";
  flex-shrink:0;
  width:30px;
  height:30px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--gold-soft);
  color:var(--primary);
  font-weight:700;
  font-size:1.1rem;
  transition:.2s ease;
}

/* عند الفتح يتحول الرمز */
.soft-group[open] summary::after{
  content:"−";
  background:var(--primary);
  color:#fff;
}

.soft-group summary::-webkit-details-marker{
  display:none;
}

.soft-summary-wrap{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.soft-group-title{
  color:var(--primary);
  font-size:1.15rem;
  font-weight:700;
}

.soft-group-hint{
  color:var(--muted);
  font-size:.95rem;
}

.soft-group-body{
  border-top:1px solid var(--border);
  padding:18px 22px 22px;
  display:grid;
  gap:14px;
}

.soft-skill-item{
  background:#ffffff;
  border:1px solid #e8ecf2;
  border-radius:14px;
  padding:16px 18px;
}

.soft-skill-item h3{
  margin:0 0 8px;
  color:var(--primary);
  font-size:1rem;
}

.soft-skill-item p{
  margin:0;
  color:var(--muted);
  line-height:1.9;
}

/* =========================================================
   17) SOFT SKILLS LINKS
   تنسيق روابط "المزيد" داخل صفحة المهارات الناعمة
   ========================================================= */

.soft-more-link{
  display:inline-flex;
  align-items:center;
  margin-top:10px;
  color:var(--gold-2);
  font-weight:700;
}

.soft-more-link:hover{
  color:var(--primary);
}

/* =========================================================
   18) SOFT SKILL DETAIL PAGE
   تنسيقات صفحة learn/soft-skill.html
   ========================================================= */

.soft-detail-page{
  padding:32px;
}

.soft-detail-section{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--border);
}

.soft-detail-section:first-of-type{
  margin-top:0;
  padding-top:0;
  border-top:none;
}

.soft-detail-section h2{
  margin:0 0 12px;
  color:var(--primary);
  font-size:1.2rem;
}

.soft-detail-section p{
  margin:0;
  color:var(--text);
  line-height:2;
}

.soft-detail-list{
  margin:12px 0 0;
  padding-right:22px;
  color:var(--text);
}

.soft-detail-list li{
  margin-bottom:10px;
  line-height:1.9;
}

/* =========================================================
   19) LEARN PAGE IMPROVEMENTS
   تحسينات صفحة learn.html
   ========================================================= */

.learn-hero{
  padding-bottom: 18px;
}

.learn-hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}

.learn-start-card{
  padding:28px;
}

.learn-start-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:16px;
  margin-top:18px;
}

.learn-start-item{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
}

.learn-start-item h3{
  margin:0 0 8px;
  color:var(--primary);
  font-size:1rem;
}

.learn-start-item p{
  margin:0;
  color:var(--muted);
  line-height:1.8;
}

.learn-paths-grid{
  grid-template-columns:repeat(2, 1fr);
}

.learn-path-card{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.learn-feature-list{
  margin:0;
  padding-right:20px;
  color:var(--text);
}

.learn-feature-list li{
  margin-bottom:8px;
  line-height:1.8;
}

.learning-journey-card{
  padding:28px;
}

.learning-journey-card h2{
  margin-top:0;
  color:var(--primary);
}

.learning-journey-steps{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:16px;
  margin-top:18px;
}

.journey-step{
  display:flex;
  align-items:flex-start;
  gap:14px;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
}

.journey-number{
  width:36px;
  height:36px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, var(--primary), var(--gold));
  color:#fff;
  font-weight:700;
  flex-shrink:0;
}

.journey-step h3{
  margin:0 0 6px;
  color:var(--primary);
  font-size:1rem;
}

.journey-step p{
  margin:0;
  color:var(--muted);
  line-height:1.8;
}

@media (max-width: 900px){
  .learn-start-grid,
  .learn-paths-grid,
  .learning-journey-steps{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   20) TOPICS PAGE
   تنسيقات صفحة learn/topics.html
   ========================================================= */

.topics-page{
  padding-bottom: 28px;
}

.topics-hero{
  padding: 54px 0 26px;
}

.topics-head{
  margin-bottom: 22px;
}

.section__head{
  margin-bottom: 18px;
}

.section__title{
  margin:0 0 10px;
  color:var(--primary);
  font-size:clamp(1.7rem, 3vw, 2.3rem);
}

.section__desc{
  margin:0;
  color:var(--muted);
  line-height:1.9;
}

.pillars-acc{
  display:grid;
  gap:18px;
}

.pillar{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.pillar summary::-webkit-details-marker,
.acc summary::-webkit-details-marker{
  display:none;
}

.pillar__sum,
.acc__sum{
  list-style:none;
  cursor:pointer;
  user-select:none;
}

.pillar__sum{
  padding:22px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:linear-gradient(135deg, #eef4fb, #f8fafc);
  position:relative;
}

.pillar__sum::before{
  content:"+";
  width:34px;
  height:34px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--gold-soft);
  color:var(--primary);
  font-weight:800;
  font-size:1.1rem;
  flex-shrink:0;
}

.pillar[open] .pillar__sum::before{
  content:"−";
  background:var(--primary);
  color:#fff;
}

.pillar__text{
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
  min-width:0;
}

.pillar__title{
  color:var(--primary);
  font-size:1.2rem;
  font-weight:800;
  line-height:1.5;
}

.pillar__hint{
  color:var(--muted);
  font-size:.96rem;
  line-height:1.8;
}

.pillar__body{
  padding:20px;
  border-top:1px solid var(--border);
  background:#fff;
}

.sub-acc{
  display:grid;
  gap:14px;
}

.acc{
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  overflow:hidden;
}

.acc__sum{
  padding:18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:var(--primary);
  font-weight:800;
  background:#fbfcfe;
  position:relative;
}

.acc__sum::before{
  content:"+";
  width:30px;
  height:30px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--gold-soft);
  color:var(--primary);
  font-weight:800;
  font-size:1rem;
  flex-shrink:0;
}

.acc[open] .acc__sum::before{
  content:"−";
  background:var(--primary);
  color:#fff;
}

.acc__body{
  padding:18px 20px 20px;
  border-top:1px solid var(--border);
}

.card__p{
  margin:0 0 16px;
  color:var(--text);
  line-height:1.9;
}

.acc__grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}

.acc__block{
  background:var(--light);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
}

.acc__h{
  margin:0 0 12px;
  color:var(--primary);
  font-size:1rem;
}

.acc__list{
  margin:0;
  padding-right:20px;
  color:var(--text);
}

.acc__list li{
  margin-bottom:8px;
  line-height:1.85;
}

.acc__list--ol{
  padding-right:22px;
}

.acc__template{
  background:#fff;
  border:1px dashed var(--gold);
  border-radius:14px;
  padding:14px 16px;
  margin-bottom:16px;
}

.acc__template p{
  margin:0 0 10px;
  line-height:1.9;
}

.acc__template p:last-child{
  margin-bottom:0;
}

.yt-fallback{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--border);
  margin-bottom:16px;
}

.yt-fallback img{
  width:100%;
  height:auto;
  display:block;
}

.yt-fallback__play{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-size:2rem;
  color:#fff;
  background:rgba(15,39,71,.22);
}

.acc__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

@media (max-width: 1000px){
  .acc__grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 900px){
  .pillar__sum,
  .acc__sum{
    padding:16px 16px;
  }

  .pillar__body,
  .acc__body{
    padding:16px;
  }

  .acc__block{
    padding:16px;
  }
}

@media (max-width: 640px){
  .pillar__title{
    font-size:1.05rem;
  }

  .pillar__hint{
    font-size:.92rem;
  }

  .acc__actions .btn{
    width:100%;
  }
}

/* محاذاة عناوين صفحة topics إلى اليمين */
.topics-page .page-hero,
.topics-page .section__head,
.topics-page .section__title,
.topics-page .section__desc,
.topics-page h1,
.topics-page h2,
.topics-page h3,
.topics-page h4,
.topics-page p {
  text-align: right;
}

.topics-page .learn-hero-actions,
.topics-page .acc__actions {
  justify-content: flex-start;
}

/* فيديو داخل الصفحة */
.video-embed{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  margin-bottom: 16px;
}

.video-embed iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ضبط عناوين الأكورديون لتظهر من اليمين فعلاً */
.pillar__sum,
.acc__sum{
  direction: rtl;
  text-align: right;
}

.pillar__sum{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.acc__sum{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pillar__text{
  flex: 1;
  text-align: right;
  align-items: flex-start;
}

.pillar__title,
.pillar__hint,
.acc__sum{
  text-align: right;
}

.acc__sum{
  flex-direction: row-reverse;
}

.pillar__sum{
  flex-direction: row-reverse;
}

.pillar__sum::before,
.acc__sum::before{
  flex-shrink: 0;
}

/* =========================================================
   16) SERVICES PAGE
   تنسيقات صفحة الخدمات بالاعتماد على نفس روح الموقع
   ========================================================= */

.services-page .page-hero,
.services-page .section__head,
.services-page .section__title,
.services-page .section__desc,
.services-page h1,
.services-page h2,
.services-page h3,
.services-page h4,
.services-page p{
  text-align:right;
}

.services-page .services-hero{
  background:
    radial-gradient(circle at top right, rgba(212,166,58,.15), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.services-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:flex-start;
  margin-top:22px;
}

.services-intro-grid,
.services-audience-grid{
  grid-template-columns:repeat(3, 1fr);
}

.services-mini-card h2,
.audience-card h3,
.services-process-card h2,
.services-cta-card h2{
  margin-top:0;
  color:var(--primary);
}

.services-mini-card p,
.audience-card p,
.services-cta-card p{
  margin-bottom:0;
  line-height:1.95;
}

.services-head{
  margin-bottom:20px;
}

.services-acc .pillar__hint{
  max-width:900px;
}

.services-page .pillar__sum,
.services-page .acc__sum{
  direction:rtl;
  text-align:right;
}

.services-page .pillar__sum{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-direction:row-reverse;
}

.services-page .acc__sum{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-direction:row-reverse;
}

.services-page .pillar__text{
  flex:1;
  text-align:right;
  align-items:flex-start;
}

.services-page .card__p,
.services-page .acc__list li,
.services-page .section-intro{
  line-height:1.95;
}

.services-process-card{
  padding:28px;
}

.services-process-steps{
  display:grid;
  gap:16px;
  margin-top:22px;
}

.services-process-card .journey-step{
  align-items:flex-start;
}

.services-process-card .journey-step h3{
  margin:0 0 8px;
  color:var(--primary);
}

.services-process-card .journey-step p{
  margin:0;
  color:var(--text);
}

.services-cta-card{
  text-align:right;
}

@media (max-width: 1000px){
  .services-intro-grid,
  .services-audience-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .services-hero-actions .btn{
    width:100%;
  }

  .services-process-card{
    padding:22px;
  }
}



.quick-contact-widget{
  position:fixed;
  right:18px;
  bottom:22px;
  z-index:1200;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}

.quick-contact-toggle{
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg, var(--gold), var(--gold-2, #b88720));
  color:#fff;
  min-height:48px;
  padding:0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  font-weight:800;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.quick-contact-icon{
  font-size:1.05rem;
  line-height:1;
}

.quick-contact-panel{
  width:min(320px, calc(100vw - 32px));
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:16px;
}

.quick-contact-panel__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.quick-contact-close{
  border:0;
  background:rgba(15,39,71,.06);
  color:var(--primary);
  width:32px;
  height:32px;
  border-radius:999px;
  cursor:pointer;
  font-size:1rem;
  line-height:1;
}

.quick-contact-panel p{
  margin:0 0 12px;
  color:var(--muted);
  line-height:1.8;
  font-size:.92rem;
}

.quick-contact-actions{
  display:grid;
  gap:8px;
}

.quick-contact-action{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 12px;
  border-radius:12px;
  text-decoration:none;
  font-weight:800;
  color:var(--primary);
  background:#f8fafc;
  border:1px solid rgba(15,39,71,.08);
}

.quick-contact-action.primary{
  background:var(--primary);
  color:#fff;
}

.quick-contact-action.whatsapp{
  background:#16a34a;
  color:#fff;
}

.quick-contact-action.mail,
.quick-contact-action.feedback{
  background:var(--gold-soft);
}

.quick-contact-toggle:focus-visible,
.quick-contact-close:focus-visible,
.quick-contact-action:focus-visible{
  outline:3px solid rgba(245,158,11,.35);
  outline-offset:3px;
}

@media (max-width: 640px){
  .quick-contact-widget{
    right:14px;
    bottom:18px;
  }

  .quick-contact-toggle{
    min-height:44px;
    padding:0 14px;
  }
}

.scroll-top-left{
  position: fixed;
  left: 18px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2, #274690));
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, box-shadow .25s ease;
  z-index: 1200;
}

.scroll-top-left.show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-left:hover{
  box-shadow: 0 14px 28px rgba(0,0,0,.24);
  transform: translateY(-2px);
}

.scroll-top-left:focus-visible{
  outline: 3px solid rgba(245, 158, 11, .35);
  outline-offset: 3px;
}

.global-share-button{
  position: fixed;
  left: 18px;
  bottom: 82px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(212, 166, 58, .42);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15,39,71,.14);
  z-index: 1100;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}

.global-share-button svg{
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.global-share-button svg path:first-child{
  fill: rgba(212,166,58,.14);
  stroke: var(--gold);
}

.global-share-button:hover{
  color: var(--gold);
  border-color: rgba(212, 166, 58, .72);
  box-shadow: 0 14px 28px rgba(15,39,71,.18);
  transform: translateY(-2px);
}

.global-share-button:focus-visible{
  outline: 3px solid rgba(245, 158, 11, .35);
  outline-offset: 3px;
}

.global-share-status{
  position: fixed;
  left: 18px;
  bottom: 142px;
  max-width: min(260px, calc(100vw - 36px));
  padding: 9px 12px;
  border: 1px solid rgba(212,166,58,.28);
  border-radius: 14px;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(15,39,71,.12);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  z-index: 1101;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.global-share-status.show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 640px){
  .scroll-top-left{
    left: 14px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .global-share-button{
    left: 14px;
    bottom: 72px;
    width: 44px;
    height: 44px;
  }

  .global-share-status{
    left: 14px;
    bottom: 124px;
    max-width: calc(100vw - 28px);
  }
}


/* =========================================================
   ABOUT PAGE
   ========================================================= */

.about-block .section-head{
  max-width: 900px;
  margin: 0 auto 22px;
  text-align: right;
}

.about-block .section-kicker{
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .2px;
}

.about-block .section-head h2{
  margin: 0 0 12px;
  color: var(--primary);
}

.about-block .section-head p{
  margin: 0;
  line-height: 1.95;
  color: var(--muted);
}

.about-dual-grid{
  grid-template-columns: repeat(2, 1fr);
}

.about-feature-card,
.value-card{
  text-align: right;
}

.about-feature-card h3,
.value-card h3{
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--primary);
}

.about-feature-card p,
.value-card p{
  margin: 0;
  line-height: 1.95;
}

.alt-bg{
  background: linear-gradient(180deg, #fbfdff 0%, #f7fafe 100%);
}

.about-values-grid{
  grid-template-columns: repeat(3, 1fr);
}

.about-objectives{
  display: grid;
  gap: 18px;
}

.objective-item{
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: start;
  background: #fff;
  border: 1px solid rgba(14, 44, 84, 0.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(9, 30, 66, 0.04);
}

.objective-num{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #355c9a);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.objective-content{
  text-align: right;
}

.objective-content h3{
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 1.08rem;
}

.objective-content p{
  margin: 0;
  line-height: 1.95;
  color: var(--text);
}

@media (max-width: 980px){
  .about-dual-grid,
  .about-values-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .objective-item{
    grid-template-columns: 1fr;
  }

  .objective-num{
    width: 52px;
    height: 52px;
  }
}


/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-page .page-hero,
.contact-page .section-head,
.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page p{
  text-align: right;
}

.contact-hero{
  background:
    radial-gradient(circle at top right, rgba(212, 166, 58, 0.14), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.contact-hero-actions,
.contact-cta-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 22px;
}

.contact-head{
  max-width: 900px;
  margin: 0 auto 22px;
}

.section-kicker{
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .2px;
}

.contact-top-grid{
  grid-template-columns: repeat(3, 1fr);
}

.contact-info-grid{
  grid-template-columns: repeat(3, 1fr);
}

.contact-card,
.contact-info-card,
.contact-cta{
  text-align: right;
}

.contact-card h3,
.contact-info-card h3,
.contact-cta h2{
  margin-top: 0;
  color: var(--primary);
}

.contact-card p,
.contact-info-card p,
.contact-cta p{
  margin-bottom: 0;
  line-height: 1.95;
}

.contact-section-soft{
  background: linear-gradient(180deg, #fbfdff 0%, #f7fafe 100%);
}

.contact-journey{
  display: grid;
  gap: 18px;
}

.journey-item{
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: start;
  background: #fff;
  border: 1px solid rgba(14, 44, 84, 0.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(9, 30, 66, 0.04);
}

.journey-number{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #355c9a);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.journey-content{
  text-align: right;
}

.journey-content h3{
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 1.08rem;
}

.journey-content p{
  margin: 0;
  line-height: 1.95;
  color: var(--text);
}

.contact-cta{
  padding: 28px;
}

@media (max-width: 980px){
  .contact-top-grid,
  .contact-info-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .journey-item{
    grid-template-columns: 1fr;
  }

  .journey-number{
    width: 52px;
    height: 52px;
  }

  .contact-hero-actions .btn,
  .contact-cta-actions .btn{
    width: 100%;
  }
}


/* =========================================================
   SERVICE DETAIL PAGES
   صفحات الخدمات الفرعية
   ========================================================= */

.service-detail-page .page-hero,
.service-detail-page .section-head,
.service-detail-page h1,
.service-detail-page h2,
.service-detail-page h3,
.service-detail-page h4,
.service-detail-page p,
.service-detail-page li{
  text-align: right;
}

.service-detail-hero{
  background:
    radial-gradient(circle at top right, rgba(212, 166, 58, 0.14), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.service-hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 22px;
}

.service-detail-head{
  max-width: 920px;
  margin: 0 auto 22px;
}

.service-quick-grid,
.service-fit-grid,
.service-output-grid{
  grid-template-columns: repeat(3, 1fr);
}

.service-quick-card,
.service-fit-card,
.service-output-card,
.service-cta-card{
  text-align: right;
}

.service-quick-card h3,
.service-fit-card h3,
.service-output-card h3,
.service-cta-card h2{
  margin-top: 0;
  color: var(--primary);
}

.service-quick-card p,
.service-fit-card p,
.service-output-card p,
.service-cta-card p{
  margin-bottom: 0;
  line-height: 1.95;
}

.service-detail-soft{
  background: linear-gradient(180deg, #fbfdff 0%, #f7fafe 100%);
}

.service-accordion{
  display: grid;
  gap: 14px;
}

.service-acc-item{
  background: #fff;
  border: 1px solid rgba(14, 44, 84, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(9, 30, 66, 0.04);
}

.service-acc-item summary{
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 800;
  color: var(--primary);
  position: relative;
  text-align: right;
}

.service-acc-item summary::-webkit-details-marker{
  display: none;
}

.service-acc-item summary::before{
  content: "+";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent);
  font-weight: 800;
}

.service-acc-item[open] summary::before{
  content: "−";
}

.service-acc-body{
  padding: 0 22px 22px;
}

.service-acc-body p{
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.95;
}

.service-journey{
  display: grid;
  gap: 18px;
}

.service-cta-card{
  padding: 28px;
}

@media (max-width: 980px){
  .service-quick-grid,
  .service-fit-grid,
  .service-output-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .service-hero-actions .btn{
    width: 100%;
  }

  .service-acc-item summary{
    padding: 18px 18px;
  }

  .service-acc-body{
    padding: 0 18px 18px;
  }
}


.service-link-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(212,166,58,.12);
  color:var(--primary);
  text-decoration:none;
  font-weight:700;
  font-size:.95rem;
  transition:all .25s ease;
}

.service-link-btn:hover{
  background:rgba(212,166,58,.2);
  transform:translateY(-1px);
}

/* =========================================================
   PWA INSTALL BANNER
========================================================= */
.pwa-install-banner{
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  background: rgba(15, 39, 71, 0.97);
  color: #fff;
  border: 1px solid rgba(201, 153, 48, 0.35);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 39, 71, 0.22);
  backdrop-filter: blur(10px);
}

.pwa-install-banner__content{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  flex-wrap: wrap;
}

.pwa-install-banner__text{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pwa-install-banner__text strong{
  font-size: 1rem;
  color: #fff;
}

.pwa-install-banner__text span{
  font-size: 0.95rem;
  color: rgba(255,255,255,0.86);
  line-height: 1.7;
}

.pwa-install-banner__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pwa-install-btn{
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.pwa-install-btn:hover{
  transform: translateY(-1px);
}

.pwa-install-btn--primary{
  background: #c99930;
  color: #0f2747;
  box-shadow: 0 8px 20px rgba(201, 153, 48, 0.28);
}

.pwa-install-btn--secondary{
  background: rgba(255,255,255,0.12);
  color: #fff;
}

@media (max-width: 640px){
  .pwa-install-banner{
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 16px;
  }

  .pwa-install-banner__content{
    padding: 14px;
  }

  .pwa-install-banner__actions{
    width: 100%;
  }

  .pwa-install-btn{
    flex: 1 1 auto;
    text-align: center;
  }
}

.pwa-install-banner__text b{
  color: #ffe7a6;
  font-weight: 800;
}


/* =========================================================
   HEADER NAVIGATION — Dropdown + Mobile Accordion
========================================================= */
.site-header{
  background:rgba(255,255,255,.92);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter:blur(10px);
}

.header-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:76px;
  position:relative;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}

.brand-mark{
  width:42px;
  height:42px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, var(--primary), var(--gold));
  color:#fff;
  font-weight:700;
  font-size:1.2rem;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.2;
}

.brand-text strong{
  font-size:1.05rem;
  color:var(--primary);
}

.brand-text small{
  color:var(--muted);
  font-size:.8rem;
}

.main-nav{
  display:flex;
  align-items:center;
  gap:10px;
}

.nav-link,
.submenu a{
  text-decoration:none;
}

.nav-link{
  color:var(--primary);
  font-weight:700;
  font-size:.95rem;
  line-height:1;
}

.nav-link:hover,
.nav-link:focus-visible{
  color:var(--gold-2);
}

.nav-item{
  position:relative;
  display:flex;
  align-items:center;
  gap:6px;
}

.nav-link--single,
.nav-link--parent{
  padding:12px 8px;
}

.submenu-toggle{
  display:none;
  border:none;
  background:transparent;
  color:var(--primary);
  cursor:pointer;
  font-size:.9rem;
  padding:8px 4px;
}

.submenu{
  position:absolute;
  top:100%;
z-index:1100;
  right:0;
  min-width:230px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:10px;
  display:none;
  flex-direction:column;
  gap:2px;
}

.submenu a{
  color:var(--primary);
  font-weight:600;
  padding:12px 14px;
  border-radius:12px;
}

.submenu a:hover,
.submenu a:focus-visible{
  background:rgba(30, 58, 138, 0.06);
  color:var(--gold-2);
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu{
  display:flex;
}

.nav-toggle{
  display:none;
  border:none;
  background:var(--primary);
  color:#fff;
  width:42px;
  height:42px;
  border-radius:12px;
  cursor:pointer;
  font-size:1.2rem;
}

@media (max-width: 900px){
  .nav-toggle{
    display:inline-grid;
    place-items:center;
  }

  .main-nav{
    position:absolute;
    top:76px;
    right:16px;
    left:16px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    box-shadow:var(--shadow);
    padding:14px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
  }

  .main-nav.open{
    display:flex;
  }

  .nav-item{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:0;
    border:1px solid rgba(30,58,138,.08);
    border-radius:14px;
    padding:2px 8px;
  }

  .nav-item--small{
    grid-template-columns:1fr auto;
  }

  .nav-link--single{
    width:100%;
    padding:14px 10px;
    border:1px solid rgba(30,58,138,.08);
    border-radius:14px;
  }

  .nav-link--parent{
    padding:14px 10px;
  }

  .submenu-toggle{
    display:inline-grid;
    place-items:center;
    width:38px;
    height:38px;
    border-radius:10px;
  }

  .submenu-toggle span{
    transition:transform .25s ease;
  }

  .submenu{
  position:absolute;
  top:100%;
  right:0;
  min-width:230px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:10px;
  display:none;
  flex-direction:column;
  gap:2px;
  z-index:1100;
}

  .has-submenu:hover > .submenu,
  .has-submenu:focus-within > .submenu{
    display:none;
  }

  .has-submenu.submenu-open > .submenu{
    display:flex;
  }

  .has-submenu.submenu-open .submenu-toggle span{
    transform:rotate(180deg);
  }
}

/* =========================================================
   ACTIVE SUBMENU LINK
========================================================= */
.submenu a.is-active-sub{
  background: rgba(30, 58, 138, 0.08);
  color: var(--gold-2);
  font-weight: 700;
}

.main-nav .nav-link.is-active{
  color: var(--gold-2);
  position: relative;
}

.main-nav .nav-link.is-active::after{
  content: "";
  position: absolute;
  right: 8px;
  left: 8px;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold-2);
}

/* =========================================================
   BREADCRUMBS
========================================================= */
.breadcrumbs{
  margin: 18px 0 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.breadcrumbs ol{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before{
  content: "←";
  color: var(--gold-2);
  margin-inline: 2px;
}

.breadcrumbs a{
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

.breadcrumbs a:hover{
  color: var(--gold-2);
}

.breadcrumbs .current{
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 640px){
  .breadcrumbs{
    font-size: 0.88rem;
    margin: 14px 0 6px;
  }
}
/* =========================================================
   GLOSSARY PAGE - EXPANDED LEARNING CARDS
   بطاقات موسعة للقاموس الإداري مع التصنيف والمثال والفيديو
   ========================================================= */
.glossary-item{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.glossary-category{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(212,166,58,.12);
  color:var(--primary);
  border:1px solid rgba(212,166,58,.28);
  font-size:.82rem;
  font-weight:800;
}

.glossary-definition,
.glossary-example{
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px 14px;
  background:#fff;
}

.glossary-definition strong,
.glossary-example strong{
  display:block;
  margin-bottom:6px;
  color:var(--primary);
}

.glossary-definition p,
.glossary-example p{
  margin:0;
  color:var(--muted);
  line-height:1.9;
}

.glossary-example{
  background:linear-gradient(180deg, #fff, rgba(15,39,71,.025));
}

.glossary-video-box{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  background:linear-gradient(135deg, rgba(15,39,71,.06), rgba(212,166,58,.12));
  border:1px solid rgba(212,166,58,.22);
}

.glossary-video-box span{
  color:var(--primary);
  font-weight:800;
  line-height:1.6;
}

.term-video-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(135deg, var(--primary), var(--gold));
  padding:9px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:.9rem;
  box-shadow:0 10px 22px rgba(15,39,71,.12);
}

.term-video-link:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(15,39,71,.18);
}

@media (max-width: 700px){
  .glossary-video-box{
    align-items:flex-start;
    flex-direction:column;
  }

  .term-video-link{
    width:100%;
  }
}


/* =========================================================
   Learn Articles Enhancement
   فيديوهات مرتبطة، صور تعليمية، وروابط داخلية للمقالات
   ========================================================= */
.article-meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.article-media-badge{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(15,39,71,.08);
  color:var(--primary);
  font-size:.8rem;
  font-weight:700;
}

.article-visual{
  margin:0 0 24px;
  border-radius:24px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#fff;
}

.article-visual img{
  display:block;
  width:100%;
  height:auto;
}

.article-extra-card{
  margin-top:24px;
  padding:22px;
  border:1px solid var(--border);
  border-radius:22px;
  background:linear-gradient(180deg, #ffffff, #f8fafc);
}

.article-video-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  background:linear-gradient(135deg, rgba(212,166,58,.16), rgba(15,39,71,.05));
}

.article-extra-label{
  display:inline-block;
  margin-bottom:8px;
  color:var(--gold-2);
  font-weight:800;
  font-size:.9rem;
}

.article-extra-card h2{
  margin:0 0 8px;
  color:var(--primary);
  font-size:1.25rem;
}

.article-extra-card p{
  margin:0;
  color:var(--muted);
  line-height:1.8;
}

.article-video-title{
  margin-top:8px !important;
  color:var(--primary) !important;
  font-weight:800;
}

.inline-link{
  color:var(--gold-2);
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:4px;
}

.article-related-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.article-related-chip{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  background:var(--gold-soft);
  color:var(--primary);
  font-weight:800;
  border:1px solid rgba(212,166,58,.25);
}

.article-related-list{
  display:grid;
  gap:12px;
}

.article-related-item{
  display:grid;
  gap:6px;
  padding:14px;
  border-radius:16px;
  background:#fff;
  border:1px solid var(--border);
  color:var(--text);
}

.article-related-item strong{
  color:var(--primary);
}

.article-related-item span{
  color:var(--muted);
  line-height:1.7;
}

@media (max-width: 700px){
  .article-video-card{
    align-items:stretch;
    flex-direction:column;
  }

  .article-video-card .btn{
    width:100%;
    text-align:center;
  }
}

/* =========================================================
   19) AI PORTAL PAGE
   تنسيقات بوابة learn/ai.html
   ========================================================= */

.ai-portal-page .page-hero{
  overflow:hidden;
}

.ai-portal-hero__grid{
  display:grid;
  grid-template-columns:minmax(0, 1.25fr) minmax(280px, .75fr);
  gap:34px;
  align-items:center;
}

.ai-portal-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

.ai-portal-visual{
  min-height:300px;
  border:1px solid rgba(15,39,71,.10);
  border-radius:28px;
  background:
    radial-gradient(circle at 70% 20%, rgba(212,166,58,.25), transparent 28%),
    radial-gradient(circle at 25% 75%, rgba(15,39,71,.12), transparent 32%),
    linear-gradient(135deg, #ffffff, #f4f7fb);
  position:relative;
  box-shadow:var(--shadow);
}

.ai-core,
.ai-orbit{
  position:absolute;
  display:grid;
  place-items:center;
  border-radius:999px;
  font-weight:800;
  color:var(--primary);
  text-align:center;
}

.ai-core{
  width:112px;
  height:112px;
  inset:50% auto auto 50%;
  transform:translate(-50%, -50%);
  background:linear-gradient(135deg, var(--primary), var(--primary-3));
  color:#fff;
  font-size:2rem;
  box-shadow:0 18px 40px rgba(15,39,71,.18);
}

.ai-orbit{
  width:92px;
  height:92px;
  background:var(--gold-soft);
  border:1px solid rgba(212,166,58,.35);
  font-size:.95rem;
  line-height:1.4;
  padding:12px;
}

.ai-orbit--one{
  top:34px;
  right:34px;
}

.ai-orbit--two{
  bottom:38px;
  right:58px;
}

.ai-orbit--three{
  bottom:54px;
  left:38px;
  width:110px;
  height:110px;
  background:#eef4fb;
  border-color:rgba(15,39,71,.18);
}

.ai-portal-cards{
  display:grid;
  grid-template-columns:1.25fr .9fr .9fr;
  gap:18px;
}

.ai-portal-card,
.ai-article-mini{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:24px;
}

.ai-portal-card--featured{
  background:linear-gradient(135deg, #ffffff, #fbf6e9);
}

.ai-card-kicker{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:var(--gold-soft);
  color:var(--primary);
  font-weight:800;
  font-size:.9rem;
  margin-bottom:10px;
}

.ai-portal-card h3,
.ai-article-mini h3,
.ai-portal-cta h2{
  color:var(--primary);
  margin-top:0;
}

.ai-portal-card p,
.ai-portal-card li,
.ai-article-mini p,
.ai-portal-cta p{
  color:var(--muted);
  line-height:1.9;
}

.ai-portal-card ul{
  margin:14px 0 0;
  padding-right:20px;
}

.ai-learning-path-card{
  background:linear-gradient(135deg, #ffffff, #f7f9fc);
}

.ai-steps{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:14px;
  margin-top:20px;
}

.ai-step{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  display:grid;
  gap:8px;
  min-height:150px;
  transition:.2s ease;
}

.ai-step:hover{
  transform:translateY(-3px);
  border-color:var(--gold);
  box-shadow:var(--shadow);
}

.ai-step span{
  width:42px;
  height:42px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:var(--primary);
  color:#fff;
  font-weight:800;
}

.ai-step strong{
  color:var(--primary);
}

.ai-step small{
  color:var(--muted);
  line-height:1.7;
}

.ai-featured-articles{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

.ai-article-mini a{
  display:inline-flex;
  margin-top:8px;
  color:var(--primary);
  font-weight:800;
  border-bottom:2px solid var(--gold);
}

.ai-portal-cta{
  background:linear-gradient(135deg, #f9fbff, #f8f3e5);
}

.ai-guide-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 18px;
}

.ai-guide-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  background:#fff;
  color:var(--primary);
  border-radius:999px;
  padding:9px 14px;
  font-weight:800;
}

.ai-guide-nav a:hover{
  background:var(--gold-soft);
  border-color:var(--gold);
}

@media (max-width: 1050px){
  .ai-portal-hero__grid,
  .ai-portal-cards,
  .ai-featured-articles{
    grid-template-columns:1fr;
  }

  .ai-portal-visual{
    min-height:260px;
  }

  .ai-steps{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width: 620px){
  .ai-steps{
    grid-template-columns:1fr;
  }

  .ai-portal-actions .btn,
  .ai-portal-cta .cta-primary,
  .ai-portal-cta .cta-secondary{
    width:100%;
  }

  .ai-orbit--three{
    left:18px;
  }
}

/* =========================================================
   AI PROMPTS – PROFESSIONAL STRUCTURED PROMPTS
   ========================================================= */
.prompt-card--pro{
  border:1px solid var(--border);
  background:linear-gradient(135deg, #ffffff, #fbfdff);
}

.prompt-card--pro h3{
  color:var(--primary);
  margin:14px 0 10px;
  font-size:1.35rem;
}

.prompt-level-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  border-radius:999px;
  background:var(--gold-soft);
  color:var(--primary);
  font-weight:800;
  font-size:.85rem;
}

.prompt-purpose{
  color:var(--muted);
  line-height:1.9;
  margin:0 0 16px;
}

.prompt-meta-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
  margin:16px 0;
}

.prompt-meta-grid > div{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
}

.prompt-meta-grid strong{
  display:block;
  color:var(--primary);
  margin-bottom:8px;
}

.prompt-meta-grid p{
  color:var(--muted);
  line-height:1.8;
  margin:0;
}

.prompt-details{
  margin-top:16px;
}

.prompt-details summary{
  cursor:pointer;
  color:var(--primary);
  font-weight:800;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  list-style:none;
}

.prompt-details summary::-webkit-details-marker{
  display:none;
}

.prompt-details summary::before{
  content:"+";
  display:inline-grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:999px;
  background:var(--gold-soft);
  color:var(--primary);
  margin-left:8px;
}

.prompt-details[open] summary::before{
  content:"−";
}

.prompt-box--long{
  margin-top:12px;
  max-height:none;
}

.prompt-box--long pre{
  white-space:pre-wrap;
  word-break:break-word;
  margin:0;
  color:var(--primary);
  font-family:inherit;
  line-height:2;
  font-size:1rem;
}

.prompt-copy-btn{
  margin-top:12px;
}

@media (max-width: 760px){
  .prompt-meta-grid{
    grid-template-columns:1fr;
  }

  .prompt-card--pro h3{
    font-size:1.18rem;
  }
}

/* =========================================================
   28) MANAGEMENT SKILLS LEARNING PATH
   صفحة مسار المهارات الإدارية الأساسية
   ========================================================= */

.management-skills-page{
  padding-bottom:32px;
}

.management-skills-hero{
  background:
    radial-gradient(circle at 12% 20%, rgba(212,166,58,.18), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(15,39,71,.10), transparent 26%),
    linear-gradient(135deg, #ffffff, #f4f7fb);
}

.management-hero-actions,
.management-next-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:22px;
}

.management-overview-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

.management-overview-card{
  position:relative;
  overflow:hidden;
  min-height:210px;
}

.management-overview-card::after{
  content:"";
  position:absolute;
  width:110px;
  height:110px;
  border-radius:50%;
  background:rgba(212,166,58,.12);
  left:-38px;
  bottom:-42px;
}

.management-card-icon{
  display:inline-grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:16px;
  background:linear-gradient(135deg, var(--primary), var(--gold));
  color:#fff;
  font-weight:800;
  margin-bottom:14px;
}

.management-overview-card h2,
.management-map-card h2,
.management-next-card h2{
  margin:0 0 10px;
  color:var(--primary);
}

.management-overview-card p,
.management-map-card p,
.management-next-card p{
  color:var(--muted);
  line-height:1.9;
  margin:0;
}

.management-section-head{
  margin-bottom:20px;
}

.management-modules-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:14px;
  margin-top:20px;
}

.management-module-pill{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  box-shadow:0 8px 22px rgba(15,39,71,.05);
}

.management-module-pill strong{
  display:block;
  color:var(--primary);
  font-size:1.05rem;
  margin-bottom:8px;
}

.management-module-pill span{
  color:var(--muted);
  line-height:1.7;
  font-size:.94rem;
}

.management-lessons-list{
  display:grid;
  gap:16px;
}

.management-lesson-card{
  display:grid;
  grid-template-columns:110px 1fr;
  gap:18px;
  align-items:stretch;
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  padding:20px;
  box-shadow:0 10px 28px rgba(15,39,71,.06);
}

.lesson-code{
  display:grid;
  place-items:center;
  border-radius:18px;
  background:linear-gradient(135deg, rgba(15,39,71,.10), rgba(212,166,58,.20));
  color:var(--primary);
  font-weight:900;
  font-size:1.15rem;
  min-height:100%;
}

.lesson-content h3{
  margin:0 0 8px;
  color:var(--primary);
  font-size:1.25rem;
}

.lesson-content p{
  margin:0;
  color:var(--muted);
  line-height:1.9;
}

.lesson-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.lesson-tags span{
  background:var(--gold-soft);
  color:var(--primary);
  border-radius:999px;
  padding:6px 12px;
  font-size:.86rem;
  font-weight:700;
}

.lesson-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin-top:16px;
}

.lesson-actions .btn{
  padding:10px 18px;
}

.lesson-status{
  color:var(--muted);
  background:#f8fafc;
  border:1px solid var(--border);
  border-radius:999px;
  padding:8px 12px;
  font-size:.9rem;
}

.learn-path-card--featured{
  border-color:rgba(212,166,58,.42);
  background:linear-gradient(180deg, #fff, #fffaf0);
}

@media (max-width: 1000px){
  .management-overview-grid,
  .management-modules-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 700px){
  .management-overview-grid,
  .management-modules-grid{
    grid-template-columns:1fr;
  }

  .management-lesson-card{
    grid-template-columns:1fr;
  }

  .lesson-code{
    min-height:70px;
  }

  .management-hero-actions,
  .management-next-actions,
  .lesson-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .lesson-actions .btn,
  .management-hero-actions .btn,
  .management-next-actions .btn{
    text-align:center;
  }
}

/* =========================================================
   Learn Articles – Cards/Table View Switch
   عرض محتوى المعرفة كبطاقات أو جدول
   ========================================================= */
.articles-results-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-top:18px;
}

.articles-view-switch{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,39,71,.06);
}

.view-switch-btn{
  border:0;
  border-radius:999px;
  padding:9px 14px;
  background:transparent;
  color:var(--primary);
  font-weight:800;
  cursor:pointer;
  transition:.2s ease;
}

.view-switch-btn:hover{
  background:var(--gold-soft);
}

.view-switch-btn.active{
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  box-shadow:0 8px 18px rgba(15,39,71,.16);
}

.articles-table-wrap{
  overflow-x:auto;
  border:1px solid var(--border);
  border-radius:24px;
  background:#fff;
  box-shadow:0 18px 40px rgba(15,39,71,.08);
}

.articles-table{
  width:100%;
  min-width:980px;
  border-collapse:collapse;
  direction:rtl;
}

.articles-table th,
.articles-table td{
  padding:18px 16px;
  text-align:right;
  vertical-align:top;
  border-bottom:1px solid rgba(15,39,71,.09);
}

.articles-table th{
  color:var(--primary);
  font-weight:900;
  background:linear-gradient(135deg, rgba(15,39,71,.05), rgba(212,166,58,.08));
  white-space:nowrap;
}

.articles-table tbody tr:hover{
  background:rgba(212,166,58,.05);
}

.articles-table tbody tr:last-child td{
  border-bottom:0;
}

.articles-table-title-cell{
  min-width:300px;
}

.articles-table-title-cell a{
  color:var(--primary);
  font-weight:900;
  text-decoration:none;
  line-height:1.7;
}

.articles-table-title-cell a:hover{
  color:var(--gold-dark, #b9861d);
}

.articles-table-title-cell small{
  display:block;
  margin-top:6px;
  color:var(--muted);
  line-height:1.8;
}

.article-category-pill,
.article-video-yes,
.article-video-no{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  border-radius:999px;
  padding:6px 10px;
  font-weight:800;
  font-size:.85rem;
}

.article-category-pill{
  background:rgba(15,39,71,.08);
  color:var(--primary);
}

.article-video-yes{
  background:rgba(212,166,58,.18);
  color:var(--primary);
}

.article-video-no{
  background:rgba(100,116,139,.10);
  color:var(--muted);
}

.article-table-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  min-width:180px;
}

.article-table-tag{
  display:inline-flex;
  padding:5px 8px;
  border-radius:999px;
  background:var(--gold-soft);
  color:var(--primary);
  font-size:.78rem;
  font-weight:800;
}

.article-table-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:120px;
}

.article-table-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 10px;
  border-radius:12px;
  text-decoration:none;
  font-weight:900;
  color:var(--primary);
  background:rgba(15,39,71,.06);
  border:1px solid rgba(15,39,71,.08);
}

.article-table-actions a:hover{
  background:var(--gold-soft);
  border-color:rgba(212,166,58,.35);
}

@media (max-width: 700px){
  .articles-results-head{
    align-items:stretch;
  }

  .articles-view-switch{
    width:100%;
    justify-content:center;
  }

  .view-switch-btn{
    flex:1;
  }
}


/* =========================================================
   Learn Articles – Knowledge Library Filters
   تحسين صفحة مكتبة المعرفة الإدارية
   ========================================================= */
.articles-topic-filter{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:16px;
  flex-wrap:wrap;
}

.articles-topic-filter label{
  color:var(--primary);
  font-weight:900;
  white-space:nowrap;
}

.articles-topic-select{
  flex:1 1 260px;
  min-height:46px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  color:var(--primary);
  padding:0 14px;
  font-weight:800;
  outline:none;
}

.articles-topic-select:focus{
  border-color:var(--gold);
  box-shadow:0 0 0 4px rgba(212,166,58,.16);
}

.articles-tags-panel{
  margin-top:18px;
  border-top:1px solid rgba(15,39,71,.08);
  padding-top:16px;
}

.articles-tags-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.articles-tags-head span{
  color:var(--primary);
  font-weight:900;
}

.tags-toggle-btn{
  border:1px solid rgba(15,39,71,.12);
  background:#fff;
  color:var(--primary);
  border-radius:999px;
  padding:8px 12px;
  font-weight:900;
  cursor:pointer;
}

.tags-toggle-btn:hover{
  background:var(--gold-soft);
  border-color:rgba(212,166,58,.45);
}

.articles-popular-tags{
  margin-top:0;
}

.articles-all-tags{
  margin-top:14px;
  padding-top:14px;
  border-top:1px dashed rgba(15,39,71,.14);
}

@media (max-width: 700px){
  .articles-topic-filter{
    align-items:stretch;
  }

  .articles-topic-filter label,
  .articles-topic-select,
  .tags-toggle-btn{
    width:100%;
  }

  .articles-tags-head{
    align-items:stretch;
  }
}


/* Fix: ensure all keyword tags are really hidden when collapsed */
.articles-all-tags[hidden],
.articles-all-tags.is-hidden{
  display:none !important;
}


/* Position the full keyword toggle below popular topics */
.articles-tags-toggle-row{
  margin-top:14px;
  display:flex;
  justify-content:flex-start;
}


/* =========================================================
   Learn – Management Skills Phase Filter
   ========================================================= */
.management-phase-filter-section{
  padding-top:24px;
  padding-bottom:8px;
}

.management-phase-filter-card{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}

.management-phase-filter-card h2{
  margin-bottom:10px;
}

.management-phase-filter-card p{
  margin:0;
  color:var(--muted);
  line-height:1.9;
}

.management-phase-filter{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  max-width:620px;
}

.phase-filter-btn{
  border:1px solid rgba(15,39,71,.14);
  background:#fff;
  color:var(--primary);
  border-radius:999px;
  padding:10px 14px;
  font-weight:900;
  cursor:pointer;
  transition:.2s ease;
}

.phase-filter-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(212,166,58,.5);
  background:var(--gold-soft);
}

.phase-filter-btn.active{
  background:var(--primary);
  color:#fff;
  border-color:var(--primary);
  box-shadow:0 10px 20px rgba(15,39,71,.16);
}

.management-phase-section[hidden]{
  display:none !important;
}

@media (max-width: 900px){
  .management-phase-filter-card{
    flex-direction:column;
  }

  .management-phase-filter{
    justify-content:flex-start;
    max-width:100%;
  }
}

@media (max-width: 640px){
  .phase-filter-btn{
    width:100%;
  }

  .articles-tags-toggle-row{
    justify-content:stretch;
  }
}


/* Knowledge Library – View Switch after topic filters */
.articles-tags-panel + .articles-results-head{
  margin-top:18px;
}

.articles-tags-panel + .articles-results-head .articles-view-switch{
  margin-top:0;
}

/* =========================================================
   MOBILE NAV CLOSE BUTTON FIX
   يظهر زر إغلاق القائمة على الهاتف فقط، ولا يظهر في سطح المكتب.
   ========================================================= */
.mobile-nav-close,
.mobile-nav-backdrop{
  display:none;
}

@media (max-width: 900px){
  .mobile-nav-close{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    align-self:flex-start;
    gap:6px;
    margin:0 0 8px;
    padding:8px 12px;
    border:1px solid var(--border);
    border-radius:10px;
    background:#fff;
    color:var(--primary);
    font-family:inherit;
    font-weight:700;
    cursor:pointer;
  }

  .mobile-nav-backdrop.is-visible{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.35);
    z-index:900;
  }

  .main-nav.open{
    z-index:1000;
  }
}

@media (min-width: 901px){
  .mobile-nav-close,
  .mobile-nav-backdrop{
    display:none !important;
  }
}


/* =========================================================
   MONETIZATION FIX - hide old textual close button
   يمنع ظهور زر "× إغلاق" داخل القائمة.
   ========================================================= */
.mobile-nav-close{
  display:none !important;
}

/* =========================================================
   MONETIZATION / TEMPLATES
   صفحة تحميل قالب الخطة التشغيلية المجاني
   ========================================================= */
.template-hero{
  padding:64px 0 36px;
  background:linear-gradient(135deg, rgba(15,39,71,.06), rgba(212,166,58,.10));
}

.template-hero-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.4fr) minmax(280px, .7fr);
  gap:28px;
  align-items:stretch;
}

.template-hero-copy p{
  max-width:760px;
}

.template-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:22px;
}

.template-download-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:24px;
}

.template-file-icon{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:var(--gold-soft);
  font-size:1.8rem;
  margin-bottom:12px;
}

.template-download-card h2{
  margin:0 0 12px;
  color:var(--primary);
  font-size:1.25rem;
}

.template-download-card ul{
  margin:0;
  padding-right:20px;
  color:var(--muted);
  line-height:1.9;
}

.template-features-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.template-feature-card h3{
  color:var(--primary);
}

.template-use-box{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:20px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:26px;
}

.template-use-box h2{
  margin:0 0 10px;
  color:var(--primary);
}

.template-use-box p{
  margin:0 0 16px;
  color:var(--muted);
  line-height:1.9;
}

.template-note{
  background:var(--light);
  border:1px dashed var(--border);
  border-radius:18px;
  padding:18px 20px;
  color:var(--muted);
  line-height:1.9;
}

.template-note strong{
  color:var(--primary);
}

@media (max-width: 900px){
  .template-hero-grid,
  .template-use-box{
    grid-template-columns:1fr;
  }

  .template-features-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .template-features-grid{
    grid-template-columns:1fr;
  }

  .template-actions .btn{
    width:100%;
  }
}


/* =========================================================
   MONETIZATION / RECIPROCITY CONTENT
   توظيف مبدأ المعاملة بالمثل: قيمة تعليمية قبل التحميل
   ========================================================= */
.template-value-box{
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:28px;
}

.template-value-box h2{
  margin:8px 0 14px;
  color:var(--primary);
}

.template-value-box p{
  color:var(--muted);
  line-height:2;
  margin:0 0 12px;
}

.template-mini-grid,
.template-tricks-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
}

.template-mini-card h3,
.template-trick-card h3{
  color:var(--primary);
  margin-top:0;
}

.template-mini-card p,
.template-trick-card p{
  color:var(--muted);
  line-height:1.9;
}

.template-trick-card span{
  display:inline-flex;
  width:42px;
  height:42px;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:var(--gold-soft);
  color:var(--primary);
  font-weight:800;
  margin-bottom:10px;
}

.template-table-wrap{
  overflow-x:auto;
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow);
}

.template-compare-table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
  direction:rtl;
}

.template-compare-table th,
.template-compare-table td{
  padding:16px 18px;
  text-align:right;
  border-bottom:1px solid var(--border);
  vertical-align:top;
  line-height:1.8;
}

.template-compare-table th{
  background:linear-gradient(135deg, rgba(15,39,71,.08), rgba(212,166,58,.12));
  color:var(--primary);
  font-weight:800;
}

.template-compare-table td{
  color:var(--muted);
}

.template-compare-table tr:last-child td{
  border-bottom:0;
}

@media (max-width: 1000px){
  .template-mini-grid,
  .template-tricks-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .template-mini-grid,
  .template-tricks-grid{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   MONETIZATION / SERVICE CONVERSION BLOCKS
   تحسين صفحات الخدمات وربطها بالموارد المجانية
   ========================================================= */
.service-problem-card{
  display:grid;
  grid-template-columns:1.4fr .8fr;
  gap:24px;
  align-items:stretch;
  background:#fff;
  border:1px solid rgba(14,44,84,.08);
  border-radius:26px;
  box-shadow:var(--shadow);
  padding:28px;
}

.service-problem-card h2{
  color:var(--primary);
  margin:8px 0 14px;
}

.service-problem-card p{
  color:var(--muted);
  line-height:2;
  margin:0;
}

.service-problem-points{
  display:grid;
  gap:14px;
}

.service-problem-points div{
  background:linear-gradient(135deg, rgba(15,39,71,.06), rgba(212,166,58,.10));
  border:1px solid rgba(14,44,84,.08);
  border-radius:20px;
  padding:18px;
}

.service-problem-points strong{
  display:block;
  color:var(--primary);
  margin-bottom:8px;
}

.service-resource-grid{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.service-resource-card{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.service-resource-card h3{
  color:var(--primary);
  margin:0;
}

.service-resource-card p{
  color:var(--muted);
  line-height:1.9;
  margin:0;
}

.resource-tag{
  align-self:flex-start;
  display:inline-flex;
  border-radius:999px;
  padding:6px 12px;
  background:rgba(212,166,58,.14);
  color:var(--primary);
  font-weight:800;
  font-size:.88rem;
}

.service-resource-link{
  margin-top:auto;
  color:var(--primary);
  font-weight:800;
  text-decoration:none;
}

.service-resource-link:hover{
  color:var(--accent-dark);
}

.service-inline-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.service-inline-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 14px;
  border-radius:999px;
  background:rgba(212,166,58,.12);
  color:var(--primary);
  text-decoration:none;
  font-weight:800;
}

.service-inline-links a:hover{
  background:rgba(212,166,58,.20);
}

@media (max-width:980px){
  .service-problem-card,
  .service-resource-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:640px){
  .service-problem-card{
    padding:22px;
  }

  .service-inline-links a{
    width:100%;
  }
}


/* =========================================================
   FINAL MOBILE NAV STATE FIX - 20260505
   إصلاح نهائي: لا تظهر قائمة الهاتف إلا عند وجود nav-is-open على body.
   يعالج بقاء .main-nav.open عالقة في صفحات MyTodo أو بعد الكاش.
   ========================================================= */
@media (max-width: 900px){
  body:not(.nav-is-open) .main-nav,
  body:not(.nav-is-open) .main-nav.open{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }

  body.nav-is-open .main-nav.open{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
    position:absolute;
    top:76px;
    right:16px;
    left:16px;
    z-index:1000;
    max-height:calc(100vh - 96px);
    overflow:auto;
  }

  .nav-backdrop[hidden]{
    display:none !important;
  }

  body.nav-is-open .nav-backdrop:not([hidden]){
    display:block !important;
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.35);
    z-index:900;
  }

  body.nav-is-open{
    overflow:hidden;
  }
}

@media (min-width: 901px){
  .nav-backdrop{
    display:none !important;
  }
}


/* =========================================================
   UI/UX MOBILE POLISH - 20260505
   تحسين الهوية البصرية وتجربة القراءة على الجوال
   ========================================================= */

@media (max-width: 768px){
  html{
    font-size:15px;
  }

  body{
    overflow-x:hidden;
  }

  .container{
    width:min(100% - 24px, 100%);
    padding-inline:0;
  }

  .inner-page,
  .home-section,
  .page-hero,
  .section-head,
  .service-detail-page section{
    overflow-x:hidden;
  }

  .page-hero{
    padding:32px 0 20px;
  }

  .home-section{
    padding:40px 0;
  }

  .section-head{
    margin-bottom:18px;
  }

  h1,
  .page-hero h1,
  .service-detail-page h1{
    font-size:clamp(1.55rem, 7vw, 2.05rem);
    line-height:1.28;
    letter-spacing:0;
    margin-bottom:12px;
    word-break:normal;
    overflow-wrap:anywhere;
  }

  h2,
  .service-detail-page h2,
  .home-section h2{
    font-size:clamp(1.2rem, 5.4vw, 1.55rem);
    line-height:1.38;
    margin-bottom:10px;
  }

  h3,
  .service-detail-page h3{
    font-size:clamp(1.05rem, 4.3vw, 1.28rem);
    line-height:1.4;
  }

  p,
  li{
    font-size:.96rem;
    line-height:1.85;
  }

  .service-detail-hero,
  .page-hero.service-detail-hero{
    text-align:right;
  }

  .service-detail-hero .container,
  .page-hero .container{
    display:grid;
    grid-template-columns:1fr !important;
    gap:14px;
    align-items:start;
  }

  .service-detail-hero .eyebrow,
  .page-hero .eyebrow,
  .section-kicker{
    display:inline-block;
    margin-bottom:10px;
    font-size:.82rem;
    line-height:1.5;
  }

  .service-detail-hero h1,
  .page-hero h1,
  .service-detail-hero p,
  .page-hero p{
    max-width:100%;
    width:100%;
  }

  .service-detail-hero p,
  .page-hero p,
  .section-head p{
    margin-inline:0;
  }

  .service-hero-actions,
  .hero-actions,
  .cta-actions,
  .button-group{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    width:100%;
  }

  .btn,
  .button,
  .cta-btn,
  .service-hero-actions .btn,
  .hero-actions .btn{
    width:100%;
    justify-content:center;
    min-height:46px;
    text-align:center;
    white-space:normal;
  }

  .portal-grid,
  .cards-grid,
  .services-grid,
  .topics-grid,
  .tools-grid,
  .features-grid,
  .service-quick-grid,
  .service-fit-grid,
  .service-output-grid,
  .service-resource-grid{
    grid-template-columns:1fr !important;
    gap:16px;
  }

  .card,
  .section-card,
  .service-card,
  .topic-card,
  .tool-card,
  .feature-card,
  .service-quick-card,
  .service-fit-card,
  .service-output-card,
  .service-cta-card{
    padding:18px;
    border-radius:18px;
  }

  .card h3,
  .section-card h3,
  .service-card h3,
  .topic-card h3,
  .tool-card h3{
    font-size:1.08rem;
    line-height:1.42;
  }

  .service-problem-card,
  .template-use-box,
  .template-hero-grid{
    grid-template-columns:1fr !important;
  }

  .breadcrumbs{
    margin:10px 0 4px;
    font-size:.84rem;
    padding:8px 0;
    overflow-x:auto;
    white-space:nowrap;
    scrollbar-width:thin;
  }

  .breadcrumbs ol{
    flex-wrap:nowrap;
  }

  table,
  .table-wrap,
  .planner-table-wrapper,
  .template-table-wrap{
    display:block;
    width:100%;
    overflow-x:auto;
  }
}

@media (max-width: 480px){
  .page-hero{
    padding:26px 0 18px;
  }

  h1,
  .page-hero h1,
  .service-detail-page h1{
    font-size:clamp(1.45rem, 7.5vw, 1.9rem);
    line-height:1.3;
  }

  h2,
  .service-detail-page h2,
  .home-section h2{
    font-size:clamp(1.15rem, 5.8vw, 1.42rem);
  }

  p,
  li{
    font-size:.95rem;
    line-height:1.8;
  }

  .card,
  .section-card,
  .service-card,
  .topic-card,
  .tool-card,
  .feature-card,
  .service-quick-card,
  .service-fit-card,
  .service-output-card,
  .service-cta-card{
    padding:16px;
  }
}

/* =========================================================
   MOBILE FIX — SERVICE PROCESS SECTION
   Fix heading hierarchy + step number position
   ========================================================= */

@media (max-width: 768px) {

  /* عنوان قسم آلية العمل */
  .service-detail-page .section-head,
  .service-detail-page .section-header {
    display: block !important;
    text-align: right;
  }

  .service-detail-page .section-head .eyebrow,
  .service-detail-page .section-header .eyebrow,
  .service-detail-page .section-kicker {
    display: block !important;
    width: 100%;
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gold-2, #b8860b);
    text-align: right;
  }

  .service-detail-page .section-head h2,
  .service-detail-page .section-header h2 {
    display: block !important;
    width: 100%;
    font-size: clamp(1.45rem, 6vw, 2rem);
    line-height: 1.35;
    margin: 0 0 12px 0;
    text-align: right;
  }

  .service-detail-page .section-head p,
  .service-detail-page .section-header p {
    width: 100%;
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.85;
    text-align: right;
    margin: 0;
  }

  /* بطاقات خطوات آلية العمل */
  .service-detail-page .process-card,
  .service-detail-page .step-card,
  .service-detail-page .workflow-card {
    position: relative;
    padding: 22px 20px 20px 20px;
    text-align: right;
  }

  /* الرقم في يمين الخطوة وليس أعلى/وسط البطاقة */
  .service-detail-page .process-card .step-number,
  .service-detail-page .step-card .step-number,
  .service-detail-page .workflow-card .step-number,
  .service-detail-page .process-card .number,
  .service-detail-page .step-card .number {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 800;
  }

  /* ترك مساحة للرقم داخل البطاقة */
  .service-detail-page .process-card h3,
  .service-detail-page .step-card h3,
  .service-detail-page .workflow-card h3 {
    padding-right: 62px;
    margin-top: 4px;
    font-size: clamp(1.15rem, 5vw, 1.45rem);
    line-height: 1.4;
    text-align: right;
  }

  .service-detail-page .process-card p,
  .service-detail-page .step-card p,
  .service-detail-page .workflow-card p {
    padding-right: 62px;
    font-size: 0.96rem;
    line-height: 1.85;
    text-align: right;
  }
}
/* =========================================================
   MOBILE FIX — STEP NUMBER INLINE WITH TITLE
   ========================================================= */

@media (max-width: 768px) {

  /* بطاقة الخطوة نفسها */
  .service-detail-page .process-card,
  .service-detail-page .step-card,
  .service-detail-page .workflow-card {
    display: grid !important;
    grid-template-columns: 52px 1fr !important;
    column-gap: 14px;
    row-gap: 8px;
    align-items: start;
    text-align: right;
    direction: rtl;
    padding: 22px 18px !important;
  }

  /* الرقم */
  .service-detail-page .process-card .step-number,
  .service-detail-page .step-card .step-number,
  .service-detail-page .workflow-card .step-number,
  .service-detail-page .process-card .number,
  .service-detail-page .step-card .number,
  .service-detail-page .workflow-card .number {
    position: static !important;
    grid-column: 1;
    grid-row: 1;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid !important;
    place-items: center;
    font-size: 1rem;
    font-weight: 800;
    margin: 0 !important;
  }

  /* عنوان الخطوة */
  .service-detail-page .process-card h3,
  .service-detail-page .step-card h3,
  .service-detail-page .workflow-card h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding-right: 0 !important;
    margin: 0 !important;
    font-size: clamp(1.1rem, 4.8vw, 1.35rem);
    line-height: 1.45;
    text-align: right;
  }

  /* وصف الخطوة */
  .service-detail-page .process-card p,
  .service-detail-page .step-card p,
  .service-detail-page .workflow-card p {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-right: 0 !important;
    margin: 8px 0 0 0 !important;
    font-size: 0.96rem;
    line-height: 1.85;
    text-align: right;
  }
}

/* =========================================================
   UI/UX MOBILE FIX — FOOTER STABILIZATION
   تحسين الفوتر على الجوال
   - تحويل الفوتر إلى عمود واحد
   - تحسين قابلية الضغط على الروابط
   - تقليل الثقل البصري والمسافات الزائدة
   ========================================================= */

@media (max-width: 768px){

  .site-footer{
    margin-top: 28px;
  }

  .footer-grid{
    grid-template-columns: 1fr !important;
    gap: 22px;
    padding: 30px 0 20px;
    text-align: right;
  }

  .site-footer h3,
  .site-footer h4{
    margin: 0 0 10px;
    font-size: 1.08rem;
    line-height: 1.45;
  }

  .site-footer p{
    margin: 0;
    font-size: .94rem;
    line-height: 1.85;
  }

  .footer-links{
    display: grid;
    gap: 8px;
  }

  .footer-links li{
    margin: 0;
  }

  .footer-links a{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 40px;
    padding: 8px 0;
    font-size: .95rem;
    line-height: 1.6;
  }

  .footer-links a:hover{
    color: #fff;
  }

  .footer-bottom{
    padding: 12px 10px;
    font-size: .86rem;
    line-height: 1.7;
  }
}

@media (max-width: 480px){

  .footer-grid{
    padding: 26px 0 18px;
    gap: 20px;
  }

  .site-footer h3,
  .site-footer h4{
    font-size: 1rem;
  }

  .site-footer p,
  .footer-links a{
    font-size: .9rem;
  }

  .footer-bottom{
    font-size: .82rem;
  }
}

/* =========================================================
   UI/UX MOBILE FIX — COMPACT FOOTER
   تقليل طول الفوتر على الجوال وتحسين عرض الروابط
   ========================================================= */

@media (max-width: 768px){

  .site-footer{
    margin-top: 24px;
  }

  .footer-grid{
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 26px 0 18px !important;
    text-align: right;
  }

  .footer-grid > div{
    padding-bottom: 4px;
  }

  .site-footer h3,
  .site-footer h4{
    margin: 0 0 8px !important;
    font-size: 1rem !important;
    line-height: 1.4;
  }

  .site-footer p{
    margin: 0;
    font-size: .9rem !important;
    line-height: 1.8 !important;
  }

  .footer-links{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px !important;
    align-items: start;
  }

  .footer-links a{
    min-height: auto !important;
    padding: 5px 0 !important;
    font-size: .9rem !important;
    line-height: 1.55 !important;
  }

  .footer-bottom{
    margin-top: 6px;
    padding: 10px 8px !important;
    font-size: .82rem !important;
    line-height: 1.6 !important;
  }
}

@media (max-width: 420px){

  .footer-grid{
    gap: 16px !important;
    padding: 24px 0 16px !important;
  }

  .footer-links{
    grid-template-columns: 1fr 1fr;
    gap: 5px 12px !important;
  }

  .footer-links a{
    font-size: .88rem !important;
  }
}

/* =========================================================
   UI/UX MOBILE FIX — GROUPED FOOTER LAYOUT
   ضبط الفوتر بعد الاختبار:
   - منع تباعد الروابط بشكل مبالغ فيه
   - جعل روابط سريعة وتواصل في مجموعات أوضح
   - عرض المجموعات بجانب بعض على الشاشات المتوسطة
   ========================================================= */

@media (max-width: 768px){

  .site-footer{
    margin-top: 22px;
  }

  .footer-grid{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 24px 0 16px !important;
    text-align: right;
  }

  /* تعريف المنصة يبقى في الأعلى */
  .footer-grid > div:first-child{
    grid-column: 1 / -1;
  }

  /* تجميع أقسام الروابط والتواصل بصريًا */
  .footer-grid > div:not(:first-child){
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 12px 14px;
  }

  .site-footer h3,
  .site-footer h4{
    margin: 0 0 8px !important;
    font-size: 1rem !important;
    line-height: 1.35;
  }

  .site-footer p{
    font-size: .9rem !important;
    line-height: 1.75 !important;
  }

  .footer-links{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2px !important;
    justify-items: start;
  }

  .footer-links a{
    display: inline-flex !important;
    width: auto !important;
    min-height: auto !important;
    padding: 4px 0 !important;
    font-size: .9rem !important;
    line-height: 1.55 !important;
  }

  .footer-bottom{
    margin-top: 4px;
    padding: 10px 8px !important;
    font-size: .82rem !important;
    line-height: 1.6 !important;
  }
}

/* في الهواتف العريضة أو العرض المتوسط: الروابط والتواصل بجانب بعض */
@media (min-width: 560px) and (max-width: 768px){

  .footer-grid{
    grid-template-columns: 1fr 1fr !important;
    align-items: start;
  }

  .footer-grid > div:first-child{
    grid-column: 1 / -1;
  }

  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3){
    min-height: 100%;
  }
}

/* في الهواتف الصغيرة جدًا: كل شيء تحت بعض */
@media (max-width: 420px){

  .footer-grid{
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 22px 0 14px !important;
  }

  .footer-grid > div:not(:first-child){
    padding: 11px 12px;
  }

  .site-footer h3,
  .site-footer h4{
    font-size: .96rem !important;
  }

  .site-footer p,
  .footer-links a{
    font-size: .88rem !important;
  }
}

/* =========================================================
   DESIGN CONSISTENCY — TYPOGRAPHY SYSTEM
   توحيد أحجام العناوين بين صفحات ConsuTrain
   Phase B / Step 5
   ========================================================= */

/* العناوين العامة */
:root{
  --fs-page-title: clamp(2rem, 4vw, 3rem);
  --fs-section-title: clamp(1.45rem, 2.6vw, 2rem);
  --fs-card-title: clamp(1.08rem, 1.8vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: .92rem;

  --lh-title: 1.28;
  --lh-section: 1.38;
  --lh-body: 1.9;
}

/* عنوان الصفحة الرئيسي */
.page-hero h1,
.hero h1,
.article-full-header h1,
.ai-content .page-title,
.section__title{
  font-size: var(--fs-page-title);
  line-height: var(--lh-title);
  color: var(--primary);
  letter-spacing: 0;
}

/* عناوين الأقسام */
.section-head h2,
.home-section h2,
.service-detail-page h2,
.services-page h2,
.about-block .section-head h2,
.contact-page h2,
.template-value-box h2,
.management-map-card h2,
.management-next-card h2,
.ai-portal-cta h2,
.article-extra-card h2{
  font-size: var(--fs-section-title);
  line-height: var(--lh-section);
  color: var(--primary);
  letter-spacing: 0;
}

/* عناوين البطاقات */
.section-card h3,
.feature-card h3,
.service-card h3,
.service-quick-card h3,
.service-fit-card h3,
.service-output-card h3,
.service-resource-card h3,
.audience-card h3,
.contact-card h3,
.contact-info-card h3,
.about-feature-card h3,
.value-card h3,
.article-card h3,
.prompt-card h3,
.tool-card h3,
.topic-card h3{
  font-size: var(--fs-card-title);
  line-height: 1.45;
  color: var(--primary);
  letter-spacing: 0;
}

/* الفقرات العامة */
.page-hero p,
.hero p,
.section-head p,
.section__desc,
.section-card p,
.feature-card p,
.service-detail-page p,
.services-page p,
.about-block p,
.contact-page p,
.article-card p,
.article-full-content p,
.ai-content p,
.template-value-box p,
.management-next-card p{
  line-height: var(--lh-body);
}

/* منع تضخم العناوين داخل صفحات الخدمات */
.service-detail-page .page-hero h1,
.service-detail-page h1{
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  line-height: 1.3;
}

/* ضبط العنوان الفرعي الصغير مثل آلية العمل */
.eyebrow,
.section-kicker,
.section-eyebrow,
.ai-card-kicker,
.resource-tag{
  font-size: var(--fs-small);
  line-height: 1.55;
}

/* =========================================================
   DESIGN CONSISTENCY — MOBILE TYPOGRAPHY
   ضبط العناوين على الجوال بشكل موحد
   ========================================================= */

@media (max-width: 768px){

  :root{
    --fs-page-title: clamp(1.55rem, 7vw, 2.05rem);
    --fs-section-title: clamp(1.25rem, 5.6vw, 1.6rem);
    --fs-card-title: clamp(1.05rem, 4.5vw, 1.25rem);
    --fs-body: .96rem;
    --fs-small: .86rem;

    --lh-title: 1.32;
    --lh-section: 1.42;
    --lh-body: 1.85;
  }

  .page-hero h1,
  .hero h1,
  .article-full-header h1,
  .ai-content .page-title,
  .section__title,
  .service-detail-page .page-hero h1,
  .service-detail-page h1{
    font-size: var(--fs-page-title) !important;
    line-height: var(--lh-title) !important;
    margin-bottom: 12px;
  }

  .section-head h2,
  .home-section h2,
  .service-detail-page h2,
  .services-page h2,
  .about-block .section-head h2,
  .contact-page h2,
  .template-value-box h2,
  .management-map-card h2,
  .management-next-card h2,
  .ai-portal-cta h2,
  .article-extra-card h2{
    font-size: var(--fs-section-title) !important;
    line-height: var(--lh-section) !important;
  }

  .section-card h3,
  .feature-card h3,
  .service-card h3,
  .service-quick-card h3,
  .service-fit-card h3,
  .service-output-card h3,
  .service-resource-card h3,
  .audience-card h3,
  .contact-card h3,
  .contact-info-card h3,
  .about-feature-card h3,
  .value-card h3,
  .article-card h3,
  .prompt-card h3,
  .tool-card h3,
  .topic-card h3{
    font-size: var(--fs-card-title) !important;
    line-height: 1.45 !important;
  }

  .page-hero p,
  .hero p,
  .section-head p,
  .section__desc,
  .section-card p,
  .feature-card p,
  .service-detail-page p,
  .services-page p,
  .about-block p,
  .contact-page p,
  .article-card p,
  .article-full-content p,
  .ai-content p,
  .template-value-box p,
  .management-next-card p,
  li{
    font-size: var(--fs-body);
    line-height: var(--lh-body);
  }
}

@media (max-width: 480px){

  :root{
    --fs-page-title: clamp(1.42rem, 7.6vw, 1.85rem);
    --fs-section-title: clamp(1.16rem, 6vw, 1.42rem);
    --fs-card-title: clamp(1rem, 4.8vw, 1.18rem);
  }
}

/* =========================================================
   DESIGN CONSISTENCY — BUTTON SYSTEM
   توحيد شكل الأزرار بين صفحات ConsuTrain
   Phase B / Step 6
   ========================================================= */

:root{
  --btn-radius: 14px;
  --btn-min-height: 46px;
  --btn-padding-y: 11px;
  --btn-padding-x: 18px;
  --btn-font-size: .95rem;
  --btn-shadow: 0 10px 22px rgba(15,39,71,.12);
  --btn-shadow-hover: 0 14px 28px rgba(15,39,71,.18);
}

/* القاعدة العامة لكل الأزرار والروابط التي تعمل كزر */
.btn,
.button,
.cta-btn,
.cta-primary,
.cta-secondary,
.glossary-action-btn,
.prompt-copy-btn,
.view-switch-btn,
.phase-filter-btn,
.tags-toggle-btn,
.service-link-btn,
.service-resource-link,
.term-video-link,
.article-table-actions a,
.article-related-chip,
.article-related-item,
.pwa-install-btn{
  font-family: inherit;
  border-radius: var(--btn-radius);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    color .2s ease,
    border-color .2s ease;
}

/* الأزرار الرئيسية */
.btn,
.button,
.cta-btn,
.cta-primary,
.cta-secondary,
.glossary-action-btn,
.prompt-copy-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-min-height);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: var(--btn-font-size);
  line-height: 1.45;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: normal;
}

/* الزر الأساسي */
.btn-primary,
.cta-primary,
.glossary-action-btn,
.prompt-copy-btn{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: var(--btn-shadow);
}

.btn-primary:hover,
.cta-primary:hover,
.glossary-action-btn:hover,
.prompt-copy-btn:hover{
  background: linear-gradient(135deg, var(--primary-2), var(--primary-3));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--btn-shadow-hover);
}

/* الزر الثانوي */
.btn-secondary,
.cta-secondary{
  background: var(--gold-soft);
  color: var(--primary);
  border-color: rgba(212,166,58,.28);
}

.btn-secondary:hover,
.cta-secondary:hover{
  background: #ebddb9;
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(212,166,58,.14);
}

/* زر خفيف / رابط على شكل زر */
.service-link-btn,
.service-inline-links a,
.article-table-actions a,
.tags-toggle-btn,
.phase-filter-btn,
.view-switch-btn{
  border: 1px solid rgba(15,39,71,.12);
  background: #fff;
  color: var(--primary);
}

.service-link-btn:hover,
.service-inline-links a:hover,
.article-table-actions a:hover,
.tags-toggle-btn:hover,
.phase-filter-btn:hover,
.view-switch-btn:hover{
  background: var(--gold-soft);
  border-color: rgba(212,166,58,.45);
  color: var(--primary);
  transform: translateY(-1px);
}

/* الحالة النشطة */
.phase-filter-btn.active,
.view-switch-btn.active,
.tag-chip.active{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--btn-shadow);
}

/* أزرار الفيديو أو الموارد */
.term-video-link{
  border-radius: 999px;
  min-height: 42px;
  padding: 9px 14px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: #fff;
  box-shadow: var(--btn-shadow);
}

.term-video-link:hover{
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--btn-shadow-hover);
}

/* أزرار صغيرة داخل البطاقات */
.mini-btn{
  min-height: 38px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 800;
  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.mini-btn:hover{
  transform: translateY(-1px);
}

/* مجموعات الأزرار */
.hero-actions,
.service-hero-actions,
.services-hero-actions,
.contact-hero-actions,
.contact-cta-actions,
.template-actions,
.home-free-resources-actions,
.cta-buttons,
.ai-portal-actions,
.management-hero-actions,
.management-next-actions,
.lesson-actions,
.acc__actions{
  gap: 12px;
}

/* قابلية الوصول عند استخدام لوحة المفاتيح */
.btn:focus-visible,
.button:focus-visible,
.cta-btn:focus-visible,
.cta-primary:focus-visible,
.cta-secondary:focus-visible,
.glossary-action-btn:focus-visible,
.prompt-copy-btn:focus-visible,
.view-switch-btn:focus-visible,
.phase-filter-btn:focus-visible,
.tags-toggle-btn:focus-visible,
.service-link-btn:focus-visible,
.service-inline-links a:focus-visible,
.article-table-actions a:focus-visible,
.term-video-link:focus-visible,
.mini-btn:focus-visible{
  outline: 3px solid rgba(212,166,58,.35);
  outline-offset: 3px;
}

/* =========================================================
   DESIGN CONSISTENCY — MOBILE BUTTON SYSTEM
   توحيد الأزرار على الجوال
   ========================================================= */

@media (max-width: 768px){

  :root{
    --btn-radius: 13px;
    --btn-min-height: 46px;
    --btn-padding-y: 11px;
    --btn-padding-x: 16px;
    --btn-font-size: .93rem;
  }

  .hero-actions,
  .service-hero-actions,
  .services-hero-actions,
  .contact-hero-actions,
  .contact-cta-actions,
  .template-actions,
  .home-free-resources-actions,
  .cta-buttons,
  .ai-portal-actions,
  .management-hero-actions,
  .management-next-actions{
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .btn,
  .button,
  .cta-btn,
  .cta-primary,
  .cta-secondary,
  .glossary-action-btn,
  .prompt-copy-btn,
  .service-hero-actions .btn,
  .services-hero-actions .btn,
  .contact-hero-actions .btn,
  .contact-cta-actions .btn,
  .template-actions .btn,
  .home-free-resources-actions .btn,
  .ai-portal-actions .btn,
  .management-hero-actions .btn,
  .management-next-actions .btn{
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .view-switch-btn,
  .phase-filter-btn,
  .tags-toggle-btn{
    min-height: 42px;
  }

  .service-inline-links{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-inline-links a{
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .article-table-actions{
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .article-table-actions a{
    min-height: 42px;
  }
}

@media (max-width: 480px){

  :root{
    --btn-font-size: .9rem;
  }

  .btn,
  .button,
  .cta-btn,
  .cta-primary,
  .cta-secondary,
  .glossary-action-btn,
  .prompt-copy-btn{
    min-height: 44px;
  }
}

/* =========================================================
   UI/UX MOBILE FIX — NAV SUBMENU ACCORDION
   إصلاح القوائم المنسدلة داخل قائمة الهاتف
   - منع ظهور القائمة الفرعية كنافذة عائمة
   - جعلها جزءًا من القائمة نفسها
   - منع اختفاء الروابط الفرعية أو الحاجة لتحريك مزعج
   ========================================================= */

@media (max-width: 900px){

  body.nav-is-open .main-nav.open{
    position: fixed !important;
    top: 84px !important;
    right: 12px !important;
    left: 12px !important;
    max-height: calc(100dvh - 110px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 14px !important;
    border-radius: 22px !important;
    overscroll-behavior: contain;
  }

  .main-nav .nav-item{
    width: 100%;
    overflow: visible !important;
  }

  .main-nav .has-submenu{
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center;
  }

  /* القائمة الفرعية على الجوال تصبح داخلية وليست absolute */
  .main-nav .submenu{
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 8px 0 4px !important;
    padding: 8px !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    background: #f8fafc !important;
    border: 1px solid rgba(15,39,71,.08) !important;
    display: none !important;
    gap: 6px !important;
  }

  .main-nav .has-submenu.submenu-open > .submenu{
    display: grid !important;
  }

  .main-nav .submenu a{
    display: flex !important;
    width: 100% !important;
    min-height: 42px;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    background: #fff;
    color: var(--primary);
    line-height: 1.6;
  }

  .main-nav .submenu a:hover,
  .main-nav .submenu a:focus-visible,
  .main-nav .submenu a.is-active-sub{
    background: var(--gold-soft);
    color: var(--primary);
  }

  .main-nav .submenu-toggle{
    display: inline-grid !important;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .main-nav .has-submenu.submenu-open .submenu-toggle span{
    transform: rotate(180deg);
  }

  /* منع زر CTA أسفل القائمة من تغطية عناصر القائمة */
  body.nav-is-open{
    overflow: hidden;
  }
}

@media (max-width: 480px){

  body.nav-is-open .main-nav.open{
    top: 78px !important;
    right: 10px !important;
    left: 10px !important;
    max-height: calc(100dvh - 96px) !important;
    padding: 12px !important;
  }

  .main-nav .submenu a{
    min-height: 40px;
    padding: 9px 10px !important;
    font-size: .92rem;
  }
}

/* =========================================================
   UI/UX MOBILE FIX — BIGGER ACCORDION ARROW
   تكبير سهم الأكورديون في قائمة الهاتف
   ========================================================= */

@media (max-width: 900px){

  .main-nav .submenu-toggle{
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: rgba(15,39,71,.04);
  }

  .main-nav .submenu-toggle span{
    display: inline-grid;
    place-items: center;
    font-size: 1.15rem !important;
    line-height: 1;
    font-weight: 900;
    color: var(--primary);
  }

  .main-nav .submenu-toggle:hover,
  .main-nav .submenu-toggle:focus-visible{
    background: var(--gold-soft);
  }

  .main-nav .has-submenu.submenu-open .submenu-toggle{
    background: rgba(212,166,58,.16);
  }

  .main-nav .has-submenu.submenu-open .submenu-toggle span{
    color: var(--gold-2);
  }
}

@media (max-width: 480px){

  .main-nav .submenu-toggle{
    width: 42px !important;
    height: 42px !important;
  }

  .main-nav .submenu-toggle span{
    font-size: 1.1rem !important;
  }
}

/* =========================================================
   DESIGN CONSISTENCY — CARD SYSTEM
   توحيد شكل البطاقات بين صفحات ConsuTrain
   Phase B / Step 7
   ========================================================= */

:root{
  --card-bg: #ffffff;
  --card-border: 1px solid rgba(15,39,71,.09);
  --card-radius: 22px;
  --card-padding: 24px;
  --card-shadow: 0 12px 30px rgba(15,39,71,.06);
  --card-shadow-hover: 0 18px 42px rgba(15,39,71,.10);
}

/* القاعدة العامة للبطاقات */
.card,
.section-card,
.feature-card,
.service-card,
.service-quick-card,
.service-fit-card,
.service-output-card,
.service-resource-card,
.service-cta-card,
.service-problem-card,
.audience-card,
.contact-card,
.contact-info-card,
.contact-cta,
.about-feature-card,
.value-card,
.article-card,
.article-extra-card,
.glossary-item,
.prompt-card,
.prompt-card--pro,
.tool-card,
.topic-card,
.home-resource-item,
.template-download-card,
.template-feature-card,
.template-mini-card,
.template-trick-card,
.template-value-box,
.management-overview-card,
.management-map-card,
.management-next-card,
.management-module-pill,
.management-lesson-card,
.ai-portal-card,
.ai-article-mini,
.ai-learning-path-card,
.ai-step,
.service-acc-item,
.journey-item,
.objective-item,
.learn-start-card,
.learn-start-item,
.learning-journey-card,
.soft-group,
.soft-skill-item,
.pillar,
.acc{
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

/* المسافات الداخلية الموحدة */
.card,
.section-card,
.feature-card,
.service-card,
.service-quick-card,
.service-fit-card,
.service-output-card,
.service-resource-card,
.service-cta-card,
.audience-card,
.contact-card,
.contact-info-card,
.about-feature-card,
.value-card,
.article-card,
.article-extra-card,
.glossary-item,
.prompt-card,
.prompt-card--pro,
.tool-card,
.topic-card,
.home-resource-item,
.template-feature-card,
.template-mini-card,
.template-trick-card,
.management-overview-card,
.management-map-card,
.management-next-card,
.management-module-pill,
.ai-portal-card,
.ai-article-mini,
.ai-step,
.soft-skill-item{
  padding: var(--card-padding);
}

/* تأثير hover للبطاقات القابلة للنقر أو الاستكشاف */
.section-card,
.feature-card,
.service-card,
.service-resource-card,
.article-card,
.glossary-item,
.prompt-card,
.tool-card,
.topic-card,
.home-resource-item,
.template-feature-card,
.template-mini-card,
.template-trick-card,
.management-module-pill,
.management-lesson-card,
.ai-portal-card,
.ai-article-mini,
.ai-step,
.learn-start-item,
.soft-skill-item{
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease;
}

.section-card:hover,
.feature-card:hover,
.service-card:hover,
.service-resource-card:hover,
.article-card:hover,
.glossary-item:hover,
.prompt-card:hover,
.tool-card:hover,
.topic-card:hover,
.home-resource-item:hover,
.template-feature-card:hover,
.template-mini-card:hover,
.template-trick-card:hover,
.management-module-pill:hover,
.management-lesson-card:hover,
.ai-portal-card:hover,
.ai-article-mini:hover,
.ai-step:hover,
.learn-start-item:hover,
.soft-skill-item:hover{
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(212,166,58,.34);
}

/* توحيد عناوين البطاقات */
.card h3,
.section-card h3,
.feature-card h3,
.service-card h3,
.service-quick-card h3,
.service-fit-card h3,
.service-output-card h3,
.service-resource-card h3,
.audience-card h3,
.contact-card h3,
.contact-info-card h3,
.about-feature-card h3,
.value-card h3,
.article-card h3,
.glossary-item h3,
.prompt-card h3,
.tool-card h3,
.topic-card h3,
.home-resource-item strong,
.template-feature-card h3,
.template-mini-card h3,
.template-trick-card h3,
.management-module-pill strong,
.ai-portal-card h3,
.ai-article-mini h3,
.soft-skill-item h3{
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary);
  line-height: 1.45;
}

/* توحيد نصوص البطاقات */
.card p,
.section-card p,
.feature-card p,
.service-card p,
.service-quick-card p,
.service-fit-card p,
.service-output-card p,
.service-resource-card p,
.audience-card p,
.contact-card p,
.contact-info-card p,
.about-feature-card p,
.value-card p,
.article-card p,
.glossary-item p,
.prompt-card p,
.tool-card p,
.topic-card p,
.home-resource-item span,
.template-feature-card p,
.template-mini-card p,
.template-trick-card p,
.management-module-pill span,
.ai-portal-card p,
.ai-article-mini p,
.soft-skill-item p{
  color: var(--muted);
  line-height: 1.9;
}

/* بطاقات الخطوات: الحفاظ على وضوح الرقم والمحتوى */
.journey-item,
.objective-item,
.management-lesson-card{
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.journey-number,
.objective-num,
.lesson-code,
.management-card-icon{
  box-shadow: 0 8px 18px rgba(15,39,71,.10);
}

/* بطاقات الأكورديون */
.service-acc-item,
.soft-group,
.pillar,
.acc{
  overflow: hidden;
}

.service-acc-item summary,
.soft-group summary,
.pillar__sum,
.acc__sum{
  transition: background .22s ease, color .22s ease;
}

.service-acc-item:hover,
.soft-group:hover,
.pillar:hover,
.acc:hover{
  border-color: rgba(212,166,58,.30);
}

/* توحيد البطاقات ذات الخلفيات الخاصة بدون إلغاء التميز البصري */
.service-problem-card,
.template-value-box,
.home-free-resources-box,
.ai-portal-card--featured,
.learn-path-card--featured,
.ai-learning-path-card{
  border-radius: 26px;
  box-shadow: var(--card-shadow);
}

/* =========================================================
   DESIGN CONSISTENCY — MOBILE CARD SYSTEM
   توحيد البطاقات على الجوال
   ========================================================= */

@media (max-width: 768px){

  :root{
    --card-radius: 18px;
    --card-padding: 18px;
    --card-shadow: 0 8px 22px rgba(15,39,71,.055);
    --card-shadow-hover: 0 10px 26px rgba(15,39,71,.08);
  }

  .card,
  .section-card,
  .feature-card,
  .service-card,
  .service-quick-card,
  .service-fit-card,
  .service-output-card,
  .service-resource-card,
  .service-cta-card,
  .audience-card,
  .contact-card,
  .contact-info-card,
  .about-feature-card,
  .value-card,
  .article-card,
  .article-extra-card,
  .glossary-item,
  .prompt-card,
  .prompt-card--pro,
  .tool-card,
  .topic-card,
  .home-resource-item,
  .template-download-card,
  .template-feature-card,
  .template-mini-card,
  .template-trick-card,
  .template-value-box,
  .management-overview-card,
  .management-map-card,
  .management-next-card,
  .management-module-pill,
  .management-lesson-card,
  .ai-portal-card,
  .ai-article-mini,
  .ai-learning-path-card,
  .ai-step,
  .service-acc-item,
  .journey-item,
  .objective-item,
  .learn-start-card,
  .learn-start-item,
  .learning-journey-card,
  .soft-group,
  .soft-skill-item,
  .pillar,
  .acc{
    border-radius: var(--card-radius) !important;
  }

  .card,
  .section-card,
  .feature-card,
  .service-card,
  .service-quick-card,
  .service-fit-card,
  .service-output-card,
  .service-resource-card,
  .service-cta-card,
  .audience-card,
  .contact-card,
  .contact-info-card,
  .about-feature-card,
  .value-card,
  .article-card,
  .article-extra-card,
  .glossary-item,
  .prompt-card,
  .prompt-card--pro,
  .tool-card,
  .topic-card,
  .home-resource-item,
  .template-feature-card,
  .template-mini-card,
  .template-trick-card,
  .management-overview-card,
  .management-map-card,
  .management-next-card,
  .management-module-pill,
  .ai-portal-card,
  .ai-article-mini,
  .ai-step,
  .soft-skill-item{
    padding: var(--card-padding) !important;
  }

  /* على الجوال نقلل الحركة حتى لا يكون التأثير مزعجًا */
  .section-card:hover,
  .feature-card:hover,
  .service-card:hover,
  .service-resource-card:hover,
  .article-card:hover,
  .glossary-item:hover,
  .prompt-card:hover,
  .tool-card:hover,
  .topic-card:hover,
  .home-resource-item:hover,
  .template-feature-card:hover,
  .template-mini-card:hover,
  .template-trick-card:hover,
  .management-module-pill:hover,
  .management-lesson-card:hover,
  .ai-portal-card:hover,
  .ai-article-mini:hover,
  .ai-step:hover,
  .learn-start-item:hover,
  .soft-skill-item:hover{
    transform: none;
  }

  .service-problem-card,
  .template-value-box,
  .home-free-resources-box,
  .ai-portal-card--featured,
  .learn-path-card--featured,
  .ai-learning-path-card{
    border-radius: 20px;
  }
}

@media (max-width: 480px){

  :root{
    --card-radius: 16px;
    --card-padding: 16px;
  }
}

/* =========================================================
   UI/UX FIX — KNOWLEDGE LIBRARY SEARCH INPUT
   تصغير خانة البحث في صفحة مكتبة المعرفة
   - عرض عريض
   - ارتفاع طبيعي كسطر واحد
   - مناسب للجوال
   ========================================================= */

.articles-toolbar .search-input,
.articles-page .search-input,
.knowledge-page .search-input{
  min-height: 48px;
  height: 48px;
  padding: 0 16px;
  line-height: 48px;
  border-radius: 16px;
}

.articles-toolbar{
  align-items: center;
}

@media (max-width: 768px){

  .articles-toolbar .search-input,
  .articles-page .search-input,
  .knowledge-page .search-input{
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 14px !important;
    line-height: 46px !important;
    font-size: .95rem;
    border-radius: 14px;
  }

  .articles-toolbar{
    gap: 10px;
  }

  .articles-toolbar .glossary-action-btn,
  .articles-toolbar .btn,
  .articles-toolbar button{
    min-height: 44px;
  }
}

@media (max-width: 480px){

  .articles-toolbar .search-input,
  .articles-page .search-input,
  .knowledge-page .search-input{
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    line-height: 44px !important;
    font-size: .92rem;
  }
}

/* =========================================================
   DESIGN CONSISTENCY — BACKGROUNDS & SPACING
   تحسين الخلفيات والمسافات بين الأقسام
   Phase B / Step 8
   ========================================================= */

:root{
  --section-padding-y: 56px;
  --section-padding-y-soft: 42px;
  --section-gap: 22px;
  --page-hero-padding-y: 58px;
  --soft-section-bg: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
  --hero-soft-bg:
    radial-gradient(circle at top right, rgba(212,166,58,.12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

/* خلفية عامة أخف وأكثر اتساقًا */
body{
  background:
    linear-gradient(180deg, #f6f8fc 0%, #f5f7fb 42%, #f8fafc 100%);
}

/* توحيد مسافات الأقسام */
.home-section,
.service-detail-page section,
.services-page section,
.contact-page section,
.about-block,
.template-value-section,
.management-phase-section,
.management-phase-filter-section,
.ai-portal-page section{
  padding-top: var(--section-padding-y-soft);
  padding-bottom: var(--section-padding-y-soft);
}

/* Hero الصفحات الداخلية */
.page-hero,
.services-hero,
.service-detail-hero,
.contact-hero,
.template-hero,
.management-skills-hero,
.topics-hero{
  padding-top: var(--page-hero-padding-y);
  padding-bottom: 34px;
  background: var(--hero-soft-bg);
}

/* تقليل التصادم بين الـ breadcrumbs والـ hero */
#breadcrumbs-placeholder + .inner-page .page-hero,
#breadcrumbs-placeholder + main .page-hero{
  padding-top: 46px;
}

/* توحيد المسافة بين عنوان القسم ومحتواه */
.section-head,
.section__head,
.services-head,
.contact-head,
.management-section-head,
.service-detail-head,
.topics-head{
  margin-bottom: var(--section-gap);
}

/* خلفيات الأقسام الناعمة */
.service-detail-soft,
.contact-section-soft,
.alt-bg,
.ai-portal-cta,
.home-free-resources,
.template-value-box,
.learning-journey-card{
  background: var(--soft-section-bg);
}

/* تحسين حواف الكتل الكبيرة */
.home-free-resources-box,
.service-problem-card,
.template-use-box,
.template-value-box,
.contact-cta,
.service-cta-card,
.ai-portal-cta,
.learning-journey-card{
  border-radius: 28px;
}

/* ضبط شبكات البطاقات */
.cards-grid,
.services-intro-grid,
.services-audience-grid,
.service-quick-grid,
.service-fit-grid,
.service-output-grid,
.service-resource-grid,
.contact-top-grid,
.contact-info-grid,
.about-dual-grid,
.about-values-grid,
.management-overview-grid,
.management-modules-grid,
.ai-portal-cards,
.ai-featured-articles,
.prompts-list,
.articles-list,
.glossary-list{
  gap: 20px;
}

/* توحيد المسافات داخل صفحات التفاصيل */
.service-detail-page .home-section:first-of-type,
.services-page .home-section:first-of-type,
.contact-page .home-section:first-of-type{
  padding-top: 34px;
}

/* تحسين انتقال الأقسام بصريًا */
.home-section + .home-section,
.service-detail-page section + section,
.services-page section + section,
.contact-page section + section{
  margin-top: 0;
}

/* عدم تضخيم المساحة أسفل آخر قسم قبل الفوتر */
.inner-page > section:last-child,
.inner-page > .home-section:last-child{
  padding-bottom: 46px;
}

/* =========================================================
   DESIGN CONSISTENCY — MOBILE BACKGROUNDS & SPACING
   تحسين الخلفيات والمسافات على الجوال
   ========================================================= */

@media (max-width: 768px){

  :root{
    --section-padding-y: 38px;
    --section-padding-y-soft: 30px;
    --section-gap: 16px;
    --page-hero-padding-y: 34px;
  }

  .page-hero,
  .services-hero,
  .service-detail-hero,
  .contact-hero,
  .template-hero,
  .management-skills-hero,
  .topics-hero{
    padding-top: var(--page-hero-padding-y) !important;
    padding-bottom: 22px !important;
  }

  #breadcrumbs-placeholder + .inner-page .page-hero,
  #breadcrumbs-placeholder + main .page-hero{
    padding-top: 28px !important;
  }

  .home-section,
  .service-detail-page section,
  .services-page section,
  .contact-page section,
  .about-block,
  .template-value-section,
  .management-phase-section,
  .management-phase-filter-section,
  .ai-portal-page section{
    padding-top: var(--section-padding-y-soft) !important;
    padding-bottom: var(--section-padding-y-soft) !important;
  }

  .section-head,
  .section__head,
  .services-head,
  .contact-head,
  .management-section-head,
  .service-detail-head,
  .topics-head{
    margin-bottom: var(--section-gap) !important;
  }

  .cards-grid,
  .services-intro-grid,
  .services-audience-grid,
  .service-quick-grid,
  .service-fit-grid,
  .service-output-grid,
  .service-resource-grid,
  .contact-top-grid,
  .contact-info-grid,
  .about-dual-grid,
  .about-values-grid,
  .management-overview-grid,
  .management-modules-grid,
  .ai-portal-cards,
  .ai-featured-articles,
  .prompts-list,
  .articles-list,
  .glossary-list{
    gap: 16px !important;
  }

  .home-free-resources-box,
  .service-problem-card,
  .template-use-box,
  .template-value-box,
  .contact-cta,
  .service-cta-card,
  .ai-portal-cta,
  .learning-journey-card{
    border-radius: 20px !important;
  }

  .inner-page > section:last-child,
  .inner-page > .home-section:last-child{
    padding-bottom: 34px !important;
  }
}

@media (max-width: 480px){

  :root{
    --section-padding-y-soft: 26px;
    --section-gap: 14px;
  }

  .page-hero,
  .services-hero,
  .service-detail-hero,
  .contact-hero,
  .template-hero,
  .management-skills-hero,
  .topics-hero{
    padding-top: 28px !important;
    padding-bottom: 20px !important;
  }

  .home-section,
  .service-detail-page section,
  .services-page section,
  .contact-page section,
  .about-block,
  .template-value-section,
  .management-phase-section,
  .management-phase-filter-section,
  .ai-portal-page section{
    padding-top: var(--section-padding-y-soft) !important;
    padding-bottom: var(--section-padding-y-soft) !important;
  }
}

/* =========================================================
   POLISH — HOME PAGE ENHANCEMENT
   تحسين الصفحة الرئيسية: Hero + Value Strip + Audience
   Phase C / Step 9
   ========================================================= */

.home-polish-hero{
  padding: 70px 0 34px;
  background:
    radial-gradient(circle at 88% 18%, rgba(212,166,58,.18), transparent 28%),
    radial-gradient(circle at 14% 78%, rgba(15,39,71,.10), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.home-hero-card{
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 42px;
}

.home-hero-card::after{
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  left: -70px;
  bottom: -76px;
  background: rgba(212,166,58,.13);
  pointer-events: none;
}

.home-hero-card h1{
  max-width: 780px;
}

.home-hero-card p{
  max-width: 760px;
}

.home-hero-highlights{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.home-hero-highlights span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15,39,71,.06);
  border: 1px solid rgba(15,39,71,.08);
  color: var(--primary);
  font-weight: 800;
  font-size: .9rem;
}

.home-hero-side{
  align-self: stretch;
}

.home-feature-card{
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  min-height: 150px;
  color: inherit;
}

.home-feature-card h3,
.home-feature-card p{
  grid-column: 2;
}

.home-feature-card h3{
  margin-bottom: 6px;
}

.home-card-icon{
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: #fff;
  font-weight: 900;
  font-size: .95rem;
  box-shadow: 0 10px 24px rgba(15,39,71,.12);
}

.home-value-strip{
  padding: 0 0 18px;
}

.home-value-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.home-value-item{
  background: #fff;
  border: 1px solid rgba(15,39,71,.08);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 8px 22px rgba(15,39,71,.05);
}

.home-value-item strong{
  display: block;
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.home-value-item span{
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
}

.home-audience-section{
  background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
}

.home-audience-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-audience-card{
  position: relative;
  background: #fff;
  border: 1px solid rgba(15,39,71,.09);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15,39,71,.06);
  padding: 24px;
  overflow: hidden;
}

.home-audience-card::before{
  content: "";
  position: absolute;
  right: 0;
  top: 22px;
  width: 4px;
  height: 44px;
  border-radius: 999px 0 0 999px;
  background: var(--gold);
}

.home-audience-card h3{
  margin: 0 0 10px;
  color: var(--primary);
}

.home-audience-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

@media (max-width: 980px){
  .home-polish-hero{
    padding: 48px 0 28px;
  }

  .home-value-grid,
  .home-audience-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .home-polish-hero{
    padding: 30px 0 22px;
  }

  .home-hero-card{
    padding: 24px;
    border-radius: 22px;
  }

  .home-hero-highlights{
    gap: 8px;
    margin-bottom: 18px;
  }

  .home-hero-highlights span{
    flex: 1 1 auto;
    font-size: .86rem;
    min-height: 32px;
  }

  .home-feature-card{
    grid-template-columns: 46px 1fr;
    gap: 12px;
    min-height: auto;
  }

  .home-card-icon{
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: .88rem;
  }

  .home-value-strip{
    padding-bottom: 8px;
  }

  .home-value-item,
  .home-audience-card{
    padding: 18px;
    border-radius: 18px;
  }
}

@media (max-width: 480px){
  .home-hero-card{
    padding: 20px;
  }

  .home-hero-highlights{
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   POLISH — LEARN PAGES ENHANCEMENT
   تحسين صفحات Learn: التعلّم، المقالات، القاموس، AI، المهارات
   Phase C / Step 10
   ========================================================= */

/* Hero صفحات Learn */
.learn-hero,
.topics-hero,
.ai-portal-page .page-hero,
.management-skills-hero{
  background:
    radial-gradient(circle at 88% 18%, rgba(212,166,58,.16), transparent 28%),
    radial-gradient(circle at 12% 78%, rgba(15,39,71,.10), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.learn-hero .container,
.topics-hero .container,
.ai-portal-page .page-hero .container,
.management-skills-hero .container{
  position: relative;
}

/* جعل مقدمات Learn أكثر وضوحًا */
.learn-hero h1,
.topics-hero h1,
.ai-portal-page .page-hero h1,
.management-skills-hero h1{
  max-width: 880px;
}

.learn-hero p,
.topics-hero p,
.ai-portal-page .page-hero p,
.management-skills-hero p{
  max-width: 900px;
}

/* بطاقات مسارات التعلم */
.learn-path-card,
.learn-start-card,
.learning-journey-card,
.management-overview-card,
.management-map-card,
.management-next-card{
  border: 1px solid rgba(15,39,71,.09);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.learn-path-card{
  position: relative;
  overflow: hidden;
}

.learn-path-card::after{
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  left: -42px;
  bottom: -48px;
  background: rgba(212,166,58,.10);
  pointer-events: none;
}

/* تحسين عناصر البداية */
.learn-start-item{
  position: relative;
  overflow: hidden;
}

.learn-start-item::before{
  content: "";
  position: absolute;
  right: 0;
  top: 18px;
  width: 4px;
  height: 38px;
  border-radius: 999px 0 0 999px;
  background: var(--gold);
}

/* مكتبة المعرفة */
.articles-toolbar,
.prompts-toolbar,
.glossary-toolbar{
  background: #fff;
  border: 1px solid rgba(15,39,71,.08);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15,39,71,.045);
}

.articles-topic-filter{
  background: rgba(15,39,71,.025);
  border: 1px solid rgba(15,39,71,.06);
  border-radius: 18px;
  padding: 12px;
}

.articles-tags-panel{
  background: #fff;
  border: 1px solid rgba(15,39,71,.08);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15,39,71,.04);
}

/* بطاقات المقالات */
.article-card{
  position: relative;
  overflow: hidden;
}

.article-card::before{
  content: "";
  position: absolute;
  right: 0;
  top: 22px;
  width: 4px;
  height: 44px;
  border-radius: 999px 0 0 999px;
  background: rgba(212,166,58,.85);
}

.article-card h3,
.article-card p,
.article-card .article-tags,
.article-card .article-meta-row,
.article-card .card-link{
  position: relative;
  z-index: 1;
}

/* القاموس */
.glossary-item{
  position: relative;
}

.glossary-category{
  margin-bottom: 2px;
}

.glossary-definition,
.glossary-example{
  border-color: rgba(15,39,71,.08);
}

.glossary-definition{
  background: #ffffff;
}

.glossary-example{
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

/* صفحة AI */
.ai-portal-card,
.ai-article-mini,
.ai-step{
  position: relative;
  overflow: hidden;
}

.ai-step span,
.ai-core{
  box-shadow: 0 12px 26px rgba(15,39,71,.16);
}

.ai-guide-nav{
  background: #fff;
  border: 1px solid rgba(15,39,71,.08);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15,39,71,.045);
}

/* مكتبة Prompts */
.prompt-card--pro{
  overflow: hidden;
}

.prompt-level-badge{
  box-shadow: 0 8px 18px rgba(212,166,58,.10);
}

.prompt-box,
.prompt-box--long{
  background: #fbfdff;
  border-color: rgba(15,39,71,.08);
}

/* المهارات الإدارية */
.management-module-pill{
  min-height: 150px;
}

.management-lesson-card{
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.lesson-code{
  background:
    radial-gradient(circle at 20% 20%, rgba(212,166,58,.22), transparent 28%),
    linear-gradient(135deg, rgba(15,39,71,.10), rgba(212,166,58,.20));
}

/* تحسين أزرار التبديل والفلاتر في Learn */
.articles-view-switch,
.management-phase-filter-card,
.articles-results-head{
  background: #fff;
  border: 1px solid rgba(15,39,71,.08);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15,39,71,.04);
}

.articles-results-head{
  margin-bottom: 16px;
}

/* ترتيب أفضل للكلمات المفتاحية */
.articles-tags-bar{
  gap: 8px;
}

.tag-chip{
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   POLISH — LEARN PAGES MOBILE
   تحسين صفحات Learn على الجوال
   ========================================================= */

@media (max-width: 768px){

  .learn-hero,
  .topics-hero,
  .ai-portal-page .page-hero,
  .management-skills-hero{
    padding-top: 28px !important;
    padding-bottom: 22px !important;
  }

  .learn-hero-actions,
  .ai-portal-actions,
  .management-hero-actions{
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .learn-hero-actions .btn,
  .ai-portal-actions .btn,
  .management-hero-actions .btn{
    width: 100%;
  }

  .learn-start-grid,
  .learn-paths-grid,
  .learning-journey-steps,
  .management-overview-grid,
  .management-modules-grid,
  .articles-list,
  .prompts-list,
  .glossary-list,
  .ai-portal-cards,
  .ai-featured-articles{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .articles-toolbar,
  .prompts-toolbar,
  .glossary-toolbar,
  .articles-topic-filter,
  .articles-tags-panel,
  .ai-guide-nav,
  .articles-view-switch,
  .management-phase-filter-card,
  .articles-results-head{
    border-radius: 16px;
    padding: 12px;
  }

  .articles-toolbar,
  .prompts-toolbar,
  .glossary-toolbar{
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .articles-topic-filter{
    display: grid;
    grid-template-columns: 1fr;
  }

  .articles-tags-head{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .articles-tags-toggle-row{
    justify-content: stretch;
  }

  .tags-toggle-btn{
    width: 100%;
  }

  .articles-view-switch{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .view-switch-btn{
    width: 100%;
  }

  .article-card::before,
  .learn-start-item::before,
  .home-audience-card::before{
    height: 34px;
    top: 18px;
  }

  .ai-portal-visual{
    min-height: 230px;
  }

  .ai-orbit{
    width: 82px;
    height: 82px;
    font-size: .82rem;
  }

  .ai-core{
    width: 94px;
    height: 94px;
    font-size: 1.55rem;
  }

  .management-lesson-card{
    gap: 12px;
  }

  .lesson-code{
    min-height: 58px;
  }
}

@media (max-width: 480px){

  .tag-chip{
    width: 100%;
  }

  .articles-tags-bar{
    display: grid;
    grid-template-columns: 1fr;
  }

  .ai-portal-visual{
    min-height: 210px;
  }

  .ai-orbit--one{
    top: 24px;
    right: 18px;
  }

  .ai-orbit--two{
    bottom: 24px;
    right: 24px;
  }

  .ai-orbit--three{
    bottom: 34px;
    left: 18px;
    width: 92px;
    height: 92px;
  }
}

/* =========================================================
   POLISH — TOOLS PAGES ENHANCEMENT
   تحسين صفحات Tools: الأدوات، MyTodo، القوالب، دراسة الجدوى
   Phase C / Step 11
   ========================================================= */

/* Hero صفحة الأدوات */
.tools-page .page-hero,
.tools-hero,
.tools-page .tools-hero{
  background:
    radial-gradient(circle at 88% 18%, rgba(212,166,58,.16), transparent 28%),
    radial-gradient(circle at 12% 78%, rgba(15,39,71,.10), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.tools-page .page-hero h1,
.tools-page .page-hero p,
.tools-hero h1,
.tools-hero p{
  max-width: 920px;
}

/* شبكات الأدوات */
.tools-grid,
.portal-grid,
.tools-page .cards-grid{
  gap: 20px;
}

/* بطاقات الأدوات */
.tool-card,
.tools-page .section-card,
.tools-page .feature-card,
.tools-page .service-card{
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.tool-card::before,
.tools-page .section-card::before{
  content: "";
  position: absolute;
  right: 0;
  top: 22px;
  width: 4px;
  height: 44px;
  border-radius: 999px 0 0 999px;
  background: rgba(212,166,58,.85);
}

.tool-card h3,
.tool-card p,
.tool-card a,
.tools-page .section-card h3,
.tools-page .section-card p,
.tools-page .section-card a{
  position: relative;
  z-index: 1;
}

/* إبراز الأدوات العملية */
.tools-page .card-link,
.tool-card .card-link,
.tool-card a:not(.btn){
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--primary);
  font-weight: 900;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.tools-page .card-link:hover,
.tool-card .card-link:hover,
.tool-card a:not(.btn):hover{
  color: var(--gold-2);
}

/* صناديق الموارد والقوالب داخل Tools */
.tools-page .home-free-resources-box,
.tools-page .template-value-box,
.tools-page .template-download-card,
.tools-page .template-use-box,
.tools-page .service-problem-card{
  background:
    radial-gradient(circle at 12% 20%, rgba(212,166,58,.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

/* تحسين أزرار Tools */
.tools-page .hero-actions,
.tools-page .template-actions,
.tools-page .home-free-resources-actions,
.tools-page .acc__actions{
  gap: 12px;
}

/* MyTodo داخل ConsuTrain */
.mytodo-page,
.tools-mytodo-page{
  background:
    radial-gradient(circle at 90% 10%, rgba(212,166,58,.08), transparent 30%),
    linear-gradient(180deg, #f7fafe 0%, #f5f7fb 100%);
}

.mytodo-page .page-hero,
.tools-mytodo-page .page-hero{
  background:
    radial-gradient(circle at 88% 18%, rgba(212,166,58,.15), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

/* بطاقات أو أقسام MyTodo العامة */
.mytodo-page .section-card,
.mytodo-page .feature-card,
.mytodo-page .tool-card,
.mytodo-page .card,
.tools-mytodo-page .section-card,
.tools-mytodo-page .feature-card,
.tools-mytodo-page .tool-card,
.tools-mytodo-page .card{
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-color: rgba(15,39,71,.09);
}

/* أدوات الحساب والفواتير والقوالب */
.tools-page [class*="calculator"],
.tools-page [class*="invoice"],
.tools-page [class*="template"],
.tools-page [class*="crm"],
.tools-page [class*="timer"]{
  scroll-margin-top: 96px;
}

/* جداول أو نماذج الأدوات */
.tools-page form,
.mytodo-page form,
.tools-page .form-card,
.mytodo-page .form-card,
.tools-page .table-wrap,
.mytodo-page .table-wrap,
.tools-page .planner-table-wrapper,
.mytodo-page .planner-table-wrapper{
  border-radius: 20px;
}

/* حقول الإدخال داخل الأدوات */
.tools-page input,
.tools-page textarea,
.tools-page select,
.mytodo-page input,
.mytodo-page textarea,
.mytodo-page select,
.tools-mytodo-page input,
.tools-mytodo-page textarea,
.tools-mytodo-page select{
  border-radius: 14px;
  border: 1px solid rgba(15,39,71,.12);
  background: #fff;
  min-height: 44px;
}

.tools-page input:focus,
.tools-page textarea:focus,
.tools-page select:focus,
.mytodo-page input:focus,
.mytodo-page textarea:focus,
.mytodo-page select:focus,
.tools-mytodo-page input:focus,
.tools-mytodo-page textarea:focus,
.tools-mytodo-page select:focus{
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,166,58,.14);
  outline: none;
}

/* أزرار الأدوات الداخلية */
.tools-page button,
.mytodo-page button,
.tools-mytodo-page button{
  font-family: inherit;
}

/* حالة الأدوات العملية */
.tool-status,
.tools-badge,
.tool-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--primary);
  font-size: .84rem;
  font-weight: 900;
}

/* =========================================================
   POLISH — TOOLS PAGES MOBILE
   تحسين صفحات Tools على الجوال
   ========================================================= */

@media (max-width: 768px){

  .tools-page .page-hero,
  .tools-hero,
  .tools-page .tools-hero,
  .mytodo-page .page-hero,
  .tools-mytodo-page .page-hero{
    padding-top: 28px !important;
    padding-bottom: 22px !important;
  }

  .tools-grid,
  .portal-grid,
  .tools-page .cards-grid{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .tool-card,
  .tools-page .section-card,
  .tools-page .feature-card,
  .tools-page .service-card{
    border-radius: 18px !important;
    padding: 18px !important;
  }

  .tool-card::before,
  .tools-page .section-card::before{
    top: 18px;
    height: 34px;
  }

  .tools-page .hero-actions,
  .tools-page .template-actions,
  .tools-page .home-free-resources-actions,
  .tools-page .acc__actions{
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .tools-page .hero-actions .btn,
  .tools-page .template-actions .btn,
  .tools-page .home-free-resources-actions .btn,
  .tools-page .acc__actions .btn{
    width: 100%;
  }

  .tools-page input,
  .tools-page textarea,
  .tools-page select,
  .mytodo-page input,
  .mytodo-page textarea,
  .mytodo-page select,
  .tools-mytodo-page input,
  .tools-mytodo-page textarea,
  .tools-mytodo-page select{
    width: 100%;
    min-height: 44px;
    font-size: .95rem;
  }

  .tools-page form,
  .mytodo-page form,
  .tools-mytodo-page form{
    display: grid;
    gap: 10px;
  }

  .tools-page table,
  .mytodo-page table,
  .tools-mytodo-page table{
    font-size: .9rem;
  }

  .tools-page .table-wrap,
  .mytodo-page .table-wrap,
  .tools-page .planner-table-wrapper,
  .mytodo-page .planner-table-wrapper{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px){

  .tool-card,
  .tools-page .section-card,
  .tools-page .feature-card,
  .tools-page .service-card{
    padding: 16px !important;
  }

  .tools-page table,
  .mytodo-page table,
  .tools-mytodo-page table{
    font-size: .86rem;
  }
}

/* =========================================================
   UI/UX FIX — TOOLS HERO CONTRAST
   إصلاح تباين نص Hero في صفحة الأدوات
   ========================================================= */

.tools-page .page-hero,
.tools-page .tools-hero,
.tools-hero{
  color: var(--primary);
}

.tools-page .page-hero h1,
.tools-page .tools-hero h1,
.tools-hero h1,
.tools-page .page-hero h2,
.tools-page .tools-hero h2,
.tools-hero h2{
  color: var(--primary) !important;
  text-shadow: none !important;
}

.tools-page .page-hero p,
.tools-page .tools-hero p,
.tools-hero p{
  color: var(--muted) !important;
  text-shadow: none !important;
}

.tools-page .page-hero .eyebrow,
.tools-page .tools-hero .eyebrow,
.tools-hero .eyebrow,
.tools-page .section-kicker,
.tools-hero .section-kicker{
  color: var(--gold-2) !important;
  text-shadow: none !important;
}

/* إذا كان هناك overlay أبيض أو فاتح فوق الهيرو، نخففه */
.tools-page .page-hero::before,
.tools-page .tools-hero::before,
.tools-hero::before{
  opacity: .35;
}

/* تحسين القراءة على الجوال */
@media (max-width: 768px){
  .tools-page .page-hero,
  .tools-page .tools-hero,
  .tools-hero{
    background:
      radial-gradient(circle at 88% 18%, rgba(212,166,58,.12), transparent 28%),
      linear-gradient(180deg, #f8fbff 0%, #ffffff 100%) !important;
  }

  .tools-page .page-hero h1,
  .tools-page .tools-hero h1,
  .tools-hero h1{
    color: var(--primary) !important;
  }

  .tools-page .page-hero p,
  .tools-page .tools-hero p,
  .tools-hero p{
    color: var(--muted) !important;
  }
}

/* =========================================================
   UI/UX FIX — BREADCRUMBS CONTRAST
   جعل Breadcrumbs واضحة فوق الخلفيات الداكنة والفاتحة
   ========================================================= */

#breadcrumbs-placeholder{
  background: #f8fbff;
  border-bottom: 1px solid rgba(15,39,71,.08);
}

#breadcrumbs-placeholder .container{
  padding-top: 8px;
  padding-bottom: 8px;
}

#breadcrumbs-placeholder .breadcrumbs,
.breadcrumbs{
  margin: 0;
  color: var(--muted);
}

#breadcrumbs-placeholder .breadcrumbs ol{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,39,71,.08);
  border-radius: 999px;
  padding: 8px 14px;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 8px 20px rgba(15,39,71,.045);
}

#breadcrumbs-placeholder .breadcrumbs a,
.breadcrumbs a{
  color: var(--primary) !important;
  font-weight: 800;
}

#breadcrumbs-placeholder .breadcrumbs .current,
.breadcrumbs .current{
  color: var(--muted) !important;
  font-weight: 800;
}

#breadcrumbs-placeholder .breadcrumbs li + li::before,
.breadcrumbs li + li::before{
  color: var(--gold-2) !important;
  font-weight: 900;
}

/* صفحات الأدوات و MyTodo قد تحتوي خلفيات داكنة، لذلك نعزل الشريط بخلفية فاتحة */
.tools-page #breadcrumbs-placeholder,
.mytodo-page #breadcrumbs-placeholder,
.tools-mytodo-page #breadcrumbs-placeholder{
  background: #f8fbff !important;
}

/* تحسين على الجوال */
@media (max-width: 768px){

  #breadcrumbs-placeholder .container{
    padding-top: 7px;
    padding-bottom: 7px;
  }

  #breadcrumbs-placeholder .breadcrumbs{
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
  }

  #breadcrumbs-placeholder .breadcrumbs ol{
    width: max-content;
    min-width: auto;
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 999px;
    flex-wrap: nowrap;
  }

  #breadcrumbs-placeholder .breadcrumbs a,
  #breadcrumbs-placeholder .breadcrumbs .current{
    font-size: .84rem;
  }
}

/* =========================================================
   POLISH — SERVICES PAGES ENHANCEMENT
   تحسين صفحات Services بشكل موحد
   Phase C / Step 12
   ========================================================= */

/* Hero صفحة الخدمات وصفحات الخدمات الفردية */
.services-page .page-hero,
.services-page .services-hero,
.service-detail-page .page-hero,
.service-detail-hero{
  background:
    radial-gradient(circle at 88% 18%, rgba(212,166,58,.16), transparent 28%),
    radial-gradient(circle at 12% 78%, rgba(15,39,71,.10), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  color: var(--primary);
}

.services-page .page-hero h1,
.services-page .services-hero h1,
.service-detail-page .page-hero h1,
.service-detail-hero h1{
  max-width: 900px;
  color: var(--primary) !important;
  text-shadow: none !important;
}

.services-page .page-hero p,
.services-page .services-hero p,
.service-detail-page .page-hero p,
.service-detail-hero p{
  max-width: 920px;
  color: var(--muted) !important;
  text-shadow: none !important;
}

.services-page .page-hero .eyebrow,
.services-page .services-hero .eyebrow,
.service-detail-page .page-hero .eyebrow,
.service-detail-hero .eyebrow,
.services-page .section-kicker,
.service-detail-page .section-kicker{
  color: var(--gold-2) !important;
  text-shadow: none !important;
}

/* تحسين صفحة الخدمات الرئيسية */
.services-page .services-intro-grid,
.services-page .services-audience-grid,
.services-page .cards-grid,
.services-page .service-resource-grid,
.service-detail-page .service-quick-grid,
.service-detail-page .service-fit-grid,
.service-detail-page .service-output-grid,
.service-detail-page .service-resource-grid{
  gap: 20px;
}

/* بطاقات الخدمات الرئيسية والفردية */
.services-page .section-card,
.services-page .services-mini-card,
.services-page .audience-card,
.services-page .service-card,
.service-detail-page .service-quick-card,
.service-detail-page .service-fit-card,
.service-detail-page .service-output-card,
.service-detail-page .service-resource-card,
.service-detail-page .service-cta-card{
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-color: rgba(15,39,71,.09);
}

/* خط جانبي ذهبي لتوحيد هوية بطاقات الخدمات */
.services-page .section-card::before,
.services-page .services-mini-card::before,
.services-page .audience-card::before,
.services-page .service-card::before,
.service-detail-page .service-quick-card::before,
.service-detail-page .service-fit-card::before,
.service-detail-page .service-output-card::before,
.service-detail-page .service-resource-card::before{
  content: "";
  position: absolute;
  right: 0;
  top: 22px;
  width: 4px;
  height: 44px;
  border-radius: 999px 0 0 999px;
  background: rgba(212,166,58,.85);
}

.services-page .section-card h3,
.services-page .section-card p,
.services-page .section-card a,
.services-page .services-mini-card h2,
.services-page .services-mini-card p,
.services-page .audience-card h3,
.services-page .audience-card p,
.service-detail-page .service-quick-card h3,
.service-detail-page .service-quick-card p,
.service-detail-page .service-fit-card h3,
.service-detail-page .service-fit-card p,
.service-detail-page .service-output-card h3,
.service-detail-page .service-output-card p,
.service-detail-page .service-resource-card h3,
.service-detail-page .service-resource-card p,
.service-detail-page .service-resource-card a{
  position: relative;
  z-index: 1;
}

/* تحسين أقسام المشكلة والقيمة */
.service-problem-card{
  background:
    radial-gradient(circle at 12% 20%, rgba(212,166,58,.11), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(15,39,71,.09);
  border-radius: 28px;
}

.service-problem-points div{
  background:
    linear-gradient(135deg, rgba(15,39,71,.045), rgba(212,166,58,.10));
  border-color: rgba(15,39,71,.08);
}

/* تحسين بطاقات رحلة/خطوات الخدمة */
.service-journey .journey-item,
.service-detail-page .journey-item{
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(15,39,71,.09);
}

.service-journey .journey-number,
.service-detail-page .journey-number{
  background:
    radial-gradient(circle at 28% 22%, rgba(212,166,58,.35), transparent 34%),
    linear-gradient(135deg, var(--primary), #355c9a);
  color: #fff;
  box-shadow: 0 12px 26px rgba(15,39,71,.14);
}

.service-journey .journey-content h3,
.service-detail-page .journey-content h3{
  color: var(--primary);
}

.service-journey .journey-content p,
.service-detail-page .journey-content p{
  color: var(--text);
}

/* تحسين الأكورديون في الخدمات */
.service-acc-item{
  border: 1px solid rgba(15,39,71,.09);
  background: #fff;
}

.service-acc-item summary{
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: var(--primary);
  padding-left: 56px;
}

.service-acc-item summary::before{
  left: 20px;
  color: var(--gold-2);
  background: rgba(212,166,58,.12);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.service-acc-item[open] summary::before{
  background: var(--primary);
  color: #fff;
}

.service-acc-body{
  background: #fff;
  border-top: 1px solid rgba(15,39,71,.08);
}

/* روابط الموارد داخل صفحات الخدمات */
.service-inline-links{
  gap: 10px;
}

.service-inline-links a,
.service-resource-link,
.service-link-btn{
  border: 1px solid rgba(15,39,71,.12);
  background: #fff;
  color: var(--primary);
}

.service-inline-links a:hover,
.service-resource-link:hover,
.service-link-btn:hover{
  background: var(--gold-soft);
  border-color: rgba(212,166,58,.45);
  color: var(--primary);
}

/* CTA نهاية صفحات الخدمات */
.service-cta-card,
.services-cta-card{
  background:
    radial-gradient(circle at 12% 20%, rgba(212,166,58,.14), transparent 28%),
    linear-gradient(135deg, #ffffff, #fbf6e9);
  border: 1px solid rgba(212,166,58,.24);
  border-radius: 28px;
}

.service-cta-card h2,
.services-cta-card h2{
  color: var(--primary);
}

/* توحيد محاذاة وتباعد عناوين الخدمات */
.services-page .section-head,
.service-detail-page .section-head,
.services-page .section__head,
.service-detail-page .section__head,
.services-head,
.service-detail-head{
  max-width: 980px;
}

/* =========================================================
   POLISH — SERVICES PAGES MOBILE
   تحسين صفحات Services على الجوال
   ========================================================= */

@media (max-width: 768px){

  .services-page .page-hero,
  .services-page .services-hero,
  .service-detail-page .page-hero,
  .service-detail-hero{
    padding-top: 28px !important;
    padding-bottom: 22px !important;
    background:
      radial-gradient(circle at 88% 18%, rgba(212,166,58,.12), transparent 28%),
      linear-gradient(180deg, #f8fbff 0%, #ffffff 100%) !important;
  }

  .services-page .services-intro-grid,
  .services-page .services-audience-grid,
  .services-page .cards-grid,
  .services-page .service-resource-grid,
  .service-detail-page .service-quick-grid,
  .service-detail-page .service-fit-grid,
  .service-detail-page .service-output-grid,
  .service-detail-page .service-resource-grid{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .services-page .section-card,
  .services-page .services-mini-card,
  .services-page .audience-card,
  .services-page .service-card,
  .service-detail-page .service-quick-card,
  .service-detail-page .service-fit-card,
  .service-detail-page .service-output-card,
  .service-detail-page .service-resource-card,
  .service-detail-page .service-cta-card{
    border-radius: 18px !important;
    padding: 18px !important;
  }

  .services-page .section-card::before,
  .services-page .services-mini-card::before,
  .services-page .audience-card::before,
  .services-page .service-card::before,
  .service-detail-page .service-quick-card::before,
  .service-detail-page .service-fit-card::before,
  .service-detail-page .service-output-card::before,
  .service-detail-page .service-resource-card::before{
    top: 18px;
    height: 34px;
  }

  .service-problem-card{
    border-radius: 20px !important;
    padding: 18px !important;
  }

  .service-problem-points{
    gap: 10px;
  }

  .service-problem-points div{
    padding: 14px;
    border-radius: 16px;
  }

  .service-journey .journey-item,
  .service-detail-page .journey-item{
    gap: 12px !important;
    border-radius: 18px !important;
  }

  .service-journey .journey-number,
  .service-detail-page .journey-number{
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: .95rem;
  }

  .service-acc-item summary{
    padding: 16px 18px 16px 54px !important;
    line-height: 1.6;
  }

  .service-acc-item summary::before{
    left: 16px;
    width: 32px;
    height: 32px;
  }

  .service-acc-body{
    padding: 0 18px 18px !important;
  }

  .service-inline-links{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-inline-links a,
  .service-link-btn{
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .service-hero-actions,
  .services-hero-actions{
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-hero-actions .btn,
  .services-hero-actions .btn{
    width: 100%;
  }

  .service-cta-card,
  .services-cta-card{
    border-radius: 20px !important;
  }
}

@media (max-width: 480px){

  .services-page .section-card,
  .services-page .services-mini-card,
  .services-page .audience-card,
  .services-page .service-card,
  .service-detail-page .service-quick-card,
  .service-detail-page .service-fit-card,
  .service-detail-page .service-output-card,
  .service-detail-page .service-resource-card,
  .service-detail-page .service-cta-card{
    padding: 16px !important;
  }

  .service-acc-item summary{
    font-size: .96rem;
  }
}

/* =========================================================
   FEEDBACK PAGE — شاركنا رأيك
   صفحة استقبال المقترحات والمشاكل والانطباعات
   ========================================================= */

.feedback-hero{
  background:
    radial-gradient(circle at 88% 18%, rgba(212,166,58,.16), transparent 28%),
    radial-gradient(circle at 12% 78%, rgba(15,39,71,.10), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.feedback-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:22px;
}

.feedback-types-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.feedback-type-card{
  position:relative;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(15,39,71,.09);
  border-radius:22px;
  box-shadow:0 12px 30px rgba(15,39,71,.06);
  padding:24px;
}

.feedback-type-card::before{
  content:"";
  position:absolute;
  right:0;
  top:22px;
  width:4px;
  height:44px;
  border-radius:999px 0 0 999px;
  background:rgba(212,166,58,.85);
}

.feedback-type-card h3{
  margin:0 0 10px;
  color:var(--primary);
  position:relative;
  z-index:1;
}

.feedback-type-card p{
  margin:0;
  color:var(--muted);
  line-height:1.9;
  position:relative;
  z-index:1;
}

.feedback-form-card{
  display:grid;
  grid-template-columns:minmax(0, .9fr) minmax(0, 1.1fr);
  gap:24px;
  align-items:stretch;
  background:
    radial-gradient(circle at 12% 20%, rgba(212,166,58,.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border:1px solid rgba(15,39,71,.09);
  border-radius:28px;
  box-shadow:0 12px 30px rgba(15,39,71,.06);
  padding:28px;
}

.feedback-form-copy h2{
  margin:12px 0 12px;
  color:var(--primary);
}

.feedback-form-copy p{
  color:var(--muted);
  line-height:1.95;
}

.tally-placeholder{
  display:grid;
  align-content:center;
  gap:12px;
  min-height:320px;
  background:#fff;
  border:1px dashed rgba(212,166,58,.55);
  border-radius:22px;
  padding:24px;
  text-align:right;
}

.tally-placeholder h3{
  margin:0;
  color:var(--primary);
}

.tally-placeholder p{
  margin:0;
  color:var(--muted);
  line-height:1.9;
}

.feedback-contact-cta{
  background:
    radial-gradient(circle at 12% 20%, rgba(212,166,58,.12), transparent 28%),
    linear-gradient(135deg, #ffffff, #fbf6e9);
  border:1px solid rgba(212,166,58,.24);
}

@media (max-width: 900px){
  .feedback-types-grid,
  .feedback-form-card{
    grid-template-columns:1fr;
  }
}

@media (max-width: 768px){
  .feedback-hero-actions,
  .contact-cta-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }

  .feedback-hero-actions .btn,
  .contact-cta-actions .btn{
    width:100%;
  }

  .feedback-type-card{
    border-radius:18px;
    padding:18px;
  }

  .feedback-type-card::before{
    top:18px;
    height:34px;
  }

  .feedback-form-card{
    border-radius:20px;
    padding:18px;
  }

  .tally-placeholder{
    min-height:240px;
    border-radius:18px;
    padding:18px;
  }
}

/* =========================================================
   FEEDBACK PAGE — TALLY EMBED
   ضبط تضمين نموذج Tally داخل صفحة شاركنا رأيك
   ========================================================= */

.tally-embed-wrapper{
  width:100%;
  min-height:420px;
  background:#fff;
  border:1px solid rgba(15,39,71,.09);
  border-radius:22px;
  padding:12px;
  box-shadow:0 10px 24px rgba(15,39,71,.045);
  overflow:hidden;
}

.tally-embed-wrapper iframe{
  display:block;
  width:100%;
  border:0;
  border-radius:16px;
  background:transparent;
}

@media (max-width: 768px){
  .tally-embed-wrapper{
    min-height:480px;
    border-radius:18px;
    padding:8px;
  }

  .tally-embed-wrapper iframe{
    border-radius:14px;
  }
}

/* =========================================================
   FEEDBACK PAGE — CENTERED TALLY LAYOUT
   جعل نص النموذج أعلى، والنموذج في وسط الصفحة
   ========================================================= */

.feedback-form-card{
  display:block !important;
  max-width:980px;
  margin:0 auto;
  text-align:right;
}

.feedback-form-copy{
  max-width:760px;
  margin:0 auto 22px;
  text-align:center;
}

.feedback-form-copy .section-eyebrow{
  justify-content:center;
}

.feedback-form-copy h2{
  text-align:center;
}

.feedback-form-copy p{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}

.tally-embed-wrapper{
  max-width:760px;
  margin:0 auto;
}

.tally-embed-wrapper iframe{
  min-height:620px;
}

@media (max-width: 768px){
  .feedback-form-card{
    max-width:100%;
  }

  .feedback-form-copy{
    max-width:100%;
    margin-bottom:18px;
    text-align:right;
  }

  .feedback-form-copy .section-eyebrow{
    justify-content:flex-start;
  }

  .feedback-form-copy h2,
  .feedback-form-copy p{
    text-align:right;
  }

  .tally-embed-wrapper{
    max-width:100%;
  }

  .tally-embed-wrapper iframe{
    min-height:680px;
  }
}

/* =========================================================
   CONSULTATION FORM PAGE — نموذج طلب استشارة أو دورة
   صفحة مستقلة لتضمين نموذج Tally
   ========================================================= */

.consultation-form-hero{
  background:
    radial-gradient(circle at 88% 18%, rgba(212,166,58,.16), transparent 28%),
    radial-gradient(circle at 12% 78%, rgba(15,39,71,.10), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.consultation-types-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
}

.consultation-type-card{
  position:relative;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(15,39,71,.09);
  border-radius:22px;
  box-shadow:0 12px 30px rgba(15,39,71,.06);
  padding:24px;
}

.consultation-type-card::before{
  content:"";
  position:absolute;
  right:0;
  top:22px;
  width:4px;
  height:44px;
  border-radius:999px 0 0 999px;
  background:rgba(212,166,58,.85);
}

.consultation-type-card h3{
  margin:0 0 10px;
  color:var(--primary);
  position:relative;
  z-index:1;
}

.consultation-type-card p{
  margin:0;
  color:var(--muted);
  line-height:1.9;
  position:relative;
  z-index:1;
}

.consultation-form-card{
  display:block !important;
  max-width:980px;
  margin:0 auto;
  text-align:right;
  background:
    radial-gradient(circle at 12% 20%, rgba(212,166,58,.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border:1px solid rgba(15,39,71,.09);
  border-radius:28px;
  box-shadow:0 12px 30px rgba(15,39,71,.06);
  padding:28px;
}

.consultation-form-copy{
  max-width:760px;
  margin:0 auto 22px;
  text-align:center;
}

.consultation-form-copy .section-eyebrow{
  justify-content:center;
}

.consultation-form-copy h2{
  color:var(--primary);
  text-align:center;
  margin:12px 0;
}

.consultation-form-copy p{
  color:var(--muted);
  line-height:1.95;
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}

.consultation-tally-wrapper{
  width:100%;
  max-width:760px;
  min-height:620px;
  margin:0 auto;
  background:#fff;
  border:1px solid rgba(15,39,71,.09);
  border-radius:22px;
  padding:12px;
  box-shadow:0 10px 24px rgba(15,39,71,.045);
  overflow:hidden;
}

.consultation-tally-wrapper iframe{
  display:block;
  width:100%;
  min-height:620px;
  border:0;
  border-radius:16px;
  background:transparent;
}

@media (max-width: 1100px){
  .consultation-types-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px){
  .consultation-types-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .consultation-type-card{
    border-radius:18px;
    padding:18px;
  }

  .consultation-type-card::before{
    top:18px;
    height:34px;
  }

  .consultation-form-card{
    max-width:100%;
    border-radius:20px;
    padding:18px;
  }

  .consultation-form-copy{
    max-width:100%;
    margin-bottom:18px;
    text-align:right;
  }

  .consultation-form-copy .section-eyebrow{
    justify-content:flex-start;
  }

  .consultation-form-copy h2,
  .consultation-form-copy p{
    text-align:right;
  }

  .consultation-tally-wrapper{
    max-width:100%;
    min-height:680px;
    border-radius:18px;
    padding:8px;
  }

  .consultation-tally-wrapper iframe{
    min-height:680px;
    border-radius:14px;
  }
}

/* =========================================================
   TOOLS MIGRATION — أدوات مستقلة
   تنسيق بطاقات الأدوات التي تم فصلها عن منظّم مهامي
   ========================================================= */

.tools-independent-section{
  background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
}

.tools-independent-section .tool-card{
  position: relative;
  overflow: hidden;
}

.tools-independent-section .tool-card::before{
  content: "";
  position: absolute;
  right: 0;
  top: 22px;
  width: 4px;
  height: 44px;
  border-radius: 999px 0 0 999px;
  background: rgba(212,166,58,.85);
}

.tools-independent-section .tool-card h3,
.tools-independent-section .tool-card p,
.tools-independent-section .tool-card a{
  position: relative;
  z-index: 1;
}

/* =========================================================
   FREE RESOURCES CARDS
   Scoped styling for resources/index.html existing markup.
   ========================================================= */

.resources-page .resource-filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 28px;
}

.resources-page .resource-filter-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:9px 15px;
  border:1px solid rgba(15,39,71,.12);
  border-radius:999px;
  background:#fff;
  color:var(--primary);
  font-family:inherit;
  font-size:.92rem;
  font-weight:800;
  line-height:1.4;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(15,39,71,.045);
  transition:background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.resources-page .resource-filter-btn:hover,
.resources-page .resource-filter-btn:focus-visible{
  border-color:rgba(212,166,58,.5);
  color:var(--primary);
  box-shadow:0 12px 24px rgba(15,39,71,.08);
  transform:translateY(-1px);
}

.resources-page .resource-filter-btn.active{
  border-color:rgba(212,166,58,.75);
  background:linear-gradient(135deg, var(--primary), #183b68);
  color:#fff;
  box-shadow:0 14px 28px rgba(15,39,71,.14);
}

.resources-page .resources-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px;
  align-items:stretch;
}

.resources-page .resource-card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height:100%;
  padding:24px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(15,39,71,.09);
  border-radius:22px;
  box-shadow:0 12px 30px rgba(15,39,71,.06);
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.resources-page .resource-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:4px;
  background:linear-gradient(90deg, rgba(212,166,58,.95), rgba(15,39,71,.85));
}

.resources-page .resource-card:hover{
  border-color:rgba(212,166,58,.28);
  box-shadow:0 18px 42px rgba(15,39,71,.10);
  transform:translateY(-2px);
}

.resources-page .resource-card__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.resources-page .resource-card__meta span,
.resources-page .resource-card__meta small{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 10px;
  border-radius:999px;
  font-weight:800;
  line-height:1.4;
}

.resources-page .resource-card__meta span{
  background:rgba(15,39,71,.07);
  color:var(--primary);
  font-size:.82rem;
}

.resources-page .resource-card__meta small{
  background:rgba(212,166,58,.14);
  color:#8a640d;
  font-size:.78rem;
}

.resources-page .resource-card h3{
  margin:0;
  color:var(--primary);
  font-size:1.12rem;
  line-height:1.65;
}

.resources-page .resource-card p{
  margin:0;
  color:var(--muted);
  line-height:1.9;
}

.resources-page .resource-card__actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:auto;
  padding-top:4px;
}

.resources-page .resource-card__actions .btn,
.resources-page .resource-card__actions .card-link{
  margin:0;
}

@media (max-width: 1100px){
  .resources-page .resources-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px){
  .resources-page .resource-filters{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .resources-page .resource-filter-btn{
    width:100%;
    min-height:44px;
    padding:9px 10px;
    font-size:.88rem;
  }

  .resources-page .resources-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .resources-page .resource-card{
    border-radius:18px;
    padding:18px;
  }

  .resources-page .resource-card__actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .resources-page .resource-card__actions .btn,
  .resources-page .resource-card__actions .card-link{
    width:100%;
    justify-content:center;
    text-align:center;
  }
}

/* =========================================================
   MANAGEMENT FLASH TOOL
   ========================================================= */

.management-flash-page{
  background:#f8fafc;
}

.management-flash-hero{
  background:
    radial-gradient(circle at 88% 18%, rgba(212,166,58,.14), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.management-flash-section{
  padding:28px 0 64px;
}

.management-flash-grid{
  display:grid;
  grid-template-columns:minmax(260px, .75fr) minmax(0, 1.25fr);
  gap:22px;
  align-items:stretch;
}

.management-flash-panel,
.management-flash-result{
  background:#fff;
  border:1px solid rgba(15,39,71,.09);
  border-radius:24px;
  box-shadow:0 14px 34px rgba(15,39,71,.07);
  padding:24px;
}

.management-flash-panel{
  display:grid;
  gap:16px;
  align-content:start;
}

.management-flash-control{
  display:grid;
  gap:8px;
}

.management-flash-control label{
  color:var(--primary);
  font-weight:800;
}

.management-flash-control select{
  width:100%;
  border:1px solid rgba(15,39,71,.14);
  border-radius:14px;
  background:#fbfdff;
  color:var(--text);
  padding:12px 14px;
  font:inherit;
}

.management-flash-button{
  width:100%;
  border:0;
  cursor:pointer;
}

.management-flash-result{
  position:relative;
  overflow:hidden;
}

.management-flash-result::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:4px;
  background:linear-gradient(90deg, rgba(212,166,58,.95), rgba(15,39,71,.85));
}

.management-flash-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:18px;
}

.management-flash-tags span{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(212,166,58,.14);
  color:#8a640d;
  font-size:.88rem;
  font-weight:800;
}

.management-flash-result p{
  margin:0;
  color:var(--primary);
  font-size:1.2rem;
  line-height:2;
  font-weight:800;
}

.management-flash-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

.management-flash-actions button{
  border:0;
  cursor:pointer;
}

.management-flash-copy-status{
  margin:12px 0 0 !important;
  color:#18835a !important;
  font-size:.92rem !important;
  font-weight:800 !important;
  line-height:1.6 !important;
}

.home-management-flash{
  padding:18px 0 34px;
}

.home-management-flash-box{
  display:grid;
  grid-template-columns:1fr auto;
  gap:20px;
  align-items:center;
  padding:26px;
  border:1px solid rgba(212,166,58,.24);
  border-radius:26px;
  background:
    radial-gradient(circle at 10% 20%, rgba(212,166,58,.16), transparent 30%),
    linear-gradient(135deg, #ffffff, #fbf6e9);
  box-shadow:0 14px 36px rgba(15,39,71,.07);
}

.home-management-flash-box h2{
  margin:10px 0 8px;
  color:var(--primary);
  font-size:clamp(1.35rem, 3vw, 2rem);
}

.home-management-flash-box p{
  margin:0;
  color:var(--muted);
  line-height:1.95;
}

.home-share-section{
  padding:18px 0 42px;
}

.home-share-box{
  display:grid;
  grid-template-columns:1fr auto;
  gap:20px;
  align-items:center;
  padding:24px;
  border:1px solid rgba(15,39,71,.09);
  border-radius:24px;
  background:#ffffff;
  box-shadow:0 12px 30px rgba(15,39,71,.055);
  position:relative;
  overflow:hidden;
}

.home-share-box::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:4px;
  background:linear-gradient(90deg, rgba(212,166,58,.95), rgba(15,39,71,.72));
}

.home-share-box h2{
  margin:0 0 6px;
  color:var(--primary);
  font-size:clamp(1.25rem, 2.5vw, 1.75rem);
}

.home-share-box h3{
  margin:0 0 8px;
  color:var(--gold);
  font-size:1rem;
  font-weight:800;
}

.home-share-box p{
  margin:0;
  color:var(--muted);
  line-height:1.9;
}

.home-share-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}

.home-share-actions button{
  border:0;
  cursor:pointer;
}

.home-share-status{
  flex-basis:100%;
  margin:0;
  color:#18835a !important;
  font-size:.9rem;
  font-weight:800;
  text-align:left;
}

@media (max-width: 900px){
  .management-flash-grid,
  .home-management-flash-box,
  .home-share-box{
    grid-template-columns:1fr;
  }

  .home-management-flash-box .btn,
  .home-share-actions .btn{
    width:100%;
  }

  .home-share-actions{
    justify-content:stretch;
  }

  .home-share-status{
    text-align:right;
  }
}

@media (max-width: 640px){
  .management-flash-panel,
  .management-flash-result,
  .home-management-flash-box,
  .home-share-box{
    border-radius:18px;
    padding:18px;
  }

  .management-flash-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .management-flash-actions .btn{
    width:100%;
  }
}
