/* =========================================
   OXTECH — MASTER WEBSITE THEME
   Saudi × Egypt
   ========================================= */

:root {
  /* ===== BRAND COLORS ===== */
  --ox-carbon: #071B19;
  --ox-emerald: #1D8A68;
  --ox-ivory: #F3EFE5;
  --ox-gold: #C8A96B;

  /* ===== EXTENDED COLORS ===== */
  --ox-dark-card: #0D2925;
  --ox-dark-soft: #12352F;
  --ox-white: #FFFFFF;
  --ox-gray: #A7B3AE;
  --ox-border: rgba(29, 138, 104, 0.25);

  /* Legacy mappings for site harmony */
  --navy: var(--ox-carbon);
  --navy-deep: #041210;
  --navy-mid: var(--ox-dark-card);
  --lime: var(--ox-emerald);
  --lime-glow: rgba(29, 138, 104, 0.35);
  --gold: var(--ox-gold);

  /* ===== TYPOGRAPHY ===== */
  --font-ar: "Cairo", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-en: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Default active typography */
  --font: var(--font-ar);
  --font-body: var(--font-ar);
  --font-latin: var(--font-en);

  /* ===== SPACING ===== */
  --section-padding: 100px;
  --container-width: 1280px;

  /* ===== RADIUS ===== */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* ===== SHADOW ===== */
  --shadow-soft: 0 20px 60px rgba(7, 27, 25, 0.12);
  --shadow-dark: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 35px rgba(29, 138, 104, 0.3);

  /* ===== TRANSITION ===== */
  --transition: 0.3s ease;
}

/* =========================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================= */

html {
  scroll-behavior: smooth;
}

body {
  direction: rtl;
  font-family: var(--font-ar);
  background: var(--ox-carbon);
  color: var(--ox-ivory);
  line-height: 1.8;
  margin: 0;
  overflow-x: clip;
}

html[lang="en"] body,
html[dir="ltr"] body {
  direction: ltr;
  font-family: var(--font-en);
}

.container,
.ox-container {
  width: min(92%, var(--container-width));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Typography Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-ar);
  font-weight: 800;
  line-height: 1.25;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4 {
  font-family: var(--font-en);
}

.text-green {
  color: var(--ox-emerald) !important;
}

.text-gold {
  color: var(--ox-gold) !important;
}

.text-white {
  color: var(--ox-white) !important;
}

/* =========================================
   NAVBAR (MASTER THEME)
   ========================================= */

.navbar,
header.site-header {
  width: 100%;
  height: 84px;
  padding: 0;
  background: rgba(7, 27, 25, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ox-ivory);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--ox-border);
  transition: all var(--transition);
}

header.site-header.scrolled {
  height: 72px;
  background: rgba(7, 27, 25, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Right Side CTA in RTL */
.navbar-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Main Navigation Links (Center) */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  font-family: var(--font-ar);
  font-size: 15px;
  font-weight: 600;
  color: var(--ox-ivory);
  text-decoration: none;
  position: relative;
  padding: 8px 4px;
  transition: var(--transition);
}

.navbar-links a:hover {
  color: var(--ox-emerald);
}

.navbar-links a.active {
  color: var(--ox-emerald);
  font-weight: 700;
}

/* Curved Active Underline Indicator matching image */
.navbar-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  background: var(--ox-emerald);
  border-radius: 99px;
  box-shadow: 0 0 10px var(--ox-emerald);
}

/* Left Side Brand Logo in RTL */
.navbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.ox-brand-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: left;
  transition: var(--transition);
}

.ox-brand-logo:hover {
  opacity: 0.92;
}

.ox-logo-title {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--ox-white);
  display: inline-flex;
  align-items: center;
  gap: 1px;
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

.ox-logo-title .tech-text {
  color: var(--ox-white);
}

.ox-logo-title .dot-accent {
  color: var(--ox-emerald);
}

.ox-logo-subtitle {
  font-family: var(--font-en);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--ox-gray);
  margin-top: 4px;
  text-transform: uppercase;
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

/* Mini Lang & Mobile Controls */
.navbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ox-lang-pill {
  border: 1px solid var(--ox-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: var(--ox-ivory);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(29, 138, 104, 0.08);
  transition: var(--transition);
}

.ox-lang-pill:hover {
  background: rgba(29, 138, 104, 0.2);
  border-color: var(--ox-emerald);
  color: var(--ox-white);
}

/* Hamburger button for mobile */
.ox-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ox-border);
  border-radius: var(--radius-sm);
  color: var(--ox-ivory);
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.ox-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ox-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* =========================================
   BUTTONS (PRIMARY & SECONDARY)
   ========================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  background: #147255;
  color: #FFFFFF;
  border: 1px solid #147255;
  border-radius: var(--radius-full);
  font-family: var(--font-ar);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(29, 138, 104, 0.35);
  transition: var(--transition);
}

.btn-primary:hover {
  background: #167256;
  border-color: #167256;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29, 138, 104, 0.5);
  color: var(--ox-white);
}

.btn-arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 13px;
  transition: transform var(--transition);
}

.btn-primary:hover .btn-arrow-icon {
  transform: translateX(-4px);
}

html[dir="ltr"] .btn-primary:hover .btn-arrow-icon {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  background: transparent;
  color: var(--ox-emerald);
  border: 1px solid var(--ox-emerald);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-family: var(--font-ar);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--ox-emerald);
  color: var(--ox-white);
}

/* =========================================
   HERO SECTION (SAUDI × EGYPT MASTER)
   ========================================= */

.ox-hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  background-color: var(--ox-carbon);
  background-image: url('ox-hero-saudi-egypt.webp');
  background-size: cover;
  background-position: center top !important;
  background-repeat: no-repeat;
  color: var(--ox-ivory);
  overflow: hidden;
  padding-top: 104px;
  padding-bottom: 50px;
}

/* Softer ambient gradient overlay: decreased density so horse, skyline, and pyramids stay vivid */
.ox-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(270deg,
      rgba(7, 27, 25, 0.65) 0%,
      rgba(7, 27, 25, 0.40) 38%,
      rgba(7, 27, 25, 0.10) 70%,
      transparent 100%),
    linear-gradient(0deg,
      rgba(7, 27, 25, 0.75) 0%,
      transparent 20%),
    linear-gradient(180deg,
      rgba(7, 27, 25, 0.45) 0%,
      transparent 16%);
  z-index: 1;
}

html[dir="ltr"] .ox-hero-overlay {
  background:
    linear-gradient(90deg,
      rgba(7, 27, 25, 0.65) 0%,
      rgba(7, 27, 25, 0.40) 38%,
      rgba(7, 27, 25, 0.10) 70%,
      transparent 100%),
    linear-gradient(0deg,
      rgba(7, 27, 25, 0.75) 0%,
      transparent 20%),
    linear-gradient(180deg,
      rgba(7, 27, 25, 0.45) 0%,
      transparent 16%);
}

/* Islamic Arabesque Corner Tracery Patterns */
.arabesque-corner {
  position: absolute;
  width: 160px;
  height: 160px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.28;
  background-image: radial-gradient(circle at center, transparent 30%, rgba(29, 138, 104, 0.08) 70%),
    repeating-linear-gradient(45deg, rgba(29, 138, 104, 0.2) 0, rgba(29, 138, 104, 0.2) 1px, transparent 0, transparent 14px),
    repeating-linear-gradient(-45deg, rgba(29, 138, 104, 0.2) 0, rgba(29, 138, 104, 0.2) 1px, transparent 0, transparent 14px);
  mask-image: radial-gradient(circle at 100% 0%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 100% 0%, black 40%, transparent 80%);
}

.corner-top-right {
  top: 84px;
  right: 0;
  mask-image: radial-gradient(circle at 100% 0%, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 100% 0%, black 50%, transparent 85%);
}

.corner-top-left {
  top: 84px;
  left: 0;
  mask-image: radial-gradient(circle at 0% 0%, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 0% 0%, black 50%, transparent 85%);
}

.corner-bottom-right {
  bottom: 0;
  right: 0;
  mask-image: radial-gradient(circle at 100% 100%, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 100% 100%, black 50%, transparent 85%);
}

.corner-bottom-left {
  bottom: 0;
  left: 0;
  mask-image: radial-gradient(circle at 0% 100%, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 0% 100%, black 50%, transparent 85%);
}

/* Hero Content Grid & Stretched Alignment */
.ox-hero-container {
  position: relative;
  z-index: 3;
  width: min(92%, var(--container-width));
  margin-left: auto;
  margin-right: auto;
  padding: 40px 0 60px;
  box-sizing: border-box;
}

.ox-hero-content {
  max-width: 920px;
}

.ox-hero-heading {
  font-size: clamp(52px, 6.8vw, 92px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ox-white);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.9);
}

.ox-hero-heading .text-green {
  display: block;
  color: var(--ox-emerald) !important;
  text-shadow: 0 0 35px rgba(29, 138, 104, 0.55), 0 2px 10px rgba(0, 0, 0, 0.9);
}

.ox-hero-subtitle {
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.85;
  color: #e5eee9;
  max-width: 820px;
  margin: 0 0 40px;
  font-weight: 500;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.9);
}

