/* ============================================
   ARABIA INFORM — Design System & Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --navy: #152B32;
  --navy-dark: #0B171A;
  --navy-light: #254550;
  --gold: #E51B24;
  --gold-light: #F24C53;
  --gold-dark: #C4141D;
  --teal: #2198B4;
  --primary-teal: #2198B4;

  /* Deep Heritage Colors */
  --deep-navy: #0D1C22;
  --intellectual-blue: #2198B4;
  --light-blue: #E8F0F7;
  --data-crimson: #E51B24;
  --digital-gold: #E51B24;
  --parchment-white: #F4F8F9;

  --white: #FFFFFF;
  --dark-gray: #111111;
  --medium-gray: #555555;
  --light-gray: #F4F8F9;
  --border-color: rgba(229, 27, 36, 0.15);

  /* Spacing Grid (8pt system) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;

  --font-en: 'Cairo', sans-serif;
  --font-ar: 'Cairo', sans-serif;

  --shadow-sm: 0 2px 8px rgba(13, 34, 51, 0.08);
  --shadow-md: 0 4px 20px rgba(13, 34, 51, 0.12);
  --shadow-lg: 0 8px 40px rgba(13, 34, 51, 0.16);
  --shadow-xl: 0 16px 60px rgba(13, 34, 51, 0.20);
  --shadow-glass: 0 12px 32px rgba(0, 0, 0, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-en);
  color: var(--dark-gray);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.rtl body {
  font-family: var(--font-ar);
  direction: rtl;
}

.font-cairo {
  font-family: 'Cairo', sans-serif !important;
}

.rtl {
  direction: rtl;
  text-align: right;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul,
ol {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  line-height: 1.25;
  font-weight: 700;
  color: var(--navy);
  margin-top: 0;
  margin-bottom: var(--space-2);
}

h1 {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -1.2px;
}

h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  letter-spacing: -0.5px;
}

h3 {
  font-size: clamp(24px, 2.5vw, 36px);
}

h4 {
  font-size: clamp(20px, 2vw, 28px);
}

h5 {
  font-size: 20px;
}

h6 {
  font-size: 18px;
}

p {
  font-family: inherit;
  font-size: 18px;
  color: var(--medium-gray);
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: var(--space-3);
}

.lead {
  font-size: 22px;
  line-height: 1.6;
  color: var(--navy-light);
  font-weight: 500;
}

/* --- Layout Utility Classes --- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-3);
}

.gap-1 {
  gap: var(--space-1) !important;
}

.gap-2 {
  gap: var(--space-2) !important;
}

.gap-3 {
  gap: var(--space-3) !important;
}

.gap-4 {
  gap: var(--space-4) !important;
}

.gap-6 {
  gap: var(--space-6) !important;
}

.mb-1 {
  margin-bottom: var(--space-1) !important;
}

.mb-2 {
  margin-bottom: var(--space-2) !important;
}

.mb-3 {
  margin-bottom: var(--space-3) !important;
}

.mb-4 {
  margin-bottom: var(--space-4) !important;
}

.mb-6 {
  margin-bottom: var(--space-6) !important;
}

.mb-8 {
  margin-bottom: var(--space-8) !important;
}

.mt-1 {
  margin-top: var(--space-1) !important;
}

.mt-2 {
  margin-top: var(--space-2) !important;
}

.mt-3 {
  margin-top: var(--space-3) !important;
}

.mt-4 {
  margin-top: var(--space-4) !important;
}

.mt-6 {
  margin-top: var(--space-6) !important;
}

.mt-8 {
  margin-top: var(--space-8) !important;
}

/* Text Utilities */
.text-white {
  color: var(--white) !important;
}

.text-gold {
  color: var(--gold) !important;
}

.text-navy {
  color: var(--navy) !important;
}

.text-intellectual {
  color: var(--intellectual-blue) !important;
}

.text-crimson {
  color: var(--data-crimson) !important;
}

.text-center {
  text-align: center !important;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  text-transform: none;
  position: relative;
}

.btn:active {
  transform: scale(0.98) !important;
  transition: transform 0.08s ease;
}

