:root {
  --blue: #1e6091;
  --green: #52b69a;
}

/* Reset and base defaults scoped to blog page */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Local font families matching the names used across the styles (fl, fr, fm, fb, fbb) */
@font-face {
  font-family: fl; /* Light */
  src: url('../fonts/COMM - Lyon Arabic Display Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: fr; /* Regular */
  src: url('../fonts/COMM - Lyon Arabic Display Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: fm; /* Medium */
  src: url("../fonts/COMM - Lyon Arabic Display Medium.otf") format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: fb; /* Bold */
  src: url('../fonts/COMM - Lyon Arabic Display Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: fbb; /* Black */
  src: url('../fonts/COMM - Lyon Arabic Display Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Optional: override digits for these families to use ERAS font for better numeral rendering */
/* Latin digits U+0030-0039 and Arabic-Indic digits U+0660-0669 */
@font-face {
  font-family: fl; /* Light digits */
  src: url('../fonts/ERASLGHT.TTF') format('truetype');
  unicode-range: U+0030-0039, U+0660-0669;
}

@font-face {
  font-family: fr; /* Regular digits */
  src: url('../fonts/ERASMD.TTF') format('truetype');
  unicode-range: U+0030-0039, U+0660-0669;
}

@font-face {
  font-family: fm; /* Medium digits */
  src: url('../fonts/ERASMD.TTF') format('truetype');
  unicode-range: U+0030-0039, U+0660-0669;
}

@font-face {
  font-family: fb; /* Bold digits */
  src: url('../fonts/ERASDEMI.TTF') format('truetype');
  unicode-range: U+0030-0039, U+0660-0669;
}

@font-face {
  font-family: fbb; /* Black digits */
  src: url('../fonts/ERASBD.TTF') format('truetype');
  unicode-range: U+0030-0039, U+0660-0669;
}

/* تنسيقات صفحة المدونة (مرافئ) - تعتمد على style.css وتضيف طبقة خاصة */

/* تعريف خطوط Lyon Arabic Display محلياً لصفحة المدونة فقط */
/* استخدام Lyon Arabic Display بأوزان متعددة */

@font-face {
  font-family: 'Lyon Arabic Display';
  src: url('../fonts/COMM - Lyon Arabic Display Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lyon Arabic Display';
  src: url("../fonts/COMM - Lyon Arabic Display Regular.otf") format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lyon Arabic Display';
  src: url("../fonts/COMM - Lyon Arabic Display Medium.otf") format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lyon Arabic Display';
  src: url('../fonts/COMM - Lyon Arabic Display Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lyon Arabic Display';
  src: url('../fonts/COMM - Lyon Arabic Display Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/************************************* Header Modern **************************************/
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background: transparent;
  /* كان rgba(255, 255, 255, 0.98) */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 5px 30px rgba(39, 64, 96, 0.1);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(0);
}

.header.hidden {
  transform: translateY(-100%);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 80px;
  position: relative;
}

/* الشعار */
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo-img {
  height: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* القائمة */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-btn {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  text-decoration: none;
  font-size: 1.1rem;
  font-family: "fm";
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: rgba(30, 95, 145, 0.05);
}

.nav-link .nav-wave {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(50deg, rgba(30, 95, 145, 0.9), rgba(82, 182, 154, 0.9));
  top: 100%;
  left: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
  z-index: -1;
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

.nav-link:hover .nav-wave,
.nav-link.active .nav-wave {
  top: 0;
}

.nav-icon {
  font-size: 1rem;
  transition: all 0.3s ease;
}

.nav-text {
  position: relative;
  font-family: fr;
}

.subscribe-btn span {
  font-family: fb;
}

/* زر الاشتراك */
.subscribe-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #3d8fd6, #274060);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-family: "fb";
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(61, 143, 214, 0.3);
  margin-right: 10px;
}

.subscribe-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(61, 143, 214, 0.4);
}

.subscribe-btn i {
  transition: transform 0.3s ease;
}

.subscribe-btn:hover i {
  transform: translateX(-5px);
}

/* زر القائمة المختصرة */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.hamburger {
  width: 80%;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.line {
  width: 100%;
  height: 3px;
  background: #52b69a;
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
}

.menu-toggle.active .line1 {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .line2 {
  opacity: 0;
}

.menu-toggle.active .line3 {
  transform: translateY(-9px) rotate(-45deg);
}

/* القائمة المختصرة للجوال */
@media (max-width: 1200px) {
  .header-container {
    padding: 0 30px;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 1rem;
  }

  .subscribe-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 992px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 100px 30px 30px;
    z-index: 999;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .nav.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 15px 20px;
    border-radius: 8px;
  }

  .subscribe-btn {
    margin: 30px 0 0;
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 576px) {
  .header-container {
    padding: 0 20px;
    height: 70px;
  }

  .nav {
    width: 280px;
    padding: 80px 20px 20px;
  }
}

/* تحسينات إضافية للقائمة المختصرة */
.nav {
  transition: right 0.4s ease-in-out;
}

/* إضافة تأثير ظل عند فتح القائمة */
.nav.active {
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

/* منع التمرير عند فتح القائمة */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* تحسينات للروابط في القائمة المختصرة */
.nav-link {
  transition: all 0.3s ease;
}

.nav-link:hover {
  transform: translateX(-5px);
}

@media (max-width: 992px) {
  .header-container {
    justify-content: space-between;
    position: relative;
  }

  .logo {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
  }

  .menu-toggle {
    order: -1;
  }
}

/* تطبيق الخط على صفحة المدونة مع استثناء عناصر Font Awesome حتى لا تختفي الأيقونات */
.blog-page :not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: 'Lyon Arabic Display', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif !important;
}

/* تأثير Parallax في الخلفية */
.blog-hero {
  padding: 6rem 0rem 2rem;
  background: linear-gradient(45deg, rgba(30, 95, 145, 0.1) 0%, rgba(82, 182, 154, 0.1) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* ضمان ارتفاع واضح لمنع أي التباس بصري عند نهاية القسم */
  min-height: 600px;
  isolation: isolate; /* عزل طبقات الخلفية داخل البطل */
}

/* تدرّج سفلي لطيف لإخفاء أي أثر بصري عند حافة البطل */
.blog-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 300px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
}

.blog-hero .container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* تلميحات أداء لمنع الوميض والتكرار البصري */
  will-change: background-position;
  backface-visibility: hidden;
  transform: translateZ(0);
  /* موضع افتراضي للخلفية يتماشى مع تحريك backgroundPosition في JS */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 100%;
}

.layer-1 {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%231e6091' fill-opacity='0.04' d='M0,128L48,117.3C96,107,192,85,288,112C384,139,480,213,576,218.7C672,224,768,160,864,138.7C960,117,1056,139,1152,149.3C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center/cover;
}

.layer-2 {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%231e6091' fill-opacity='0.04' d='M0,224L48,224C96,224,192,224,288,197.3C384,171,480,117,576,117.3C672,117,768,171,864,186.7C960,203,1056,181,1152,181.3C1248,181,1344,203,1392,213.3L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center/cover;
}

.layer-3 {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%231e6091' fill-opacity='0.06' d='M0,288L48,261.3C96,235,192,181,288,160C384,139,480,149,576,176C672,203,768,245,864,250.7C960,256,1056,224,1152,224C1248,224,1344,256,1392,272L1440,288L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center/cover;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(30, 95, 145, 0.1) !important;
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.hero-orbit {
  position: relative;
  width: 25rem;
  height: 25rem;
  margin: 0 auto 2.5rem;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit::before {
  /* الحلقة الداخلية للنصوص */
  width: 15rem;
  height: 15rem;
  border: 1px dashed rgba(61, 143, 214, 0.25);
  box-shadow: 0 0 40px rgba(61, 143, 214, 0.08) inset;
  animation: rotate 120s linear infinite;
}

.hero-orbit::after {
  /* الحلقة الخارجية للإيموجي */
  width: 22rem;
  height: 22rem;
  border: 1px dashed rgba(39, 64, 96, 0.2);
  box-shadow: 0 0 40px rgba(39, 64, 96, 0.06) inset;
  animation: rotate 80s linear infinite reverse;
}

.hero-logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(61, 143, 214, 0.08) 0%, rgba(61, 143, 214, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  animation: pulse 8s ease-in-out infinite;
}

.hero-logo img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(61, 143, 214, 0.25));
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.orbit-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-origin: 50% 50%;
}

/* أساس التموضع الدائري */
.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  /* ضع مركز العنصر على مركز المدار أولاً ثم قم بالدوران/الإزاحة
     نضيف زاوية دوران زمنية var(--t) لعمل المدار */
  transform: translate(-50%, -50%) rotate(calc(var(--a) + var(--t, 0deg))) translate(var(--r)) rotate(calc(-1 * (var(--a) + var(--t, 0deg))));
  will-change: transform;
  animation: orbit-turn var(--dur, 50s) linear infinite;
}

/* وسم الكلمات */
.orbit-tag {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(61, 143, 214, 0.3);
  color: #274060;
  border-radius: 999px;
  font-family: 'fm';
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(39, 64, 96, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  /* نصف قطر الحلقة الداخلية (أصغر لزيادة الفاصل) */
  --r: 7.5rem;
  /* سرعة الحلقة الداخلية */
  --dur: 50s;
}

/* بادجات الإيموجي */
.orbit-emoji {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(61, 143, 214, 0.15), rgba(39, 64, 96, 0.12));
  border: 1px solid rgba(61, 143, 214, 0.25);
  box-shadow: 0 8px 20px rgba(39, 64, 96, 0.1);
  font-size: 20px;
  transition: all 0.3s ease;
  /* نصف قطر الحلقة الخارجية (يبقى أكبر لزيادة الفاصل) */
  --r: 11rem;
  /* سرعة الحلقة الخارجية (أبطأ قليلًا) */
  --dur: 65s;
  /* عكس اتجاه الدوران للإيموجي مقارنة بالنصوص */
  animation-direction: reverse;
}

/* توزيع 12 عنصرًا على دائرة (كل 30 درجة) */
.p1 {
  --a: 0deg;
}

.p2 {
  --a: 30deg;
}

.p3 {
  --a: 60deg;
}

.p4 {
  --a: 90deg;
}

.p5 {
  --a: 120deg;
}

.p6 {
  --a: 150deg;
}

.p7 {
  --a: 180deg;
}

.p8 {
  --a: 210deg;
}

.p9 {
  --a: 240deg;
}

.p10 {
  --a: 270deg;
}

.p11 {
  --a: 300deg;
}

.p12 {
  --a: 330deg;
}

/* تسجيل خاصية مخصصة قابلة للتحريك لزوايا الدوران */
@property --t {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes orbit-turn {
  to {
    --t: 360deg;
  }
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {

  .orbit-item,
  .hero-orbit::before,
  .hero-orbit::after,
  .hero-logo,
  .particle {
    animation: none;
  }
}

/* عناوين ووصف */
.blog-title {
  font-size: 3.5rem;
  margin: 0 0 1rem;
  font-family: 'fbb';
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  background: linear-gradient(45deg, #1e6091, #52b69a);
  background-clip: text;
  color: transparent;
  padding: 0.5rem;
}

.hero-content {
  margin-bottom: 2.5rem;
}

.blog-subtitle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.blog-subtitle {
  color: var(--blue);
  margin: 0;
  font-family: 'fr';
  line-height: 1.8;
  font-size: 1.2rem;
}

/* أزرار الهوية */
.blog-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.blog-actions a.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'fb';
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(45deg, #1e6091, #52b69a);
  color: #fff;
  box-shadow: 0 6px 18px rgba(61, 143, 214, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(61, 143, 214, 0.4);
}

.btn-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
  position: relative;
  z-index: 1;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--blue);
  transition: all 0.3s ease;
  z-index: -1;
  border-radius: 8px;
}

.btn-outline:hover::before {
  width: 100%;
}

.btn-outline:hover {
  color: white;
  box-shadow: 0 6px 18px rgba(61, 143, 214, 0.2);
  transform: translateY(-3px);
}

/* شبكة المقالات وتحسينات الهوية */
/* blog-container المحسن */
.blog-container {
  /* حاوية بمظهر بطاقة أنيق مع خلفيات طبقية وزخارف ناعمة */
  padding: 2rem clamp(1rem, 4vw, 2rem);
  position: relative;
background-color: #fff; 
overflow: hidden;
  isolation: isolate;
}

/* زخارف مموّهة (blobs) + نقش خفيف فوق الخلفية */
.blog-container::before,
.blog-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* blob ملوّن مموّه في الخلفية */
.blog-container::before {
  z-index: 0;
  background:
    radial-gradient(220px 180px at 85% 20%, rgba(82, 182, 154, 0.20), transparent 60%),
    radial-gradient(260px 200px at 10% 80%, rgba(30, 96, 145, 0.18), transparent 65%);
  filter: blur(28px);
  transform: translate3d(0, 0, 0);
  animation: blobFloat1 18s ease-in-out infinite;
}

/* طبقة نقش هندسي خفيف أعلى البطاقة */
.blog-container::after {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%231e6091' stroke-opacity='0.1'%3E%3Cpath d='M0 80h160M80 0v160'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 125px 125px;
  background-position: center;
  background-repeat: repeat;
  animation: blobFloat2 24s ease-in-out infinite reverse;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-8px, 10px, 0) scale(1.02); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10px, -8px, 0) scale(1.01); }
}

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

@media (max-width: 640px) {
  .blog-container {
    border-radius: 16px;
    padding: 1.25rem 1rem;
  }
}

/* اجعل محتوى الحاوية فوق طبقات الزخرفة */
.blog-container .category-title,
.blog-container .posts-grid {
  position: relative;
  z-index: 2;
}

/* شبكة الأعمدة */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.3s;
}

/* عناوين الأقسام المحسنة */
.category-title {
  position: relative;
  padding: 1rem 0;
  margin: 2rem 0 1.5rem;
  font-family: 'fbb';
  color: #274060;
  font-size: 2rem;
  text-align: center;
  border-bottom: 2px solid #e2e8f0;
}

.category-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #1e6091, #52b69a);
  border-radius: 3px;
}

/* بطاقات المقالات المحسنة */
.post-card {
  grid-column: span 12;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(61, 143, 214, 0.15);
  border-color: #3d8fd6;
}

.post-media {
  position: relative;
  overflow: hidden;
}

.post-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #f1f5f9;
  display: block;
  transition: transform 0.5s ease;
}

.post-card:hover .post-thumb {
  transform: scale(1.05);
}

.post-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.08), transparent 60%);
  pointer-events: none;
  opacity: 0.7;
}

.post-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.50);
  color: #1e6091;
  border: 1px solid rgba(30, 95, 145, 0.50);
  box-shadow: 0 6px 16px rgba(39, 64, 96, 0.12);
  font-family: 'fb';
  font-size: 0.85rem;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.post-badge i {
  color: #1e6091;
  line-height: 1;
}