/* Actions: Primary CTA + Video Play button */
.ox-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
}

.ox-hero-btn-primary {
  padding: 16px 40px;
  font-size: 18px;
}

.ox-hero-btn-video {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: none;
  color: var(--ox-ivory);
  font-family: var(--font-ar);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.ox-hero-btn-video:hover {
  color: var(--ox-white);
  transform: translateY(-2px);
}

.play-circle-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ox-white);
  color: var(--ox-carbon);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
}

.ox-hero-btn-video:hover .play-circle-icon {
  background: var(--ox-emerald);
  color: var(--ox-white);
  box-shadow: 0 0 25px rgba(29, 138, 104, 0.6);
  transform: scale(1.08);
}

/* =========================================
   STATS BAR (SAUDI × EGYPT MASTER)
   ========================================= */

.stats,
.ox-stats {
  background: var(--ox-carbon);
  color: var(--ox-ivory);
  border-top: 1px solid var(--ox-border);
  border-bottom: 1px solid var(--ox-border);
  position: relative;
  overflow: hidden;
  z-index: 5;
}

/* Delicate subtle arabesque strip in stats */
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(29, 138, 104, 0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(29, 138, 104, 0.03) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(29, 138, 104, 0.03) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(29, 138, 104, 0.03) 75%);
  background-size: 28px 28px;
  opacity: 0.6;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 2;
}

.stat {
  padding: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-left: 1px solid var(--ox-border);
  transition: var(--transition);
}

html[dir="ltr"] .stat {
  border-left: none;
  border-right: 1px solid var(--ox-border);
}

.stat:last-child {
  border-left: none;
}

html[dir="ltr"] .stat:last-child {
  border-right: none;
}

.stat:hover {
  background: rgba(29, 138, 104, 0.05);
}

.stat-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(29, 138, 104, 0.12);
  border: 1px solid rgba(29, 138, 104, 0.25);
  display: grid;
  place-items: center;
  color: var(--ox-emerald);
  flex-shrink: 0;
  transition: var(--transition);
}

.stat:hover .stat-icon-box {
  background: var(--ox-emerald);
  color: var(--ox-white);
  transform: scale(1.06);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-ar);
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ox-white);
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block;
}

html[lang="en"] .stat-number {
  font-family: var(--font-en);
}

.stat-number.stat-title {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 800;
  color: var(--ox-white);
}

.stat-label {
  font-family: var(--font-ar);
  font-size: 14px;
  font-weight: 500;
  color: var(--ox-gray);
  margin-top: 3px;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 992px) {
  .navbar-links {
    display: none;
  }

  .ox-menu-toggle {
    display: flex;
  }

  .ox-hero {
    min-height: 80vh;
    background-position: 70% center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 26px 16px;
  }

  .stat:nth-child(2) {
    border-left: none;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--ox-border);
  }
}

@media (max-width: 650px) {

  .navbar,
  header.site-header {
    height: 72px;
  }

  .ox-logo-title {
    font-size: 21px;
  }

  .ox-logo-subtitle {
    font-size: 6.5px;
    letter-spacing: 1px;
  }

  .btn-primary {
    padding: 10px 20px;
    font-size: 13px;
  }

  .ox-hero {
    min-height: 78vh;
    padding-top: 72px;
  }

  .ox-hero-heading {
    font-size: 38px;
    margin-bottom: 16px;
  }

  .ox-hero-subtitle {
    font-size: 15px;
    margin-bottom: 26px;
  }

  .ox-hero-actions {
    gap: 14px;
  }

  .ox-hero-btn-primary {
    padding: 12px 24px;
    font-size: 14px;
  }

  .ox-hero-btn-video {
    font-size: 14px;
  }

  .play-circle-icon {
    width: 38px;
    height: 38px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-left: none;
    border-bottom: 1px solid var(--ox-border);
    justify-content: flex-start;
    padding: 20px 24px;
  }

  .stat:last-child {
    border-bottom: none;
  }
}

/* =========================================
   OUR SERVICES SECTION (MASTER THEME)
   ========================================= */

.ox-services-section {
  padding: 95px 0 115px;
  background-color: var(--ox-ivory);
  color: var(--ox-carbon);
  position: relative;
  overflow: hidden;
}

/* Arabesque Top Corner Motifs for Services */
.services-arabesque {
  position: absolute;
  width: 140px;
  height: 140px;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(45deg, var(--ox-carbon) 0, var(--ox-carbon) 1px, transparent 0, transparent 14px),
    repeating-linear-gradient(-45deg, var(--ox-carbon) 0, var(--ox-carbon) 1px, transparent 0, transparent 14px);
  z-index: 1;
}

.services-arabesque.corner-top-right {
  top: 0;
  right: 0;
  mask-image: radial-gradient(circle at 100% 0%, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 100% 0%, black 50%, transparent 85%);
}

.services-arabesque.corner-top-left {
  top: 0;
  left: 0;
  mask-image: radial-gradient(circle at 0% 0%, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 0% 0%, black 50%, transparent 85%);
}

.services-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 45px;
  position: relative;
  z-index: 2;
}

.services-kicker {
  display: inline-block;
  font-family: var(--font-ar);
  font-size: 15px;
  font-weight: 700;
  color: var(--ox-emerald);
  margin-bottom: 8px;
}

.services-title {
  font-family: var(--font-ar);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1.22;
  color: var(--ox-carbon);
  margin: 0 0 14px;
}

.services-title .text-green {
  color: var(--ox-emerald) !important;
}

.services-subtitle {
  font-family: var(--font-ar);
  font-size: 16.5px;
  color: #556761;
  line-height: 1.7;
  max-width: 620px;
  margin: 0;
}

/* Nav Carousel Buttons */
.services-slider-nav {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
  position: relative;
  z-index: 5;
}

.services-nav-btn {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: var(--ox-white) !important;
  border: 1px solid rgba(7, 27, 25, 0.12) !important;
  color: var(--ox-carbon) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(7, 27, 25, 0.08) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.services-nav-btn svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  stroke-width: 2.4 !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.services-nav-btn:hover {
  background: var(--ox-emerald) !important;
  border-color: var(--ox-emerald) !important;
  color: var(--ox-white) !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 8px 22px rgba(29, 138, 104, 0.3) !important;
}

.services-nav-btn:active {
  transform: translateY(0) scale(0.96) !important;
  box-shadow: 0 3px 8px rgba(29, 138, 104, 0.2) !important;
}

/* 3-Column Services Grid matching the screenshot */
.ox-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

/* Service Card Design */
.ox-service-card {
  background: linear-gradient(135deg, #092621 0%, #061A17 100%);
  border: 1px solid var(--ox-border);
  border-radius: 20px;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 22px 20px;
  box-shadow: 0 10px 30px rgba(7, 27, 25, 0.1);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}

.ox-service-card:hover {
  transform: translateY(-7px);
  border-color: var(--ox-emerald);
  box-shadow: 0 20px 45px rgba(7, 27, 25, 0.2), 0 0 30px rgba(29, 138, 104, 0.22);
}

/* Ambient Circuit Grid Background on Card */
.service-card-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 25% 45%, rgba(29, 138, 104, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 75% 30%, rgba(29, 138, 104, 0.08) 0%, transparent 50%);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.ox-service-card:hover .service-card-aura {
  opacity: 1;
}

/* Main Top Row inside Card */
.service-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Right Content: Category Icon & Title in RTL */
.service-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.service-card-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(29, 138, 104, 0.15);
  border: 1px solid rgba(29, 138, 104, 0.35);
  display: grid;
  place-items: center;
  color: var(--ox-emerald);
  margin-bottom: 12px;
  transition: all var(--transition);
}

.ox-service-card:hover .service-card-icon-badge {
  background: var(--ox-emerald);
  color: var(--ox-white);
  transform: scale(1.05);
}

.service-card-title {
  font-family: var(--font-ar);
  font-size: 19px;
  font-weight: 800;
  color: var(--ox-white);
  margin: 0;
  line-height: 1.35;
}

/* Left Graphic / Visual Illustration */
.service-card-visual {
  width: 155px;
  height: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.4s ease;
}

.ox-service-card:hover .service-card-visual {
  transform: scale(1.04) translateY(-2px);
}

.service-card-visual svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
}

/* Bottom Floating Pill Badge */
.service-card-pill {
  position: relative;
  z-index: 2;
  background: var(--ox-ivory);
  color: var(--ox-carbon);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: max-content;
  max-width: 90%;
  margin-top: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(7, 27, 25, 0.08);
  transition: all var(--transition);
  align-self: flex-start;
  flex-direction: row-reverse;
}

html[dir="ltr"] .service-card-pill {
  flex-direction: row;
}

.service-card-pill-text {
  font-family: var(--font-ar);
  font-size: 13px;
  font-weight: 700;
  color: var(--ox-carbon);
  white-space: nowrap;
}

