/* ============================================================
   KAFA FOR MANAGEMENT SOLUTIONS — style.css
   Global stylesheet for all pages (EN + AR)
   ============================================================ */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400&display=swap');

/* ===== LOGO SIZE FIX ===== */
.header-logo .logo-img {
  height: 48px !important;
  width: auto !important;
  max-width: 120px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  display: block;
}

.footer-brand .logo-img {
  height: 140px !important;
  width: auto !important;
  max-width: 180px !important;
  max-height: 140px !important;
  object-fit: contain !important;
  display: block;
  margin-bottom: 20px;
}

[dir="rtl"] .footer-brand .logo-img { margin-right: auto; margin-left: 0; }


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Palette */
  --burgundy:       #661414;
  --burgundy-dark:  #3d0808;
  --burgundy-mid:   #8b1a1a;
  --burgundy-light: #a82020;
  --burgundy-pale:  #c43030;
  --white:          #ffffff;
  --off-white:      #fdf5f5;
  --cream:          #f8eeee;
  --text-dark:      #1a0505;
  --text-mid:       #3d1010;
  --text-body:      #5a2020;
  --text-muted:     #6b3333;

  /* Glass / Overlay */
  --glass-bg:       rgba(255, 255, 255, 0.06);
  --glass-border:   rgba(255, 255, 255, 0.15);

  /* Shadows */
  --shadow-deep:    0 20px 60px rgba(102, 20, 20, 0.40);
  --shadow-card:    0 8px  32px rgba(102, 20, 20, 0.18);
  --shadow-hover:   0 20px 60px rgba(102, 20, 20, 0.22);

  /* Typography — English */
  --font-en:  'Inter',  sans-serif;
  /* Typography — Arabic */
  --font-ar:  sans-serif;

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --section-pad: 110px 5%;
  --header-h:    72px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* LTR (English) body */
body {
  font-family: var(--font-en);
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* RTL (Arabic) body — applied via <html dir="rtl"> */
[dir="rtl"] body,
[dir="rtl"] {
  font-family: var(--font-ar);
}

/* Scrollbar */
::-webkit-scrollbar            { width: 5px; }
::-webkit-scrollbar-track      { background: var(--cream); }
::-webkit-scrollbar-thumb      { background: var(--burgundy); border-radius: 10px; }

/* ============================================================
   3. STICKY HEADER
   ============================================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 3rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(102, 20, 20, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: height 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* عكس ترتيب الهيدر للنسخة العربية: الشعار يسار، القائمة + اللغة يمين */
[dir="rtl"] header {
  flex-direction: row-reverse;
}

header.scrolled {
  height: 60px;
  background: rgba(61, 8, 8, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ── Logo ── */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

/* SVG text logo — EN */
.logo-svg {
  display: block;
  height: 36px;
  width: auto;
}

.header-logo-text {
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

[dir="rtl"] .header-logo {
  flex-direction: row-reverse;
}

[dir="rtl"] .header-logo-text {
  letter-spacing: 0.04em;
}

/* ── Desktop Nav ── */
nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

[dir="rtl"] nav {
  flex-direction: row-reverse;
}

nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
}

[dir="rtl"] nav a {
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 100%;
  height: 1px;
  background: var(--white);
  transition: right 0.3s var(--ease);
}

[dir="rtl"] nav a::after {
  left: 100%; right: 0;
  transition: left 0.3s var(--ease);
}

nav a:hover              { color: var(--white); }
nav a:hover::after       { right: 0; }
[dir="rtl"] nav a:hover::after { left: 0; }

nav a.active {
  color: var(--white);
  font-weight: 700;
}

nav a.active::after {
  right: 0;
}

[dir="rtl"] nav a.active::after {
  left: 0;
}

/* ── Language Toggle Button ── */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
  white-space: nowrap;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.04);
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
  outline: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Mobile Nav Drawer ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(61, 8, 8, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s;
}

.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.25s;
}

[dir="rtl"] .mobile-nav a {
  text-align: right;
  letter-spacing: 0.02em;
}

.mobile-nav a:hover { color: var(--white); }

/* ============================================================
   4. HERO SECTION
   ============================================================ */
#hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background: var(--burgundy-dark);
}

/* Animated background circles */
.hero-bg { position: absolute; inset: 0; overflow: hidden; }

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 48, 48, 0.25) 0%, transparent 70%);
}

.hero-bg-circle.c1 {
  width: 800px; height: 800px;
  top: -300px; right: -200px;
  animation: float1 12s ease-in-out infinite;
}

.hero-bg-circle.c2 {
  width: 500px; height: 500px;
  bottom: -150px; left: 10%;
  animation: float2 15s ease-in-out infinite;
}

/* RTL flips the circles */
[dir="rtl"] .hero-bg-circle.c1 { right: auto; left: -200px; }
[dir="rtl"] .hero-bg-circle.c2 { left: auto; right: 10%; }

.hero-bg-lines {
  position: absolute;
  inset: 0;
  opacity: 0.05;
}

@keyframes float1 {
  0%,100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, 40px) scale(1.08); }
}
@keyframes float2 {
  0%,100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -30px) scale(1.05); }
}

/* ── Hero Content ── */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 5% 80px 8%;
  max-width: 650px;
}