.post-badge:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(61, 143, 214, 0.35);
  box-shadow: 0 10px 24px rgba(39, 64, 96, 0.16);
  transform: translateY(-3px);
}

.post-badge:active {
  transform: translateY(-1px);
}

.post-badge:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 143, 214, 0.25), 0 6px 16px rgba(39, 64, 96, 0.12);
}

.post-card:hover .post-badge {
  transform: translateY(-2px);
}

/* زر المشاركة مقابل شارة التصنيف */
.post-share {
  position: absolute;
  top: 12px;
  left: 12px;
  /* مقابل right الخاص بـ .post-badge */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.50);
  color: #52b69a;
  border: 1px solid rgba(82, 182, 154, 0.50);
  box-shadow: 0 6px 16px rgba(39, 64, 96, 0.12);
  font-family: 'fb';
  font-size: 0.85rem;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: all 0.25s ease;
}

.post-share i {
  color: #52b69a;
  transition: transform 0.25s ease, color 0.25s ease;
}

.post-share:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(61, 143, 214, 0.35);
  box-shadow: 0 10px 24px rgba(39, 64, 96, 0.16);
  transform: translateY(-3px);
}

.post-card:hover .post-share {
  transform: translateY(-2px);
}

.post-share:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 143, 214, 0.25);
}

