/* ==========================================================================
   SOS HOME PAGE UPGRADE STYLESHEET
   Based on Home page.txt & Brand Guidelines
   - Primary Dark Blue: #0E2741
   - Brand Blue: #1A5FA8
   - Section Background Light Grey: #F4F7FB
   - Typography: Tajawal ExtraBold (800) for Headings, Medium/Regular for Body
   ========================================================================== */

:root {
  --sos-navy-dark: #0E2741;
  --sos-blue-accent: #1A5FA8;
  --sos-blue-hover: #154e8c;
  --sos-cyan-glow: #37B0E5;
  --sos-bg-light: #F4F7FB;
  --sos-card-bg-light: #FFFFFF;
  --sos-card-border-light: rgba(14, 39, 65, 0.08);
  --sos-text-dark: #0E2741;
  --sos-text-muted-light: #5E6378;
}

[data-theme="dark"] {
  --sos-bg-light: #081726;
  --sos-card-bg-light: #0d2238;
  --sos-card-border-light: rgba(55, 176, 229, 0.15);
  --sos-text-dark: #FFFFFF;
  --sos-text-muted-light: #FFFFFF;
}

/* Global Typography Overrides for Home Page Elements */
.sos-home-title {
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 800 !important;
  color: var(--sos-text-dark);
  line-height: 1.25;
}

.sos-home-desc {
  font-family: 'Tajawal', sans-serif;
  font-weight: 400;
  color: var(--sos-text-muted-light);
  line-height: 1.75;
}

/* Strict LTR for Numbers & Percentages to prevent Arabic reversals */
.sos-ltr-num,
[dir="ltr"] {
  direction: ltr !important;
  unicode-bidi: isolate;
  display: inline-block;
}

/* ==========================================================================
   1. HERO SECTION ENHANCEMENTS
   ========================================================================== */
.sos-hero {
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  overflow: hidden !important;
  padding-top: clamp(5.25rem, 8.5vh, 7rem) !important;
  padding-bottom: clamp(4.5rem, 7.5vh, 6.25rem) !important;
}

.sos-hero__content {
  position: relative !important;
  z-index: 10 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  max-width: 980px !important;
  width: 100% !important;
}

.sos-hero__video-bg {
  object-fit: cover;
  object-position: center center;
  image-rendering: high-quality;
  image-rendering: -webkit-optimize-contrast;
}

.sos-hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(14, 39, 65, 0.48) 0%,
    rgba(14, 39, 65, 0.62) 60%,
    rgba(14, 39, 65, 0.82) 100%
  ) !important;
  transition: background 0.3s ease;
}

[data-theme="light"] .sos-hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(14, 39, 65, 0.48) 0%,
    rgba(14, 39, 65, 0.62) 60%,
    rgba(14, 39, 65, 0.82) 100%
  ) !important;
}

[data-theme="light"] .sos-hero__title {
  color: #FFFFFF !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="light"] .sos-hero__subtitle {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="light"] .sos-hero-badge {
  background: rgba(26, 95, 168, 0.35) !important;
  border-color: rgba(55, 176, 229, 0.45) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .sos-hero-badge__dot {
  background: #37B0E5 !important;
  box-shadow: 0 0 10px #37B0E5 !important;
}

.sos-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(26, 95, 168, 0.35);
  border: 1px solid rgba(55, 176, 229, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.sos-hero-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #37B0E5;
  box-shadow: 0 0 10px #37B0E5;
  animation: heroDotPulse 2s infinite ease-in-out;
}

@keyframes heroDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.sos-hero__title {
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(2.1rem, 3.6vw, 3.5rem) !important;
  line-height: 1.2 !important;
  color: #FFFFFF !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  margin-bottom: clamp(0.85rem, 1.4vh, 1.15rem) !important;
}

.sos-hero__subtitle {
  font-family: 'Tajawal', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.2vw, 1.2rem) !important;
  line-height: 1.75 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  max-width: 820px;
  margin-bottom: clamp(1.35rem, 2.2vh, 1.85rem) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sos-hero__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.4rem, 2.4vh, 2rem) !important;
}

.sos-btn-brand-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--sos-blue-accent);
  color: #FFFFFF !important;
  padding: 0.85rem 1.85rem;
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(26, 95, 168, 0.35);
  transition: all 0.28s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sos-btn-brand-primary svg {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.sos-btn-brand-primary:hover {
  background: var(--sos-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(26, 95, 168, 0.5);
  color: #FFFFFF !important;
}

.sos-btn-brand-primary:hover svg {
  transform: translateX(4px);
}

html[dir="rtl"] .sos-btn-brand-primary svg,
html[lang="ar"] .sos-btn-brand-primary svg,
body.rtl-mode .sos-btn-brand-primary svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .sos-btn-brand-primary:hover svg,
html[lang="ar"] .sos-btn-brand-primary:hover svg,
body.rtl-mode .sos-btn-brand-primary:hover svg {
  transform: scaleX(-1) translateX(4px);
}

.sos-btn-brand-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF !important;
  padding: 0.85rem 1.85rem;
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: all 0.28s ease;
}

.sos-btn-brand-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
  transform: translateY(-2px);
  color: #FFFFFF !important;
}

