/* ============================================
   خطوط إنتاج من الصين — تصميم فاتح عصري
   خط Alexandria + بطاقات ناعمة + حركات غنية
   ============================================ */

:root {
  --bg0: #f6f8fb;
  --bg1: #ffffff;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.7);
  --stroke: #e6ebf2;
  --heading: #101828;
  --text: #5b6474;
  --amber: #3a7ca5;
  --amber-2: #7fb2d0;
  --orange: #16425b;
  --amber-soft: #ecf4f9;
  --red: #b03535;
  --red-2: #8a2626;
  --red-soft: #fbeeee;
  --navy: #0f2440;
  --white: #ffffff;
  --gray: #5b6474;
  --gray-light: #eef2f7;
  --card-shadow: 0 6px 24px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.05);
  --card-shadow-hover: 0 24px 55px rgba(16, 24, 40, 0.13), 0 0 0 1px rgba(58, 124, 165, 0.25);
  --radius: 20px;
  --transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Alexandria', 'Cairo', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  background: var(--bg0);
  color: var(--text);
  line-height: 2;
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
}

/* شبكة هندسية خفيفة أعلى الصفحة */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 36, 64, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 36, 64, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

::selection { background: rgba(58, 124, 165, 0.3); color: var(--heading); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--gray-light); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--amber), var(--orange));
  border-radius: 8px;
  border: 3px solid var(--gray-light);
}

.container {
  width: min(1220px, 92%);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* ============ خلفية أورورا باستيل (تُحقن عبر JS) ============ */
.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  will-change: transform;
}
.aurora span:nth-child(1) {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(127, 178, 208, 0.35), transparent 70%);
  top: -200px; right: -140px;
  animation: aurora-a 18s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16), transparent 70%);
  bottom: -160px; left: -130px;
  animation: aurora-b 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(3) {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(22, 66, 91, 0.14), transparent 70%);
  top: 40%; left: 32%;
  animation: aurora-c 26s ease-in-out infinite alternate;
}
@keyframes aurora-a { to { transform: translate(-150px, 150px) scale(1.25); } }
@keyframes aurora-b { to { transform: translate(170px, -130px) scale(1.15); } }
@keyframes aurora-c { to { transform: translate(-130px, -170px) scale(1.3); } }

/* ============ وهج المؤشر ============ */
#cursor-glow {
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 124, 165, 0.07), transparent 65%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
}

/* ============ زر واتساب العائم (يُحقن عبر JS) ============ */
#wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 1600;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2bd066, #14a94b);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(20, 169, 75, 0.4);
  transition: transform 0.35s var(--transition), box-shadow 0.35s ease;
  animation: wa-pulse 2.4s ease infinite;
}
#wa-float:hover {
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 18px 44px rgba(20, 169, 75, 0.55);
}
#wa-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(20, 169, 75, 0.4), 0 0 0 0 rgba(43, 208, 102, 0.5); }
  60% { box-shadow: 0 12px 30px rgba(20, 169, 75, 0.4), 0 0 0 16px rgba(43, 208, 102, 0); }
}

/* ============ شريط تقدّم القراءة ============ */
#progress-bar {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--amber-2));
  box-shadow: 0 1px 8px rgba(176, 53, 53, 0.4);
  z-index: 3000;
}