.service-card-pill-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--ox-carbon);
  display: grid;
  place-items: center;
  color: var(--ox-carbon);
  font-size: 11px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.ox-service-card:hover .service-card-pill {
  background: var(--ox-white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.ox-service-card:hover .service-card-pill-btn {
  background: var(--ox-emerald);
  border-color: var(--ox-emerald);
  color: var(--ox-white);
  transform: scale(1.08);
}

/* Services Category Filter Tabs */
.services-category-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 24px;
  margin-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  z-index: 3;
}

.services-category-tabs::-webkit-scrollbar {
  display: none;
}

.services-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--ox-white);
  border: 1px solid rgba(7, 27, 25, 0.1);
  border-radius: var(--radius-full);
  color: var(--ox-carbon);
  font-family: var(--font-ar);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(7, 27, 25, 0.04);
}

.services-tab-btn:hover {
  border-color: var(--ox-emerald);
  color: var(--ox-emerald);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 138, 104, 0.15);
}

.services-tab-btn.active {
  background: #092621;
  border-color: var(--ox-emerald);
  color: var(--ox-emerald-light);
  box-shadow: 0 4px 18px rgba(29, 138, 104, 0.25);
}

.services-tab-btn .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(29, 138, 104, 0.15);
  color: var(--ox-emerald);
}

.services-tab-btn.active .tab-count {
  background: var(--ox-emerald);
  color: var(--ox-white);
}

/* Service Card Top Meta & Category Tag */
.service-card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
}

.service-category-tag {
  display: inline-block;
  font-family: var(--font-ar);
  font-size: 11px;
  font-weight: 700;
  color: var(--ox-emerald-light);
  background: rgba(29, 138, 104, 0.15);
  border: 1px solid rgba(46, 229, 157, 0.25);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  letter-spacing: 0.2px;
}

.service-card-tagline {
  font-family: var(--font-ar);
  font-size: 13.5px;
  color: #a3bfb7;
  line-height: 1.55;
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Service Features Chips */
.service-features-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0;
  position: relative;
  z-index: 2;
}

.service-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-ar);
  font-size: 12px;
  color: #d1e2dc;
  line-height: 1.4;
}

.service-chip svg {
  flex-shrink: 0;
}

/* Service Card Bottom: Price & Pill Button */
.service-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
  width: 100%;
}

.service-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-price-amount {
  font-family: var(--font-ar);
  font-size: 19px;
  font-weight: 800;
  color: #2EE59D;
  line-height: 1.1;
}

.service-price-amount small {
  font-size: 12px;
  font-weight: 600;
  color: #8fa099;
  margin-inline-start: 2px;
}

.service-price-old {
  font-size: 12px;
  color: #637771;
  text-decoration: line-through;
  margin-top: 2px;
}

.service-card-bottom .service-card-pill {
  margin-top: 0;
}

/* Footer CTA Link to Store */
.services-footer-cta {
  margin-top: 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.services-store-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--ox-white);
  border: 1px solid rgba(7, 27, 25, 0.12);
  border-radius: var(--radius-full);
  color: var(--ox-carbon);
  font-family: var(--font-ar);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(7, 27, 25, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-store-link:hover {
  background: var(--ox-emerald);
  border-color: var(--ox-emerald);
  color: var(--ox-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(29, 138, 104, 0.28);
}

.services-store-link svg {
  transition: transform 0.25s ease;
}

.services-store-link:hover svg {
  transform: translateX(-4px);
}

html[dir="ltr"] .services-store-link:hover svg {
  transform: translateX(4px);
}

/* Responsive Rules for Services */
@media (max-width: 992px) {
  .ox-services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 24px;
    gap: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--ox-emerald) transparent;
  }

  .ox-services-grid::-webkit-scrollbar {
    height: 6px;
  }

  .ox-services-grid::-webkit-scrollbar-thumb {
    background: var(--ox-emerald);
    border-radius: 4px;
  }

  .ox-service-card {
    min-width: 320px;
    max-width: 360px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

@media (max-width: 680px) {
  .services-header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .service-card-visual {
    width: 125px;
    height: 100px;
  }

  .service-card-title {
    font-size: 20px;
  }
}

/* =========================================
   BENEFICIARIES SECTION (من يستفيد من حلول OxTech؟)
   ========================================= */

.ox-beneficiaries-section {
  position: relative;
  background-color: var(--ox-carbon);
  color: var(--ox-ivory);
  padding: 100px 0 70px;
  overflow: hidden;
  border-top: 1px solid var(--ox-border);
}

.ox-beneficiaries-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, rgba(29, 138, 104, 0.04) 0, rgba(29, 138, 104, 0.04) 1px, transparent 0, transparent 20px),
    repeating-linear-gradient(-45deg, rgba(29, 138, 104, 0.04) 0, rgba(29, 138, 104, 0.04) 1px, transparent 0, transparent 20px);
  z-index: 1;
}

.ox-beneficiaries-skyline {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 52%;
  max-width: 740px;
  background-image: url('ox-riyadh-skyline-fade.webp');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to right, black 35%, transparent 95%);
  -webkit-mask-image: linear-gradient(to right, black 35%, transparent 95%);
}

html[dir="ltr"] .ox-beneficiaries-skyline {
  left: auto;
  right: 0;
  background-position: right center;
  mask-image: linear-gradient(to left, black 35%, transparent 95%);
  -webkit-mask-image: linear-gradient(to left, black 35%, transparent 95%);
}

/* =========================================
   SERVICES / 4-CATEGORY SHOWCASE (REFERENCE DESIGN)
   ========================================= */

.ox-services-cards-header {
  max-width: 900px;
  margin-bottom: 34px;
}

.ox-white-label-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 229, 157, 0.08);
  border: 1px solid rgba(46, 229, 157, 0.35);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  color: #2EE59D;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
  box-shadow: 0 0 15px rgba(46, 229, 157, 0.12);
}

.ox-white-label-pill .pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2EE59D;
  box-shadow: 0 0 8px #2EE59D;
  display: inline-block;
}

.ox-services-cards-title {
  font-family: var(--font-ar);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  color: var(--ox-white);
  line-height: 1.3;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

.ox-services-cards-desc {
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ox-gray);
  margin: 0;
  max-width: 680px;
}

/* 4-Cards Grid */
.ox-services-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

.ox-service-card-item {
  position: relative;
  height: 480px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 22px 24px;
  cursor: pointer;
  border: 1px solid rgba(46, 229, 157, 0.16);
  background: #061916;
  text-decoration: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease;
}

.ox-service-card-item:hover {
  transform: translateY(-8px);
  border-color: #2EE59D;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), 0 0 25px rgba(46, 229, 157, 0.22);
}

.ox-service-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.ox-service-card-item:hover .ox-service-card-bg {
  transform: scale(1.08);
}

.ox-service-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
      rgba(6, 22, 19, 0.68) 0%,
      rgba(6, 22, 19, 0.15) 32%,
      rgba(3, 14, 12, 0.94) 100%);
  transition: background 0.4s ease;
}

.ox-service-card-item:hover .ox-service-card-overlay {
  background: linear-gradient(180deg,
      rgba(6, 22, 19, 0.55) 0%,
      rgba(6, 22, 19, 0.08) 32%,
      rgba(3, 14, 12, 0.96) 100%);
}

.ox-service-card-top {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ox-service-card-tag {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  color: #2EE59D;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(7, 27, 25, 0.7);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
  border: 1px solid rgba(46, 229, 157, 0.3);
}

.ox-service-card-title {
  font-family: var(--font-ar);
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.ox-service-card-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ox-service-card-desc {
  font-family: var(--font-ar);
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.ox-service-card-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 25, 22, 0.85);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: grid;
  place-items: center;
  transition: all 0.35s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  align-self: flex-start;
}

.ox-service-card-item:hover .ox-service-card-circle-btn {
  background: #2EE59D;
  border-color: #2EE59D;
  color: #071B19;
  transform: scale(1.12);
  box-shadow: 0 0 20px rgba(46, 229, 157, 0.55);
}

/* Bottom Trust Bar below the 4 cards */
.ox-services-bottom-trust {
  margin-top: 32px;
  padding: 18px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13, 41, 37, 0.75) 0%, rgba(6, 22, 19, 0.85) 100%);
  border: 1px solid rgba(46, 229, 157, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ox-trust-features {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ox-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ar);
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.ox-trust-item svg {
  color: #2EE59D;
  flex-shrink: 0;
}

.ox-services-trust-cta {
  background: var(--ox-emerald);
  color: var(--ox-white);
  font-family: var(--font-ar);
  font-size: 14.5px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 6px 20px rgba(29, 138, 104, 0.35);
  white-space: nowrap;
}

.ox-services-trust-cta:hover {
  background: #25a47c;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(29, 138, 104, 0.5);
}

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

  .ox-service-card-item {
    height: 440px;
  }
}