[data-theme="light"] .sos-btn-brand-outline {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .sos-btn-brand-outline:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   Floating Hero Numbers Strip - Next-Gen Glassmorphic Ribbon & FX
   ========================================================================== */
.sos-hero__stats-strip {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: clamp(0.6rem, 1.2vw, 0.85rem) !important;
  background: linear-gradient(135deg, rgba(8, 22, 42, 0.85) 0%, rgba(13, 33, 60, 0.8) 50%, rgba(10, 26, 46, 0.88) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.32) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-radius: 20px !important;
  padding: clamp(0.85rem, 1.4vw, 1.15rem) clamp(1rem, 1.6vw, 1.35rem) !important;
  margin: clamp(0.75rem, 1.6vh, 1.35rem) auto 0 auto !important;
  position: relative !important;
  z-index: 10 !important;
  width: 100% !important;
  max-width: 960px !important;
  box-shadow: 
    0 22px 50px -10px rgba(0, 0, 0, 0.6),
    0 0 35px rgba(14, 165, 233, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.28) !important;
  overflow: hidden !important;
}

[data-theme="light"] .sos-hero__stats-strip {
  background: linear-gradient(135deg, rgba(12, 35, 62, 0.92) 0%, rgba(16, 44, 76, 0.88) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 
    0 22px 50px -10px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(14, 165, 233, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
}

/* Subtle Top Accent Glow Line */
.sos-hero__stats-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), #00e5ff, #38bdf8, rgba(56, 189, 248, 0.4), transparent);
  box-shadow: 0 0 14px #00e5ff;
  opacity: 0.95;
  z-index: 2;
  pointer-events: none;
}

/* Traveling Specular Light Sheen */
.sos-hero__stats-strip::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -70%;
  width: 45%;
  height: 220%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 20%,
    rgba(56, 189, 248, 0.16) 50%,
    rgba(255, 255, 255, 0.08) 70%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: sosStatsSheenSweep 9s ease-in-out infinite;
  z-index: 2;
}

@keyframes sosStatsSheenSweep {
  0%, 15% {
    left: -70%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  45% {
    left: 140%;
    opacity: 0.9;
  }
  50%, 100% {
    left: 140%;
    opacity: 0;
  }
}

/* Ambient Cursor Glow Layer */
.sos-hero__stats-glow {
  position: absolute !important;
  inset: 0 !important;
  border-radius: 20px !important;
  background: radial-gradient(380px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(56, 189, 248, 0.15), transparent 75%) !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
  z-index: 1 !important;
}

.sos-hero__stats-strip:hover .sos-hero__stats-glow {
  opacity: 1 !important;
}

/* Individual Stat Card Pod */
.sos-hero__stat-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0.75rem 1rem !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  position: relative !important;
  z-index: 3 !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.sos-hero__stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 15%, rgba(56, 189, 248, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.sos-hero__stat-item:hover {
  background: rgba(56, 189, 248, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.38) !important;
  transform: translateY(-4px) !important;
  box-shadow: 
    0 12px 28px -6px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(56, 189, 248, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.sos-hero__stat-item:hover::before {
  opacity: 1;
}

/* Stat Content Container */
.sos-hero__stat-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

/* Luminous Micro-Icon Badge */
.sos-hero__stat-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  margin-bottom: 0.5rem !important;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative !important;
}

.sos-stat-icon--water {
  background: rgba(14, 165, 233, 0.16) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25) !important;
}

.sos-hero__stat-item:hover .sos-stat-icon--water {
  transform: scale(1.15) !important;
  color: #00e5ff !important;
  border-color: #00e5ff !important;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.55) !important;
}

.sos-stat-icon--safety {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25) !important;
}

.sos-hero__stat-item:hover .sos-stat-icon--safety {
  transform: scale(1.15) !important;
  color: #6ee7b7 !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.55) !important;
}

.sos-stat-icon--uptime {
  background: rgba(56, 189, 248, 0.16) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25) !important;
}

.sos-hero__stat-item:hover .sos-stat-icon--uptime {
  transform: scale(1.15) rotate(12deg) !important;
  color: #00e5ff !important;
  border-color: #00e5ff !important;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.55) !important;
}

/* Stat Numbers & Gradient Glow */
.sos-hero__stat-num {
  font-family: 'Tajawal', 'Outfit', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(1.55rem, 2.1vw, 2.2rem) !important;
  line-height: 1.15 !important;
  margin-bottom: 0.3rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  justify-content: center !important;
  direction: ltr !important;
  unicode-bidi: isolate;
  color: #FFFFFF !important;
}

html[dir="rtl"] .sos-hero__stat-num,
html[lang="ar"] .sos-hero__stat-num,
body.rtl-mode .sos-hero__stat-num {
  direction: rtl !important;
}