/* ============ الترويسة — كبسولة بيضاء عائمة ============ */
header {
  position: fixed;
  top: 18px;
  inset-inline: 0;
  z-index: 2000;
  transition: top 0.4s ease;
}
header .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 60px;
  padding: 10px 22px;
  box-shadow: 0 10px 34px rgba(16, 24, 40, 0.08);
  transition: var(--transition);
}
header.scrolled { top: 10px; }
header.scrolled .nav-wrap {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(58, 124, 165, 0.35);
  box-shadow: 0 14px 44px rgba(16, 24, 40, 0.14);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-size: 1.12rem;
  font-weight: 800;
  white-space: nowrap;
}
.logo .logo-icon {
  width: 46px;
  height: 40px;
  display: block;
  object-fit: contain;
  border-radius: 0;
  background: none;
  transition: transform 0.4s var(--transition);
}
.logo:hover .logo-icon { transform: scale(1.08); }
/* نص الشعار: PRODUCTION LINES كما في الهوية + السطر العربي */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.logo-en {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.6px;
  color: #1f3a5f;
  white-space: nowrap;
}
.logo-ar {
  font-size: 0.66rem;
  font-weight: 600;
  color: #e8862e;
  white-space: nowrap;
}
/* الشعار في التذييل الداكن */
footer .logo .logo-icon {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}
footer .logo-en { color: #ffffff; }

@media (max-width: 480px) {
  .logo-en { font-size: 0.85rem; }
  .logo-ar { font-size: 0.6rem; }
}

nav ul { display: flex; gap: 2px; align-items: center; }
nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 13px;
  border-radius: 30px;
  position: relative;
  transition: color 0.3s ease, background 0.3s ease;
}
nav a::after { display: none; }
nav a:hover, nav a.active {
  color: var(--orange);
  background: var(--amber-soft);
}
.nav-cta {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff !important;
  font-weight: 800;
  padding: 9px 22px !important;
  border-radius: 30px;
  box-shadow: 0 8px 22px rgba(176, 53, 53, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 32px rgba(176, 53, 53, 0.5);
  /* تثبيت التدرج الأحمر عند التأشير — يمنع قاعدة nav a:hover من إباهته */
  background: linear-gradient(135deg, var(--red-2), var(--red));
  color: #fff !important;
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 2100;
}
#menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--heading);
  margin: 6px auto;
  border-radius: 3px;
  transition: var(--transition);
}
#menu-toggle.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
#menu-toggle.open span:nth-child(2) { opacity: 0; }
#menu-toggle.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ============ قسم البطل ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--heading);
  padding: 150px 0 110px;
  background:
    radial-gradient(900px 480px at 88% 0%, rgba(127, 178, 208, 0.16), transparent 65%),
    radial-gradient(700px 420px at 5% 85%, rgba(59, 130, 246, 0.08), transparent 65%);
}
.hero::before { display: none; }
#particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid rgba(58, 124, 165, 0.35);
  color: var(--orange);
  padding: 9px 20px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 26px;
  box-shadow: 0 6px 18px rgba(58, 124, 165, 0.14);
  position: relative;
  overflow: hidden;
}
.hero-badge::after {
  content: '';
  position: absolute;
  top: 0;
  right: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform: skewX(-20deg);
  animation: shine 4s ease infinite;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 22px;
  color: var(--heading);
}
.hero h1 .gradient-text {
  background: linear-gradient(90deg, var(--orange), var(--amber), #2f6690, var(--orange));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-slide 5s linear infinite;
}
@keyframes gradient-slide { to { background-position: 300% center; } }

.hero p.lead {
  font-size: 1.08rem;
  color: var(--text);
  max-width: 560px;
  margin-bottom: 16px;
}
#typed-line {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--orange);
  min-height: 2.3em;
  margin-bottom: 32px;
}
#typed-line .cursor {
  display: inline-block;
  width: 2px;
  background: var(--orange);
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.98rem;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: transform 0.35s var(--transition), box-shadow 0.35s ease, border-color 0.35s ease, color 0.35s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(176, 53, 53, 0.35);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  right: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: shine 3.2s ease infinite;
}
@keyframes shine {
  60% { right: 170%; }
  100% { right: 170%; }
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 42px rgba(176, 53, 53, 0.5);
}
.btn-outline {
  background: var(--white);
  color: var(--heading);
  border: 1.5px solid var(--stroke);
  box-shadow: var(--card-shadow);
}
.btn-outline:hover {
  border-color: var(--amber);
  color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(58, 124, 165, 0.2);
}