[dir="rtl"] .hero-content {
  padding: 140px 8% 80px 5%;
  text-align: right;
  max-width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

[dir="rtl"] .hero-eyebrow { flex-direction: row-reverse; }
[dir="rtl"] .hero-eyebrow::before { display: none; }
[dir="rtl"] .hero-eyebrow::after {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

/* تكبير خط التاريخ في الهيدر للنسخة العربية */
[dir="rtl"] .hero-eyebrow {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  direction: rtl;
  unicode-bidi: plaintext;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

[dir="rtl"] .hero-title {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.hero-title .accent {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.45);
  display: block;
}

.hero-title .highlight {
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  z-index: -1;
  border-radius: 2px;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 44px;
  max-width: 500px;
}

[dir="rtl"] .hero-desc {
  line-height: 1.85;
  max-width: 520px;
  margin-right: auto;
}

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

[dir="rtl"] .hero-actions {
  justify-content: flex-end;
}

/* ── Hero Visual (stat cards) ── */
.hero-visual {
  position: relative;
  z-index: 2;
  padding: 120px 8% 80px 4%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}

[dir="rtl"] .hero-visual {
  padding: 120px 4% 80px 8%;
  align-items: flex-start;
}

.hero-stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 22px 30px;
  width: 240px;
  position: relative;
  overflow: hidden;
  animation: cardFloat 3s ease-in-out infinite;
}

.hero-stat-card:nth-child(2) { animation-delay: 1s; margin-right: 40px; }
.hero-stat-card:nth-child(3) { animation-delay: 2s; }

[dir="rtl"] .hero-stat-card { text-align: right; }
[dir="rtl"] .hero-stat-card:nth-child(2) { margin-right: 0; margin-left: 40px; }

@keyframes cardFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: rgba(255, 255, 255, 0.5);
}

[dir="rtl"] .hero-stat-card::before { left: auto; right: 0; }

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* ── Scroll Indicator ── */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollDown 1.6s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { opacity: 0; transform: scaleY(0) translateY(-20px); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1) translateY(10px); }
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn-primary {
  padding: 15px 34px;
  background: var(--white);
  color: var(--burgundy);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.25);
}

.btn-outline {
  padding: 15px 34px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

/* Dark variant (on light backgrounds) */
.btn-primary-dark {
  padding: 14px 32px;
  background: var(--burgundy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 20, 20, 0.35);
}

/* ============================================================
   6. MARQUEE / TICKER
   ============================================================ */
.marquee-section {
  background: var(--off-white);
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid rgba(102, 20, 20, 0.08);
  border-bottom: 1px solid rgba(102, 20, 20, 0.08);
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
}

/* LTR scrolls right→left */
.marquee-track.ltr { animation: marquee-ltr 30s linear infinite; }
/* RTL scrolls left→right */
.marquee-track.rtl { animation: marquee-rtl 30s linear infinite; }

@keyframes marquee-ltr { 0%{transform:translateX(0)}   100%{transform:translateX(-50%)} }
@keyframes marquee-rtl { 0%{transform:translateX(0)}   100%{transform:translateX(50%)}  }

.marquee-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 50px;
  border-right: 1px solid rgba(102, 20, 20, 0.12);
  white-space: nowrap;
}

[dir="rtl"] .marquee-item { border-right: none; border-left: 1px solid rgba(102, 20, 20, 0.12); }

.marquee-dot {
  width: 8px; height: 8px;
  background: var(--burgundy);
  border-radius: 50%;
  opacity: 0.5;
  flex-shrink: 0;
}

.marquee-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy-mid);
}

[dir="rtl"] .marquee-text { letter-spacing: 0.04em; font-size: 0.85rem; }

/* ============================================================
   7. GENERAL SECTION LAYOUT & TYPOGRAPHY
   ============================================================ */
section {
  padding: var(--section-pad);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--burgundy-mid);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--burgundy-mid);
}

[dir="rtl"] .section-label {
  flex-direction: row-reverse;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

[dir="rtl"] .section-label::before { display: none; }
[dir="rtl"] .section-label::after {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--burgundy-mid);
}

/* On dark backgrounds */
.section-label.light        { color: rgba(255,255,255,0.55); }
.section-label.light::before { background: rgba(255,255,255,0.4); }
[dir="rtl"] .section-label.light::after { background: rgba(255,255,255,0.4); }

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 22px;
}

[dir="rtl"] .section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.section-title.light { color: var(--white); }

.section-title .underline {
  position: relative;
  display: inline-block;
}

.section-title .underline::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 8px;
  background: rgba(102, 20, 20, 0.12);
  z-index: -1;
  border-radius: 2px;
}

.section-title.light .underline::after { background: rgba(255,255,255,0.18); }

.section-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 580px;
}

[dir="rtl"] .section-desc { line-height: 1.85; }

.section-desc.light { color: rgba(255,255,255,0.75); }

/* Centered section header helper */
.section-header-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

.section-header-center .section-desc { text-align: center; }

/* ============================================================
   8. ABOUT SECTION
   ============================================================ */
#about {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

[dir="rtl"] #about { }

.about-text { }
[dir="rtl"] .about-text { text-align: right; }

/* About card (dark card on right / left in RTL) */
.about-card {
  background: var(--burgundy);
  color: var(--white);
  border-radius: 20px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  top: -100px; right: -100px;
}

[dir="rtl"] .about-card::before { right: auto; left: -100px; }

.about-card::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  bottom: -60px; left: -60px;
}

[dir="rtl"] .about-card::after { left: auto; right: -60px; }