.sos-counter-number {
  background: linear-gradient(135deg, #FFFFFF 15%, #E0F2FE 45%, #7DD3FC 75%, #38BDF8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 12px rgba(56, 189, 248, 0.42)) !important;
  font-variant-numeric: tabular-nums !important;
  display: inline-block;
  direction: ltr !important;
  transition: filter 0.35s ease, transform 0.35s ease !important;
}

.sos-hero__stat-item:hover .sos-counter-number {
  filter: drop-shadow(0 2px 20px rgba(0, 229, 255, 0.75)) !important;
}

/* Unit Badge (m³/day / م³/يوم) */
.sos-hero__stat-unit {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  -webkit-text-fill-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.14) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  padding: 0.15rem 0.5rem !important;
  border-radius: 6px !important;
  letter-spacing: 0.02em;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.3 !important;
  transition: all 0.3s ease !important;
}

.sos-hero__stat-item:hover .sos-hero__stat-unit {
  background: rgba(56, 189, 248, 0.25) !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
  color: #E0F2FE !important;
  -webkit-text-fill-color: #E0F2FE !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35) !important;
}

/* Multi-Ring Live Pulse Beacon for 100% Operational Readiness */
.sos-stat-pulse-beacon {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  height: 14px !important;
  margin-inline-start: 6px !important;
  vertical-align: middle !important;
}

.sos-beacon-core {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981, 0 0 16px rgba(16, 185, 129, 0.8);
  z-index: 2;
}

.sos-beacon-ring {
  position: absolute;
  inset: -3px;
  border: 2px solid #10B981;
  border-radius: 50%;
  animation: sosBeaconRadar 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  z-index: 1;
}