/* ============ تكوين الهيرو الإبداعي: صور متراكبة + بطاقات مدارية ============ */
.hero-visual { position: relative; }
.hero-stack {
  position: relative;
  padding: 40px 30px 55px;
}
/* حلقة متقطعة تدور خلف التكوين */
.hero-ring {
  position: absolute;
  inset: -10px;
  border: 2px dashed rgba(58, 124, 165, 0.35);
  border-radius: 40px;
  animation: ring-spin 40s linear infinite;
  pointer-events: none;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* الصورة الرئيسية بإطار متوهج دوّار */
.hero-stack .main-img {
  position: relative;
  z-index: 2;
  border-radius: 26px;
  box-shadow: 0 34px 80px rgba(16, 24, 40, 0.22);
  animation: hero-img-float 7s ease-in-out infinite;
  width: 88%;
  margin-inline: auto;
  height: 380px;
  object-fit: cover;
  border: 6px solid #fff;
}
@keyframes hero-img-float { 50% { transform: translateY(-12px); } }

/* الصور المصغرة المائلة */
.mini-img {
  position: absolute;
  width: 190px;
  height: 145px;
  object-fit: cover;
  border-radius: 18px;
  border: 5px solid #fff;
  box-shadow: 0 20px 45px rgba(16, 24, 40, 0.22);
  z-index: 3;
}
.mini-1 {
  bottom: -5px;
  right: -18px;
  transform: rotate(6deg);
  animation: mini-float-1 6s ease-in-out infinite;
}
.mini-2 {
  top: 0;
  left: -14px;
  transform: rotate(-7deg);
  animation: mini-float-2 7s ease-in-out infinite;
}
@keyframes mini-float-1 {
  50% { transform: rotate(3deg) translateY(-12px); }
}
@keyframes mini-float-2 {
  50% { transform: rotate(-4deg) translateY(10px); }
}

/* نقاط مدارية متوهجة تدور حول التكوين */
.orbit-dot {
  position: absolute;
  top: 50%;
  right: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 0 14px rgba(176, 53, 53, 0.8);
  z-index: 4;
  pointer-events: none;
}
.od-1 { animation: orbit 12s linear infinite; }
.od-2 { width: 8px; height: 8px; animation: orbit 18s linear infinite reverse; opacity: 0.75; }
.od-3 { width: 6px; height: 6px; animation: orbit 26s linear infinite; animation-delay: -8s; opacity: 0.55; }
@keyframes orbit {
  from { transform: rotate(0deg) translateX(min(270px, 38vw)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(min(270px, 38vw)) rotate(-360deg); }
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  color: var(--heading);
  border-radius: 18px;
  padding: 14px 20px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.16);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  z-index: 3;
}
.float-card .fc-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: var(--amber-soft);
  border: 1px solid rgba(58, 124, 165, 0.3);
}
.float-card small { display: block; color: var(--text); font-weight: 500; }
.float-card-1 { top: 12%; right: -9%; animation: card-float-1 5s ease-in-out infinite; }
.float-card-2 { bottom: 22%; left: -11%; animation: card-float-2 6s ease-in-out infinite; }
.float-card-3 { top: 42%; left: -13%; animation: card-float-3 5.5s ease-in-out infinite; }
.float-card-4 { bottom: -14px; right: 22%; animation: card-float-4 6.5s ease-in-out infinite; }
@keyframes card-float-1 { 50% { transform: translateY(-16px) rotate(1.5deg); } }
@keyframes card-float-2 { 50% { transform: translateY(14px) rotate(-1.5deg); } }
@keyframes card-float-3 { 50% { transform: translate(8px, -12px); } }
@keyframes card-float-4 { 50% { transform: translateY(-14px) scale(1.03); } }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  right: 50%;
  transform: translateX(50%);
  z-index: 3;
  width: 26px;
  height: 44px;
  border: 2px solid rgba(16, 24, 40, 0.2);
  border-radius: 20px;
}
.scroll-hint::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 50%;
  transform: translateX(50%);
  width: 4px;
  height: 8px;
  background: var(--orange);
  border-radius: 4px;
  animation: scroll-dot 1.8s ease infinite;
}
@keyframes scroll-dot {
  70%, 100% { transform: translate(50%, 18px); opacity: 0; }
}