.about-quote {
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

[dir="rtl"] .about-quote { text-align: right; }

.about-quote strong {
  font-weight: 700;
  color: var(--white);
  font-style: normal;
}

.about-mission        { position: relative; z-index: 1; }
[dir="rtl"] .about-mission { text-align: right; }

.about-mission-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.about-mission-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* Values grid */
.about-values {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value-chip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: var(--cream);
  border-radius: 10px;
  border-left: 3px solid var(--burgundy);
  transition: background 0.3s, transform 0.3s;
}

[dir="rtl"] .value-chip {
  flex-direction: row-reverse;
  text-align: right;
  border-left: none;
  border-right: 3px solid var(--burgundy);
}

.value-chip:hover {
  background: rgba(102, 20, 20, 0.06);
  transform: translateX(4px);
}

[dir="rtl"] .value-chip:hover { transform: translateX(-4px); }

.value-icon {
  width: 32px; height: 32px;
  background: rgba(102, 20, 20, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.value-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 3px;
}

.value-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   9. VISION / OMAN 2040 SECTION
   ============================================================ */
#vision {
  background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#vision::before {
  content: '2040';
  position: absolute;
  font-size: 25vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.04em;
}

[dir="rtl"] #vision::before { right: auto; left: -3%; content: '٢٠٤٠'; }

.vision-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

[dir="rtl"] .vision-left { text-align: right; }

.vision-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vision-pillar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s;
  cursor: default;
}

[dir="rtl"] .vision-pillar { flex-direction: row-reverse; text-align: right; }

.vision-pillar:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-8px);
  border-color: rgba(255, 255, 255, 0.25);
}

[dir="rtl"] .vision-pillar:hover { transform: translateX(8px); }

.vision-pillar-num {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.18);
  line-height: 1;
  min-width: 40px;
}

.vision-pillar-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.vision-pillar-content p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* ============================================================
   10. COUNTERS STRIP
   ============================================================ */
#counters {
  background: var(--burgundy);
  padding: 80px 5%;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.counter-number {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}

.counter-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[dir="rtl"] .counter-label { letter-spacing: 0.02em; }

/* ============================================================
   11. SERVICES — FLIP CARDS
   ============================================================ */
#services { background: var(--off-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.service-card {
  position: relative;
  height: 340px;
  perspective: 1200px;
  cursor: pointer;
}

.service-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
  border-radius: 16px;
}

/* LTR flips to the right, RTL to the left */
.service-card:hover .service-card-inner    { transform: rotateY(180deg); }
[dir="rtl"] .service-card:hover .service-card-inner { transform: rotateY(-180deg); }

.service-card-front,
.service-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}

.service-card-front {
  background: var(--white);
  border: 1px solid rgba(102, 20, 20, 0.1);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

[dir="rtl"] .service-card-front { text-align: right; }

.service-icon-wrap {
  width: 56px; height: 56px;
  background: rgba(102, 20, 20, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon-wrap svg { width: 28px; height: 28px; stroke: var(--burgundy); }

.service-card-front h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-top: 20px;
}

.service-card-front p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-top: 10px;
}

.service-card-front .hint {
  font-size: 0.72rem;
  color: var(--burgundy);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

[dir="rtl"] .service-card-front .hint { justify-content: flex-end; }

.service-card-back {
  background: var(--burgundy);
  transform: rotateY(180deg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

[dir="rtl"] .service-card-back {
  transform: rotateY(-180deg);
  text-align: right;
}

.service-back-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-back-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.service-back-item::before      { content: '→'; color: rgba(255,255,255,0.5); flex-shrink: 0; }
[dir="rtl"] .service-back-item { flex-direction: row-reverse; }
[dir="rtl"] .service-back-item::before { content: '←'; }

/* ============================================================
   12. PAIN & SOLUTION
   ============================================================ */
#pain { background: var(--white); }

.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
  align-items: start;
}

.pain-side h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid;
}

.pain-side.problems h3 { color: var(--text-dark); border-color: rgba(0,0,0,0.1); }
.pain-side.solutions h3 { color: var(--burgundy); border-color: var(--burgundy); }

[dir="rtl"] .pain-side h3 { text-align: right; }

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(102, 20, 20, 0.06);
}

.pain-item:last-child { border-bottom: none; }

[dir="rtl"] .pain-item { flex-direction: row-reverse; text-align: right; }

.pain-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.problems .pain-icon  { background: rgba(0,0,0,0.05); }
.solutions .pain-icon { background: rgba(102,20,20,0.08); }

.pain-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4a2222;
}

.pain-text strong {
  display: block;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-size: 0.88rem;
}

/* ============================================================
   13. BLOG CARDS
   ============================================================ */
#blog { background: var(--cream); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}

.blog-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(102, 20, 20, 0.08);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(102, 20, 20, 0.15);
}

.blog-card-img {
  height: 180px;
  background: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card-img svg {
  width: 60px; height: 60px;
  stroke: rgba(255,255,255,0.25);
  fill: none;
  stroke-width: 1.5;
}

.blog-card-body { padding: 28px; }
[dir="rtl"] .blog-card-body { text-align: right; }

.blog-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 10px;
  display: block;
}

[dir="rtl"] .blog-tag { letter-spacing: 0.04em; }