@keyframes sosBeaconRadar {
  0% {
    transform: scale(0.7);
    opacity: 0.95;
  }
  60% {
    opacity: 0.4;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* Stat Label */
.sos-hero__stat-lbl {
  font-family: 'Tajawal', sans-serif !important;
  font-size: clamp(0.82rem, 0.92vw, 0.88rem) !important;
  font-weight: 500 !important;
  color: rgba(224, 242, 254, 0.9) !important;
  line-height: 1.4 !important;
  max-width: 240px !important;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
  transition: color 0.3s ease !important;
}

.sos-hero__stat-item:hover .sos-hero__stat-lbl {
  color: #FFFFFF !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="light"] .sos-hero__stat-lbl {
  color: rgba(224, 242, 254, 0.92) !important;
}

/* Number Counter Completion Celebration Micro-Pulse */
.sos-counter--completed {
  animation: sosStatImpactGleam 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes sosStatImpactGleam {
  0% {
    transform: scale(0.96);
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 22px rgba(0, 229, 255, 0.85)) !important;
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 2px 12px rgba(56, 189, 248, 0.42)) !important;
  }
}

/* Laptop & Short-Viewport Height Optimization (e.g. 1366x768, 1440x900, 1536x864, 1280x800) */
@media (max-height: 820px) and (min-width: 681px) {
  .sos-hero {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding-top: calc(75px + 0.85rem) !important;
    padding-bottom: 1.5rem !important;
    justify-content: center !important;
  }
  .sos-hero-badge {
    margin-bottom: 0.65rem !important;
    padding: 0.3rem 0.95rem !important;
    font-size: 0.85rem !important;
  }
  .sos-hero__title {
    font-size: clamp(1.85rem, 2.7vw, 2.5rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 0.65rem !important;
  }
  .sos-hero__subtitle {
    font-size: clamp(0.92rem, 1.1vw, 1.05rem) !important;
    line-height: 1.55 !important;
    margin-bottom: 0.95rem !important;
    max-width: 780px !important;
  }
  .sos-hero__actions {
    margin-bottom: 0.85rem !important;
    gap: 0.85rem !important;
  }
  .sos-btn-brand-primary,
  .sos-btn-brand-outline {
    padding: 0.65rem 1.45rem !important;
    font-size: 0.96rem !important;
  }
  .sos-hero__stats-strip {
    margin-top: 0.45rem !important;
    padding: 0.65rem 1rem !important;
    border-radius: 16px !important;
  }
  .sos-hero__stat-item {
    padding: 0.5rem 0.75rem !important;
  }
  .sos-hero__stat-icon {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 0.25rem !important;
  }
  .sos-hero__stat-num {
    font-size: clamp(1.3rem, 1.8vw, 1.6rem) !important;
    margin-bottom: 0.15rem !important;
  }
  .sos-hero__stat-lbl {
    font-size: 0.76rem !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 1024px) {
  .sos-hero {
    padding-top: calc(75px + 1.25rem) !important;
    padding-bottom: 2.75rem !important;
    height: auto !important;
    min-height: 100svh !important;
  }
  .sos-hero__title {
    font-size: clamp(1.95rem, 3.6vw, 2.65rem) !important;
  }
  .sos-hero__subtitle {
    font-size: 1.02rem !important;
    line-height: 1.65 !important;
  }
  .sos-hero__stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
    padding: 0.75rem 0.85rem !important;
    max-width: 100% !important;
  }
  .sos-hero__stat-item {
    padding: 0.65rem 0.55rem !important;
  }
  .sos-hero__stat-num {
    font-size: clamp(1.35rem, 2vw, 1.65rem) !important;
  }
  .sos-hero__stat-lbl {
    font-size: clamp(0.74rem, 1.1vw, 0.82rem) !important;
    line-height: 1.35 !important;
  }
  .sos-hero__stat-icon {
    width: 34px !important;
    height: 34px !important;
    margin-bottom: 0.35rem !important;
  }
}

@media (max-width: 680px) {
  .sos-hero {
    height: auto !important;
    min-height: 100svh !important;
    min-height: 100dvh !important;
    justify-content: center !important;
    padding-top: calc(72px + max(0.85rem, env(safe-area-inset-top, 0px))) !important;
    padding-bottom: max(2.5rem, calc(2rem + env(safe-area-inset-bottom, 0px))) !important;
    padding-left: max(1rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(1rem, env(safe-area-inset-right, 0px)) !important;
  }

  .sos-hero-badge {
    font-size: 0.84rem !important;
    padding: 0.35rem 0.9rem !important;
    margin-bottom: 0.85rem !important;
  }

  .sos-hero__title {
    font-size: clamp(1.75rem, 6.8vw, 2.15rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 0.85rem !important;
    text-align: start !important;
  }

  [dir="rtl"] .sos-hero__title,
  html[lang="ar"] .sos-hero__title,
  body.rtl-mode .sos-hero__title {
    text-align: right !important;
  }

  .sos-hero__subtitle {
    font-size: clamp(0.92rem, 3.6vw, 1.02rem) !important;
    line-height: 1.7 !important;
    margin-bottom: 1.35rem !important;
    text-align: start !important;
  }

  [dir="rtl"] .sos-hero__subtitle,
  html[lang="ar"] .sos-hero__subtitle,
  body.rtl-mode .sos-hero__subtitle {
    text-align: right !important;
  }

  .sos-hero__actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
    margin-bottom: 1.35rem !important;
  }

  .sos-btn-brand-primary,
  .sos-btn-brand-outline {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
  }

  .sos-hero__stats-strip {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
    padding: 0.75rem 0.85rem !important;
    border-radius: 16px !important;
    max-width: 100% !important;
    margin: 0.85rem auto 0 auto !important;
  }

  .sos-hero__stat-item:not(:last-child)::after {
    display: none !important;
  }

  .sos-hero__stat-item {
    padding: 0.75rem 0.95rem !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: start !important;
    gap: 0.85rem !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
  }

  [dir="rtl"] .sos-hero__stat-item,
  html[lang="ar"] .sos-hero__stat-item,
  body.rtl-mode .sos-hero__stat-item {
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: right !important;
  }

  .sos-hero__stat-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .sos-hero__stat-icon {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }

  .sos-hero__stat-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-align: start !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  [dir="rtl"] .sos-hero__stat-content,
  html[lang="ar"] .sos-hero__stat-content,
  body.rtl-mode .sos-hero__stat-content {
    align-items: flex-start !important;
    text-align: right !important;
  }

  .sos-hero__stat-num {
    font-size: clamp(1.25rem, 4.5vw, 1.45rem) !important;
    margin-bottom: 0.15rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    justify-content: flex-start !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
  }

  [dir="rtl"] .sos-hero__stat-num,
  html[lang="ar"] .sos-hero__stat-num,
  body.rtl-mode .sos-hero__stat-num {
    direction: rtl !important;
    justify-content: flex-start !important;
  }

  .sos-hero__stat-lbl {
    font-size: clamp(0.76rem, 2.8vw, 0.82rem) !important;
    max-width: 100% !important;
    text-align: start !important;
    line-height: 1.35 !important;
  }

  [dir="rtl"] .sos-hero__stat-lbl,
  html[lang="ar"] .sos-hero__stat-lbl,
  body.rtl-mode .sos-hero__stat-lbl {
    text-align: right !important;
  }
}

@media (max-width: 380px) {
  .sos-hero__title {
    font-size: 1.55rem !important;
  }

  .sos-hero__subtitle {
    font-size: 0.88rem !important;
  }

  .sos-hero__stat-num {
    font-size: 1.2rem !important;
  }

  .sos-hero__stat-unit {
    font-size: 0.72rem !important;
    padding: 0.1rem 0.35rem !important;
  }
}

/* ==========================================================================
   2. SECTION 2: ABOUT US (من نحن)
   ========================================================================== */
.sos-section-about-upgraded {
  padding: 6rem 0;
  background: var(--sos-card-bg-light);
  position: relative;
  overflow: hidden;
}

.sos-about-upgraded-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .sos-about-upgraded-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.sos-about-media-box {
  position: relative;
  border-radius: 20px;
  overflow: visible;
}

.sos-about-media-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(14, 39, 65, 0.16);
  border: 1px solid var(--sos-card-border-light);
  display: block;
}

.sos-about-badge-card {
  position: absolute;
  bottom: -20px;
  inset-inline-start: 24px;
  background: var(--sos-navy-dark);
  color: #FFFFFF;
  padding: 1.25rem 1.6rem;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(14, 39, 65, 0.35);
  border: 1.5px solid rgba(55, 176, 229, 0.4);
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(10px);
}

.sos-about-badge-card__num {
  font-family: 'Tajawal', 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #37B0E5;
  line-height: 1;
  direction: ltr !important;
}

.sos-about-badge-card__text {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #FFFFFF;
  max-width: 160px;
}

.sos-section-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(26, 95, 168, 0.1);
  color: var(--sos-blue-accent);
  border-radius: 9999px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

[data-theme="dark"] .sos-section-pill-tag {
  background: rgba(55, 176, 229, 0.15);
  color: #37B0E5;
}

.sos-about-content-box h2 {
  font-size: clamp(1.85rem, 2.6vw, 2.5rem);
  margin-bottom: 1.35rem;
}

.sos-about-content-box p {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

/* ==========================================================================
   3. SECTION 3: SERVICES (خدماتنا)
   ========================================================================== */
.sos-section-services-upgraded {
  padding: 6rem 0;
  background: var(--sos-bg-light);
  position: relative;
}

.sos-services-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

@media (max-width: 1100px) {
  .sos-services-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .sos-services-cards-grid {
    grid-template-columns: 1fr;
  }
}

.sos-service-card-item {
  background: var(--sos-card-bg-light);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--sos-card-border-light);
  box-shadow: 0 10px 30px rgba(14, 39, 65, 0.05);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.sos-service-card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(26, 95, 168, 0.16);
  border-color: rgba(26, 95, 168, 0.3);
}

.sos-service-card-item__img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #0E2741;
}

.sos-service-card-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sos-service-card-item:hover .sos-service-card-item__img-wrap img {
  transform: scale(1.08);
}

.sos-service-num-badge {
  display: none !important;
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: var(--sos-navy-dark);
  color: #FFFFFF;
  border: 1px solid rgba(55, 176, 229, 0.4);
  font-family: 'Tajawal', 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sos-service-card-item__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sos-service-card-item__title {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: var(--sos-text-dark);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.sos-service-card-item__desc {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.96rem;
  font-weight: 400;
  color: var(--sos-text-muted-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.sos-service-card-item__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sos-blue-accent);
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
}

.sos-service-card-item__link:hover {
  color: var(--sos-blue-hover);
  gap: 0.75rem;
}

/* ==========================================================================
   4. SECTION 4: EXPERTISE (خبراتنا)
   ========================================================================== */
.sos-section-expertise-upgraded {
  padding: 6rem 0;
  background: var(--sos-navy-dark);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.sos-expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .sos-expertise-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.sos-expertise-media-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(55, 176, 229, 0.25);
}

.sos-expertise-media-box img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.sos-expertise-content-box h2 {
  color: #FFFFFF !important;
  font-size: clamp(1.85rem, 2.6vw, 2.5rem);
  margin-bottom: 1.35rem;
}

.sos-expertise-content-box p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.sos-expertise-stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .sos-expertise-stats-cards {
    grid-template-columns: 1fr;
  }
}

.sos-expertise-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(55, 176, 229, 0.25);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.sos-expertise-stat-card__val {
  font-family: 'Tajawal', 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #37B0E5;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  direction: ltr !important;
  unicode-bidi: isolate;
}

.sos-expertise-stat-card__lbl {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}

.sos-certifications-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 2.25rem;
}

.sos-certifications-strip__title {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: #FFFFFF;
}

.sos-cert-tag {
  background: rgba(55, 176, 229, 0.15);
  border: 1px solid rgba(55, 176, 229, 0.3);
  color: #37B0E5;
  font-family: 'Tajawal', 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

/* ==========================================================================
   5. SECTION 5: SUSTAINABILITY & CSR (الاستدامة والمسؤولية المجتمعية)
   ========================================================================== */
.sos-section-sustainability-upgraded {
  padding: 6rem 0;
  background: var(--sos-bg-light);
  position: relative;
}

.sos-sustainability-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

@media (max-width: 992px) {
  .sos-sustainability-cards-grid {
    grid-template-columns: 1fr;
  }
}

.sos-sustainability-card {
  background: var(--sos-card-bg-light);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--sos-card-border-light);
  box-shadow: 0 10px 30px rgba(14, 39, 65, 0.06);
  transition: all 0.32s ease;
  display: flex;
  flex-direction: column;
}

.sos-sustainability-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(26, 95, 168, 0.15);
}