/* ============ الشريط المتحرك ============ */
.marquee-section {
  background: var(--white);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.marquee-track span::before { content: '◆'; color: var(--amber); font-size: 0.7rem; }
.marquee-section:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ============ الأقسام والعناوين ============ */
section { padding: 100px 0; position: relative; z-index: 2; }

.section-head { text-align: center; max-width: 740px; margin: 0 auto 62px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  background: var(--amber-soft);
  border: 1px solid rgba(58, 124, 165, 0.3);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 7px 20px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: dot-pulse 1.6s ease infinite;
}
@keyframes dot-pulse { 50% { opacity: 0.35; transform: scale(0.7); } }

.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 16px;
  line-height: 1.6;
}
.section-head p { color: var(--text); font-size: 1.02rem; }

.split-heading .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split-heading .word > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.split-heading.revealed .word > span { transform: translateY(0); }

/* ============ البطاقات ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 38px 30px;
  box-shadow: var(--card-shadow);
  transition: transform 0.5s var(--transition), box-shadow 0.5s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(58, 124, 165, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
  border-color: rgba(58, 124, 165, 0.4);
  box-shadow: var(--card-shadow-hover);
}
/* خلفية صورة لبطاقات الخدمات — واضحة أعلى البطاقة وتذوب في الأبيض عند منطقة النص */
.card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.9s var(--transition), filter 0.5s ease;
  filter: saturate(0.95);
}
.card .card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* نقاط بالبكسل: شريط صورة علوي واضح بارتفاع ثابت مهما طالت البطاقة */
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.06) 0px,
    rgba(255, 255, 255, 0.4) 105px,
    rgba(255, 255, 255, 0.95) 165px,
    #ffffff 215px);
}
.card:hover .card-bg { transform: scale(1.06); filter: saturate(1.15); }
.card > *:not(.card-bg):not(.card *) { position: relative; z-index: 1; }
.card .card-icon, .card h3, .card p, .card .card-link { position: relative; z-index: 1; }

.card .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  color: var(--amber);
  background: linear-gradient(150deg, var(--amber-soft), #ffffff);
  border: 1px solid rgba(58, 124, 165, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 14px rgba(58, 124, 165, 0.1);
  margin-bottom: 22px;
  transition: transform 0.55s var(--transition), box-shadow 0.4s ease, color 0.4s ease, background 0.4s ease;
}
.card .card-icon svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 4px rgba(58, 124, 165, 0.25));
}
.card:hover .card-icon {
  transform: rotateY(360deg) scale(1.08);
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 28px rgba(58, 124, 165, 0.45);
}
.card h3 { font-size: 1.12rem; font-weight: 700; color: var(--heading); margin-bottom: 12px; line-height: 1.7; }
.card p { color: var(--text); font-size: 0.93rem; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-weight: 700;
  margin-top: 18px;
  transition: gap 0.3s ease;
}
.card .card-link:hover { gap: 14px; }

