/* ==========================================================================
   SOS SUSTAINABILITY & CSR STYLESHEET (sustainability.css)
   Bespoke UI, Living Steam FX, Glassmorphism & High-Contrast Typography
   Full Light & Dark Theme Parity + Arabic/English RTL/LTR Parity
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. DESIGN TOKENS (LIGHT & DARK THEMES)
   -------------------------------------------------------------------------- */
:root,
[data-theme="dark"] {
  --sust-hero-bg: radial-gradient(circle at 50% 20%, #0c203b 0%, #050e1a 100%);
  --sust-card-border: rgba(255, 255, 255, 0.16);
  --sust-glass-5pct: rgba(6, 17, 32, 0.05); /* Exact 5% transparency */
  --sust-text-title: #ffffff;
  --sust-text-body: #ffffff;
  --sust-card-bg: rgba(14, 27, 49, 0.88);
  --sust-card-border-subtle: rgba(55, 176, 229, 0.18);
  --sust-badge-bg: rgba(0, 163, 224, 0.15);
  --sust-badge-border: rgba(0, 210, 255, 0.4);
  --sust-badge-color: #00d2ff;
  --sust-accent-cyan: #00d2ff;
  --sust-accent-blue: #1e66b0;
  --sust-lead-bg: #071322;
  --sust-quote-bg: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  --sust-quote-border: rgba(0, 163, 224, 0.25);
  --sust-kpi-num: #00d2ff;
  --sust-kpi-label: #ffffff;
}

[data-theme="light"] {
  --sust-hero-bg: linear-gradient(180deg, #eef4fa 0%, #f8fafc 100%);
  --sust-card-border: rgba(30, 102, 176, 0.22);
  --sust-glass-5pct: rgba(6, 17, 32, 0.05); /* Exact 5% transparency */
  --sust-text-title: #0f172a;
  --sust-text-body: #475569;
  --sust-card-bg: #ffffff;
  --sust-card-border-subtle: rgba(30, 102, 176, 0.14);
  --sust-badge-bg: rgba(30, 102, 176, 0.08);
  --sust-badge-border: rgba(30, 102, 176, 0.25);
  --sust-badge-color: #1e66b0;
  --sust-accent-cyan: #1e66b0;
  --sust-accent-blue: #1e66b0;
  --sust-lead-bg: #f8fafc;
  --sust-quote-bg: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  --sust-quote-border: rgba(30, 102, 176, 0.18);
  --sust-kpi-num: #1e66b0;
  --sust-kpi-label: #64748b;
}

/* --------------------------------------------------------------------------
   1. HERO SECTION (Identical Sizing & Full-Bleed Panorama Matching Projects Page)
   -------------------------------------------------------------------------- */
.sos-sust-hero-v2 {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 640px;
  overflow: hidden;
  background-color: #071524;
  color: #ffffff;
  padding: 0 !important;
  margin: 0 !important;
  display: block;
  transition: background 0.3s ease;
}

@media (max-width: 1024px) {
  .sos-sust-hero-v2 {
    aspect-ratio: 21 / 9;
    min-height: 520px;
    height: auto;
  }
}

@media (max-width: 768px) {
  .sos-sust-hero-v2 {
    aspect-ratio: auto !important;
    min-height: 480px !important;
    height: auto !important;
    padding-top: calc(75px + 1.5rem) !important;
    padding-bottom: 2.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
  }

  .sos-sust-hero-v2 .sos-about-hero-v2__container {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 380px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .sos-sust-hero-v2 .sos-hero-panoramic-stage {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .sos-sust-hero-v2 .sos-hero-panoramic-card {
    position: relative !important;
    width: 100% !important;
    min-height: 360px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .sos-sust-hero-v2 .sos-hero-panoramic-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .sos-sust-hero-v2 .sos-hero-overlay-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 92% !important;
    max-width: 560px !important;
    margin: 0 auto !important;
    padding: 1.5rem 1rem !important;
  }
}

.sos-hero-clean-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(55, 176, 229, 0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

/* Full-Bleed Panoramic Container & Stage Matching Projects Page */
.sos-sust-hero-v2 .sos-about-hero-v2__container {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100% !important;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 1;
}

.sos-sust-hero-v2 .sos-hero-panoramic-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sos-sust-hero-v2 .sos-hero-panoramic-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  aspect-ratio: unset !important;
  min-height: unset !important;
  background: transparent !important;
}

.sos-sust-hero-v2 .sos-hero-panoramic-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover !important;
  object-position: center 25% !important;
  display: block;
  image-rendering: high-quality;
  image-rendering: -webkit-optimize-contrast;
}

/* Living Steam Canvas Overlay positioned directly over plant imagery */
.sos-sust-hero-v2 .power-plant-steam-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* Text Container inside the image (Positioned seamlessly in open sky below navbar) */
.sos-sust-hero-v2 .sos-hero-overlay-content {
  position: absolute;
  top: clamp(6.2rem, 7.5vw, 8.8rem);
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 960px;
  background: rgba(6, 17, 32, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: clamp(20px, 2.2vw, 32px) clamp(24px, 3.5vw, 48px);
  text-align: center;
  z-index: 4;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

[data-theme="light"] .sos-sust-hero-v2 .sos-hero-overlay-content {
  background: rgba(6, 17, 32, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.sos-about-hero-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 1.35rem;
  background: linear-gradient(135deg, rgba(55, 176, 229, 0.24) 0%, rgba(39, 116, 200, 0.14) 100%);
  border: 1px solid rgba(55, 176, 229, 0.55);
  border-radius: 999px;
  color: #4ed0ff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
  box-shadow: 0 0 20px rgba(55, 176, 229, 0.25);
  backdrop-filter: blur(8px);
}

.sos-hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #37b0e5;
  box-shadow: 0 0 10px #37b0e5;
  display: inline-block;
  animation: sosBeaconPulse 2s infinite;
}

@keyframes sosBeaconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.sos-about-hero-v2__title {
  font-family: 'Tajawal', sans-serif !important;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem) !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  margin-bottom: 1.25rem !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.8) !important;
}

.sos-about-hero-v2__subtitle {
  font-family: 'Tajawal', sans-serif !important;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem) !important;
  color: rgba(255, 255, 255, 0.94) !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
  margin: 0 auto 1.5rem !important;
  max-width: 860px !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

/* Slogan Quote Strip & KPIs (Docked Elegantly Below Wave Transition) */
.sos-sust-quote-strip {
  position: relative;
  z-index: 7;
  width: 100%;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.sos-sust-quote-container {
  max-width: 1846px;
  width: 95%;
  margin: 0 auto;
}

.sos-sust-quote-banner {
  background: var(--sust-quote-bg);
  border: 1px solid var(--sust-quote-border);
  border-radius: 20px;
  margin: 0;
  padding: 1.5rem 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sos-sust-quote-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sos-sust-quote-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 163, 224, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sust-accent-cyan);
  flex-shrink: 0;
}

.sos-sust-quote-text {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  color: var(--sust-text-title);
  margin: 0;
  letter-spacing: -0.01em;
}

.sos-sust-kpi-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.sos-sust-kpi-item {
  display: flex;
  flex-direction: column;
}

.sos-sust-kpi-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sust-kpi-num);
  line-height: 1.1;
  font-family: 'Plus Jakarta Sans', 'Tajawal', sans-serif;
}

.sos-sust-kpi-label {
  font-size: 0.8rem;
  color: var(--sust-kpi-label);
  margin-top: 0.25rem;
}

/* Water Waves Transition at Bottom of Hero */
.sos-sust-hero-v2 .sos-hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(48px, 5.5vw, 90px);
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  line-height: 0;
}