.sos-sustainability-card__media {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.sos-sustainability-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sos-sustainability-card:hover .sos-sustainability-card__media img {
  transform: scale(1.06);
}

.sos-sustainability-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sos-sustainability-card__title {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  color: var(--sos-text-dark);
  margin-bottom: 0.85rem;
}

.sos-sustainability-card__desc {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.98rem;
  color: var(--sos-text-muted-light);
  line-height: 1.75;
}

/* ==========================================================================
   6. SECTION 6: NEWS (الأخبار) - MOVING TICKER (RIGHT TO LEFT, PAUSE ON HOVER)
   ========================================================================== */
.sos-section-news-upgraded {
  padding: 6rem 0;
  background: var(--sos-bg-light);
  position: relative;
  overflow: hidden;
}

/* Header & Controls toolbar */
.sos-news-header-wrap {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.sos-section-news-upgraded .sos-section-pill-tag,
#news .sos-section-pill-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.45rem 1.15rem !important;
  border-radius: 999px !important;
  background: rgba(26, 95, 168, 0.08) !important;
  color: #1A5FA8 !important;
  border: 1px solid rgba(26, 95, 168, 0.22) !important;
  font-family: 'Tajawal', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  margin-bottom: 1.25rem !important;
  letter-spacing: 0.02em;
}

.sos-section-news-upgraded .sos-section-pill-tag svg,
#news .sos-section-pill-tag svg {
  stroke: #1A5FA8 !important;
  color: #1A5FA8 !important;
}