.blog-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog-card-body p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.blog-meta {
  margin-top: 20px;
  font-size: 0.75rem;
  color: rgba(102, 20, 20, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

[dir="rtl"] .blog-meta { justify-content: flex-end; }

/* ============================================================
   14. FAQ ACCORDION
   ============================================================ */
#faq { background: var(--white); }

.faq-list {
  margin-top: 60px;
  max-width: 800px;
}

[dir="rtl"] .faq-list { margin-right: 0; }

.faq-item { border-bottom: 1px solid rgba(102, 20, 20, 0.1); overflow: hidden; }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  gap: 20px;
  transition: color 0.25s;
  user-select: none;
}

[dir="rtl"] .faq-question { flex-direction: row-reverse; }

.faq-question:hover { color: var(--burgundy); }

.faq-toggle {
  width: 28px; height: 28px;
  background: rgba(102, 20, 20, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.35s var(--ease);
}

.faq-toggle span {
  display: block;
  width: 12px; height: 1.5px;
  background: var(--burgundy);
  position: relative;
  transition: background 0.35s;
}

.faq-toggle span::after {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  background: var(--burgundy);
  top: 0; left: 0;
  transform: rotate(90deg);
  transition: transform 0.35s var(--ease), background 0.35s;
}

.faq-item.open .faq-toggle            { background: var(--burgundy); }
.faq-item.open .faq-toggle span       { background: var(--white); }
.faq-item.open .faq-toggle span::after { background: var(--white); transform: rotate(0); }
.faq-item.open .faq-question          { color: var(--burgundy); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), padding-bottom 0.3s;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #5a2828;
  padding-bottom: 0;
}

[dir="rtl"] .faq-answer { text-align: right; }

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

/* ============================================================
   15. FOOTER
   ============================================================ */
footer {
  background: var(--burgundy-dark);
  color: var(--white);
  padding: 80px 5% 40px;
}

/* 4-column grid: Brand | Services | Company | Contact
   Updated to accommodate LinkedIn icon in social row         */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand { }
[dir="rtl"] .footer-brand { text-align: right; }

.footer-brand .logo-svg { height: 40px; width: auto; display: block; margin-bottom: 20px; }
[dir="rtl"] .footer-brand .logo-svg { margin-right: auto; }

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 28px;
}

[dir="rtl"] .footer-tagline { text-align: right; }

/* Social icons row — now holds 5 icons: Instagram + X + Email + Phone + LinkedIn */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

[dir="rtl"] .footer-social { flex-direction: row; }

.social-link {
  width: 38px; height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  text-decoration: none;
  cursor: pointer;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.social-link svg  { width: 16px; height: 16px; }
.social-link path { }

/* Footer columns */
.footer-col { }
[dir="rtl"] .footer-col { text-align: right; }

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

[dir="rtl"] .footer-col h5 { letter-spacing: 0.04em; }

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.25s;
}

.footer-col ul li a:hover { color: var(--white); }

/* Contact items */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

[dir="rtl"] .footer-contact-item { flex-direction: row-reverse; }

