/* ==========================================================================
   1. المتغيرات العامة للموقع (CSS Variables)
   هنا يتم تحديد الألوان والظلال الموحدة للموقع لتسهيل تغييرها بمرة واحدة.
   ========================================================================== */
:root {
  --primary: #107c41;
  --primary-light: #15a356;
  --primary-dark: #0a5a2f;
  --primary-slider: #007042;
  --dark: #1f2937;
  --dark-blue: #0f172a;
  --white: #ffffff;
  --border: #cbd5e1;
  --danger: #e11d48;
  --accent: #f59e0b;
  --fb-blue: #1877f2;
  --whatsapp: #25d366;
  --site-bg: #f1f5f9;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   2. التنسيقات الأساسية وإعادة التعيين (Reset & Base Styles)
   إعدادات الخطوط، الهوامش، وإصلاح مشكلة النصوص الباهتة (تعديل م. محمد إسماعيل).
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--site-bg);
  color: #000000 !important;
  line-height: 1.6;
}

/* إجبار النصوص الرئيسية على الظهور باللون الأسود الصريح لزيادة الوضوح */
.article-text-area,
.prog-description,
.hero-text p {
  color: #000000 !important; 
}

/* ==========================================================================
   3. شريط التمرير العام للموقع (Scrollbar Styles)
   تخصيص شكل شريط التمرير الجانبي للمتصفح ليتماشى مع ألوان الموقع.
   ========================================================================== */