@media (max-width: 640px) {
  .ox-services-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ox-service-card-item {
    height: 400px;
  }

  .ox-services-bottom-trust {
    flex-direction: column;
    align-items: flex-start;
  }

  .ox-services-trust-cta {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================
   MODELS / B2B & B2C SECTION (نشتغل مع B2B ونفهم B2C)
   ========================================= */

.ox-models-section {
  position: relative;
  background-color: var(--ox-carbon);
  color: var(--ox-ivory);
  padding: 30px 0 110px;
  overflow: hidden;
}

.ox-models-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.ox-models-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ox-models-title {
  font-family: var(--font-ar);
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--ox-white);
  margin: 0;
}

.ox-models-title span.tag-b2b,
.ox-models-title span.tag-b2c {
  color: var(--ox-white);
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block;
}

.ox-models-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.ox-model-card {
  border-radius: 20px;
  padding: 30px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  position: relative;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}

/* Card 1: Dark Emerald */
.ox-model-card.card-dark {
  background: linear-gradient(145deg, #0b2b24 0%, #061916 100%);
  border: 1px solid rgba(29, 138, 104, 0.45);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.ox-model-card.card-dark:hover {
  transform: translateY(-6px);
  border-color: #2EE59D;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(46, 229, 157, 0.25);
}

.ox-model-card.card-dark .model-card-title {
  color: var(--ox-white);
}

.ox-model-card.card-dark .model-card-desc {
  color: var(--ox-gray);
}

.ox-model-card.card-dark .model-card-arrow {
  border: 1.5px solid rgba(46, 229, 157, 0.6);
  color: #2EE59D;
}

.ox-model-card.card-dark:hover .model-card-arrow {
  background: #2EE59D;
  border-color: #2EE59D;
  color: var(--ox-carbon);
}

/* Card 2: Light Ivory */
.ox-model-card.card-light {
  background: var(--ox-ivory);
  border: 1px solid rgba(200, 169, 107, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.ox-model-card.card-light:hover {
  transform: translateY(-6px);
  background: var(--ox-white);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 25px rgba(243, 239, 229, 0.5);
}

.ox-model-card.card-light .model-card-title {
  color: var(--ox-carbon);
}

.ox-model-card.card-light .model-card-desc {
  color: #3b504b;
}

.ox-model-card.card-light .model-card-arrow {
  border: 1.5px solid var(--ox-carbon);
  color: var(--ox-carbon);
}

.ox-model-card.card-light:hover .model-card-arrow {
  background: var(--ox-carbon);
  color: var(--ox-ivory);
}

.model-card-title {
  font-family: var(--font-ar);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px;
}

.model-card-desc {
  font-family: var(--font-ar);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 18px;
}

.model-card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-self: flex-start;
  transition: all 0.3s ease;
  font-size: 13px;
}

/* Responsive Rules for Beneficiaries & Models */
@media (max-width: 992px) {

  .ox-beneficiaries-grid,
  .ox-models-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ox-beneficiaries-skyline {
    width: 100%;
    opacity: 0.35;
  }

  .ox-tablet-screen {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .ox-tablet-card.card-span-2,
  .ox-tablet-card.card-span-3 {
    grid-column: span 1 !important;
  }

  .ox-tablet-card.card-span-3:last-child {
    grid-column: span 2 !important;
  }
}

@media (max-width: 600px) {
  .ox-tablet-screen {
    grid-template-columns: 1fr !important;
  }

  .ox-tablet-card.card-span-2,
  .ox-tablet-card.card-span-3,
  .ox-tablet-card.card-span-3:last-child {
    grid-column: span 1 !important;
  }

  .ox-models-cards {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   PARTNERS STORIES & VIDEOS SECTION (شركاؤنا هم الدليل - الهوية الرسمية OX TECH)
   ========================================= */

.testimonials {
  background: radial-gradient(circle at 50% 15%, rgba(0, 229, 155, 0.12) 0%, rgba(13, 41, 37, 0.95) 45%, #071B19 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 90px 0 100px;
  color: var(--ox-ivory, #F3EFE5);
}

.testimonials:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 229, 155, 0.12) 1.5px, transparent 1.5px), linear-gradient(135deg, rgba(29, 138, 104, 0.05), transparent 55%);
  background-size: 18px 18px, 100% 100%;
  opacity: .75;
  pointer-events: none;
}

.testimonials:after {
  content: '';
  position: absolute;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(0, 229, 155, 0.09), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sadu-corner {
  position: absolute;
  width: 46px;
  height: 46px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(0, 229, 155, 0.25));
}

.sadu-corner.top-right {
  top: 24px;
  right: 24px;
}

.sadu-corner.top-left {
  top: 24px;
  left: 24px;
}

.sadu-corner.bottom-right {
  bottom: 24px;
  right: 24px;
}

.sadu-corner.bottom-left {
  bottom: 24px;
  left: 24px;
}

.test-heading {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto 32px;
}

.sadu-badge-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.sadu-badge-wrap .kicker {
  margin: 0;
  color: #1D8A68;
  font-family: var(--font-ar);
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 13.5px;
  background: rgba(0, 229, 155, 0.08);
  border: 1px solid rgba(0, 229, 155, 0.25);
  border-radius: 99px;
  padding: 6px 18px;
  box-shadow: 0 0 20px rgba(0, 229, 155, 0.12);
}

.test-heading h2 {
  font-family: var(--font-ar);
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.2px;
  margin: 0 0 16px;
  color: var(--ox-ivory, #F3EFE5);
}

.test-heading h2 span {
  color: #1D8A68;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 30px rgba(0, 229, 155, 0.4);
}

.test-heading>p:last-child {
  font-family: var(--font-ar);
  font-size: 15.5px;
  line-height: 2;
  color: var(--ox-gray, #A7B3AE);
  max-width: 560px;
  margin: 0 auto;
}

/* 3D Video Carousel Stage - OX Tech Obsidian & Emerald Identity */
.video-stage {
  height: 460px;
  max-width: 1100px;
  margin: 40px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  perspective: 1200px;
  direction: ltr;
  position: relative;
  z-index: 3;
}

.video-card {
  border: 1px solid rgba(29, 138, 104, 0.28);
  color: #fff;
  position: relative;
  text-align: right;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(155deg, #0e352e 0%, #09241f 60%, #051815 100%);
  width: 280px;
  height: 390px;
  border-radius: 24px;
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.7);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s ease, box-shadow .6s ease, border-color .4s ease;
  padding: 0;
  outline: none;
  user-select: none;
  flex-shrink: 0;
}

.video-card:hover {
  border-color: rgba(0, 229, 155, 0.5);
  box-shadow: 0 35px 75px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 229, 155, 0.2);
}

.active-video {
  z-index: 5;
  transform: scale(1.08) translateZ(30px);
  border-color: #1D8A68;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 229, 155, 0.35);
}

.side-video {
  opacity: .62;
  z-index: 2;
}

.side-video:hover {
  opacity: .9;
}

.previous {
  transform: rotateY(36deg) scale(.84) translateZ(-40px);
}

.next {
  transform: rotateY(-36deg) scale(.84) translateZ(-40px);
}

.card-thumb-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  z-index: 2;
  background-size: cover;
  background-position: center;
  transition: opacity .35s ease;
}

.card-thumb-layer:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 27, 25, 0.55) 0%, rgba(7, 27, 25, 0.2) 40%, rgba(4, 18, 16, 0.94) 100%);
  z-index: 1;
}

.card-thumb-layer>* {
  position: relative;
  z-index: 2;
}

.card-sadu-art {
  position: absolute;
  inset: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
  transition: .4s ease;
}

.active-video .card-sadu-art {
  opacity: 0.42;
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.video-no {
  font-family: var(--font-latin, 'Plus Jakarta Sans'), var(--font-ar);
  font-weight: 800;
  font-size: 12px;
  color: #1D8A68;
  background: rgba(0, 229, 155, 0.12);
  border: 1px solid rgba(0, 229, 155, 0.3);
  padding: 4px 10px;
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(0, 229, 155, 0.15);
}

.expand-btn {
  background: rgba(7, 27, 25, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #F3EFE5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  cursor: pointer;
  transition: .25s;
  backdrop-filter: blur(6px);
}

.expand-btn:hover {
  background: #1D8A68;
  color: #071B19;
  border-color: #1D8A68;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 229, 155, 0.5);
}

.card-center-play {
  align-self: center;
  margin: auto 0;
  display: grid;
  place-items: center;
}

.play-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 229, 155, 0.15);
  border: 2px solid #1D8A68;
  color: #1D8A68;
  font-size: 18px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  box-shadow: 0 0 25px rgba(0, 229, 155, 0.35);
  transition: .35s cubic-bezier(.2, .8, .2, 1);
  will-change: transform, opacity;
  animation: saduPulse 2.4s infinite;
}

.video-card:hover .play-ring {
  transform: scale(1.12);
  background: #1D8A68;
  color: #071B19;
  box-shadow: 0 0 35px rgba(0, 229, 155, 0.7);
}

.card-media-footer {
  display: grid;
  gap: 8px;
  direction: rtl;
  text-align: right;
  width: 100%;
}

.card-partner-info b {
  font-family: var(--font-ar);
  font-size: 15px;
  color: #FFFFFF;
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
}

.card-partner-info small {
  font-family: var(--font-ar);
  font-size: 11px;
  color: var(--ox-gold, #C8A96B);
}

.player-timeline {
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

.player-timeline-fill {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 0%;
  background: #1D8A68;
  border-radius: 99px;
  box-shadow: 0 0 8px #1D8A68;
  transition: width 0.1s linear;
}

.player-sub-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(243, 239, 229, 0.7);
  font-size: 11px;
  margin-top: 3px;
  direction: ltr;
}

.card-video-frame {
  position: absolute;
  inset: 0;
  background: #041210;
  z-index: 3;
  display: none;
  border-radius: 24px;
  overflow: hidden;
}

.card-video-frame.playing {
  display: block;
}

.card-video-frame video,
.card-video-frame iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.frame-overlay-controls {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.frame-btn {
  pointer-events: auto;
  background: rgba(7, 27, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #F3EFE5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  cursor: pointer;
  transition: .2s;
  backdrop-filter: blur(8px);
}

.frame-btn:hover {
  background: #1D8A68;
  color: #071B19;
  border-color: #1D8A68;
}

.quote {
  max-width: 720px;
  margin: 35px auto 0;
  position: relative;
  z-index: 2;
}

.quote-mark {
  font: 700 80px/25px Georgia;
  color: #1D8A68;
  opacity: .9;
  text-shadow: 0 0 20px rgba(0, 229, 155, 0.3);
}

blockquote {
  font-family: var(--font-ar);
  font-size: 18px;
  line-height: 2.1;
  margin: 14px 0 18px;
  color: var(--ox-ivory, #F3EFE5);
  font-weight: 500;
}

.quote div {
  display: grid;
  gap: 4px;
}

.quote b {
  font-family: var(--font-ar);
  font-size: 15px;
  color: #1D8A68;
  font-weight: 800;
}

.quote small {
  font-family: var(--font-ar);
  font-size: 12px;
  color: var(--ox-gold, #C8A96B);
}

.story-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
  direction: ltr;
  position: relative;
  z-index: 2;
}

.story-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 155, 0.3);
  background: rgba(13, 41, 37, 0.6);
  color: var(--ox-ivory, #F3EFE5);
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: .25s;
  backdrop-filter: blur(6px);
}

.story-controls button:hover {
  background: #1D8A68;
  color: #071B19;
  border-color: #1D8A68;
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0, 229, 155, 0.4);
}

.story-controls span {
  font-family: var(--font-latin, 'Plus Jakarta Sans'), var(--font-ar);
  font-weight: 700;
  font-size: 14px;
  color: var(--ox-gray, #A7B3AE);
  letter-spacing: 1px;
}

.story-controls b {
  color: #1D8A68;
  font-weight: 800;
}

@keyframes saduPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 850px) {
  .testimonials {
    padding: 60px 4vw;
  }

  .video-stage {
    height: 340px;
    gap: 10px;
  }

  .video-card {
    width: 220px;
    height: 310px;
    border-radius: 18px;
  }

  blockquote {
    font-size: 16px;
  }
}



/* =========================================
   ABOUT / FOUNDER STORY (Clean Light Aesthetic - Match Portfolio Filter Mockup)
   NO GLOW, NO GLASS, SAME COLORS
   ========================================= */

.ox-about-section {
  position: relative;
  background: #f8fafc;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  color: #0f172a;
  padding: clamp(65px, 7vw, 105px) 0;
  overflow: hidden;
}

/* Subtle Geometric Mesh Background (Identical to portfolio showcase) */
.ox-about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(45deg, #0f172a 0, #0f172a 1px, transparent 0, transparent 14px),
    repeating-linear-gradient(-45deg, #0f172a 0, #0f172a 1px, transparent 0, transparent 14px);
  pointer-events: none;
  z-index: 1;
}

.ox-about-ambient-glow {
  display: none !important;
}

/* Enclosing Clean Solid White Card (Matching .portfolio-filter-container) */
.ox-about-story-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: clamp(26px, 4.5vw, 50px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.02);
  z-index: 2;
}

/* Grid Layout: Founder Card + Story Content */
.ox-about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

/* Founder Column & Card */
.ox-founder-col {
  width: 100%;
}

.ox-founder-card {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ox-founder-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.ox-founder-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.ox-founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.4s ease;
}

.ox-founder-card:hover .ox-founder-img {
  transform: scale(1.02);
}

.ox-founder-since-pill {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.since-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.ox-founder-info {
  padding: 16px 6px 4px;
  text-align: start;
}

.ox-founder-role-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #059669;
  margin-bottom: 4px;
}

.ox-founder-name {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.25;
}

.ox-founder-tagline {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
  font-style: italic;
}

/* Story Column */
.ox-story-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
}

.ox-story-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: #059669;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.story-badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.ox-story-title {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.28;
  color: #0f172a;
  margin: 0 0 16px;
  letter-spacing: -0.4px;
}

.ox-gradient-text {
  display: block;
  color: #059669;
  background: none;
  -webkit-text-fill-color: initial;
}

.ox-story-lead {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.85;
  color: #475569;
  margin: 0 0 24px;
  max-width: 660px;
}

/* 3 Milestones Grid */
.ox-story-milestones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 28px;
}

.ox-milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  transition: all 0.25s ease;
}

.ox-milestone-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.ox-milestone-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ox-milestone-icon svg {
  width: 18px;
  height: 18px;
}

.ox-milestone-data {
  display: flex;
  flex-direction: column;
}

.milestone-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 3px;
  line-height: 1.25;
}