.sos-sust-hero-v2 .sos-waves-svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  vertical-align: bottom;
}

/* Water Waves Dynamic Fill Sync */
[data-theme="dark"] .sos-sust-hero-v2 .sos-hero-waves .sos-wave-layer-4 {
  fill: #0f172a !important;
}
[data-theme="dark"] .sos-sust-hero-v2 .sos-hero-waves .sos-wave-layer-3 {
  fill: rgba(15, 23, 42, 0.7) !important;
}
[data-theme="light"] .sos-sust-hero-v2 .sos-hero-waves .sos-wave-layer-4 {
  fill: #f8fafc !important;
}
[data-theme="light"] .sos-sust-hero-v2 .sos-hero-waves .sos-wave-layer-3 {
  fill: rgba(248, 250, 252, 0.7) !important;
}

/* Explicit Light Mode Quote Banner Controls */
[data-theme="light"] .sos-sust-quote-banner {
  background: #ffffff;
  border: 1px solid rgba(30, 102, 176, 0.22);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .sos-sust-quote-text {
  color: #0f172a;
}
[data-theme="light"] .sos-sust-quote-icon {
  background: rgba(30, 102, 176, 0.1);
  border-color: rgba(30, 102, 176, 0.25);
  color: #1e66b0;
}
[data-theme="light"] .sos-sust-kpi-num {
  color: #1e66b0;
}
[data-theme="light"] .sos-sust-kpi-label {
  color: #64748b;
}

/* --------------------------------------------------------------------------
   2. VISION & LEAD NARRATIVE (نصون الماء.. ونستثمر في الإنسان)
   -------------------------------------------------------------------------- */
.sos-sust-lead-section {
  padding: 80px 0;
  background: var(--bg-card, #0f172a);
  position: relative;
}

[data-theme="light"] .sos-sust-lead-section {
  background: #f8fafc;
}

.sos-sust-lead-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 991px) {
  .sos-sust-lead-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.sos-sust-lead-narrative h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

[data-theme="light"] .sos-sust-lead-narrative h2 {
  color: #0f172a;
}

.sos-sust-lead-narrative p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(226, 232, 240, 0.85);
  margin-bottom: 1.2rem;
}

[data-theme="light"] .sos-sust-lead-narrative p {
  color: #334155;
}

/* Vision 2040 & 3 Pillars Card */
.sos-sust-vision-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(0, 163, 224, 0.25);
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .sos-sust-vision-card {
  background: #ffffff;
  border-color: rgba(0, 163, 224, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sos-sust-three-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sos-sust-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

[data-theme="light"] .sos-sust-pillar-item {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.sos-sust-pillar-item:hover {
  transform: translateX(-4px);
  border-color: rgba(0, 210, 255, 0.4);
}

body.ltr-mode .sos-sust-pillar-item:hover {
  transform: translateX(4px);
}

.sos-sust-pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 163, 224, 0.15);
  color: #00d2ff;
}

.sos-sust-pillar-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.3rem 0;
}

[data-theme="light"] .sos-sust-pillar-content h4 {
  color: #0f172a;
}

.sos-sust-pillar-content p {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.75);
  margin: 0;
  line-height: 1.5;
}