[data-theme="dark"] .sos-section-news-upgraded .sos-section-pill-tag,
[data-theme="dark"] #news .sos-section-pill-tag {
  background: rgba(55, 176, 229, 0.15) !important;
  color: #37B0E5 !important;
  border-color: rgba(55, 176, 229, 0.35) !important;
}

[data-theme="dark"] .sos-section-news-upgraded .sos-section-pill-tag svg,
[data-theme="dark"] #news .sos-section-pill-tag svg {
  stroke: #37B0E5 !important;
  color: #37B0E5 !important;
}

.sos-section-news-upgraded .sos-home-title,
#news .sos-home-title {
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 800 !important;
  color: #000000 !important;
  line-height: 1.25 !important;
}

[data-theme="dark"] .sos-section-news-upgraded .sos-home-title,
[data-theme="dark"] #news .sos-home-title {
  color: #FFFFFF !important;
}

.sos-news-marquee-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto 1rem;
  padding: 0 1rem;
}

.sos-news-marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(26, 95, 168, 0.08);
  border: 1px solid rgba(26, 95, 168, 0.2);
  color: var(--sos-blue-accent);
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.sos-news-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: sosPulseDot 2s infinite;
}

@keyframes sosPulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.sos-news-marquee-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sos-news-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF !important;
  border: 1px solid rgba(14, 39, 65, 0.12) !important;
  color: #0E2741 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(14, 39, 65, 0.06);
}

.sos-news-nav-btn svg {
  stroke: #0E2741 !important;
  color: #0E2741 !important;
  transition: stroke 0.25s ease;
}

.sos-news-nav-btn:hover {
  background: #1A5FA8 !important;
  color: #FFFFFF !important;
  border-color: #1A5FA8 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 95, 168, 0.3);
}

.sos-news-nav-btn:hover svg {
  stroke: #FFFFFF !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .sos-news-nav-btn {
  background: #0d2238 !important;
  border: 1px solid rgba(55, 176, 229, 0.25) !important;
  color: #38BDF8 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .sos-news-nav-btn svg {
  stroke: #38BDF8 !important;
  color: #38BDF8 !important;
}

[data-theme="dark"] .sos-news-nav-btn:hover {
  background: #38BDF8 !important;
  color: #0E2741 !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.4);
}

[data-theme="dark"] .sos-news-nav-btn:hover svg {
  stroke: #0E2741 !important;
  color: #0E2741 !important;
}

/* Horizontal Moving Marquee Viewport */
.sos-news-marquee-viewport {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  padding: 1.5rem 0 2rem;
  direction: ltr !important;
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  cursor: grab;
}

.sos-news-marquee-viewport:active {
  cursor: grabbing;
}

.sos-news-marquee-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 2rem !important;
  width: max-content !important;
  direction: ltr !important;
  animation: sosNewsMarqueeScroll 35s linear infinite !important;
  will-change: transform;
}

/* PAUSE ON MOUSE HOVER: "STOP WHILE PUT THE MOUSE, MOVE WHILE REMOVE THE MOUSE" */
.sos-news-marquee-viewport:hover .sos-news-marquee-track,
.sos-news-marquee-track:hover,
.sos-news-card-upgraded:hover,
.sos-news-marquee-track.is-paused {
  animation-play-state: paused !important;
}

/* Infinite continuous right-to-left translation */
@keyframes sosNewsMarqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.sos-news-card-upgraded {
  flex: 0 0 380px !important;
  width: 380px !important;
  max-width: 380px !important;
  min-width: 380px !important;
  background: var(--sos-card-bg-light);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--sos-card-border-light);
  box-shadow: 0 10px 28px rgba(14, 39, 65, 0.06);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-sizing: border-box;
}