.footer-contact-item svg {
  width: 16px; height: 16px;
  stroke: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item span {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  gap: 20px;
  flex-wrap: wrap;
}

[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-bottom-links a:hover { color: rgba(255, 255, 255, 0.7); }

/* ============================================================
   16. FLOATING WHATSAPP BUTTON
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 34px;
  right: 34px;
  z-index: 9999;
  text-decoration: none;
  display: block;
}

[dir="rtl"] .wa-float { right: auto; left: 34px; }

.wa-cloud {
  width: 66px; height: 66px;
  display: block;
  animation: waFloat 3.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(37, 211, 102, 0.5));
  transition: transform 0.35s var(--ease), filter 0.35s;
}

.wa-float:hover .wa-cloud {
  transform: scale(1.15);
  filter: drop-shadow(0 12px 28px rgba(37, 211, 102, 0.7));
}

@keyframes waFloat {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-12px) rotate(3deg); }
}

.wa-tooltip {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a1a;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

[dir="rtl"] .wa-tooltip {
  right: auto;
  left: 80px;
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: #1a1a1a;
}

[dir="rtl"] .wa-tooltip::after {
  right: auto;
  left: -6px;
  border-left: none;
  border-right-color: #1a1a1a;
}

.wa-float:hover .wa-tooltip { opacity: 1; }

/* ============================================================
   17. REVEAL / SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }
.reveal-delay-5 { transition-delay: 0.50s; }
.reveal-delay-6 { transition-delay: 0.60s; }

/* ============================================================
   18. TIMELINE  (Company History / About page)
   ============================================================ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0;
  padding: 0 20px;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--burgundy), rgba(102,20,20,0.1));
  transform: translateX(-50%);
}

[dir="rtl"] .timeline::before {
  left: 50%;
  right: auto;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 48px;
}

/* Dot on the line */
.timeline-dot {
  width: 18px; height: 18px;
  background: var(--burgundy);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--burgundy);
  margin: 8px auto 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Year badge */
.timeline-year {
  display: block;
  width: fit-content;
  background: var(--burgundy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* Content card */
.timeline-content {
  background: var(--white);
  border: 1px solid rgba(102,20,20,0.1);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(102,20,20,0.07);
  transition: box-shadow 0.3s, transform 0.3s;
}

.timeline-content:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.timeline-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Alternate sides: odd items — left side */
.timeline-item:nth-child(odd)  .timeline-content-left  { display: block; }
.timeline-item:nth-child(odd)  .timeline-content-right { display: none; }
.timeline-item:nth-child(even) .timeline-content-left  { display: none; }
.timeline-item:nth-child(even) .timeline-content-right { display: block; }

.timeline-left  { padding-right: 24px; }
.timeline-right { padding-left: 24px; }

[dir="rtl"] .timeline-left  { padding-right: 0; padding-left: 24px; }
[dir="rtl"] .timeline-right { padding-left: 0; padding-right: 24px; }

/* ============================================================
   19. INFOGRAPHICS GRID  (Benefits / Value Proposition)
   ============================================================ */
.infographics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 60px;
}

.infographic-card {
  background: var(--white);
  border: 1px solid rgba(102,20,20,0.08);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(102,20,20,0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

.infographic-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--burgundy), var(--burgundy-pale));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.infographic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.infographic-card:hover::before { transform: scaleX(1); }

.infographic-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: rgba(102,20,20,0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.infographic-icon svg {
  width: 30px; height: 30px;
  stroke: var(--burgundy);
  fill: none;
  stroke-width: 1.8;
}

.infographic-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--burgundy);
  line-height: 1;
  margin-bottom: 8px;
}

.infographic-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.infographic-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   20. PARTNERS GRID  (Logos / Clients)
   ============================================================ */
#partners { background: var(--off-white); }

.partners-header {
  text-align: center;
  margin-bottom: 60px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.partner-logo {
  background: var(--white);
  border: 1px solid rgba(102,20,20,0.08);
  border-radius: 12px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(102,20,20,0.05);
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
  overflow: hidden;
}

.partner-logo:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
  border-color: rgba(102,20,20,0.2);
}

/* Placeholder SVG inside each .partner-logo */
.partner-logo svg,
.partner-logo img {
  max-width: 100%;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(60%);
  transition: opacity 0.3s, filter 0.3s;
}

.partner-logo:hover svg,
.partner-logo:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

/* Placeholder text (used before real logos are added) */
.partner-placeholder {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(102,20,20,0.3);
  text-transform: uppercase;
}

/* ============================================================
   21. PAGE HERO (Inner Pages — smaller than homepage hero)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy-mid) 100%);
  padding: 160px 5% 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

[dir="rtl"] .page-hero { text-align: center; }

.page-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  top: -200px; right: -150px;
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  bottom: -100px; left: -100px;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.page-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-hero-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   22. BREADCRUMBS
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  justify-content: center;
}

[dir="rtl"] .breadcrumb { flex-direction: row-reverse; }

.breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.25s;
}

.breadcrumb a:hover { color: var(--white); }
.breadcrumb span   { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: var(--white); font-weight: 600; }

/* ============================================================
   23. UTILITY CLASSES
   ============================================================ */
.text-center  { text-align: center; }
.mt-0  { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-60 { margin-top: 60px; }
.mb-0  { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-60 { margin-bottom: 60px; }
.bg-white     { background: var(--white); }
.bg-offwhite  { background: var(--off-white); }
.bg-cream     { background: var(--cream); }
.bg-burgundy  { background: var(--burgundy); }
.bg-dark      { background: var(--burgundy-dark); }

/* ============================================================
   24. RESPONSIVE — TABLET  (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  #hero                { grid-template-columns: 1fr; }
  .hero-visual         { display: none; }
  .hero-content        { padding: 140px 5% 80px; max-width: 100%; }
  [dir="rtl"] .hero-content { padding: 140px 5% 80px; }

  #about               { grid-template-columns: 1fr; gap: 50px; }
  .vision-inner        { grid-template-columns: 1fr; gap: 50px; }
  .counters-grid       { grid-template-columns: repeat(2, 1fr); }
  .footer-grid         { grid-template-columns: 1fr 1fr; gap: 40px; }
  .pain-grid           { gap: 40px; }
  .blog-grid           { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   25. RESPONSIVE — MOBILE  (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-pad: 80px 5%; --header-h: 64px; }

  nav          { display: none; }
  .hamburger   { display: flex; }
  header       { padding: 0 1.5rem; }

  .services-grid       { grid-template-columns: 1fr; }
  .pain-grid           { grid-template-columns: 1fr; }
  .blog-grid           { grid-template-columns: 1fr; }
  .footer-grid         { grid-template-columns: 1fr; gap: 30px; }
  .counters-grid       { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .about-values        { grid-template-columns: 1fr; }
  .infographics-grid   { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .partners-grid       { grid-template-columns: repeat(2, 1fr); }

  .timeline::before    { left: 20px; }
  .timeline-item       { grid-template-columns: 40px 1fr; }
  .timeline-dot        { margin: 8px 0; }
  .timeline-left,
  .timeline-right      { padding: 0 0 0 20px; }
  [dir="rtl"] .timeline-left,
  [dir="rtl"] .timeline-right { padding: 0 20px 0 0; }
  .timeline-item:nth-child(odd)  .timeline-content-left  { display: block; }
  .timeline-item:nth-child(odd)  .timeline-content-right { display: none; }
  .timeline-item:nth-child(even) .timeline-content-left  { display: block; }
  .timeline-item:nth-child(even) .timeline-content-right { display: none; }

  .page-hero { padding: 130px 5% 70px; }
}

/* ============================================================
   26. RESPONSIVE — SMALL MOBILE  (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-actions          { flex-direction: column; }
  .btn-primary,
  .btn-outline           { text-align: center; justify-content: center; width: 100%; }
  .counters-grid         { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .infographics-grid     { grid-template-columns: 1fr; }
  .partners-grid         { grid-template-columns: repeat(2, 1fr); }
  .footer-social         { flex-wrap: wrap; }
}

/* ============================================================
   27. REDUCED MOTION PREFERENCE
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   28. SPA — PAGE SECTION TOGGLING
   ============================================================ */
.page-section {
  display: none;
}

.page-section.active {
  display: block;
  animation: pageFadeIn 0.5s var(--ease);
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   29. SPA — LANGUAGE TOGGLING (EN / AR content blocks)
   ============================================================ */
[data-lang] { display: none; }

html[lang="en"] [data-lang="en"],
html[lang="ar"] [data-lang="ar"] {
  display: revert;
}

/* Block-level elements that should display as block when shown */
html[lang="en"] [data-lang="en"].block,
html[lang="ar"] [data-lang="ar"].block,
html[lang="en"] section[data-lang="en"],
html[lang="ar"] section[data-lang="ar"],
html[lang="en"] div[data-lang="en"],
html[lang="ar"] div[data-lang="ar"],
html[lang="en"] article[data-lang="en"],
html[lang="ar"] article[data-lang="ar"],
html[lang="en"] nav[data-lang="en"],
html[lang="ar"] nav[data-lang="ar"] {
  display: block;
}

html[lang="en"] span[data-lang="en"],
html[lang="ar"] span[data-lang="ar"] {
  display: inline;
}

html[lang="en"] header[data-lang="en"],
html[lang="ar"] header[data-lang="ar"] {
  display: flex;
}

/* ============================================================
   30. LEADERSHIP SECTION (About page)
   ============================================================ */
#leadership {
  background: var(--off-white);
  padding: var(--section-pad);
}

.leader-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px; /* تم تقليل المسافة قليلاً لضمان احتواء النص */
  align-items: start;
  max-width: 1060px;
  margin: 64px auto 0;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(102, 20, 20, 0.10);
  box-sizing: border-box; /* تمت الإضافة لمنع تجاوز الحدود */
}

[dir="rtl"] .leader-card {
  grid-template-columns: 1fr 340px;
}

/* Photo column */
.leader-photo-wrap {
  position: relative;
  height: 100%;
  min-height: 460px;
  background: linear-gradient(155deg, var(--burgundy-dark) 0%, var(--burgundy-mid) 60%, var(--burgundy-pale) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 40px 32px 36px;
  overflow: hidden;
}

[dir="rtl"] .leader-photo-wrap { order: 2; }

.leader-photo-wrap::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -80px; right: -80px;
}

[dir="rtl"] .leader-photo-wrap::before { right: auto; left: -80px; }

.leader-photo-wrap::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: 80px; left: -60px;
}

[dir="rtl"] .leader-photo-wrap::after { left: auto; right: -60px; }

.leader-avatar {
  position: relative;
  z-index: 2;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 3px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
}

.leader-avatar svg { width: 100px; height: 100px; }

.leader-photo-name {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 20px;
}

.leader-photo-name h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.leader-photo-name span {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[dir="rtl"] .leader-photo-name span { letter-spacing: 0.04em; text-transform: none; }

.leader-photo-wrap .deco-quote {
  position: absolute;
  top: 24px; left: 24px;
  font-size: 7rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(255,255,255,0.06);
  z-index: 1;
  pointer-events: none;
}

[dir="rtl"] .leader-photo-wrap .deco-quote { left: auto; right: 24px; }

/* Bio column */
.leader-bio {
  padding: 52px; /* تمت الإضافة: توحيد الهوامش من جميع الجهات */
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box; /* تمت الإضافة: حماية الحاوية */
  max-width: 100%;
}

[dir="rtl"] .leader-bio {
  padding: 52px; /* تمت الإضافة: توحيد الهوامش في وضع اللغة العربية */
  text-align: right;
  order: 1;
}

.leader-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(102,20,20,0.08);
  border: 1px solid rgba(102,20,20,0.14);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 24px;
  width: fit-content;
}

[dir="rtl"] .leader-role-badge {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: none;
  flex-direction: row-reverse;
  margin-right: auto;
}

.leader-role-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--burgundy);
  border-radius: 50%;
}