/* ============ بطاقات بصورة ============ */
.line-card, .blog-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.5s var(--transition), box-shadow 0.5s ease, border-color 0.4s;
  display: flex;
  flex-direction: column;
}
.line-card:hover, .blog-card:hover {
  transform: translateY(-12px);
  border-color: rgba(58, 124, 165, 0.4);
  box-shadow: var(--card-shadow-hover);
}
.line-card .img-wrap, .blog-card .img-wrap {
  position: relative;
  height: 215px;
  overflow: hidden;
}
.line-card .img-wrap img, .blog-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--transition);
}
.line-card:hover .img-wrap img, .blog-card:hover .img-wrap img {
  transform: scale(1.12) rotate(1deg);
}
.line-card .img-wrap .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 36, 64, 0.7), transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.line-card .overlay .tag, .blog-card .date-badge {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 6px 15px;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(138, 38, 38, 0.4);
}
.blog-card .date-badge { position: absolute; top: 14px; right: 14px; }
.line-card .body, .blog-card .body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.line-card h3, .blog-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--heading); margin-bottom: 10px; line-height: 1.7; }
.blog-card h3 a:hover { color: var(--orange); transition: color 0.3s; }
.line-card p, .blog-card p { color: var(--text); font-size: 0.9rem; flex: 1; }
.blog-card .meta { color: #98a2b3; font-size: 0.82rem; font-weight: 500; margin-bottom: 8px; }
.blog-card .card-link { margin-top: 16px; color: var(--orange); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }

/* ============ الخط الزمني ============ */
.steps { background: transparent; }
.timeline { position: relative; max-width: 880px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  right: 31px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--amber), rgba(58, 124, 165, 0.08));
}
.timeline-item { position: relative; padding-right: 95px; padding-bottom: 48px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .t-num {
  position: absolute;
  right: 0;
  top: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--amber);
  color: var(--orange);
  font-weight: 800;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(58, 124, 165, 0.25);
  transition: var(--transition);
}
.timeline-item:hover .t-num {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #fff;
  transform: scale(1.14) rotate(360deg);
  box-shadow: 0 12px 34px rgba(22, 66, 91, 0.45);
}
.timeline-item h3 { font-size: 1.18rem; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.timeline-item p { color: var(--text); }

/* ============ شريط CTA ============ */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--navy), #1b3a63);
  color: #fff;
  text-align: center;
  border-radius: 28px;
  padding: 76px 40px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(15, 36, 64, 0.35);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(176, 53, 53, 0.3) 72%, rgba(127, 178, 208, 0.25) 86%, transparent 100%);
  animation: spin 9s linear infinite;
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(15, 36, 64, 0.92), rgba(27, 58, 99, 0.92));
  pointer-events: none;
}
.cta-band h2, .cta-band p, .cta-band a { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.75); margin-bottom: 30px; max-width: 620px; margin-inline: auto; }

/* ============ صفحات داخلية ============ */
.page-hero {
  position: relative;
  color: var(--heading);
  padding: 185px 0 85px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(127, 178, 208, 0.18), transparent 70%);
}
.page-hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  line-height: 1.6;
}
.page-hero .breadcrumb {
  position: relative;
  color: var(--text);
  font-weight: 500;
  font-size: 0.88rem;
  margin-top: 18px;
}
.page-hero .breadcrumb a:hover { color: var(--orange); }