/* إخفاء النص على الشاشات الصغيرة والإبقاء على الأيقونة فقط */
@media (max-width: 640px) {
  .post-share .label {
    display: none;
  }
}

.post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-title {
  font-size: 20px;
  margin: 0 0 0.50rem;
  color: #1e6091;
  font-family: fm;
  line-height: 1.4;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  color: #64748b;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 10px;
  flex-wrap: wrap;
  padding-bottom: 0.50rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(100, 116, 139, 0.25);
}

/* عناصر الميتا داخل البطاقة */
.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.author-name {
  color: #1e6091;
  font-family: 'fb';
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: clamp(120px, 28vw, 240px);
}

.post-time,
.post-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.post-time i,
.post-views i {
  color: #3d8fd6;
}

.post-readtime {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.25s ease, transform 0.25s ease;
  color: #52b69a;
}

.post-readtime i {
  color: #52b69a;
}

.post-time:hover,
.post-views:hover {
  background: rgba(61, 143, 214, 0.06);
  transform: translateY(-1px);
}

.post-time:focus-within,
.post-views:focus-within,
.post-readtime:focus-within {
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 143, 214, 0.2);
}

.dot {
  color: #94a3b8;
}

@media (max-width: 520px) {
  .post-meta {
    font-size: 0.85rem;
    gap: 8px 6px;
    border-bottom-color: rgba(100, 116, 139, 0.18);
  }

  .author-avatar {
    width: 24px;
    height: 24px;
  }

  .author-name {
    max-width: 50vw;
  }

  .post-time i,
  .post-views i,
  .post-readtime i {
    font-size: 0.95rem;
  }

  .dot {
    display: none;
  }
}