.leader-bio h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

[dir="rtl"] .leader-bio h2 { line-height: 1.2; letter-spacing: -0.01em; }

.leader-bio-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-style: italic;
}

[dir="rtl"] .leader-bio-subtitle { font-style: normal; }

.leader-bio-divider {
  width: 48px; height: 3px;
  background: var(--burgundy);
  border-radius: 2px;
  margin-bottom: 28px;
}

[dir="rtl"] .leader-bio-divider { margin-right: auto; }

.leader-bio p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 18px;
  word-wrap: break-word; /* تمت الإضافة: إجبار الكلمات على البقاء داخل الحد */
  max-width: 100%;       /* تمت الإضافة: حماية عرض النص */
}

[dir="rtl"] .leader-bio p { line-height: 1.9; }

.leader-bio p:last-of-type { margin-bottom: 32px; }

/* Expertise tags */
.leader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

[dir="rtl"] .leader-tags { justify-content: flex-end; }

.leader-tag {
  padding: 6px 14px;
  background: var(--cream);
  border: 1px solid rgba(102,20,20,0.12);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--burgundy);
}

@media (max-width: 900px) {
  .leader-card { grid-template-columns: 1fr; gap: 0; }
  .leader-photo-wrap { min-height: 320px; }
  [dir="rtl"] .leader-photo-wrap { order: 1; }
  .leader-bio { padding: 40px 32px; }
  [dir="rtl"] .leader-bio { order: 2; padding: 40px 32px; }
}

@media (max-width: 600px) {
  .leader-bio { padding: 32px 24px; }
  [dir="rtl"] .leader-bio { padding: 32px 24px; }
  .leader-bio h2 { font-size: 1.7rem; }
}

/* ============================================================
   31. MISSION / VISION BANNER (About page)
   ============================================================ */
.mv-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 64px;
  box-shadow: var(--shadow-card);
}

.mv-panel {
  padding: 52px 48px;
  position: relative;
  overflow: hidden;
}

.mv-panel.mission { background: var(--burgundy); color: var(--white); }
.mv-panel.vision  { background: var(--burgundy-dark); color: var(--white); }

.mv-panel::before {
  content: '';
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -80px; right: -60px;
}

[dir="rtl"] .mv-panel::before { right: auto; left: -60px; }

.mv-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[dir="rtl"] .mv-label {
  letter-spacing: 0.1em;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.mv-label::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: rgba(255,255,255,0.4);
}

.mv-panel h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

[dir="rtl"] .mv-panel h3 { text-align: right; }

.mv-panel p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  position: relative;
  z-index: 1;
}

[dir="rtl"] .mv-panel p { line-height: 1.85; text-align: right; }

@media (max-width: 700px) {
  .mv-banner { grid-template-columns: 1fr; }
}


/* ============================================================
   32. OPERATIONAL CYCLE INFOGRAPHIC (Services page)
   ============================================================ */
#op-cycle {
  background: linear-gradient(150deg, var(--burgundy-dark) 0%, #1a0202 100%);
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}

#op-cycle::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
#op-cycle::after {
  content: '';
  position: absolute;
  width: 450px; height: 450px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}