.btn-gold {
  background: linear-gradient(135deg, #BDB175, #D7BE82, #E3D1A5);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(200, 168, 75, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(215, 190, 130, 0.45);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #D7BE82;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-outline-intellectual {
  background: transparent;
  border: 1.5px solid var(--intellectual-blue);
  color: var(--white);
  border-radius: 8px;
}

.btn-outline-intellectual:hover {
  background: rgba(0, 91, 150, 0.1);
  /* Subtle Intellectual Blue tint */
  transform: translateY(-2px);
  box-shadow: none;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 22px 48px;
  font-size: 18px;
}

/* ==========================================
   SINGLE-LEVEL INSTITUTIONAL HEADER
   Brand + Navigation + Language Toggle
   ========================================== */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 24, 38, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 168, 75, 0.15);
  /* Gold divider */
  height: 88px;
  display: flex;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.header-wrapper .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 40px;
}

/* Logo */
.nav-brand {
  min-width: 250px;
  display: flex;
  align-items: center;
}

.nav-logo {
  font-size: 21px;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1.5px;
  flex-shrink: 0;
  white-space: nowrap;
  padding-left: 12px;
}

.nav-logo img {
  height: 55px;
  /* Increased by ~15% */
  width: auto;
  max-width: 100%;
  display: block;
}

.nav-logo .logo-accent {
  color: #00bfc2;
}

/* Navigation (Center) */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  height: 100%;
  flex: 1;
}

.nav-link {
  color: var(--white);
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  padding: 0;
  height: 88px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease, opacity 0.2s ease;
  letter-spacing: 0.3px;
  white-space: nowrap;
  opacity: 0.8;
}

.nav-link:hover {
  opacity: 1;
}

/* Active: white text + gold underline */
.nav-link.active {
  opacity: 1;
  font-weight: 500;
}

/* Underline effect */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.rtl .nav-link::after {
  transform-origin: right;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.rtl .nav-link.active::after {
  transform-origin: right;
}

/* Right actions */
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 250px;
  gap: 24px;
}

/* Language Switch */
.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 18px;
  border: 1px solid rgba(0, 158, 160, 0.3);
  border-radius: 30px;
  background: transparent;
  transition: all 0.2s ease;
  font-family: inherit;
  opacity: 0.85;
}

.lang-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-right: 6px;
}

.rtl .lang-toggle svg {
  margin-right: 0;
  margin-left: 6px;
}

.lang-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(0, 158, 160, 0.08);
  opacity: 1;
}

/* --- Scrolled State --- */
.header-wrapper.scrolled {
  background: rgba(10, 24, 38, 0.98);
  height: 72px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.header-wrapper.scrolled .nav-link {
  height: 72px;
}

/* Mega Menu */
.nav-item {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 28px;
  min-width: 480px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mega-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mega-menu-item:hover {
  background: var(--light-gray);
}

.mega-menu-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.mega-menu-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.mega-menu-desc {
  font-size: 12px;
  color: var(--medium-gray);
  margin: 0;
}

/* Mobile hamburger (hidden on desktop) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  border-radius: 1px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--deep-navy);
  /* Pitch-black navy */
  overflow: hidden;
  padding: 140px 0 64px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(22, 140, 139, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 140, 139, 0.15) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
}

.hero-bg-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(22, 140, 139, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Grain / Noise Texture */
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
  pointer-events: none;
}

/* --- Knowledge Flow Layer System --- */
.hero-flow-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

/* Faint Static Trace behind Right Panel */
.timeline-trace-faint {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg,
      rgba(22, 140, 139, 0) 0%,
      rgba(22, 140, 139, 0.08) 30%,
      rgba(22, 140, 139, 0.08) 70%,
      rgba(22, 140, 139, 0) 100%);
  opacity: 0.5;
}

/* Layer 1: Flow Lines */
.flow-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 140, 139, 0.15), transparent);
  animation: flowLayerMove var(--flow-duration, 30s) ease-in-out infinite;
  opacity: 0;
}