.post-excerpt {
  color: #52b69a;
  line-height: 1.7;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-engagement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #64748b;
  font-size: 0.9rem;
  margin: 1.25rem 0rem;
  text-align: center;
  flex-wrap: wrap;
}

.post-engagement .eng-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(61, 143, 214, 0.06);
  border: 1px solid rgba(61, 143, 214, 0.12);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.post-engagement i {
  font-size: 1.05rem;
  line-height: 1;
  display: block;
}

.post-engagement .eng-item span {
  font-family: 'fb';
  font-size: 0.95rem;
  line-height: 1;
  color: #334155;
}

.post-engagement .eng-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(61, 143, 214, 0.12);
}

.post-engagement .eng-item:active {
  transform: translateY(-1px);
}

.post-engagement .eng-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 143, 214, 0.2);
}

/* ألوان الأيقونات حسب النوع */
.post-engagement .eng-views i {
  color: #3d8fd6;
}

.post-engagement .eng-likes i {
  color: #ef4444;
}

.post-engagement .eng-comments i {
  color: #22c55e;
}

/* خلفية وبوردر لكل نوع لتطابق لون الأيقونة */
.post-engagement .eng-views {
  background: rgba(61, 143, 214, 0.08);
  border-color: rgba(61, 143, 214, 0.18);
}