/* ============ صفحة المقال ============ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}
.article-content {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 46px;
  box-shadow: var(--card-shadow);
}
.article-content .article-cover {
  border-radius: 16px;
  margin-bottom: 30px;
  width: 100%;
  height: 380px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.14);
}
.article-content h2 {
  color: var(--heading);
  font-weight: 800;
  font-size: 1.4rem;
  margin: 40px 0 16px;
  padding-right: 16px;
  border-right: 3px solid var(--amber);
  line-height: 1.7;
}
.article-content h3 { color: var(--orange); font-weight: 700; font-size: 1.12rem; margin: 28px 0 12px; }
.article-content p { color: var(--text); margin-bottom: 16px; font-size: 0.98rem; }
.article-content ul, .article-content ol { margin: 0 24px 20px 0; color: var(--text); }
.article-content ul { list-style: none; }
.article-content ul li { padding-right: 28px; position: relative; margin-bottom: 10px; }
.article-content ul li::before {
  content: '✔';
  position: absolute;
  right: 0;
  color: var(--amber);
  font-weight: 800;
}
.article-content ol { list-style: arabic-indic; padding-right: 20px; }
.article-content ol li { margin-bottom: 10px; padding-right: 8px; }
.article-content strong { color: var(--heading); }
.article-content blockquote {
  background: var(--amber-soft);
  border: 1px solid rgba(58, 124, 165, 0.25);
  border-right: 3px solid var(--amber);
  padding: 20px 24px;
  border-radius: 14px;
  margin: 26px 0;
  font-weight: 600;
  color: var(--heading);
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 0.92rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.article-content th {
  background: var(--navy);
  color: #fff;
  padding: 13px 16px;
  text-align: right;
}
.article-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--stroke);
  color: var(--text);
  background: var(--white);
}
.article-content tr:nth-child(even) td { background: #fafbfd; }
.article-meta-bar {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: #98a2b3;
  font-size: 0.88rem;
  font-weight: 500;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--stroke);
}

.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 110px; }
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
}
.sidebar-widget h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--amber);
  display: inline-block;
}
.sidebar-widget ul li { margin-bottom: 12px; }
.sidebar-widget ul a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.88rem;
  display: flex;
  gap: 8px;
  transition: color 0.3s, transform 0.3s;
}
.sidebar-widget ul a::before { content: '←'; color: var(--amber); order: 2; margin-right: auto; }
.sidebar-widget ul a:hover { color: var(--orange); transform: translateX(-6px); }
.sidebar-cta {
  text-align: center;
  background: linear-gradient(150deg, var(--navy), #1b3a63);
  border: none;
  color: #fff;
}
.sidebar-cta h3 { color: #fff; }
.sidebar-cta p { color: rgba(255, 255, 255, 0.75); font-size: 0.88rem; margin-bottom: 18px; }

/* ============ الأسئلة الشائعة ============ */
.faq-list { max-width: 840px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.faq-item.open {
  border-color: rgba(58, 124, 165, 0.5);
  box-shadow: var(--card-shadow-hover);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--heading);
  cursor: pointer;
  text-align: right;
  line-height: 1.7;
}
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amber-soft);
  border: 1px solid rgba(58, 124, 165, 0.35);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: transform 0.45s var(--transition), background 0.3s, color 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(135deg);
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff;
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.55s var(--transition); }
.faq-a p { padding: 0 26px 24px; color: var(--text); font-size: 0.95rem; }