.milestone-desc {
  font-size: 11.5px;
  line-height: 1.45;
  color: #64748b;
}

/* Action CTA Button */
.ox-story-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ox-story-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transition: all 0.25s ease;
}

.ox-story-btn-primary:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.25);
}

.ox-btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

html[dir="rtl"] .ox-btn-arrow {
  transform: rotate(180deg);
}

.ox-story-btn-primary:hover .ox-btn-arrow {
  transform: translateX(4px);
}

html[dir="rtl"] .ox-story-btn-primary:hover .ox-btn-arrow {
  transform: rotate(180deg) translateX(4px);
}

/* Story Video Modal */
.ox-story-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 15, 13, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.ox-story-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ox-story-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 820px;
  background: #071B19;
  border: 1px solid rgba(29, 138, 104, 0.45);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(29, 138, 104, 0.25);
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ox-story-modal-overlay.active .ox-story-modal-dialog {
  transform: scale(1);
}

.ox-story-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.ox-story-modal-close:hover {
  background: var(--ox-emerald);
  border-color: var(--ox-emerald);
  transform: rotate(90deg);
}

.ox-story-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.ox-story-video-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.ox-story-video-player-ui {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 40%, rgba(7, 27, 25, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
}

.player-header .player-badge {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 2px;
  color: #2EE59D;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 8px;
}

.player-header h4 {
  font-family: var(--font-ar);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.player-controls .progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}

.player-controls .progress-fill {
  width: 45%;
  height: 100%;
  background: #2EE59D;
  box-shadow: 0 0 10px #2EE59D;
}

.player-controls .controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-controls .status-live {
  font-family: var(--font-ar);
  font-size: 13px;
  color: #2EE59D;
  font-weight: 700;
}

.player-controls .player-cta {
  font-family: var(--font-ar);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--ox-emerald);
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.player-controls .player-cta:hover {
  background: #2EE59D;
  color: var(--ox-carbon);
}

/* Responsive Rules for Story Section */
@media (max-width: 991px) {
  .ox-about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ox-founder-col {
    max-width: 360px;
    margin-inline: auto;
  }

  .ox-story-milestones {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .ox-about-section {
    padding: 50px 0 65px;
  }

  .ox-about-story-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .ox-story-title {
    font-size: 23px;
  }

  .ox-story-lead {
    font-size: 14px;
    line-height: 1.75;
  }

  .ox-story-btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================
   OX CTA BANNER & FAST INLINE CONTACT
   (Saudi × Egypt Architectural Aesthetic)
   ========================================= */

.ox-consult-section {
  position: relative;
  padding: 40px 0 90px;
  background: transparent;
  overflow: hidden;
}

.ox-consult-banner {
  position: relative;
  width: min(92%, var(--container-width));
  margin: 0 auto;
  background-color: #061713;
  border-radius: 28px;
  border: 1px solid rgba(0, 229, 155, 0.22);
  box-shadow: 0 35px 90px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 229, 155, 0.08);
  overflow: hidden;
  box-sizing: border-box;
}

/* Background Artwork Layer (Obelisk & Palm Tree on the Right in RTL) */
.ox-consult-bg-art {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 58%;
  min-width: 520px;
  background-image: url('/assets/ox-consult-bg.webp');
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0.75) 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0.75) 65%, transparent 100%);
}

html[dir="ltr"] .ox-consult-bg-art {
  right: auto;
  left: 0;
  transform: scaleX(-1);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0.75) 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0.75) 65%, transparent 100%);
}

/* Islamic Arabesque Geometric Pattern on the Left in RTL */
.ox-consult-arabesque-art {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 380px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 L49 18 L68 12 L62 31 L80 40 L62 49 L68 68 L49 62 L40 80 L31 62 L12 68 L18 49 L0 40 L18 31 L12 12 L31 18 Z' fill='none' stroke='%2300e59b' stroke-width='1.2' stroke-opacity='0.55'/%3E%3Ccircle cx='40' cy='40' r='14' fill='none' stroke='%2300e59b' stroke-width='0.9' stroke-opacity='0.45'/%3E%3Cpath d='M0 0 L20 20 M80 0 L60 20 M80 80 L60 60 M0 80 L20 60' stroke='%2300e59b' stroke-width='1' stroke-opacity='0.35'/%3E%3C/svg%3E");
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 25%, transparent 95%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 25%, transparent 95%);
}