.post-engagement .eng-views:hover {
  background: rgba(61, 143, 214, 0.14);
  border-color: rgba(61, 143, 214, 0.28);
  box-shadow: 0 6px 16px rgba(61, 143, 214, 0.16);
}

.post-engagement .eng-likes {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.18);
}

.post-engagement .eng-likes:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.28);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.16);
}

.post-engagement .eng-comments {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.18);
}

.post-engagement .eng-comments:hover {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.28);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.16);
}

@media (max-width: 480px) {
  .post-engagement {
    gap: 12px;
  }

  .post-engagement .eng-item {
    padding: 6px 10px;
    gap: 6px;
  }
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  flex-wrap: wrap;
}

.post-readmore {
  text-decoration: none;
  color: #1e6091;
  font-family: 'fb';
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 10px 10px 0px 0px;
}

.post-readmore::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: #1e6091;
  transition: width 0.3s ease;
}

.post-readmore:hover {
  color: #1e6091;
  gap: 0.75rem;
  background: rgba(30, 95, 145, 0.07);
}

.post-readmore:hover::after {
  width: 100%;
}

.post-readmore i {
  color: #1e6091;
  transition: transform 0.3s ease, color 0.3s ease;
  line-height: 1;
}

.post-readmore:hover i {
  transform: translateX(-4px);
  color: #1e6091;
}

.post-readmore:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 95, 145, 0.2);
}

.post-readmore:active {
  transform: translateY(1px);
}

.post-time-bottom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  background: rgba(82, 182, 154, 0.05);
  border: 1px solid rgba(82, 182, 154, 0.5);
  padding: 6px 12px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.post-time-bottom i {
  color: var(--green);
  font-size: 0.95rem;
  line-height: 1;
}

.post-time-bottom span {
  font-family: 'fb';
  color: var(--green);
}

.post-time-bottom:hover {
  background: rgba(82, 182, 154, 0.1);
  border-color: rgba(82, 182, 154, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(82, 182, 154, 0.12);
}

.post-time-bottom:focus-within {
  outline: none;
  box-shadow: 0 0 0 3px rgba(82, 182, 154, 0.2);
}

@media (max-width: 420px) {
  .post-time-bottom span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: top;
  }
}

/* سوايبر للتصنيفات */
.category-swiper {
  padding: 1rem 0 2.5rem;
  position: relative;
}

.swiper-button {
  display: flex;
  justify-content: center;
  flex-direction: row-reverse;
  margin: 3rem 0 1rem;
  gap: 1rem;
}