[data-theme="light"] .sos-sust-pillar-content p {
  color: #475569;
}

/* --------------------------------------------------------------------------
   3. FOUR SUSTAINABILITY PILLARS
   -------------------------------------------------------------------------- */
.sos-sust-pillar-section {
  padding: 85px 0;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .sos-sust-pillar-section {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.sos-sust-pillar-section:nth-child(even) {
  background: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] .sos-sust-pillar-section:nth-child(even) {
  background: #f8fafc;
}

.sos-sust-section-header {
  margin-bottom: 2.8rem;
}

.sos-sust-section-header .sos-domain-badge {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(0, 163, 224, 0.15);
  color: #00d2ff;
  border: 1px solid rgba(0, 163, 224, 0.3);
  margin-bottom: 0.75rem;
}

.sos-sust-section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

[data-theme="light"] .sos-sust-section-title {
  color: #0f172a;
}

.sos-sust-section-desc {
  font-size: 1.1rem;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.8;
  max-width: 920px;
}

[data-theme="light"] .sos-sust-section-desc {
  color: #334155;
}

/* Four Feature Grid Cards */
.sos-sust-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .sos-sust-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.sos-sust-feature-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .sos-sust-feature-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.sos-sust-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00d2ff, #3b82f6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sos-sust-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 15px 30px rgba(0, 163, 224, 0.15);
}

.sos-sust-feature-card:hover::before {
  opacity: 1;
}

.sos-sust-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 163, 224, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d2ff;
  margin-bottom: 1.25rem;
}

.sos-sust-feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