html[dir="ltr"] .ox-consult-arabesque-art {
  left: auto;
  right: 0;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 25%, transparent 95%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 25%, transparent 95%);
}

.ox-consult-ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 155, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

/* Banner Grid Layout */
.ox-consult-grid {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 56px 60px;
}

/* Info Column (Headline, Subtitle, CTA buttons) */
.ox-consult-info-col {
  flex: 1 1 300px;
  max-width: 520px;
}

.ox-consult-headline {
  font-family: var(--font-ar);
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.ox-consult-headline .ox-mint-highlight {
  color: #1D8A68;
  display: inline-block;
}

.ox-consult-subtitle {
  font-family: var(--font-ar);
  font-size: clamp(14px, 1.15vw, 16.5px);
  line-height: 1.85;
  color: #8dafa4;
  margin: 0 0 32px;
}

.ox-consult-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Primary Button: "ابدأ الآن" */
.ox-consult-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #147255;
  color: #FFFFFF;
  font-family: var(--font-ar);
  font-weight: 800;
  font-size: 15px;
  padding: 10px 22px 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 22px rgba(0, 229, 155, 0.35);
  border: none;
  cursor: pointer;
}

html[dir="ltr"] .ox-consult-btn-primary {
  padding: 10px 14px 10px 22px;
}

.ox-consult-btn-primary:hover {
  background: #1bfdae;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 229, 155, 0.55);
  color: #031813;
}

.ox-consult-arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #041c16;
  color: #1D8A68;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.ox-consult-btn-primary:hover .ox-consult-arrow-circle {
  transform: scale(1.08);
}

/* Secondary Button: "تواصل معنا" */
.ox-consult-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: rgba(6, 24, 20, 0.6);
  border: 1.5px solid rgba(0, 229, 155, 0.4);
  color: #ffffff;
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.ox-consult-btn-secondary:hover {
  border-color: #1D8A68;
  background: rgba(0, 229, 155, 0.12);
  color: #1D8A68;
  transform: translateY(-2px);
}

/* Form Column & Card */
.ox-consult-form-col {
  flex: 0 1 480px;
  width: 100%;
}

.ox-consult-form-card {
  background: rgba(10, 27, 23, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 229, 155, 0.22);
  border-radius: 20px;
  padding: 26px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(0, 229, 155, 0.05);
  position: relative;
  overflow: hidden;
}

.ox-consult-card-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 18px;
  text-align: right;
  font-family: var(--font-ar);
}

html[dir="ltr"] .ox-consult-card-title {
  text-align: left;
}

/* Inputs & Form Rows */
.ox-consult-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.ox-consult-input,
.ox-consult-select {
  width: 100%;
  height: 46px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0 14px;
  color: #ffffff;
  font-family: var(--font-ar);
  font-size: 13.5px;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.ox-consult-input::placeholder {
  color: #6d8a81;
}

.ox-consult-input:focus,
.ox-consult-select:focus,
.ox-consult-textarea:focus {
  border-color: #1D8A68;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(0, 229, 155, 0.16);
}

.ox-consult-select-wrap {
  position: relative;
  width: 100%;
}

.ox-consult-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-left: 34px;
  cursor: pointer;
}

html[dir="ltr"] .ox-consult-select {
  padding-left: 14px;
  padding-right: 34px;
}

.ox-consult-select-chevron {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  color: #79988e;
  display: flex;
  align-items: center;
}

html[dir="ltr"] .ox-consult-select-chevron {
  left: auto;
  right: 12px;
}

.ox-consult-select option {
  background: #0b221d;
  color: #ffffff;
  padding: 8px 12px;
}

.ox-consult-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: #ffffff;
  font-family: var(--font-ar);
  font-size: 13.5px;
  outline: none;
  resize: none;
  min-height: 80px;
  transition: all 0.25s ease;
  box-sizing: border-box;
  margin-bottom: 12px;
  display: block;
}

.ox-consult-textarea::placeholder {
  color: #6d8a81;
}

.ox-consult-submit-btn {
  width: 100%;
  height: 48px;
  background: #1D8A68;
  border: none;
  border-radius: 12px;
  color: #041c16;
  font-family: var(--font-ar);
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(0, 229, 155, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ox-consult-submit-btn:hover:not(:disabled) {
  background: #1affb0;
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(0, 229, 155, 0.5);
}

.ox-consult-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Success Celebration Box */
.ox-consult-success-box {
  display: none;
  text-align: center;
  padding: 24px 10px;
}

.ox-consult-success-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 229, 155, 0.18);
  border: 1.5px solid #1D8A68;
  color: #1D8A68;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 14px;
  box-shadow: 0 0 25px rgba(0, 229, 155, 0.35);
}

.ox-consult-success-box h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  font-family: var(--font-ar);
}