.cycle-header { position: relative; z-index: 2; margin-bottom: 72px; }

.cycle-orbit {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cycle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.cycle-row.middle { margin: -2px 0; }

.cycle-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 160px;
  gap: 12px;
  position: relative;
}

.cycle-step-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s, border-color 0.35s, transform 0.35s;
  position: relative;
  z-index: 2;
}

.cycle-step:hover .cycle-step-icon {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
  transform: scale(1.1);
}

.cycle-step-icon svg {
  width: 30px; height: 30px;
  stroke: rgba(255,255,255,0.85);
  fill: none;
  stroke-width: 1.6;
}

.cycle-step-num {
  position: absolute;
  top: -6px; right: -6px;
  width: 22px; height: 22px;
  background: var(--burgundy-pale);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--burgundy-dark);
}

[dir="rtl"] .cycle-step-num {
  right: auto; left: -6px;
  font-size: 0.65rem;
}

.cycle-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

[dir="rtl"] .cycle-step-label { font-size: 0.82rem; letter-spacing: 0; }

.cycle-step-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
  max-width: 120px;
}

[dir="rtl"] .cycle-step-sub { font-size: 0.7rem; line-height: 1.45; max-width: 130px; }

/* Arrows between steps */
.cycle-arrow {
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 4px;
}

.cycle-arrow svg {
  width: 40px; height: 20px;
  stroke: rgba(255,255,255,0.22);
  fill: none;
}

/* In RTL the diagram flow is mirrored — flip arrow icons */
[dir="rtl"] .cycle-arrow svg { transform: scaleX(-1); }
/* ...but explicit reversed-row arrows (.cycle-arrow[style*="scaleX(-1)"]) get flipped back */
[dir="rtl"] .cycle-arrow[style*="scaleX(-1)"] svg { transform: scaleX(1); }

/* Vertical arrows between rows */
.cycle-vert-arrows {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 760px;
  padding: 0 80px;
}

.cycle-vert-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cycle-vert-arrow svg {
  width: 20px; height: 44px;
  stroke: rgba(255,255,255,0.18);
  fill: none;
}

/* Centre hub */
.cycle-hub {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--burgundy);
  border: 2px solid rgba(255,255,255,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 0 0 12px rgba(102,20,20,0.25), 0 0 0 24px rgba(102,20,20,0.12);
  position: relative;
  z-index: 3;
  margin: 0 20px;
  flex-shrink: 0;
}

.cycle-hub-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}

[dir="rtl"] .cycle-hub-label { letter-spacing: 0.08em; text-transform: none; }

.cycle-hub-word {
  font-size: 1.05rem;
  font-weight: 900;
  color: white;
  line-height: 1.1;
}

[dir="rtl"] .cycle-hub-word { font-size: 0.95rem; line-height: 1.15; }

/* Value metrics strip under cycle */
.cycle-metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  max-width: 700px;
  margin: 60px auto 0;
  position: relative;
  z-index: 2;
}

.cycle-metric {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
}

.cycle-metric-val {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

.cycle-metric-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

[dir="rtl"] .cycle-metric-label { font-size: 0.8rem; }

@media (max-width: 900px) {
  .cycle-row        { flex-wrap: wrap; gap: 20px; }
  .cycle-arrow      { display: none; }
  .cycle-vert-arrows { display: none; }
  .cycle-hub        { margin: 20px auto; }
  .cycle-metrics    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .cycle-step       { width: 130px; }
  .cycle-metrics    { grid-template-columns: 1fr; }
}


/* ============================================================
   33. SERVICES PAGE — VALUE SECTION WRAPPER
   ============================================================ */
#value { background: var(--cream); padding: var(--section-pad); }


/* ============================================================
   34. FAQ — ENHANCED (icon + structured answers)
   ============================================================ */
.faq-question-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

[dir="rtl"] .faq-question-inner { flex-direction: row-reverse; }

.faq-q-icon {
  width: 40px; height: 40px;
  background: rgba(102,20,20,0.07);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s;
}

.faq-q-icon svg { width: 20px; height: 20px; stroke: var(--burgundy); fill: none; stroke-width: 1.8; }

.faq-item.open .faq-q-icon { background: rgba(102,20,20,0.12); }

.faq-answer-inner {
  padding: 0 0 0 56px;
}

[dir="rtl"] .faq-answer-inner {
  padding: 0 56px 0 0;
  text-align: right;
}

.faq-answer-inner p {
  font-size: 0.92rem;
  line-height: 1.82;
  color: #5a2828;
  margin-bottom: 14px;
}

[dir="rtl"] .faq-answer-inner p { line-height: 1.88; }

.faq-answer-inner p:last-child { margin-bottom: 0; }

.faq-tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

[dir="rtl"] .faq-tool-pills { justify-content: flex-end; }

.faq-pill {
  padding: 5px 14px;
  background: rgba(102,20,20,0.07);
  border: 1px solid rgba(102,20,20,0.14);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 0.04em;
}

.faq-roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.faq-roi-item {
  background: var(--cream);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

[dir="rtl"] .faq-roi-item { flex-direction: row-reverse; text-align: right; }

.faq-roi-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.faq-roi-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.faq-roi-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

[dir="rtl"] .faq-roi-text span { line-height: 1.55; }

.faq-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.faq-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

[dir="rtl"] .faq-step { flex-direction: row-reverse; text-align: right; }

.faq-step-num {
  width: 28px; height: 28px;
  background: var(--burgundy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  margin-top: 1px;
}

.faq-step-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.faq-step-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 600px) {
  .faq-roi-grid { grid-template-columns: 1fr; }
  .faq-answer-inner { padding-left: 0; padding-right: 0; }
}


/* ============================================================
   35. BLOG GRID — 15-ARTICLE LAYOUT (Blog page)
   ============================================================ */
#blog-grid { background: var(--off-white); padding: var(--section-pad); }

#blog-grid .blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Featured first card spans 2 columns on large screens */
#blog-grid .blog-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

[dir="rtl"] #blog-grid .blog-card.featured {
  grid-template-columns: 1fr 1.1fr;
}

#blog-grid .blog-card.featured .blog-card-img {
  height: 100%;
  min-height: 220px;
}