/* Layer 2: Knowledge Nodes */
.flow-node {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(22, 140, 139, 0.2);
  border-radius: 50%;
  opacity: 0;
  animation: nodeFade var(--node-duration, 10s) ease-in-out infinite;
}

@keyframes flowLayerMove {
  0% {
    transform: translateX(-150%);
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  75% {
    opacity: 1;
  }

  100% {
    transform: translateX(200%);
    opacity: 0;
  }
}

@keyframes nodeFade {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

/* Metric Integration Styles */
.hero-stats-card {
  opacity: 0;
  transform: translateY(20px);
  animation: metricsReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.5s;
}

@keyframes metricsReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile: Static Background */
@media (max-width: 991px) {

  .flow-line,
  .flow-node {
    animation: none;
    opacity: 0.1;
  }

  .timeline-trace-faint {
    left: 0;
    width: 100%;
  }
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.hero-split-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  grid-column: span 7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 30, 53, 0.4);
  /* Subtle dark background */
  border: 1px solid rgba(22, 140, 139, 0.4);
  /* Thin teal border at 40% opacity */
  padding: 6px 16px;
  /* Minimal padding */
  border-radius: 50px;
  /* Rounded pill */
  color: var(--white);
  font-size: 13px;
  /* Small typography */
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  animation: heroBadgeFadeUp 0.15s ease-out both;
  /* Fade-in + slight upward (150ms) */
}

.hero-trust-seal {
  position: absolute;
  top: 140px;
  right: 15%;
  width: 90px;
  height: 90px;
  background: rgba(255, 183, 3, 0.1);
  /* Digital Gold Tint */
  border: 1px dashed var(--digital-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--digital-gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
  animation: sealSpin 20s linear infinite, heroFadeIn 1s ease 0.8s both;
  pointer-events: none;
}

@keyframes sealSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.rtl .hero-trust-seal {
  right: auto;
  left: 15%;
}

@keyframes heroBadgeFadeUp {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Removed hero-badge-dot since user requested small teal dot, but my recent HTML removed it. Wait, the HTML no longer has .hero-badge-dot. That's fine */

/* Staggered fade-in for hero elements */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTitleSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTitleFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero h1 {
  font-size: clamp(48px, 6vw, 60px);
  color: var(--parchment-white);
  margin-bottom: 54px;
  /* Increased from 40px */
  letter-spacing: -1.5px;
  line-height: 1.25;
  font-weight: 800;
  /* Strong weight */
  animation: heroTitleSlideUp 0.4s ease both;
  /* Adjusted animation name */
}

.hero h1 .accent {
  color: var(--intellectual-blue);
}

.hero-title-line2 {
  display: inline-block;
  color: var(--white) !important;
  animation: heroTitleLineTwo 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
  /* Second line slides up 8px (200ms delay) */
}

@keyframes heroTitleSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTitleLineTwo {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: clamp(20px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.85);
  /* Slightly reduced opacity */
  font-weight: 500;
  /* Medium weight */
  margin-bottom: 32px;
  /* Clear separation */
  line-height: 1.7;
  /* Increased line-height */
  animation: heroFadeIn 0.8s ease 0.3s both;
}

.hero-body {
  font-size: 18px;
  color: rgba(241, 250, 238, 0.6);
  /* Parchment White with Reduced opacity */
  line-height: 1.7;
  margin-bottom: 48px;
  /* Increased from 40px for better vertical rhythm */
  max-width: 680px;
  animation: heroFadeIn 0.8s ease 0.45s both;
}

/* Removed empty rule */

.hero-ctas {
  display: flex;
  gap: 20px;
  /* Spacing between buttons: 20px */
  flex-wrap: wrap;
  animation: heroFadeIn 0.8s ease 0.6s both;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.icon-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.rtl .icon-btn:hover .btn-arrow {
  transform: translateX(-4px);
}

/* --- Static Stats Card --- */
.hero-stats-card {
  grid-column: span 5;
  justify-self: end;
  /* Align card to the right in LTR */
  width: 100%;
  max-width: 380px;
  background: #112031;
  /* Solid dark navy to match screenshot */
  border-radius: 16px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.rtl .hero-stats-card {
  justify-self: start;
  /* Align card to the left in RTL */
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  animation: cardStatFadeIn 0.8s ease forwards;
}

.stat-item:nth-child(1) {
  animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
  animation-delay: 0.4s;
}

.stat-item:nth-child(5) {
  animation-delay: 0.6s;
}

.stat-val-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.stat-icon {
  width: 28px;
  height: 28px;
  color: var(--parchment-white);
  opacity: 0.9;
}

.stat-val {
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
}

.stat-lbl {
  font-size: 13px;
  color: rgba(241, 250, 238, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.stat-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  /* Very faint white divider */
}

.stat-footer {
  font-size: 11px;
  color: rgba(241, 250, 238, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-top: 8px;
}

@keyframes cardStatFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Make grid responsive */
@media (max-width: 992px) {
  .hero-split-grid {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .hero-content {
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .hero h1 {
    text-align: center;
  }

  .hero-body {
    text-align: center;
  }

  .hero-stats-card {
    justify-self: center;
    max-width: 100%;
    width: 100%;
    margin-top: 32px;
  }
}



/* --- Counter Strip --- */
.counter-strip {
  background: var(--navy-dark);
  padding: 80px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px;
  text-align: center;
}

.counter-item {
  padding: 16px 8px;
}

.counter-number {
  font-size: clamp(32px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--white);
  display: block;
}

.counter-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  margin-top: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.counter-divider {
  width: 30px;
  height: 3px;
  background: var(--gold);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* --- Mission Section --- */
.align-left {
  text-align: left;
}

.align-right {
  text-align: right;
}

.align-center {
  align-items: center;
}

.quote-block {
  background: rgba(11, 23, 26, 0.92);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid rgba(33, 152, 180, 0.15);
  border-left: 3px solid rgba(33, 152, 180, 0.5);
  border-radius: 16px;
  padding: 36px 40px;
  margin-top: 32px;
  position: relative;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(33, 152, 180, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.quote-block::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 48px;
  font-family: Georgia, serif;
  color: rgba(33, 152, 180, 0.3);
  line-height: 1;
  pointer-events: none;
}

.quote-block:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(33, 152, 180, 0.08);
  border-color: rgba(33, 152, 180, 0.35);
}

.rtl .quote-block {
  border-left: 1px solid rgba(33, 152, 180, 0.2);
  border-right: 3px solid rgba(33, 152, 180, 0.6);
  padding-left: 36px;
  padding-right: 36px;
}

.rtl .quote-block::before {
  left: auto;
  right: 20px;
}

.quote-text {
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

.quote-author {
  font-size: 13px;
  font-weight: 600;
  color: rgba(33, 152, 180, 0.8);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.abstract-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* --- Section Base --- */
.section {
  padding: 100px 0;
}

.section-dark {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
}

.section-light {
  background: var(--light-gray);
  position: relative;
}

/* Subtle architectural watermark for light sections */
.section-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(22, 140, 139, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 140, 139, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.section-light .container {
  position: relative;
  z-index: 1;
}

.section-blue {
  background: var(--blue-light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-header p {
  font-size: 18px;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue-light), rgba(0, 95, 122, 0.15));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.service-card h4 {
  margin-bottom: 12px;
  height: 3em; /* Fixed height for ~2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.service-card p {
  font-size: 15px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.card-link:hover {
  color: var(--gold);
  gap: 10px;
}

/* --- Mission / Quote Section --- */
.mission-section {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark), #0d343b);
  color: rgba(255, 255, 255, 0.85);
}

.mission-section h2 {
  color: var(--white);
}

.mission-section .lead {
  color: rgba(255, 255, 255, 0.9);
}

.mission-section .section-header p,
.mission-section .section-header div {
  color: rgba(255, 255, 255, 0.85);
}

.quote-block {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: var(--radius-lg);
  padding: 50px;
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  border-left: 4px solid var(--crimson);
}

.rtl .quote-block {
  border-left: none;
  border-right: 4px solid var(--crimson);
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 200px;
  color: rgba(0, 158, 160, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-text {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  margin: 0;
}

.quote-author {
  margin-top: 20px;
  color: var(--intellectual-blue);
  font-weight: 600;
  font-size: 15px;
}

/* --- Audience Solutions Tabs --- */
.tabs-wrapper {
  margin-top: 60px;
}

.tabs-header {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--white);
  /* For dark sections */
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--medium-gray);
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Tab context in dark modes */
.section-dark .tab-btn {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.section-dark .tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.section-dark .tab-btn.active {
  background: var(--white);
  color: var(--navy-dark);
}

.tab-btn:hover {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}

.tab-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}

.tab-panel {
  display: none;
  animation: tabFadeIn 0.5s ease both;
}

.tab-panel.active {
  display: block;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-content h3 {
  font-size: 32px;
  color: var(--navy);
  margin-bottom: 20px;
}

.section-dark .panel-content h3 {
  color: var(--white);
}

.panel-content p {
  font-size: 18px;
  color: var(--medium-gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

.section-dark .panel-content p {
  color: rgba(255, 255, 255, 0.85);
}

.panel-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.panel-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--dark-gray);
  font-weight: 500;
}

.section-dark .panel-list li {
  color: rgba(255, 255, 255, 0.9);
}


.rtl .panel-list li {
  padding-left: 0;
  padding-right: 28px;
}

.panel-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

.rtl .panel-list li::before {
  content: '←';
  left: auto;
  right: 0;
}

/* --- Impact Strip --- */
.impact-strip {
  padding: 60px 0;
  text-align: center;
}

.impact-strip .grid-12>div {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
}

.impact-strip .grid-12>div:last-child {
  border-right: none;
}

.rtl .impact-strip .grid-12>div {
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.rtl .impact-strip .grid-12>div:last-child {
  border-left: none;
}

.impact-number {
  font-size: clamp(40px, 4vw, 56px);
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 800;
  line-height: 1;
}

.impact-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* --- Blog Cards --- */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-image-wrapper {
  overflow: hidden;
  height: 220px;
}

.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover img {
  transform: scale(1.05);
}

.blog-content {
  padding: 28px;
}

.blog-category {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 12px;
}

.blog-card h4 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--navy);
}

/* --- CTA Band --- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 28px;
}

.cta-band .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.8;
  margin-top: 16px;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-brand-line {
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  margin-top: 20px;
}

/* --- About Page: Timeline --- */
.timeline {
  position: relative;
  padding: 40px 0;
  overflow-x: auto;
}

.timeline-track {
  display: flex;
  gap: 0;
  min-width: max-content;
  position: relative;
  padding: 60px 20px 20px;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue), var(--gold));
}

.timeline-item {
  flex: 0 0 180px;
  text-align: center;
  position: relative;
  padding-top: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.timeline-year {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.timeline-text {
  font-size: 13px;
  color: var(--medium-gray);
  padding: 0 10px;
}

/* --- Archive Cards --- */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.archive-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.archive-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--white);
}

.archive-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}


.archive-metric-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  display: block;
}

.archive-metric-label {
  font-size: 12px;
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Products --- */
.product-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.product-section:last-child {
  border-bottom: none;
}

.product-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.product-content.reverse {
  direction: rtl;
}

.product-content.reverse>* {
  direction: ltr;
}

.rtl .product-content.reverse>* {
  direction: rtl;
}

.product-features {
  list-style: none;
}

.product-features li {
  padding: 10px 0;
  font-size: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--dark-gray);
}

.product-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Solutions Tabs --- */
.tabs-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 12px 24px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
  color: var(--medium-gray);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
  scroll-margin-top: 250px;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.tab-benefits li {
  padding: 8px 0;
  font-size: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tab-benefits li::before {
  content: '→';
  color: var(--gold);
  font-weight: 700;
}

/* --- Impact Page --- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.impact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 36px;
  text-align: center;
  transition: var(--transition);
}

.impact-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.impact-value {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: var(--gold);
  display: block;
}

.impact-label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* World Map */
.world-map-section {
  text-align: center;
  padding: 40px 0;
}

.world-map-svg {
  max-width: 900px;
  margin: 0 auto;
  opacity: 0.5;
}

/* --- Blog / Insights --- */
.blog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  background: var(--white);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  color: var(--medium-gray);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.blog-card-body {
  padding: 28px;
}

.blog-card-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 8px;
}

.blog-card-body h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.blog-card-body p {
  font-size: 14px;
}

.blog-card-meta {
  font-size: 12px;
  color: var(--medium-gray);
  margin-top: 16px;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 95, 138, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--gold);
}

.demo-panel {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-panel h3 {
  color: var(--white);
  margin-bottom: 16px;
}

.demo-panel p {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Page Header --- */
/* --- Page Header (Interior Pages) --- */
.page-header {
  background: var(--navy-dark);
  padding: 140px 0 48px;
  text-align: start;
  /* Inherits RTL perfectly */
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Subtle architectural texture for the interior headers */
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.03;
  pointer-events: none;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 40px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  max-width: 700px;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .page-header {
    padding: 120px 0 40px;
  }

  .page-header h1 {
    font-size: 32px;
  }
}

/* --- Leadership Grid --- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.leader-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.leader-avatar {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: rgba(255, 255, 255, 0.3);
}

.leader-info {
  padding: 24px;
}

.leader-info h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.leader-info p {
  font-size: 14px;
  color: var(--gold);
  margin: 0;
}

/* --- Values Grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  text-align: center;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.value-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.value-card h4 {
  margin-bottom: 8px;
}

.value-card p {
  font-size: 14px;
  margin: 0;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RTL Overrides --- */
.rtl .nav-link::after {
  transform-origin: right;
}

.rtl .service-card::before {
  transform-origin: right;
}

.rtl .product-features li::before {
  content: '✓';
}

.rtl .tab-benefits li::before {
  content: '←';
}

.rtl .mega-menu {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

/* --- Responsive --- */
@media (max-width: 1024px) {

  /* Merge two levels into single compact bar */
  .header-level-2 {
    display: none;
  }

  .header-separator {
    display: none;
  }

  .header-level-1 .container {
    padding: 0 24px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, var(--navy-dark) 0%, #050e17 100%);
    padding: 96px 36px 40px;
    gap: 4px;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.open .nav-link {
    font-size: 17px;
    padding: 14px 16px;
    height: auto;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
  }

  .nav-menu.open .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
  }

  .nav-menu.open .nav-link.active {
    color: var(--gold);
    background: rgba(0, 158, 160, 0.08);
    font-weight: 600;
  }

  .nav-menu.open .nav-link.active::after {
    display: none;
  }

  .rtl .nav-menu.open {
    right: auto;
    left: 0;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.4);
  }

  .mega-menu {
    display: none !important;
  }

  .hero-data-lines {
    display: none;
  }

  .hero-metrics {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-content {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .tab-content-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .counter-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 120px 0 64px;
  }

  .hero .container {
    flex-direction: column;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-metrics {
    flex-direction: row;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-metric {
    text-align: center;
    border-right: none;
    border-bottom: 2px solid rgba(0, 158, 160, 0.3);
    padding-right: 0;
    padding-bottom: 12px;
  }

  .rtl .hero-metric {
    border-left: none;
    border-bottom: 2px solid rgba(0, 158, 160, 0.3);
    padding-left: 0;
    padding-bottom: 12px;
    text-align: center;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .hero-badge {
    margin-bottom: 24px;
  }

  .hero h1 {
    margin-bottom: 24px;
  }

  .hero-subtitle {
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* --- Two Centers Diagram --- */
.centers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.center-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.center-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.center-card h4 {
  margin-bottom: 8px;
}

.center-card p {
  font-size: 14px;
  margin: 0;
}

@media (max-width: 768px) {
  .centers-grid {
    grid-template-columns: 1fr;
  }
}

/* Growth Chart */
.growth-chart {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 40px;
  margin-top: 48px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 200px;
  justify-content: center;
}

.chart-bar {
  width: 40px;
  background: linear-gradient(to top, var(--gold), var(--gold-light));
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: var(--transition);
  min-height: 10px;
}

.chart-bar:hover {
  opacity: 0.8;
}

.chart-bar-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.chart-bar-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

/* =========================================================================
   ARCHIVE SHOWCASE LAYOUT (PREMIUM ASYMMETRICAL DESIGN)
   ========================================================================= */

.archive-showcase-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: var(--navy-dark);
}

.archive-showcase-section:nth-of-type(even) {
  background: linear-gradient(135deg, var(--navy-dark), #0A1826);
}

/* The vertical data thread connecting the archives */
.archive-thread {
  position: absolute;
  top: 420px;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(22, 140, 139, 0.4), rgba(200, 168, 75, 0.4), transparent);
  transform: translateX(-50%);
  z-index: 0;
}

.rtl .archive-thread {
  transform: translateX(50%);
}

.archive-showcase-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
  position: relative;
  z-index: 1;
  align-items: center;
}

/* Left/Right structural panes */
.archive-content-pane {
  grid-column: span 6;
}

.archive-visual-pane {
  grid-column: span 6;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Create the masonry/alternating effect */
.archive-showcase-section:nth-of-type(even) .archive-content-pane {
  grid-column: 7 / 13;
  grid-row: 1;
  /* Force desktop visual order */
}

.archive-showcase-section:nth-of-type(even) .archive-visual-pane {
  grid-column: 1 / 7;
  grid-row: 1;
}

.archive-visual-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.archive-visual-pane:hover img {
  transform: scale(1.05);
}

.archive-glass-card {
  background: rgba(15, 30, 53, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 50px;
  position: relative;
}

.archive-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--primary-teal));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.archive-glass-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 24px;
}

.archive-glass-card h3 {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.archive-glass-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Premium Metrics Grid inside the glassy card */
.archive-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
}

.archive-stat-box {
  display: flex;
  flex-direction: column;
}

.archive-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  font-family: inherit;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
}

.archive-stat-value .suffix {
  font-size: 20px;
  margin-left: 2px;
}

.rtl .archive-stat-value .suffix {
  margin-left: 0;
  margin-right: 4px;
}

.archive-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Archive Layout Responsiveness */
@media (max-width: 991px) {
  .archive-thread {
    display: none;
    /* Hide thread on mobile */
  }

  .archive-showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .archive-stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Reset alternating order for mobile so text is always first */
  .archive-showcase-section:nth-of-type(even) .archive-content-pane,
  .archive-showcase-section:nth-of-type(even) .archive-visual-pane {
    grid-column: auto;
    grid-row: auto;
  }

  /* Force text above image on mobile */
  .archive-content-pane {
    order: 1;
  }

  .archive-visual-pane {
    order: 2;
  }

  .archive-glass-card {
    padding: 32px;
  }

  .archive-glass-card h3 {
    font-size: 28px;
  }
}


/* ============================================
   PREMIUM IMAGE CONTAINERS — Global Upgrade
   Soft curves, glow borders, refined shadows
   ============================================ */

/* --- 1. Mission Section Image --- */
.abstract-map {
  position: relative;
  border-radius: 24px !important;
  overflow: hidden;
  padding: 4px;
  background: linear-gradient(135deg, rgba(33, 152, 180, 0.3), rgba(21, 43, 50, 0.6), rgba(33, 152, 180, 0.2));
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(33, 152, 180, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.abstract-map::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(33, 152, 180, 0.4), transparent 50%, rgba(33, 152, 180, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.abstract-map:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(33, 152, 180, 0.12);
  transform: translateY(-2px);
}

.abstract-map img {
  border-radius: 20px !important;
  display: block;
}

/* --- 2. Audience Solutions Tab Panel Images (Home) --- */
.tab-panel img.img-fluid {
  border-radius: 20px !important;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.18),
    0 0 16px rgba(33, 152, 180, 0.06) !important;
  border: 1px solid rgba(33, 152, 180, 0.2) !important;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.tab-panel img.img-fluid:hover {
  transform: scale(1.02);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(33, 152, 180, 0.1) !important;
}

/* --- 3. Blog/Capabilities Cards --- */
.blog-card {
  border-radius: 16px !important;
  border: 1px solid rgba(33, 152, 180, 0.12) !important;
  box-shadow:
    0 4px 16px rgba(13, 34, 51, 0.08),
    0 0 8px rgba(33, 152, 180, 0.03) !important;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.blog-card:hover {
  transform: translateY(-6px) !important;
  box-shadow:
    0 12px 36px rgba(13, 34, 51, 0.16),
    0 0 16px rgba(33, 152, 180, 0.06) !important;
}

.blog-image-wrapper {
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  position: relative;
}

.blog-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.6), transparent);
  pointer-events: none;
  z-index: 1;
}

.blog-card img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.blog-card:hover img {
  transform: scale(1.08) !important;
}

/* --- 4. Archive Showcase Images --- */
.archive-visual-pane {
  border-radius: 24px !important;
  overflow: hidden;
  padding: 3px;
  background: linear-gradient(135deg, rgba(33, 152, 180, 0.25), rgba(21, 43, 50, 0.5), rgba(33, 152, 180, 0.15));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(33, 152, 180, 0.06) !important;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.archive-visual-pane:hover {
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(33, 152, 180, 0.1) !important;
  transform: translateY(-3px);
}

.archive-visual-pane img {
  border-radius: 21px !important;
}

/* --- 5. Products Page Images --- */
.product-content img {
  border-radius: 20px !important;
  border: 1px solid rgba(33, 152, 180, 0.2) !important;
  box-shadow:
    0 8px 28px rgba(13, 34, 51, 0.14),
    0 0 14px rgba(33, 152, 180, 0.05) !important;
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
  padding: 3px;
  background: linear-gradient(135deg, rgba(33, 152, 180, 0.08), rgba(21, 43, 50, 0.12));
}

.product-content img:hover {
  transform: scale(1.02);
  box-shadow:
    0 14px 40px rgba(13, 34, 51, 0.2),
    0 0 22px rgba(33, 152, 180, 0.08) !important;
  border-color: rgba(33, 152, 180, 0.35) !important;
}

/* --- 6. Solutions Page Tab Images --- */
.tab-content-inner img {
  border-radius: 20px !important;
  border: 1px solid rgba(33, 152, 180, 0.2) !important;
  box-shadow:
    0 8px 28px rgba(13, 34, 51, 0.14),
    0 0 14px rgba(33, 152, 180, 0.05) !important;
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
  padding: 3px;
  background: linear-gradient(135deg, rgba(33, 152, 180, 0.08), rgba(21, 43, 50, 0.12));
}

.tab-content-inner img:hover {
  transform: scale(1.02);
  box-shadow:
    0 14px 40px rgba(13, 34, 51, 0.2),
    0 0 22px rgba(33, 152, 180, 0.08) !important;
  border-color: rgba(33, 152, 180, 0.35) !important;
}

/* --- Service Card Enhancement --- */
.service-card {
  border-radius: 16px !important;
  border: 1px solid rgba(33, 152, 180, 0.1) !important;
  box-shadow:
    0 4px 16px rgba(13, 34, 51, 0.06),
    0 0 6px rgba(33, 152, 180, 0.02) !important;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease !important;
}

.service-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(33, 152, 180, 0.2) !important;
  box-shadow:
    0 12px 36px rgba(13, 34, 51, 0.14),
    0 0 14px rgba(33, 152, 180, 0.06) !important;
}

/* --- Responsive: Ensure image frames look great on mobile --- */
@media (max-width: 768px) {

  .abstract-map,
  .archive-visual-pane {
    border-radius: 16px !important;
    padding: 2px;
  }

  .abstract-map img,
  .archive-visual-pane img {
    border-radius: 14px !important;
  }

  .tab-panel img.img-fluid,
  .product-content img,
  .tab-content-inner img {
    border-radius: 14px !important;
    padding: 2px;
  }

  .blog-card {
    border-radius: 12px !important;
  }

  .blog-image-wrapper {
    border-radius: 12px 12px 0 0;
  }

  .service-card {
    border-radius: 12px !important;
  }
}