/* ============ نموذج التواصل ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}
.contact-info-card {
  background: linear-gradient(150deg, var(--navy), #1b3a63);
  border-radius: var(--radius);
  color: #fff;
  padding: 42px 34px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 36, 64, 0.3);
}
.contact-info-card::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 178, 208, 0.25), transparent 70%);
  bottom: -110px;
  left: -90px;
  filter: blur(20px);
  animation: aurora-c 9s ease-in-out infinite alternate;
}
.contact-info-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 12px; }
.contact-info-card > p { color: rgba(255, 255, 255, 0.75); margin-bottom: 28px; }
.info-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; position: relative; z-index: 1; }
.info-row .i-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(127, 178, 208, 0.15);
  border: 1px solid rgba(127, 178, 208, 0.35);
  color: var(--amber-2);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.info-row strong { display: block; font-size: 0.92rem; color: #fff; }
.info-row span { color: rgba(255, 255, 255, 0.72); font-size: 0.88rem; direction: ltr; }
.info-row a:hover span { color: var(--amber-2); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 42px;
  box-shadow: var(--card-shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
  font-size: 0.88rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--stroke);
  border-radius: 14px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--heading);
  background: #fbfcfe;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #b6bfcc; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(58, 124, 165, 0.14);
}
.form-msg {
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  display: none;
}
.form-msg.ok { display: block; background: #e8f8ef; border: 1px solid #b3e6c8; color: #147a44; }
.form-msg.err { display: block; background: #fdeeec; border: 1px solid #f5c4bd; color: #c0392b; }

/* ============ التذييل ============ */
footer {
  position: relative;
  z-index: 2;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 74px 0 0;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-grid h4 { color: #fff; font-weight: 700; margin-bottom: 20px; font-size: 1rem; }
.footer-grid p { font-size: 0.88rem; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a { font-size: 0.88rem; transition: color 0.3s, padding 0.3s; }
.footer-grid ul a:hover { color: var(--amber-2); padding-right: 6px; }
.footer-grid .logo { color: #fff; }
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(43, 208, 102, 0.14);
  border: 1px solid rgba(43, 208, 102, 0.4);
  color: #7ce8a5;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 30px;
  transition: background 0.3s, transform 0.3s;
}
.wa-link:hover { background: rgba(43, 208, 102, 0.25); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ============ زر العودة للأعلى ============ */
#to-top {
  position: fixed;
  bottom: 26px;
  left: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--stroke);
  color: var(--orange);
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}
#to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#to-top:hover {
  transform: translateY(-6px);
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(176, 53, 53, 0.4);
}

/* ============ أنيميشن الظهور ============ */
.reveal {
  opacity: 0;
  transform: translateY(55px) scale(0.98);
  filter: blur(8px);
  transition: opacity 0.9s ease, transform 0.9s var(--transition), filter 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

.reveal-right { opacity: 0; transform: translateX(75px); filter: blur(6px); transition: all 1s var(--transition); }
.reveal-left { opacity: 0; transform: translateX(-75px); filter: blur(6px); transition: all 1s var(--transition); }
.reveal-right.visible, .reveal-left.visible { opacity: 1; transform: translateX(0); filter: blur(0); }

.reveal-zoom { opacity: 0; transform: scale(0.85); filter: blur(8px); transition: all 0.9s var(--transition); }
.reveal-zoom.visible { opacity: 1; transform: scale(1); filter: blur(0); }

.reveal-flip {
  opacity: 0;
  transform: perspective(1000px) rotateX(-24deg) translateY(45px);
  transition: all 1s var(--transition);
}
.reveal-flip.visible { opacity: 1; transform: perspective(1000px) rotateX(0) translateY(0); }

.d-1 { transition-delay: 0.08s; }
.d-2 { transition-delay: 0.18s; }
.d-3 { transition-delay: 0.28s; }
.d-4 { transition-delay: 0.38s; }
.d-5 { transition-delay: 0.48s; }
.d-6 { transition-delay: 0.58s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-right, .reveal-left, .reveal-zoom, .reveal-flip {
    opacity: 1;
    transform: none;
    filter: none;
  }
  #cursor-glow, .aurora { display: none; }
}

/* ============ التجاوب ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 560px; margin-inline: auto; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  #menu-toggle { display: block; }
  header .nav-wrap {
    border-radius: 26px;
    /* backdrop-filter على الأب يحبس الطبقة الثابتة داخل الكبسولة — نعطله على الجوال */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.97);
  }
  nav {
    position: fixed;
    inset: 0;
    z-index: 2050;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 96px 20px 40px;
    clip-path: circle(0% at 46px 46px);
    transition: clip-path 0.65s var(--transition);
  }
  nav.open { clip-path: circle(160% at 46px 46px); }
  [dir="ltr"] nav { clip-path: circle(0% at calc(100% - 46px) 46px); }
  [dir="ltr"] nav.open { clip-path: circle(160% at calc(100% - 46px) 46px); }
  nav ul { flex-direction: column; text-align: center; gap: 16px; width: 100%; }
  nav a { font-size: 1.15rem; display: block; padding: 10px 14px; }
  .lang-item { width: 100%; }
  .lang-switch { font-size: 1rem; padding: 10px 22px; }
  .lang-drop { margin-top: 8px; gap: 4px; }
  .lang-drop a { font-size: 1.05rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .hero-stack { padding: 20px 10px 30px; }
  .hero-stack .main-img { height: 300px; width: 94%; }
  .mini-img { width: 130px; height: 100px; }
  .mini-1 { right: -4px; }
  .mini-2 { left: -4px; }
  .orbit-dot { display: none; }
  .hero-ring { animation: none; inset: 2px; }
  .article-content { padding: 28px 20px; }
  .timeline::before { right: 25px; }
  .timeline-item { padding-right: 74px; }
  .timeline-item .t-num { width: 52px; height: 52px; font-size: 1.05rem; }
  section { padding: 64px 0; }
  #cursor-glow { display: none; }
  #wa-float { width: 54px; height: 54px; bottom: 20px; right: 20px; }
  #wa-float svg { width: 28px; height: 28px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual .main-img { height: 280px; }
}