.swiper .swiper-button-next,
.swiper .swiper-button-prev {
  position: static !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  background: #52b69a;
  border-radius: 50%;
  width: 44px !important;
  height: 44px !important;
  margin-top: -22px ;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #1e6091;
  color: white ;
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px !important;
  font-weight: bold;
}

/* حالة الفراغ */
.posts-grid:empty::before {
  content: "لا توجد مقالات متاحة حالياً. سيتم إضافة محتوى قريباً.";
  display: block;
  text-align: center;
  padding: 3rem;
  color: #64748b;
  font-family: 'fr';
  font-size: 1.2rem;
  grid-column: 1 / -1;
}

/* نقاط توقف الأعمدة */
@media (min-width: 640px) {
  .post-card {
    grid-column: span 6;
  }
}

@media (min-width: 1024px) {
  .post-card {
    grid-column: span 4;
  }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
  .blog-container {
    padding: 1.5rem 0.5rem;
    border-radius: 16px;
    margin: 1rem auto;
  }

  .blog-title {
    font-size: 2.5rem;
  }

  .blog-subtitle {
    font-size: 1.1rem;
  }

  .blog-actions {
    flex-direction: column;
    align-items: center;
  }

  .blog-actions a.btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .post-content {
    padding: 1rem;
  }

  .post-title {
    font-size: 18px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
    display: none;
  }
}