.ox-consult-success-box p {
  font-size: 13.5px;
  color: #92b1a7;
  line-height: 1.7;
  margin-bottom: 18px;
  font-family: var(--font-ar);
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .ox-consult-grid {
    flex-direction: column;
    padding: 40px 24px;
    gap: 36px;
  }

  .ox-consult-info-col {
    max-width: 100%;
    text-align: center;
  }

  .ox-consult-actions {
    justify-content: center;
  }

  .ox-consult-form-col {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .ox-consult-bg-art {
    width: 100%;
    opacity: 0.28;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  }

  .ox-consult-banner {
    border-radius: 20px;
    margin: 20px auto 40px;
  }
}

@media (max-width: 480px) {
  .ox-consult-section {
    padding: 20px 0 60px;
  }

  .ox-consult-row {
    grid-template-columns: 1fr;
  }

  .ox-consult-grid {
    padding: 30px 16px;
  }

  .ox-consult-form-card {
    padding: 20px 16px;
  }
}

/* =========================================
   OX MODERN FOOTER (Saudi × Egypt Master)
   ========================================= */

.ox-pillars-component {
  display: block !important;
  width: 100% !important;
  clear: both !important;
  position: relative;
  background-color: #041411;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(0, 229, 155, 0.04) 0%, transparent 70%),
    linear-gradient(180deg, #051815 0%, #030e0c 100%);
  border-top: 1px solid rgba(0, 229, 155, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  overflow: hidden;
  z-index: 10;
}

.ox-modern-footer {
  display: block !important;
  width: 100% !important;
  clear: both !important;
  position: relative;
  background-color: #030e0c;
  background-image: linear-gradient(180deg, #030e0c 0%, #020908 100%);
  color: #ffffff;
  overflow: hidden;
  z-index: 10;
}

/* Islamic Arabesque Corners for Footer */
.ox-footer-arabesque {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 240px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 L49 18 L68 12 L62 31 L80 40 L62 49 L68 68 L49 62 L40 80 L31 62 L12 68 L18 49 L0 40 L18 31 L12 12 L31 18 Z' fill='none' stroke='%2300e59b' stroke-width='1.2' stroke-opacity='0.55'/%3E%3Ccircle cx='40' cy='40' r='14' fill='none' stroke='%2300e59b' stroke-width='0.9' stroke-opacity='0.45'/%3E%3Cpath d='M0 0 L20 20 M80 0 L60 20 M80 80 L60 60 M0 80 L20 60' stroke='%2300e59b' stroke-width='1' stroke-opacity='0.35'/%3E%3C/svg%3E");
  background-size: 72px 72px;
}

.ox-footer-arabesque-right {
  right: 0;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, transparent 100%);
}

.ox-footer-arabesque-left {
  left: 0;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, transparent 100%);
}

/* ─── Upper Highlights Bar ─── */
.ox-footer-highlights {
  position: relative;
  z-index: 2;
  padding: 38px 0;
}

.ox-footer-highlights-inner {
  width: min(92%, var(--container-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  box-sizing: border-box;
}

.ox-highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 22px;
  position: relative;
}

/* Faint waveform / crest silhouette backdrop */
.ox-highlight-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 100px;
  background: radial-gradient(ellipse at center, rgba(0, 229, 155, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Dividing hairline between items */
html[dir="rtl"] .ox-highlight-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

html[dir="ltr"] .ox-highlight-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: auto;
  right: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.ox-highlight-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 229, 155, 0.08);
  border: 1px solid rgba(0, 229, 155, 0.28);
  color: #1D8A68;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 13px;
  box-shadow: 0 0 16px rgba(0, 229, 155, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  z-index: 1;
}

.ox-highlight-item:hover .ox-highlight-icon-wrap {
  transform: translateY(-2px) scale(1.06);
  border-color: #1D8A68;
  box-shadow: 0 0 24px rgba(0, 229, 155, 0.45);
}

.ox-highlight-title {
  font-family: var(--font-ar);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 5px;
  letter-spacing: -0.2px;
  position: relative;
  z-index: 1;
}

.ox-highlight-sub {
  font-family: var(--font-ar);
  font-size: 13px;
  color: #799a90;
  margin: 0;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Horizontal Hairline Divider */
.ox-footer-divider {
  height: 1px;
  width: min(92%, var(--container-width));
  margin: 25px auto 0;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

/* ─── Main Footer Row ─── */
.ox-footer-main {
  position: relative;
  z-index: 2;
  padding: 30px 0 0;
}

.ox-footer-main-inner {
  width: min(92%, var(--container-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  direction: ltr;
  /* Keeps Logo on the Left and Socials/Domain on the Right */
  box-sizing: border-box;
}

/* Brand / Logo */
.ox-footer-logo-brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}

.ox-footer-logo-text {
  font-family: var(--font-latin);
  font-size: 27px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 5px;
}

.ox-logo-accent {
  color: #1D8A68;
  text-shadow: 0 0 12px rgba(0, 229, 155, 0.45);
}

.ox-footer-tagline {
  font-family: var(--font-latin);
  font-size: 7.5px;
  font-weight: 700;
  color: #7a9c91;
  letter-spacing: 1.4px;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

/* Center Navigation Links */
.ox-footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  direction: ltr;
  /* Matches the left-to-right order in the screenshot */
}

.ox-footer-nav-link {
  color: #d1e2dc;
  text-decoration: none;
  font-family: var(--font-ar);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.ox-footer-nav-link:hover {
  color: #1D8A68;
}

.ox-footer-nav-link.active {
  color: #1D8A68;
}

.ox-footer-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 2px;
  right: 2px;
  height: 2.5px;
  background: #1D8A68;
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(0, 229, 155, 0.7);
}

/* Right End Group: Socials + Divider + Domain */
.ox-footer-end-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.ox-footer-end-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.16);
  margin: 0 2px;
}


.ox-footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ox-footer-social-link {
  color: #d6e5df;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s ease;
  opacity: 0.85;
}

.ox-footer-social-link:hover {
  color: #1D8A68;
  opacity: 1;
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px rgba(0, 229, 155, 0.6));
}

.ox-footer-domain {
  font-family: var(--font-latin);
  font-size: 14.5px;
  font-weight: 700;
  color: #1D8A68;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

.ox-footer-domain:hover {
  color: #1effb2;
  text-shadow: 0 0 14px rgba(0, 229, 155, 0.7);
  transform: translateY(-1px);
}

/* ─── Bottom Copyright Row ─── */
.ox-footer-bottom {
  position: relative;
  z-index: 2;
  width: min(92%, var(--container-width));
  margin: 0 auto;
  padding: 18px 0 22px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.ox-footer-copy {
  font-family: var(--font-ar);
  font-size: 13px;
  font-weight: 500;
  color: #8daea5;
  margin: 0;
  letter-spacing: 0.15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  direction: rtl;
  user-select: none;
}

html[lang='en'] .ox-footer-copy,
html[lang='fr'] .ox-footer-copy {
  direction: ltr;
  font-family: var(--font-latin);
}

/* Responsive Rules */
@media (max-width: 991px) {
  .ox-footer-highlights-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }

  .ox-highlight-item:nth-child(2)::after {
    display: none;
  }

  .ox-footer-main-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .ox-footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .ox-footer-end-group {
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 540px) {
  .ox-footer-highlights-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ox-highlight-item::after {
    display: none !important;
  }

  .ox-footer-nav {
    gap: 14px 18px;
    font-size: 13.5px;
  }
}

/* ========================================================
   REVEAL ANIMATION & VISIBILITY FAIL-SAFE
   ======================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}






/* ==========================================================================
   PORTFOLIO & CASE STUDIES SHOWCASE (MODERN DUAL FILTER & THUMBNAILS)
   ========================================================================== */

.ox-services-section.ox-portfolio-showcase,
.ox-portfolio-showcase {
  position: relative;
  background: #f8fafc;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  padding: 100px 0 110px;
  overflow: hidden;
  color: #0f172a;
}

.ox-portfolio-showcase .services-arabesque {
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(45deg, #0f172a 0, #0f172a 1px, transparent 0, transparent 14px),
    repeating-linear-gradient(-45deg, #0f172a 0, #0f172a 1px, transparent 0, transparent 14px);
}

.ox-portfolio-showcase .services-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #059669;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ox-portfolio-showcase .ox-kicker-dot {
  background-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.ox-portfolio-showcase .services-title {
  color: #0f172a;
  font-weight: 800;
  margin-bottom: 14px;
}

.ox-portfolio-showcase .services-title .text-green {
  color: #059669 !important;
}

.ox-portfolio-showcase .services-subtitle {
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
}

/* ─── Visual Country Flags Strip (User Reference Replica) ─── */
.portfolio-country-flags-strip-wrap {
  width: 100%;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
  position: relative;
}

.portfolio-country-flags-strip {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 26px !important;
  width: 100% !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 4px 2px !important;
}

.portfolio-country-flags-strip::-webkit-scrollbar {
  display: none !important;
}

.country-flag-strip-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  padding: 2px 4px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
  min-width: 52px !important;
  flex-shrink: 0 !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.country-flag-strip-btn:hover {
  transform: translateY(-2px) !important;
}

.country-flag-strip-btn:active {
  transform: scale(0.96) !important;
}

.flag-strip-avatar {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}

.country-flag-strip-btn:hover .flag-strip-avatar {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.flag-strip-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

.flag-strip-emoji {
  font-size: 22px !important;
  line-height: 1 !important;
}

.flag-strip-label {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  text-align: center !important;
  white-space: nowrap !important;
  line-height: 1.25 !important;
  font-family: inherit !important;
  transition: color 0.2s ease !important;
}

.country-flag-strip-btn:hover .flag-strip-label {
  color: #1D8A68 !important;
}

/* Active State (Selected Country or All Countries) */
.country-flag-strip-btn.active .flag-strip-avatar {
  border-color: #1D8A68 !important;
  box-shadow: 0 0 0 3px rgba(29, 138, 104, 0.22), 0 6px 14px rgba(29, 138, 104, 0.25) !important;
  transform: scale(1.06) !important;
}

.country-flag-strip-btn.active .flag-strip-label {
  color: #1D8A68 !important;
  font-weight: 800 !important;
}

/* Globe Avatar for "كل الدول" (All Countries) */
.globe-avatar {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

.country-flag-strip-btn.active .globe-avatar {
  background: #ecfdf5 !important;
  color: #1D8A68 !important;
  border-color: #1D8A68 !important;
  box-shadow: 0 0 0 3px rgba(29, 138, 104, 0.22), 0 6px 14px rgba(29, 138, 104, 0.25) !important;
}

/* Other Countries Button (+13 دول أخرى) */
.country-flag-strip-dropdown-wrap {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.other-avatar {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.other-count-text {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #334155 !important;
  letter-spacing: -0.3px !important;
}

.country-flag-strip-btn.other-countries-btn.active .other-avatar {
  border-color: #1D8A68 !important;
  background: #ecfdf5 !important;
  box-shadow: 0 0 0 3px rgba(29, 138, 104, 0.22) !important;
}

.country-flag-strip-btn.other-countries-btn.active .other-count-text {
  color: #1D8A68 !important;
}

/* Other Countries Dropdown Menu */
.other-countries-menu {
  position: absolute !important;
  top: calc(100% + 12px) !important;
  z-index: 9999 !important;
  width: 320px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
  padding: 14px !important;
  display: none;
}

html[dir="rtl"] .other-countries-menu {
  left: 0 !important;
  right: auto !important;
}

html[dir="ltr"] .other-countries-menu {
  right: 0 !important;
  left: auto !important;
}

.other-countries-menu.show {
  display: block !important;
  animation: oxDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.other-countries-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 2px 4px 10px 4px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #475569 !important;
}

.other-header-count {
  background: #f1f5f9 !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 10px !important;
}

.other-countries-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
  max-height: 280px !important;
  overflow-y: auto !important;
  padding-top: 10px !important;
  scrollbar-width: thin !important;
}

.other-country-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  font-family: inherit !important;
  text-align: inherit !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.other-country-item:hover {
  background: #f0fdf4 !important;
  border-color: #a7f3d0 !important;
  transform: translateY(-1px) !important;
}

.other-country-item.active {
  background: #ecfdf5 !important;
  border-color: #1D8A68 !important;
  font-weight: 800 !important;
  color: #1D8A68 !important;
}

.other-item-flag {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.other-flag-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

.other-item-name {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  flex: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.other-item-count {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #1D8A68 !important;
  background: #ffffff !important;
  border: 1px solid #a7f3d0 !important;
  padding: 1px 6px !important;
  border-radius: 8px !important;
}

/* ─── Light Theme Portfolio Discovery Filter Container ─── */
.portfolio-filter-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 25;
}

/* Row 1: Toolbar (Search + Country Dropdown + Reset) */
.portfolio-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.portfolio-search-wrap {
  flex: 1;
  min-width: 250px;
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  height: 46px;
  padding: 0 14px;
  transition: all 0.25s ease;
}

.portfolio-search-wrap:focus-within {
  border-color: #059669;
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(5, 150, 105, 0.12);
}

.portfolio-search-icon {
  color: #64748b;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.portfolio-search-wrap:focus-within .portfolio-search-icon {
  color: #059669;
}

.portfolio-search-input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #0f172a;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 0 10px;
}

.portfolio-search-input::placeholder {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 400;
}

.portfolio-search-clear {
  background: #e2e8f0;
  border: none;
  color: #475569;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portfolio-search-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.portfolio-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Country Dropdown */
.portfolio-country-dropdown-wrap {
  position: relative;
}

.portfolio-country-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #0f172a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.portfolio-country-toggle-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.portfolio-country-toggle-btn.has-filter {
  background: #f0fdf4;
  border-color: #10b981;
  color: #065f46;
}

.portfolio-country-toggle-btn.has-filter:hover {
  background: #dcfce7;
  border-color: #059669;
}

.portfolio-country-toggle-btn.active .country-toggle-chevron {
  transform: rotate(180deg);
  color: #059669;
}

.country-toggle-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.country-toggle-flag-img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.country-toggle-flag-svg,
.country-menu-globe-svg {
  display: inline-flex;
  color: #64748b;
}

.country-toggle-chevron {
  color: #64748b;
  transition: transform 0.25s ease;
}

/* Country Dropdown Menu */
.portfolio-country-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 150;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 8px;
  display: none;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  animation: oxDropdownFade 0.18s ease;
}

html[dir="ltr"] .portfolio-country-menu {
  right: auto;
  left: 0;
}

.portfolio-country-menu.show {
  display: block;
}

.country-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #334155;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: inherit;
  transition: all 0.15s ease;
}

.country-menu-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.country-menu-item.active {
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
}

.country-menu-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.country-menu-flag-img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.country-menu-name {
  flex: 1;
  white-space: nowrap;
}

.country-menu-count {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 99px;
}

.country-menu-item.active .country-menu-count {
  background: #d1fae5;
  color: #065f46;
}

/* Reset Button */
.portfolio-reset-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #dc2626;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.portfolio-reset-pill-btn:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #b91c1c;
}

/* ─── Circular Country Filter Strip (Matching Reference Design) ─── */
.portfolio-country-filter-section {
  width: 100%;
  position: relative;
  padding: 10px 0 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.portfolio-country-strip-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 4px 10px 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.portfolio-country-strip-track::-webkit-scrollbar {
  height: 4px;
}

.portfolio-country-strip-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}

@media (max-width: 991px) {
  .portfolio-country-strip-track {
    justify-content: flex-start;
    gap: 16px;
    padding: 6px 10px 10px 10px;
  }
}

/* Individual Country Node (Circle Avatar + Label below) */
.portfolio-country-node {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  user-select: none;
  flex-shrink: 0;
  min-width: 52px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-country-node:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 4px;
  border-radius: 8px;
}

/* The Round Avatar Container */
.country-node-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Flag Image */
.country-avatar-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  pointer-events: none;
}

/* "All Countries" Avatar */
.country-avatar-all {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #64748b;
}

.country-avatar-all .country-avatar-icon {
  color: #64748b;
  transition: color 0.2s ease;
}

/* "+ More Countries" Avatar (13+) */
.country-avatar-more {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

.country-more-plus {
  font-size: 13.5px;
  font-weight: 800;
  color: #475569;
  letter-spacing: -0.5px;
  line-height: 1;
}

/* Label below circle */
.country-node-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s ease, font-weight 0.2s ease;
  line-height: 1.2;
}

/* Hover States */
.portfolio-country-node:hover .country-node-avatar {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.portfolio-country-node:hover .country-node-label {
  color: #0f172a;
}

/* Active State */
.portfolio-country-node.active .country-node-avatar {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2), 0 6px 14px rgba(5, 150, 105, 0.18);
  transform: translateY(-2px) scale(1.06);
}

.portfolio-country-node.active .country-avatar-all {
  background: #ecfdf5;
  border-color: #059669;
}

.portfolio-country-node.active .country-avatar-all .country-avatar-icon {
  color: #059669;
}

.portfolio-country-node.active .country-avatar-more {
  border-color: #059669;
}

.portfolio-country-node.active .country-more-plus {
  color: #059669;
}

.portfolio-country-node.active .country-node-label {
  color: #059669;
  font-weight: 800;
}

/* Dropdown Wrap for "+ Other Countries" */
.country-node-dropdown-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.portfolio-other-countries-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 200;
  width: 270px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 10px;
  display: none;
  animation: oxDropdownFade 0.2s ease;
}

html[dir="ltr"] .portfolio-other-countries-menu {
  right: auto;
  left: 0;
}

.portfolio-other-countries-menu.show {
  display: block;
}

.other-countries-search-wrap {
  margin-bottom: 8px;
}

.other-countries-search-input {
  width: 100%;
  height: 36px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12.5px;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
}

.other-countries-search-input:focus {
  border-color: #059669;
  background: #ffffff;
}

.other-countries-list {
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.other-country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #334155;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: inherit;
  transition: all 0.15s ease;
}

.other-country-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.other-country-item.active {
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
}

.other-country-flag-wrap {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.other-country-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.other-country-name {
  flex: 1;
  white-space: nowrap;
}

.other-country-count {
  font-size: 11px;
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}

/* Row 2: Category Tabs */
.portfolio-sector-tabs-wrap {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.portfolio-sector-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.portfolio-sector-tabs,
.portfolio-category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.portfolio-sector-tab,
.portfolio-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 100px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.portfolio-sector-tab:hover,
.portfolio-cat-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-2px);
}

.portfolio-sector-tab.active,
.portfolio-cat-btn.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
}

.portfolio-sector-tab .tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  line-height: 1;
}

.portfolio-sector-tab:hover .tab-icon {
  color: #0f172a;
}

.portfolio-sector-tab.active .tab-icon {
  color: #34d399;
}

.tab-icon-svg {
  display: block;
  flex-shrink: 0;
}

.portfolio-sector-tab .tab-badge,
.portfolio-cat-btn .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  background: #e2e8f0;
  color: #475569;
}

.portfolio-sector-tab:hover .tab-badge,
.portfolio-cat-btn:hover .filter-count {
  background: #cbd5e1;
  color: #0f172a;
}

.portfolio-sector-tab.active .tab-badge,
.portfolio-cat-btn.active .filter-count {
  background: #10b981;
  color: #ffffff;
}

/* ─── Portfolio Grid (3 Columns) ─── */
.ox-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  position: relative;
  z-index: 2;
}

/* ─── Portfolio Card (Light Theme) ─── */
.ox-portfolio-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.25s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  position: relative;
}

.ox-portfolio-card:hover {
  transform: translateY(-8px);
  border-color: #10b981;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.09), 0 0 25px rgba(16, 185, 129, 0.12);
}

/* Thumbnail Media */
.portfolio-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  overflow: hidden;
}