/* Internal Card Text Direction: Keep Arabic RTL and English LTR inside cards */
html[lang="ar"] .sos-news-card-upgraded,
html[dir="rtl"] .sos-news-card-upgraded,
body.rtl-mode .sos-news-card-upgraded {
  direction: rtl !important;
  text-align: right !important;
}

html[lang="en"] .sos-news-card-upgraded,
html[dir="ltr"] .sos-news-card-upgraded,
body.ltr-mode .sos-news-card-upgraded {
  direction: ltr !important;
  text-align: left !important;
}

.sos-news-card-upgraded:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 22px 48px rgba(26, 95, 168, 0.18);
  border-color: rgba(26, 95, 168, 0.35);
}

@media (max-width: 768px) {
  .sos-news-card-upgraded {
    flex: 0 0 min(310px, 86vw) !important;
    width: min(310px, 86vw) !important;
    max-width: min(310px, 86vw) !important;
    min-width: 0 !important;
  }
  .sos-news-marquee-toolbar {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}

.sos-news-card-upgraded__thumb {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #0E2741;
}

.sos-news-card-upgraded__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sos-news-card-upgraded:hover .sos-news-card-upgraded__thumb img {
  transform: scale(1.08);
}

.sos-news-tag-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: var(--sos-navy-dark);
  color: #FFFFFF;
  border: 1px solid rgba(55, 176, 229, 0.4);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
}

.sos-news-date-badge {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 14px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
}

.sos-news-card-upgraded__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sos-news-card-upgraded__title {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  color: #000000 !important;
  margin-bottom: 0.85rem !important;
  line-height: 1.45 !important;
  transition: color 0.3s ease !important;
}

.sos-news-card-upgraded:hover .sos-news-card-upgraded__title {
  color: #1A5FA8 !important;
}

[data-theme="dark"] .sos-news-card-upgraded__title {
  color: #FFFFFF !important;
}

[data-theme="dark"] .sos-news-card-upgraded:hover .sos-news-card-upgraded__title {
  color: #38BDF8 !important;
}

.sos-news-card-upgraded__desc {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: #000000 !important;
  line-height: 1.7 !important;
  margin-bottom: 1.25rem !important;
  flex: 1 !important;
  transition: color 0.3s ease !important;
}

[data-theme="dark"] .sos-news-card-upgraded__desc {
  color: #cbd5e1 !important;
}

.sos-news-card-upgraded__action {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.65rem 1.15rem !important;
  border-radius: 12px !important;
  background: rgba(26, 95, 168, 0.08) !important;
  border: 1px solid rgba(26, 95, 168, 0.22) !important;
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  width: fit-content !important;
  margin-top: auto !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sos-news-card-upgraded__action span {
  color: #1A5FA8 !important;
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 800 !important;
  transition: color 0.3s ease !important;
}

.sos-news-card-upgraded__action svg {
  stroke: #1A5FA8 !important;
  color: #1A5FA8 !important;
  transition: stroke 0.3s ease, transform 0.3s ease !important;
  flex-shrink: 0 !important;
}

.sos-news-card-upgraded:hover .sos-news-card-upgraded__action,
.sos-news-card-upgraded__action:hover {
  background: linear-gradient(135deg, #1A5FA8 0%, #0E2741 100%) !important;
  border-color: #1A5FA8 !important;
  box-shadow: 0 6px 20px rgba(26, 95, 168, 0.35) !important;
  transform: translateY(-2px) !important;
}

.sos-news-card-upgraded:hover .sos-news-card-upgraded__action span,
.sos-news-card-upgraded__action:hover span {
  color: #FFFFFF !important;
}

.sos-news-card-upgraded:hover .sos-news-card-upgraded__action svg,
.sos-news-card-upgraded__action:hover svg {
  stroke: #FFFFFF !important;
  color: #FFFFFF !important;
  transform: translateX(4px) !important;
}

/* Dark Mode Action Button */
[data-theme="dark"] .sos-news-card-upgraded__action {
  background: rgba(55, 176, 229, 0.14) !important;
  border: 1px solid rgba(55, 176, 229, 0.35) !important;
}

[data-theme="dark"] .sos-news-card-upgraded__action span {
  color: #38BDF8 !important;
}

[data-theme="dark"] .sos-news-card-upgraded__action svg {
  stroke: #38BDF8 !important;
  color: #38BDF8 !important;
}

[data-theme="dark"] .sos-news-card-upgraded:hover .sos-news-card-upgraded__action,
[data-theme="dark"] .sos-news-card-upgraded__action:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35) !important;
}

[data-theme="dark"] .sos-news-card-upgraded:hover .sos-news-card-upgraded__action span,
[data-theme="dark"] .sos-news-card-upgraded__action:hover span {
  color: #FFFFFF !important;
}