/* حركة الظهور للأعلى */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .hero-orbit {
    width: 18rem;
    height: 18rem;
  }

  .hero-orbit::before {
    width: 12rem;
    height: 12rem;
  }

  .hero-orbit::after {
    width: 16rem;
    height: 16rem;
  }

  .hero-logo img {
    width: 120px;
    height: 120px;
  }

  .blog-title {
    font-size: 2rem;
  }

  /* تقليل نصف القطر على الشاشات الصغيرة */
  .orbit-tag {
    --r: 6rem;
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .orbit-emoji {
    --r: 8rem;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

/* Footer Styles */
.blog-page {
  /* منع التمرير الأفقي الذي قد ينتج عن عناصر مطلقة التموضع */
  overflow-x: hidden;
}
.site-footer {
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
  padding-top: 3rem;
  border-top: 1px solid #e2e8f0;
  position: relative;
  /* قص أي تجاوز رأسي/أفقي من الزخارف (::before/::after) حتى لا تُنشئ مساحة بيضاء إضافية أسفل الصفحة */
  overflow: clip;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.15rem;
  background: linear-gradient(90deg, transparent, #1e6091, #52b69a, transparent);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* قسم النشرة البريدية */
.footer-newsletter {
  background: linear-gradient(45deg, #1e6091, #52b69a);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 3rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(30, 96, 145, 0.08);
}

.newsletter-content h3 {
  color: #fff;
  font-family: 'fbb';
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.newsletter-content h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

.newsletter-content p {
  color: #fff;
  font-family: 'fr';
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  opacity: 0.8;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  max-width: 630px;
  margin: 0 auto 0;
}

.newsletter-benefits {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.benefit-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5rem);
  border-radius: 12px;
  padding: 1rem 0rem;
  min-width: 200px;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.benefit-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.5rem;
  color: white;
  transition: all 0.4s ease;
}

.benefit-item:hover .benefit-icon {
  background: white;
  color: #52b69a;
  transform: rotate(15deg) scale(1.08);
}

.benefit-item p {
  font-family: "fm";
  font-size: 1.1rem;
}

.input-group {
  display: flex;
  margin-bottom: 20px;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.input-group:focus-within {
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.3);
}

.input-group input {
  flex: 1;
  padding: 18px 25px;
  border: none;
  font-family: "fr";
  font-size: 1.1rem;
  background: transparent;
  color: white;
  transition: all 0.3s ease;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.input-group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
}

.input-group button {
  padding: 0 30px;
  background: white;
  color: #52b69a;
  border: none;
  font-family: "fbb";
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.input-group button span {
  font-family: "fbb";
}

.input-group button:hover {
  background: #f1f5f9;
  transform: scale(1.05);
}

.input-group button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #1e6091, #52b69a);
  z-index: 0;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.input-group button i {
  transition: transform 0.3s ease;
}

.input-group button:hover i {
  transform: translateX(5px);
}

.input-group button:hover {
  color: white;
  transform: scale(1.05);
}

.input-group button:hover::before {
  transform: translateX(0);
}

.input-group button span,
.input-group button i {
  position: relative;
  z-index: 1;
}

.agreement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  position: relative;
  padding: 15px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.agreement:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.agreement input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.agreement input[type="checkbox"]:checked {
  background: #ffffff;
  border-color: #fff;
}

.agreement input[type="checkbox"]:checked::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #52b69a;
  font-size: 1rem;
}

.agreement label {
  font-family: "fr";
  font-size: 0.95rem;
  color: white;
  opacity: 0.9;
  cursor: pointer;
  line-height: 1.6;
  transition: all 0.3s ease;
  text-align: right;
  flex-grow: 1;
}

.agreement:hover label {
  opacity: 1;
}

.newsletter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #1e6091, #52b69a);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'fb';
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 96, 145, 0.3);
}

.newsletter-message {
  font-family: 'fr';
  font-size: 0.9rem;
  padding: 0.5rem;
  border-radius: 8px;
  text-align: center;
}

.newsletter-message.success {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.newsletter-message.error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* محتوى الفوتر الرئيسي */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-section h4 {
  color: #1e6091;
  font-family: 'fbb';
  font-size: 1.2rem;
  margin: 0 0 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #1e6091, #52b69a);
  border-radius: 2px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: #64748b;
  font-family: 'fr';
  line-height: 1.6;
  margin: 0;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
  font-family: 'fr';
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: #1e6091;
  transform: translateX(-5px);
}

.footer-links a::before {
  content: "←";
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-links a:hover::before {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(30, 96, 145, 0.1), rgba(82, 182, 154, 0.1));
  color: #1e6091;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-links a:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #1e6091, #52b69a);
  color: white;
  box-shadow: 0 6px 16px rgba(30, 96, 145, 0.2);
}

/* قسم حقوق النشر */
.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #e2e8f0;
}

.footer-bottom p {
  color: #64748b;
  font-family: 'fr';
  margin: 0;
  font-weight: 200;
}

.footer-bottom a {
  color: #64748b;
  font-family: 'fr';
  font-weight: 500;
  margin: 0;
  text-decoration: none;
}

/* تحسنيات إضافية للفوتر */
.site-footer {
  /* نمط نقش نقطي خفيف في الخلفية فوق التدرج */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(30, 96, 145, 0.06) 0 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(82, 182, 154, 0.06) 0 2px, transparent 2px),
    linear-gradient(to bottom, #f8fafc, #f1f5f9);
  background-size: 24px 24px, 28px 28px, auto;
}

.site-footer::after {
  /* موجة زخرفية لطفيفة أعلى الفوتر */
  content: "";
  position: absolute;
  top: -18px;
  left: 0; right: 0;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,64 C120,80 240,16 360,16 C480,16 600,80 720,80 C840,80 960,16 1080,16 C1200,16 1320,64 1440,64 L1440,90 L0,90 Z'/%3E%3C/svg%3E") center top / cover no-repeat;
  pointer-events: none;
}

.newsletter-btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

.newsletter-message.loading {
  color: #3d8fd6;
  background: rgba(61, 143, 214, 0.08);
}

.newsletter-btn:focus-visible,
.input-group input:focus-visible,
.footer-links a:focus-visible,
.social-links a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 143, 214, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-btn:hover,
  .social-links a:hover,
  .footer-links a:hover {
    transform: none;
    box-shadow: none;
  }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {

.benefit-item {
  width: 100%;
}

.newsletter-form {
  max-width: 1000px;
}

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-section h4::after {
    right: 50%;
    transform: translateX(50%);
  }
  
  .social-links {
    justify-content: center;
  }

  .input-group {
    flex-direction: column;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
  }

  .input-group input {
    width: 100%;
    padding: 15px;
    text-align: center;
  }

  .input-group button {
    padding: 15px;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-newsletter {
    padding: 1.5rem 1rem;
  }
  
  .newsletter-content h3 {
    font-size: 1.5rem;
  }
  
  .newsletter-content p {
    font-size: 1rem;
  }
}

/* ====== Global Loader Overlay (Lottie) ====== */
.adeeb-loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none; /* toggled via JS */
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.adeeb-loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(255,255,255,0.85);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(39, 64, 96, 0.15);
}

.adeeb-loader-anim {
  width: 120px;
  height: 120px;
}

.adeeb-loader-text {
  font-family: 'fb';
  color: #274060;
}