.portfolio-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ox-portfolio-card:hover .portfolio-card-img {
  transform: scale(1.07);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.05) 55%, rgba(15, 23, 42, 0.35) 100%);
  pointer-events: none;
}

/* Top Badges (Country with Flag & Sector) */
.portfolio-badges-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 3;
}

.portfolio-country-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 11px;
  border-radius: 99px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.portfolio-country-badge .badge-flag {
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portfolio-country-badge .badge-flag .badge-flag-img,
.badge-flag-img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.country-pill-btn .flag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.country-pill-btn .flag-icon .country-pill-flag-img,
.country-pill-flag-img {
  width: 17px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.portfolio-sector-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(5, 150, 105, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

/* Impact Chip on Thumbnail */
.portfolio-impact-chip {
  position: absolute;
  bottom: 12px;
  right: 14px;
  left: 14px;
  width: fit-content;
  max-width: calc(100% - 28px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #34d399;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

/* Card Body */
.portfolio-card-body {
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
}

.portfolio-client-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  display: block;
}

.portfolio-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.3;
}

.portfolio-card-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tech Tags */
.portfolio-tech-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tech-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
}

/* Card Foot / Link Action */
.portfolio-card-foot {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portfolio-view-text {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  transition: color 0.2s ease;
}

.ox-portfolio-card:hover .portfolio-view-text {
  color: #059669;
}

.portfolio-view-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ox-portfolio-card:hover .portfolio-view-btn {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  transform: translateX(-4px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

html[dir="ltr"] .ox-portfolio-card:hover .portfolio-view-btn {
  transform: translateX(4px);
}

/* No Results & Empty States */
.portfolio-no-results,
.portfolio-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
}

.portfolio-no-results .no-results-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.portfolio-no-results h4 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.portfolio-no-results p,
.portfolio-empty-state p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

/* ─── Responsive Breakpoints for Portfolio Grid ─── */
@media (max-width: 1080px) {
  .ox-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .ox-portfolio-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .portfolio-filter-container {
    padding: 14px 16px;
  }

  .portfolio-cat-btn {
    font-size: 12px;
    padding: 7px 14px;
  }

  .country-pill-btn {
    font-size: 11px;
    padding: 5px 11px;
  }
}