[data-theme="light"] .sos-sust-feature-title {
  color: #0f172a;
}

.sos-sust-feature-text {
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.8);
  line-height: 1.6;
  margin: 0;
}

[data-theme="light"] .sos-sust-feature-text {
  color: #475569;
}

/* Photo Showcase Cards (for Talent & Community) */
.sos-sust-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .sos-sust-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.sos-sust-photo-card {
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

[data-theme="light"] .sos-sust-photo-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.sos-sust-photo-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 20px 45px rgba(0, 163, 224, 0.2);
}

.sos-sust-photo-card__wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b0f19;
}

.sos-sust-photo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sos-sust-photo-card:hover .sos-sust-photo-card__img {
  transform: scale(1.04);
}

.sos-sust-photo-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: #00d2ff;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

body.ltr-mode .sos-sust-photo-card__badge {
  right: auto;
  left: 1rem;
}

.sos-sust-photo-card__caption {
  padding: 1.25rem 1.5rem;
}

.sos-sust-photo-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

[data-theme="light"] .sos-sust-photo-card__title {
  color: #0f172a;
}

.sos-sust-photo-card__desc {
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.6;
  margin: 0;
}

[data-theme="light"] .sos-sust-photo-card__desc {
  color: #475569;
}

/* Safety Statistics & Zero-Harm Showcase (Corporate SOS Blue Palette) */
.sos-sust-safety-banner {
  background: linear-gradient(135deg, rgba(14, 28, 54, 0.92) 0%, rgba(9, 17, 36, 0.96) 100%);
  border: 1px solid rgba(55, 176, 229, 0.35);
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4), 0 0 25px rgba(55, 176, 229, 0.12);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .sos-sust-safety-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7fd 100%);
  border: 1px solid rgba(30, 102, 176, 0.28);
  box-shadow: 0 12px 35px rgba(30, 102, 176, 0.12);
}

@media (max-width: 900px) {
  .sos-sust-safety-banner {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 1.75rem;
  }
}

.sos-sust-safety-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.95rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 9999px;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
}

[data-theme="light"] .sos-sust-safety-badge {
  color: #1E66B0;
  background: rgba(30, 102, 176, 0.08);
  border-color: rgba(30, 102, 176, 0.25);
  box-shadow: 0 0 12px rgba(30, 102, 176, 0.1);
}

.sos-sust-safety-title {
  font-family: 'Tajawal', sans-serif !important;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 0.85rem !important;
  line-height: 1.35 !important;
}

[data-theme="light"] .sos-sust-safety-title {
  color: #0E1238 !important;
}

.sos-sust-safety-desc {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 1.02rem !important;
  line-height: 1.7 !important;
  color: rgba(226, 232, 240, 0.92) !important;
  margin: 0 !important;
}

[data-theme="light"] .sos-sust-safety-desc {
  color: #333646 !important;
}