[dir="rtl"] #blog-grid .blog-card.featured .blog-card-img { order: 2; }

#blog-grid .blog-card.featured .blog-card-img svg { width: 80px; height: 80px; }

#blog-grid .blog-card.featured .blog-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

[dir="rtl"] #blog-grid .blog-card.featured .blog-card-body { order: 1; }

#blog-grid .blog-card.featured .blog-card-body h3 { font-size: 1.3rem; }
[dir="rtl"] #blog-grid .blog-card.featured .blog-card-body h3 { font-size: 1.35rem; }

#blog-grid .blog-card.featured .blog-tag { font-size: 0.74rem; }
[dir="rtl"] #blog-grid .blog-card.featured .blog-tag { font-size: 0.8rem; }

@media (max-width: 1024px) {
  #blog-grid .blog-grid { grid-template-columns: repeat(2, 1fr); }
  #blog-grid .blog-card.featured { grid-column: span 2; grid-template-columns: 1fr; }
  #blog-grid .blog-card.featured .blog-card-img { min-height: 180px; order: 1; }
  #blog-grid .blog-card.featured .blog-card-body { order: 2; }
}

@media (max-width: 700px) {
  #blog-grid .blog-grid { grid-template-columns: 1fr; }
  #blog-grid .blog-card.featured { grid-column: span 1; }
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 64px;
  flex-wrap: wrap;
}

[dir="rtl"] .pagination { direction: rtl; }

.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid rgba(102,20,20,0.14);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
  user-select: none;
}

.page-btn:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
  transform: translateY(-2px);
}

.page-btn.active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
}

.page-btn.nav svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.page-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.page-ellipsis {
  color: rgba(102,20,20,0.4);
  font-size: 0.9rem;
  padding: 0 4px;
  font-weight: 700;
}

/* ============================================================
   تعديل ترتيب وتنسيق عناصر الفوتر للنسخة العربية (RTL)
   ============================================================ */

/* 1. إعادة ترتيب الأعمدة */
@media (min-width: 1025px) {
  [dir="rtl"] .footer-grid {
    grid-template-columns: 1fr 1fr 1.5fr 2fr;
  }
  [dir="rtl"] .footer-brand { order: 4; }
  [dir="rtl"] .footer-grid > div:nth-child(2) { order: 1; }
  [dir="rtl"] .footer-grid > div:nth-child(3) { order: 2; }
  [dir="rtl"] .footer-grid > div:nth-child(4) { order: 3; }
}

/* 2. إصلاح عمود الشعار (محاذاة النص والأيقونات لأقصى اليسار) */
[dir="rtl"] .footer-brand,
[dir="rtl"] .footer-tagline {
  text-align: left;
}
[dir="rtl"] .footer-tagline {
  margin-right: auto;
  margin-left: 0;
}
[dir="rtl"] .footer-social {
  justify-content: flex-end; /* يدفع أيقونات التواصل الاجتماعي لأقصى اليسار */
}
[dir="rtl"] .footer-brand .logo-img,
[dir="rtl"] .footer-brand .logo-svg {
  margin-right: auto;
  margin-left: 0;
}

/* 3. إصلاح عمود التواصل (اقتراب الأيقونات من النص وضبط الأرقام) */
[dir="rtl"] .footer-contact-item {
  flex-direction: row; /* يضع الأيقونة على اليمين والنص بجانبها مباشرة */
  justify-content: flex-start;
}
[dir="rtl"] .footer-contact-item span {
  unicode-bidi: plaintext; /* هذا السطر السحري يكتشف الأرقام واللغة الإنجليزية فيعدلها من اليسار لليمين، ويبقي العناوين العربية من اليمين لليسار */
  text-align: right;
  width: 100%;
}


/* ── Partner Logo Cards ── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.partner-logo-card {
  background: var(--white);
  border: 1px solid rgba(102,20,20,0.10);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
  position: relative;
}

.partner-logo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--burgundy), var(--burgundy-pale));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

[dir="rtl"] .partner-logo-card::before { transform-origin: right; }

.partner-logo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(102,20,20,0.20);
}

.partner-logo-card:hover::before { transform: scaleX(1); }

.plc-logo-wrap {
  background: var(--off-white);
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.plc-logo-img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-logo-card .plc-badge {
  display: inline-block;
  background: rgba(102,20,20,0.07);
  color: var(--burgundy);
  border: 1px solid rgba(102,20,20,0.15);
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  margin: 14px 14px 6px;
  width: fit-content;
  letter-spacing: 0.04em;
}

.partner-logo-card .plc-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  padding: 0 14px 6px;
  line-height: 1.35;
}

.partner-logo-card .plc-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 0 14px 16px;
  flex: 1;
}

[dir="rtl"] .partner-logo-card .plc-badge { margin: 14px 14px 6px auto; }
[dir="rtl"] .partner-logo-card .plc-name  { text-align: right; }
[dir="rtl"] .partner-logo-card .plc-desc  { text-align: right; }

@media (max-width: 768px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}



/* ============================================================
   36. NO-SCRIPT FALLBACK
   ============================================================ */
.no-js .page-section { display: block !important; }
.no-js [data-lang] { display: revert !important; }