/* ============ مبدّل اللغات (قائمة منسدلة لست لغات) ============ */
.lang-item { position: relative; }
.lang-switch {
  border: 1.5px solid var(--stroke);
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 30px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.lang-switch:hover { border-color: var(--amber); color: var(--orange); }
.lang-drop {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.16);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 2200;
}
/* جسر تحويم غير مرئي يملأ الفجوة بين الزر والقائمة فلا تُغلق أثناء تحريك المؤشر */
.lang-drop::before {
  content: '';
  position: absolute;
  bottom: 100%;
  inset-inline: 0;
  height: 10px;
}
@media (min-width: 769px) {
  .lang-item:hover .lang-drop,
  .lang-item:focus-within .lang-drop { display: flex; }
}
.lang-item.open .lang-drop { display: flex; }
.lang-drop li { list-style: none; }
.lang-drop a {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.lang-drop a:hover { background: var(--amber-soft); color: var(--orange); }
/* داخل قائمة الجوال العمودية تظهر القائمة مضمّنة */
@media (max-width: 768px) {
  .lang-drop {
    position: static;
    box-shadow: none;
    border: none;
    display: none;
    background: transparent;
  }
  .lang-item.open .lang-drop { display: flex; }
}

/* ============ تجاوزات الاتجاه للنسخة الإنجليزية (LTR) ============ */
[dir="ltr"] body { line-height: 1.8; }
[dir="ltr"] #progress-bar { left: 0; right: auto; }
[dir="ltr"] .faq-q { text-align: left; }
[dir="ltr"] .article-content h2 {
  padding-right: 0;
  padding-left: 16px;
  border-right: none;
  border-left: 3px solid var(--amber);
}
[dir="ltr"] .article-content ul,
[dir="ltr"] .article-content ol { margin: 0 0 20px 24px; }
[dir="ltr"] .article-content ul li { padding-right: 0; padding-left: 28px; }
[dir="ltr"] .article-content ul li::before { right: auto; left: 0; }
[dir="ltr"] .article-content ol { list-style: decimal; padding-right: 0; padding-left: 20px; }
[dir="ltr"] .article-content ol li { padding-right: 0; padding-left: 8px; }
[dir="ltr"] .article-content th { text-align: left; }
[dir="ltr"] .article-content blockquote {
  border-right: 1px solid rgba(58, 124, 165, 0.25);
  border-left: 3px solid var(--amber);
}
[dir="ltr"] .timeline::before { right: auto; left: 31px; }
[dir="ltr"] .timeline-item { padding-right: 0; padding-left: 95px; }
[dir="ltr"] .timeline-item .t-num { right: auto; left: 0; }
[dir="ltr"] .sidebar-widget ul a::before { content: '→'; margin-right: 0; margin-left: auto; }
[dir="ltr"] .sidebar-widget ul a:hover { transform: translateX(6px); }
[dir="ltr"] .footer-grid ul a:hover { padding-right: 0; padding-left: 6px; }
[dir="ltr"] .marquee-track { animation-name: marquee-ltr; }
@keyframes marquee-ltr { to { transform: translateX(-50%); } }
[dir="ltr"] .info-row span { direction: ltr; }
@media (max-width: 768px) {
  [dir="ltr"] .timeline::before { left: 25px; }
  [dir="ltr"] .timeline-item { padding-left: 74px; }
}

@keyframes spin { to { transform: rotate(360deg); } }