::-webkit-scrollbar {
  width: 10px;
  display: block;
}
::-webkit-scrollbar-track {
  background: var(--site-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
  border: 2px solid var(--site-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ==========================================================================
   4. شريط الإشعارات العلوي والهيدر (Notice Bar & Header)
   تنسيق شريط التنبيهات الأزرق، وشريط التنقل الرئيسي (اللوجو والأزرار).
   ========================================================================== */
.top-notice-bar {
  background: var(--fb-blue);
  color: white;
  padding: 12px 3%;
  font-weight: 700;
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 2000;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  height: 70px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  direction: rtl;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo-top {
  height: 60px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transition: 0.5s;
}
.logo-box:hover .site-logo-top {
  transform: scale(1.1);
}
.site-name-header {
  font-weight: 900;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.main-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-tab-btn {
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--dark);
  padding: 10px 22px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
}
.nav-tab-btn:hover {
  background: #e2e8f0;
}
.nav-tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 8px 15px rgba(16, 124, 65, 0.25);
}

/* ==========================================================================
   5. أزرار التفاعل العلوية (Top Action Buttons)
   تنسيق أزرار المتابعة، الواتساب، والـ Auth داخل شريط الإشعارات.
   ========================================================================== */
.notice-msg {
  display: flex;
  align-items: center;
  gap: 10px;
}
.notice-msg a {
  background: white;
  color: var(--fb-blue);
  padding: 4px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  transition: all 0.3s ease;
}
.notice-action-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-follow {
  background: white;
  color: var(--fb-blue);
  padding: 5px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  transition: 0.3s;
}
.btn-whatsapp-top {
  background: var(--whatsapp) !important;
  color: white !important;
  padding: 4px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-whatsapp-top img {
  width: 12px;
  height: 12px;
  filter: brightness(0) invert(1);
}
.btn-follow:hover, .btn-whatsapp-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

.notice-auth-btns {
  display: flex;
  align-items: center;
  gap: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  padding-right: 20px;
}
.btn-top-auth {
  color: white;
  background: none;
  border: none;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: 0.3s;
}

/* ==========================================================================
   6. الحاوية الرئيسية للموقع (Site Wrapper)
   الصندوق الذي يضم محتوى الصفحة الرئيسي ويحدد الأبعاد والظلال.
   ========================================================================== */
.site-wrapper {
  max-width: 600px;      /* أقصى عرض يمكن أن يصل إليه الصندوق (بالبكسل) */
  width: 96%;           /* عرض الصندوق بالنسبة المئوية ليناسب الشاشات الصغيرة */
  margin: 5px auto;     /* ترك مسافة 20 بكسل من الأعلى والأسفل، و "auto" لتوسط الصندوق في الشاشة */
  background: var(--white); /* لون خلفية الصندوق (الأبيض) */
  border-radius: 40px;   /* درجة انحناء زوايا وحواف الصندوق */
  box-shadow: var(--shadow-lg); /* الظل المحيط بالصندوق ليعطيه مظهرًا مرتفعًا */
  border: 2px solid var(--border); /* إطار رمادي خفيف يحيط بالصندوق */
  position: relative;    /* لتثبيت العناصر الداخلية بشكل صحيح */
  overflow: hidden;      /* إخفاء أي محتوى داخلي يخرج عن حدود انحناء الزوايا */
  min-height: 600px;     /* أقل ارتفاع يمكن أن يأخذه الصندوق */
}

/* ==========================================================================
   7. قسم الترحيب الرئيسي (Hero Section)
   النص التعريفي الكبير الذي يظهر في مقدمة الصفحة بجانب السلايدر.
   ========================================================================== */
.hero {
  width: 100%;
  max-height: auto;    /* تم التغيير من 75vh إلى auto لمنع حجز مساحة إجبارية */
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 20px 20px;  /* تم تقليل الحشو من 60px إلى 20px لضغط الفراغ */
}

.hero-flex-container {
  display: flex;
  width: 100%;
  max-width: 1280px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  direction: rtl; 
}
.hero-text {
  flex: 1;
  max-width: 500px;
  z-index: 2;
}
.hero-text h1 {
  font-size: 3rem;
  color: #111;
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 800;
}
.hero-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin: 0;
}

/* ==========================================================================
   8. صندوق المقال والتحميل المزدوج (Main Program Container)
   تصميم نظام العمودين (عامود اليمين للمقال وعامود اليسار لزر التحميل والصورة).
   ========================================================================== */
.main-program-container {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: stretch;
  direction: rtl;
}
.right-article-column {
  flex: 1.3;
  background: var(--white);
  border-radius: 20px;
  padding: 20px;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.inner-title-frame {
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 15px;
  background: #f0fdf4;
  text-align: center;
}
.inner-title-frame h3 {
  color: var(--primary);
  font-weight: 900;
  font-size: 20px;
}
.article-text-area {
  flex-grow: 1;
  overflow-y: auto;
  line-height: 1.8;
  font-size: 15px;
  text-align: justify;
  padding: 10px;
  max-height: 400px;
  background: var(--white);
  font-weight: 600;
}
.article-text-area::-webkit-scrollbar {
  width: 6px;
}
.article-text-area::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

.left-action-column {
  flex: 1;
  min-width: 320px;
  background: var(--white);
  border-radius: 25px;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.left-action-column img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.btn-download-main {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 18px;
  border-radius: 15px;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}
.btn-download-main:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

/* ==========================================================================
   9. حاوية قائمة البرامج العادية (Programs List)
   تنسيق الكروت المستطيلة للبرامج التي تظهر تحت بعضها وتأثير الـ Hover عليها.
   ========================================================================== */
.programs-list {
  max-width: 1150px;
  margin: 50px auto;
  padding: 0 25px;
}
.program-rect {
  background: white;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 30px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-wrap: wrap;
  gap: 20px;
}
.program-rect:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.prog-main-side {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 320px;
}
.prog-thumb-img {
  width: 150px;
  height: 90px;
  border-radius: 20px;
  object-fit: cover;
  margin-left: 25px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.prog-info-box h4 {
  font-size: 22px;
  color: var(--dark-blue);
  font-weight: 800;
  margin-bottom: 8px;
}
.prog-side-action {
  display: flex;
  align-items: center;
  gap: 30px;
}
.prog-stats-right {
  text-align: right;
  border-left: 2px solid #f1f5f9;
  padding-left: 25px;
}
.prog-stats-right span {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.btn-dl-small {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 10px 20px -5px rgba(16, 124, 65, 0.3);
}
.btn-dl-small:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* ==========================================================================
   10. قسم معرض الصور المتحرك (3D Slider Section)
   مجموعة التنسيقات والتحويلات ثلاثية الأبعاد الخاصة بالسلايدر النشط والجانبي.
   ========================================================================== */
.slider-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow: hidden;
    width: 100%;
    padding: 10px; /* تقليل الحشو لضغط المساحة */
}
.slider-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 220px;    /* تم تقليله من 320px إلى 220px ليناسب المستطيل الجديد */
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1400px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide {
    position: absolute;
    width: clamp(180px, 32vw, 290px);  /* العرض يظل كبيراً ومناسباً */
    height: clamp(110px, 20vw, 170px); /* تم تقليل الارتفاع ليصبح الكارت مستطيلاً عرضياً */
    background: #fff;
    border-radius: 16px;               
    overflow: hidden;
    transition: transform .8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .8s ease, z-index .8s ease;
    opacity: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* أعدناها لتملأ الكارت بالكامل وتختفي الفراغات البيضاء */
    object-position: center center; /* تضمن أن تظل الصورة متمركزة في المنتصف تماماً دون تشويه */
    user-select: none;
    pointer-events: none;
}
.slide.active {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    border: 3px solid var(--primary-slider); /* جعل الإطار أرق ليناسب الحجم الجديد */
    transform: translate3d(0, 0, 100px) scale(1);
    box-shadow: 0 20px 40px rgba(0, 112, 66, .2);
}

/* تم تقريب المسافات الجانبية (من 220px إلى 160px) حتى لا تتباعد الصور الصغيرة عن المركز */
.slide.prev {
    opacity: .75;
    z-index: 6;
    transform: translate3d(-160px, 0, -30px) rotateY(30deg) scale(.85);
}

.slide.next {
    opacity: .75;
    z-index: 6;
    transform: translate3d(160px, 0, -30px) rotateY(-30deg) scale(.85);
}

/* تعديل مسار كروت الاختفاء الخلفية لتناسب الحجم الجديد */
.slide.hidden-left {
    opacity: 0;
    z-index: 1;
    transform: translate3d(-280px, 0, -120px) rotateY(45deg) scale(.7);
}

.slide.hidden-right {
    opacity: 0;
    z-index: 1;
    transform: translate3d(280px, 0, -120px) rotateY(-45deg) scale(.7);
}

/* ==========================================================================
   11. النوافذ المنبثقة وحقول الإدخال (Modal & Form Controls)
   تنسيق صندوق الـ Modal الكبير المنبثق، أزرار الإجراءات وحقول الإدخال.
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  z-index: 5000 !important; 
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-content-dl {
  background: white;
  border-radius: 40px;
  width: 100%;
  max-width: 950px;
  display: flex;
  overflow: hidden;
  position: relative;
  border: 8px solid var(--primary);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
  animation: modalScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes modalScale {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.close-modal-btn {
  position: absolute;
  top: 25px;
  left: 30px;
  font-size: 40px;
  font-weight: bold;
  color: #94a3b8;
  cursor: pointer;
  z-index: 100;
  line-height: 1;
}
.styled-input {
  width: 100%;
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid var(--border);
  border-radius: 20px;
  text-align: center;
  outline: none;
  font-size: 17px;
  font-weight: 700;
  background: #f8fafc;
  transition: 0.3s;
}
.styled-input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(16, 124, 65, 0.1);
}
.btn-main-action {
  width: 100%;
  padding: 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.3s;
}
.btn-main-action:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ==========================================================================
   12. أزرار إضافية وإشعارات الموقع (Extra Buttons & Alerts)
   أزرار الإرسال الفوري، زر اتصال الواتساب الكبير، والتنبيهات العائمة.
   ========================================================================== */
.btn-send-now {
  width: 100%;
  padding: 18px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s;
  margin-top: 10px;
}
.btn-send-now:hover {
  background-color: var(--primary-dark);
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.whatsapp-btn {
  background: var(--whatsapp);
  color: white;
  width: 100%;
  padding: 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
  margin-top: 20px;
  transition: 0.3s;
}
.whatsapp-btn:hover {
  background: #1ebd58;
  transform: scale(1.02);
}

#siteAlert {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-blue);
  color: white;
  padding: 15px 35px;
  border-radius: 20px;
  z-index: 9999;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
  transition: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

ins.adsbygoogle {
  background: transparent !important;
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.loading-msg {
  font-size: 18px;
  color: var(--primary-slider);
  font-weight: bold;
  animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ==========================================================================
   13. شريط التنقل الرقمي (Pagination Bar)
   تنسيق أزرار أرقام الصفحات المتواجدة أسفل القوائم.
   ========================================================================== */
#paginationBar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px auto;
  padding: 20px;
  width: fit-content;
  max-width: 95%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
#paginationBar button {
  min-width: 45px;
  height: 45px;
  border: none;
  outline: none;
  border-radius: 12px;
  background: #f3f4f6;
  color: #222;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}
#paginationBar button:hover {
  background: #16a34a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25);
}
#paginationBar button.active {
  background: #15803d;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(21, 128, 61, 0.35);
}
#paginationBar button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   14. تذييل الصفحة (Footer)
   تنسيق الفوتر السفلي الأخضر ذو الحواف المنحنية والأزرار الخاصة به.
   ========================================================================== */
.site-footer {
  background-color: var(--primary);
  color: white;
  padding: 30px 0;
  margin-top: 40px;
  border-radius: 40px 40px 0 0;
  text-align: center;
  border-top: 3px solid var(--primary);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-btn {
  background: rgba(255, 255, 255, 0.15) !important;
  color: white !important;
  padding: 15px 35px !important;
  border-radius: 15px !important;
  text-decoration: none !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  transition: 0.3s !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  display: inline-block !important;
}
.footer-btn:hover {
  background: white !important;
  color: var(--primary) !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================================================
   15. شاشات التجاوب والتحسين للأجهزة المختلفة (Media Queries)
   تم ترتيبها تنازلياً من الشاشات الكبيرة للشاشات الصغيرة جداً لعدم حدوث تضارب.
   ========================================================================== */

/* أجهزة التابلت الكبيرة واللاب توب الصغير (أقل من 992px) */
@media (max-width: 992px) {
  .slider-container { height: 420px; }
  .slide.prev { transform: translate3d(-180px,0,-40px) rotateY(30deg) scale(.82); }
  .slide.next { transform: translate3d(180px,0,-40px) rotateY(-30deg) scale(.82); }
  .slide.hidden-left { transform: translate3d(-280px,0,-140px) rotateY(45deg) scale(.65); }
  .slide.hidden-right { transform: translate3d(280px,0,-140px) rotateY(-45deg) scale(.65); }
}

/* التجاوب المتوسط (أقل من 950px) */
@media (max-width: 950px) {
  header {
    height: auto;
    padding: 25px;
    flex-direction: column;
    gap: 25px;
    top: 0;
  }
  .main-nav {
    position: static;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .hero-flex-container {
    flex-direction: column;
    text-align: center;
    padding-top: 20px;
  }
  .hero-text h1 { font-size: 32px; }
  .slider-section { justify-content: center; margin-top: 50px; }
  .modal-content-dl { flex-direction: column; max-width: 550px; }
  .modal-content-dl > div { width: 100% !important; border: none !important; }
  .prog-main-side { min-width: 100%; flex-direction: column; text-align: center; }
  .prog-thumb-img { margin: 0 0 20px 0; width: 200px; height: 120px; }
  .prog-side-action {
    width: 100%;
    justify-content: space-between;
    border-top: 2px solid #f1f5f9;
    padding-top: 20px;
  }
}

/* التجاوب مع الشاشات اللوحية الصريحة (أقل من 900px) */
@media (max-width: 900px) {
  .main-program-container { flex-direction: column; }
  .left-action-column { min-width: 100%; }
}

/* أجهزة التابلت الصغيرة (أقل من 768px) */
@media (max-width: 768px) {
  .slider-section { padding:10px; }
  .slider-container { height: 340px; max-width: 100%; }
  .slide { width: 260px; height: 150px; border-radius:18px; }
  .slide.active { transform: translate3d(0,0,80px) scale(1); }
  .slide.prev { transform: translate3d(-120px,0,-30px) rotateY(25deg) scale(.78); }
  .slide.next { transform: translate3d(120px,0,-30px) rotateY(-25deg) scale(.78); }
  .slide.hidden-left { transform: translate3d(-190px,0,-120px) rotateY(40deg) scale(.6); }
  .slide.hidden-right { transform: translate3d(190px,0,-120px) rotateY(-40deg) scale(.6); }
}

/* شاشات الهواتف المحمولة الذكية (تم دمجها كلها هنا لتبسيط التعديل - أقل من 600px) */
@media (max-width: 600px) {
  .top-notice-bar .notice-msg {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 10px;
  }
  .top-notice-bar .notice-action-btns {
    width: 100%;
    justify-content: center;
  }
  header { padding: 20px !important; }
  .site-logo-top { height: 40px !important; }
  .site-name-header { font-size: 16px !important; }
  .programs-container { grid-template-columns: 1fr !important; padding: 15px !important; }
  .btn-download-main {
    padding: 8px 15px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    width: 90% !important;
    margin: 10px auto !important;
    display: block;
  }
  .footer-btn { padding: 6px 10px !important; font-size: 13px !important; margin: 4px !important; }
  .hero h1 { font-size: 28px !important; text-align: center; }
  .hero p { font-size: 15px !important; text-align: center; margin: 10px auto; }
  .site-wrapper { min-height: auto; border-radius: 20px; width: 98%; margin: 10px auto; }
  .notice-msg { flex-direction: column; justify-content: center; text-align: center; padding: 10px; }
  .notice-auth-btns { border-right: none; padding-right: 0; margin-top: 10px; }
  .notice-action-btns { width: 100%; justify-content: center; display: flex; gap: 10px; }
  #paginationBar { gap: 7px; padding: 14px; border-radius: 16px; }
  #paginationBar button { min-width: 40px; height: 40px; font-size: 14px; }
  
  /* تكييف السلايدر للهواتف المحمولة */
  .slider-container { height:280px; perspective:900px; }
  .slide { width:210px; height:210px; border-radius:16px; }
  .slide.active { border-width:3px; transform: translate3d(0,0,50px) scale(1); }
  .slide.prev { opacity:.5; transform: translate3d(-85px,0,-20px) rotateY(18deg) scale(.72); }
  .slide.next { opacity:.5; transform: translate3d(85px,0,-20px) rotateY(-18deg) scale(.72); }
  .slide.hidden-left, .slide.hidden-right { opacity:0; visibility:hidden; }
}

/* شاشات الهواتف الصغيرة جداً (أقل من 400px) */
@media(max-width:400px){
  .slider-container { height:240px; }
  .slide { width:180px; height:180px; }
  .slide.prev { transform: translate3d(-70px,0,-15px) rotateY(15deg) scale(.68); }
  .slide.next { transform: translate3d(70px,0,-15px) rotateY(-15deg) scale(.68); }
}