.sos-sust-safety-stat-box {
  background: linear-gradient(135deg, rgba(30, 102, 176, 0.18) 0%, rgba(55, 176, 229, 0.08) 100%);
  border: 1px solid rgba(55, 176, 229, 0.35);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.sos-sust-safety-stat-box:hover {
  transform: translateY(-3px);
  border-color: #38bdf8;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(56, 189, 248, 0.25);
}

[data-theme="light"] .sos-sust-safety-stat-box {
  background: linear-gradient(135deg, rgba(240, 247, 253, 0.95) 0%, rgba(229, 242, 252, 0.7) 100%);
  border-color: rgba(30, 102, 176, 0.28);
  box-shadow: 0 6px 20px rgba(30, 102, 176, 0.08);
}

.sos-sust-safety-stat-num {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 900;
  font-family: 'Plus Jakarta Sans', 'Tajawal', sans-serif;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #ffffff 15%, #7dd3fc 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(56, 189, 248, 0.45));
}

[data-theme="light"] .sos-sust-safety-stat-num {
  background: linear-gradient(135deg, #30318E 0%, #1E66B0 60%, #37B0E5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(30, 102, 176, 0.25));
}

.sos-sust-safety-stat-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}

[data-theme="light"] .sos-sust-safety-stat-label {
  color: #1E66B0;
}

.sos-sust-safety-stat-sub {
  font-size: 0.88rem;
  color: rgba(224, 242, 254, 0.88);
}

[data-theme="light"] .sos-sust-safety-stat-sub {
  color: #5E6378;
}

/* --------------------------------------------------------------------------
   4. CLOSING CTA (شاركنا مسيرة الاستدامة)
   -------------------------------------------------------------------------- */
.sos-sust-closing-cta {
  padding: 90px 0;
  background: radial-gradient(80% 60% at 50% 50%, rgba(0, 163, 224, 0.15) 0%, rgba(11, 15, 25, 0) 100%),
              var(--bg-card, #0f172a);
  text-align: center;
  position: relative;
}

[data-theme="light"] .sos-sust-closing-cta {
  background: radial-gradient(80% 60% at 50% 50%, rgba(0, 163, 224, 0.08) 0%, rgba(241, 245, 249, 0) 100%),
              #f1f5f9;
}

.sos-sust-closing-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(0, 163, 224, 0.35);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .sos-sust-closing-card {
  background: #ffffff;
  border-color: rgba(0, 163, 224, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.sos-sust-closing-card h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

[data-theme="light"] .sos-sust-closing-card h3 {
  color: #0f172a;
}

.sos-sust-closing-card p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(226, 232, 240, 0.88);
  margin-bottom: 2.2rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="light"] .sos-sust-closing-card p {
  color: #334155;
}

.sos-sust-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #00A3E0 0%, #0082b3 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 163, 224, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sos-sust-btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 163, 224, 0.6);
  color: #ffffff;
}

.sos-sust-btn-cta svg {
  transition: transform 0.3s ease;
}

body.rtl-mode .sos-sust-btn-cta:hover svg {
  transform: translateX(-4px);
}

body.ltr-mode .sos-sust-btn-cta:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE FIXES (Guaranteed Cascade Winning Overrides)
   Fixes mixed-up layout on phones and tablets for Sustainability Hero
   ========================================================================== */
@media (max-width: 768px) {
  .sos-sust-hero-v2,
  .sos-about-hero-v2.sos-sust-hero-v2 {
    position: relative !important;
    min-height: auto !important;
    height: auto !important;
    padding-top: calc(var(--nav-height, 70px) + 1.25rem) !important;
    padding-bottom: 3rem !important;
    overflow: hidden !important;
    display: block !important;
  }

  .sos-sust-hero-v2 .sos-about-hero-v2__container {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    z-index: 2 !important;
  }

  .sos-sust-hero-v2 .sos-hero-panoramic-stage {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
  }

  .sos-sust-hero-v2 .sos-hero-panoramic-card {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 380px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: #061120 !important;
  }

  .sos-sust-hero-v2 .sos-hero-panoramic-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    filter: brightness(0.65) contrast(1.05) !important;
  }

  .sos-sust-hero-v2 .power-plant-steam-canvas {
    display: none !important;
  }

  .sos-sust-hero-v2 .sos-hero-overlay-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 92% !important;
    max-width: 520px !important;
    margin: 1.5rem auto !important;
    padding: 1.4rem 1.1rem !important;
    background: rgba(6, 17, 32, 0.65) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
    z-index: 5 !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  [data-theme="light"] .sos-sust-hero-v2 .sos-hero-overlay-content {
    background: rgba(255, 255, 255, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12) !important;
  }

  .sos-sust-hero-v2 .sos-about-hero-v2__badge {
    font-size: 0.8rem !important;
    padding: 0.35rem 0.95rem !important;
    margin-bottom: 0.65rem !important;
  }

  .sos-sust-hero-v2 .sos-about-hero-v2__title {
    font-size: clamp(1.35rem, 5.2vw, 1.85rem) !important;
    line-height: 1.35 !important;
    margin-bottom: 0.65rem !important;
    letter-spacing: -0.01em !important;
  }

  .sos-sust-hero-v2 .sos-about-hero-v2__subtitle {
    font-size: clamp(0.85rem, 3.4vw, 0.98rem) !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
  }

  .sos-sust-hero-v2 .sos-hero-waves {
    display: none !important;
  }
}