[data-theme="dark"] .sos-news-card-upgraded:hover .sos-news-card-upgraded__action svg,
[data-theme="dark"] .sos-news-card-upgraded__action:hover svg {
  stroke: #FFFFFF !important;
  color: #FFFFFF !important;
}

html[lang="ar"] .sos-news-card-upgraded:hover .sos-news-card-upgraded__action svg,
html[dir="rtl"] .sos-news-card-upgraded:hover .sos-news-card-upgraded__action svg,
body.rtl-mode .sos-news-card-upgraded:hover .sos-news-card-upgraded__action svg {
  transform: translateX(-4px) !important;
}

/* ==========================================================================
   7. SECTION 7: CAREERS (الوظائف)
   ========================================================================== */
.sos-section-careers-banner {
  padding: 5rem 0;
  background: var(--sos-bg-light);
  position: relative;
}

.sos-careers-banner-card {
  background: linear-gradient(135deg, #0E2741 0%, #1A5FA8 100%);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  box-shadow: 0 20px 48px rgba(14, 39, 65, 0.25);
  border: 1px solid rgba(55, 176, 229, 0.25);
}

@media (max-width: 860px) {
  .sos-careers-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.75rem;
  }
}

.sos-careers-banner-content h2 {
  color: #FFFFFF !important;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  margin-bottom: 0.85rem;
}

.sos-careers-banner-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 650px;
}

.sos-careers-btn {
  white-space: nowrap;
  background: #FFFFFF !important;
  color: var(--sos-navy-dark) !important;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.28s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.sos-careers-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  background: #F4F7FB !important;
}

/* ==========================================================================
   8. SECTION 8: FINAL CTA (اتصل بنا)
   ========================================================================== */
.sos-section-final-cta {
  padding: 5.5rem 0;
  background: var(--sos-card-bg-light);
  position: relative;
  text-align: center;
}

.sos-final-cta-box {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  background: var(--sos-bg-light);
  border-radius: 24px;
  border: 1px solid var(--sos-card-border-light);
  box-shadow: 0 16px 40px rgba(14, 39, 65, 0.06);
}

.sos-final-cta-box h2 {
  font-size: clamp(1.85rem, 2.6vw, 2.5rem);
  margin-bottom: 1rem;
}

.sos-final-cta-box p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}

/* ==========================================================================
   9. SECTION 9: FOOTER ENHANCEMENTS
   ========================================================================== */
.sos-footer-slogan-highlight {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #37B0E5;
  margin: 0.75rem 0 1.25rem 0;
  display: block;
}

/* ==========================================================================
   10. SERVICE MODAL ENHANCEMENTS
   ========================================================================== */
#serviceModal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2500;
  background: rgba(14, 39, 65, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#serviceModal.is-active {
  opacity: 1;
  pointer-events: auto;
}

#serviceModal .sos-modal__content {
  background: var(--sos-card-bg-light) !important;
  border-radius: 24px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 28px 70px rgba(14, 39, 65, 0.45);
  border: 1px solid var(--sos-card-border-light);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#serviceModal.is-active .sos-modal__content {
  transform: translateY(0) scale(1);
}

#serviceModal .sos-modal__close {
  position: absolute;
  top: 1.25rem;
  inset-inline-end: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(14, 39, 65, 0.08);
  border: none;
  color: var(--sos-text-dark);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
  z-index: 10;
}

[data-theme="dark"] #serviceModal .sos-modal__close {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

#serviceModal .sos-modal__close:hover {
  background: #1A5FA8;
  color: #FFFFFF;
  transform: scale(1.08) rotate(90deg);
}

#serviceModal .service-modal-sub {
  background: rgba(26, 95, 168, 0.12);
  color: #1A5FA8;
  border: 1px solid rgba(26, 95, 168, 0.25);
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 0.85rem;
}

[data-theme="dark"] #serviceModal .service-modal-sub {
  background: rgba(55, 176, 229, 0.15);
  color: #37B0E5;
  border-color: rgba(55, 176, 229, 0.3);
}

#serviceModal .service-modal-title {
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.65rem !important;
  color: var(--sos-text-dark) !important;
  margin-bottom: 1.25rem !important;
  line-height: 1.35;
}

#serviceModal .service-modal-body {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.02rem;
  line-height: 1.8;
  color: #334155;
}

#serviceModal .service-modal-body h4 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--sos-text-dark);
  margin: 1.5rem 0 0.75rem 0;
}

#serviceModal .service-modal-body ul {
  padding-inline-start: 1.5rem;
  margin-bottom: 1.5rem;
}

#serviceModal .service-modal-body li {
  margin-bottom: 0.5rem;
  color: #475569;
}

[data-theme="dark"] #serviceModal .service-modal-body {
  color: #FFFFFF;
}

[data-theme="dark"] #serviceModal .service-modal-body li {
  color: #FFFFFF;
}

[data-theme="dark"] #serviceModal .service-modal-body h4 {
  color: #37B0E5;
}

