/* =============================================================
   ARKAN – Main Stylesheet
   Extracted from index.html inline <style> block
   ============================================================= */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --brand-blue:        #0066CC;
  --brand-green:       #00A651;
  --brand-gradient:    linear-gradient(135deg, #0066CC 0%, #00A651 100%);
  --bg-primary:        #FFFFFF;
  --bg-secondary:      #F4F7FB;
  --text-primary:      #1A2540;
  --text-secondary:    #4A5568;
  --text-muted:        #718096;
  --border-color:      #E2E8F0;
  --card-bg:           #FFFFFF;
  --card-shadow:       0 4px 24px rgba(0, 102, 204, 0.08);
  --card-shadow-hover: 0 12px 40px rgba(0, 102, 204, 0.18);
  --nav-bg:            rgba(255, 255, 255, 0.95);
  --nav-text:          #1A2540;
  --hero-bg:           #0A1628;
  --input-bg:          #F4F7FB;
  --input-border:      #CBD5E0;
  --footer-bg:         #0A1628;
  --footer-text:       #718096;
}

[data-theme="dark"] {
  --bg-primary:        #0D1117;
  --bg-secondary:      #161B26;
  --text-primary:      #E8EDF5;
  --text-secondary:    #A0AEC0;
  --border-color:      #2D3748;
  --card-bg:           #1A2235;
  --card-shadow:       0 4px 24px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 12px 40px rgba(0, 102, 204, 0.3);
  --nav-bg:            rgba(13, 17, 23, 0.95);
  --nav-text:          #E8EDF5;
  --input-bg:          #1A2235;
  --input-border:      #2D3748;
  --footer-bg:         #080D14;
}


/* ── Reset & Base ───────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

[data-lang="en"] body,
[data-lang="en"] h1,
[data-lang="en"] h2,
[data-lang="en"] h3,
[data-lang="en"] p,
[data-lang="en"] a,
[data-lang="en"] span,
[data-lang="en"] li {
  font-family: 'Sora', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
}

p {
  color: var(--text-secondary);
  line-height: 1.8;
}

a {
  text-decoration: none;
  transition: all 0.3s;
}

section {
  overflow: hidden;
}


/* ── Bilingual Visibility ───────────────────────────────────── */
.ar-text  { display: block; }
.en-text  { display: none; }
[data-lang="en"] .ar-text { display: none; }
[data-lang="en"] .en-text { display: block; }

.en-inline { display: none; }
.ar-inline { display: inline; }
[data-lang="en"] .en-inline { display: inline; }
[data-lang="en"] .ar-inline { display: none; }


/* ── Utilities ──────────────────────────────────────────────── */
.container-custom {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0,102,204,.1), rgba(0,166,81,.1));
  border: 1px solid rgba(0, 102, 204, 0.2);
  color: var(--brand-blue);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

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

.section-title-main {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.btn-primary-custom {
  background: var(--brand-gradient);
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.35);
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 102, 204, 0.5);
  color: #fff;
}

.btn-outline-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 13px 30px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}
.btn-outline-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}


/* ── Header ─────────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  transition: all 0.3s;
}
#header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-area img {
  height: 50px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text .brand-name {
  font-size: 16px;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-text .brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links li a {
  color: var(--nav-text);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.25s;
  display: block;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--brand-blue);
  background: rgba(0, 102, 204, 0.08);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.25s;
  padding: 0 12px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
}
.ctrl-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(0, 102, 204, 0.08);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 74px; left: 0; right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px 20px;
  z-index: 9998;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--nav-text);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 10px;
  display: block;
}
.mobile-nav a:hover {
  background: rgba(0, 102, 204, 0.08);
  color: var(--brand-blue);
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .mobile-nav-toggle { display: flex; align-items: center; }
}


/* ── Hero ────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: var(--hero-bg);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 74px;
}

.hero-bg-fx {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(0,102,204,.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,166,81,.12)  0%, transparent 40%),
    radial-gradient(circle at 55% 80%, rgba(0,102,204,.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,102,204,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,204,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 166, 81, 0.15);
  border: 1px solid rgba(0, 166, 81, 0.3);
  color: #4CAF50;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-heading {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero-heading .hl {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 36px;
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
}
.hero-features li i {
  color: #4CAF50;
  font-size: 18px;
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.hero-img-card img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 20px 40px rgba(0, 102, 204, 0.3));
  animation: float 4s ease-in-out infinite;
}

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

.float-badge {
  position: absolute;
  background: var(--brand-gradient);
  color: #fff;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.float-badge.top { top: -14px; right: 20px; }
.float-badge.bot {
  bottom: -14px; left: 20px;
  background: linear-gradient(135deg, #00A651, #007A3D);
  box-shadow: 0 8px 24px rgba(0, 166, 81, 0.4);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 48px;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.05);
  padding: 22px;
  text-align: center;
}
.hero-stat .num {
  font-size: 30px;
  font-weight: 900;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 5px;
}
.hero-stat .lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.scroll-ind {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  z-index: 2;
}
.scroll-dot {
  width: 22px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 11px;
  position: relative;
  overflow: hidden;
}
.scroll-dot::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 7px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  animation: sdot 2s ease-in-out infinite;
}
@keyframes sdot {
  0%   { top: 5px;  opacity: 1; }
  100% { top: 22px; opacity: 0; }
}


/* ── Clients Strip ──────────────────────────────────────────── */
.clients-strip {
  background: var(--bg-secondary);
  padding: 36px 0;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.clients-inner {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scrollleft 22s linear infinite;
}
.clients-inner img {
  height: 44px;
  width: auto;
  opacity: 0.45;
  filter: grayscale(100%);
  transition: all 0.3s;
}
.clients-inner img:hover {
  opacity: 1;
  filter: none;
}
@keyframes scrollleft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ── About ──────────────────────────────────────────────────── */
#about {
  background: var(--bg-primary);
  padding: 100px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.about-vis { position: relative; }

.about-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
}
.about-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.about-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,102,204,.35), transparent);
  border-radius: 24px;
}

.exp-badge {
  position: absolute;
  bottom: -18px; right: -18px;
  background: var(--brand-gradient);
  color: #fff;
  padding: 18px 24px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 102, 204, 0.4);
  z-index: 2;
}
.exp-badge .n { font-size: 32px; font-weight: 900; line-height: 1; }
.exp-badge .t { font-size: 12px; font-weight: 600; opacity: 0.9; }

.about-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 28px;
}

.vals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}
.val-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.3s;
}
.val-card:hover {
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  transform: translateY(-3px);
  border-color: var(--brand-blue);
}
.val-card .ico {
  width: 44px; height: 44px;
  background: var(--brand-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.val-card .ico i { color: #fff; font-size: 18px; }
.val-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.val-card p  { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }


/* ── Services ───────────────────────────────────────────────── */
#services {
  background: var(--bg-secondary);
  padding: 100px 0;
}

/* Two-column layout: carousel left, sidebar right */
.services-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 1024px) {
  .services-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Swiper wrapper ── */
.services-swiper-wrap {
  min-width: 0; /* prevent overflow */
}

/* ── Service Card ── */
.svc-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--brand-blue);
}

/* Card image area */
.svc-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.svc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.svc-card:hover .svc-card-img img {
  transform: scale(1.07);
}

/* Gradient overlay + icon on hover */
.svc-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 20, 60, 0.75) 0%,
    rgba(0, 102, 204, 0.25) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 18px;
  transition: background 0.3s;
}
.svc-card:hover .svc-card-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 20, 60, 0.85) 0%,
    rgba(0, 102, 204, 0.4) 50%,
    transparent 100%
  );
}

/* Icon badge on image */
.svc-card-ico {
  width: 46px;
  height: 46px;
  background: var(--brand-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.45);
  transition: transform 0.3s;
}
.svc-card:hover .svc-card-ico {
  transform: scale(1.1);
}
.svc-card-ico i {
  color: #fff;
  font-size: 20px;
}

/* Card text body */
.svc-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.svc-card-body h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}
.svc-card-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  flex: 1;
}

/* Learn more link */
.svc-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 4px;
  width: fit-content;
  transition: gap 0.25s, color 0.25s;
}
.svc-card-link:hover {
  gap: 11px;
  color: var(--brand-green);
}

/* Pagination dots */
.svc-pagination {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.svc-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--border-color);
  opacity: 1;
  border-radius: 50%;
  transition: all 0.3s;
}
.svc-pagination .swiper-pagination-bullet-active {
  background: var(--brand-blue);
  width: 24px;
  border-radius: 4px;
}

/* ── Sidebar ── */
.svc-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 34px 28px;
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.svc-sidebar h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
}
.svc-sidebar p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

/* Sidebar nav arrows */
.svc-nav-row {
  display: flex;
  gap: 10px;
}
.svc-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.25s;
}
.svc-nav-btn:hover {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.35);
}

/* ── E-Invoice (Zatka) ──────────────────────────────────────── */
#zatka {
  background: var(--bg-primary);
  padding: 100px 0;
}
.invoice-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 70px;
}
.invoice-block:last-child { margin-bottom: 0; }
@media (max-width: 800px) {
  .invoice-block { grid-template-columns: 1fr; gap: 40px; }
  .invoice-block .vis-side { order: -1; }
}

.invoice-block .vis-side img {
  width: 100%;
  max-width: 400px;
  filter: drop-shadow(0 20px 40px rgba(0,102,204,.2));
  margin: 0 auto;
  display: block;
  animation: float 4s ease-in-out infinite;
}
.invoice-block .vis-side img.photo {
  border-radius: 20px;
  box-shadow: var(--card-shadow-hover);
  animation: none;
}

.invoice-block h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; color: var(--text-primary); }
.invoice-block h4 { font-size: 15px; color: var(--brand-blue); font-weight: 600; margin-bottom: 16px; }
.invoice-block > div > p { font-size: 15px; line-height: 1.8; margin-bottom: 10px; }

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.step-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  transition: all 0.3s;
}
.step-row:hover {
  border-color: var(--brand-blue);
  background: rgba(0, 102, 204, 0.04);
}
.step-n {
  width: 34px; height: 34px;
  background: var(--brand-gradient);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.step-row p { font-size: 13px; line-height: 1.6; margin: 0; padding-top: 5px; color: var(--text-secondary); }

.sec-divider {
  height: 1px;
  background: var(--border-color);
  margin: 60px 0;
}


/* ── How We Work ────────────────────────────────────────────── */
#how-we-work {
  background: var(--bg-secondary);
  padding: 100px 0;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .process-grid { grid-template-columns: 1fr; } }

.process-grid::before {
  content: '';
  position: absolute;
  top: 45px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
  z-index: 0;
}
@media (max-width: 900px) { .process-grid::before { display: none; } }

.proc-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}
.proc-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-5px);
  border-color: var(--brand-blue);
}
.proc-icon {
  width: 68px; height: 68px;
  background: var(--brand-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.28);
}
.proc-icon i { color: #fff; font-size: 26px; }
.proc-num { font-size: 11px; font-weight: 700; color: var(--brand-blue); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 7px; }
.proc-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.proc-card p  { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin: 0; }


/* ── Call to Action ─────────────────────────────────────────── */
#call-to-action {
  background: var(--bg-primary);
  padding: 80px 0;
}
.cta-card {
  background: var(--brand-gradient);
  border-radius: 26px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
@media (max-width: 700px) {
  .cta-card { grid-template-columns: 1fr; text-align: center; padding: 36px 22px; }
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -60%; right: -8%;
  width: 380px; height: 380px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}
.cta-card h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 800; color: #fff; margin-bottom: 10px; }
.cta-card p  { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.7; margin: 0; }

.btn-cta-white {
  background: #fff;
  color: var(--brand-blue);
  padding: 15px 34px;
  border-radius: 13px;
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}
.btn-cta-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  color: var(--brand-blue);
}


/* ── FAQ ────────────────────────────────────────────────────── */
#faq {
  background: var(--bg-secondary);
  padding: 100px 0;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
}
.faq-item.open {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.25s;
}
.faq-q:hover,
.faq-item.open .faq-q { color: var(--brand-blue); }

.faq-ico {
  width: 30px; height: 30px;
  background: var(--bg-secondary);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  font-size: 13px;
  color: var(--text-muted);
}
.faq-item.open .faq-ico {
  background: var(--brand-blue);
  color: #fff;
  transform: rotate(45deg);
}

.faq-ans { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-ans.open { max-height: 240px; }
.faq-ans p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  padding: 0 22px 18px;
}


/* ── Contact ────────────────────────────────────────────────── */
#contact {
  background: var(--bg-primary);
  padding: 100px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.ci-cards { display: flex; flex-direction: column; gap: 14px; }
.ci-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.3s;
}
.ci-card:hover {
  border-color: var(--brand-blue);
  background: rgba(0, 102, 204, 0.04);
}
.ci-ico {
  width: 42px; height: 42px;
  background: var(--brand-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-ico i { color: #fff; font-size: 17px; }
.ci-info h4 { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.ci-info p,
.ci-info a  { font-size: 13px; color: var(--text-secondary); margin: 0; display: block; line-height: 1.6; }
.ci-info a:hover { color: var(--brand-blue); }

.map-box {
  border-radius: 18px;
  overflow: hidden;
  height: 230px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  margin-top: 14px;
}
.map-box iframe { width: 100%; height: 100%; border: 0; }

.contact-form-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 36px;
}
.contact-form-box h3 { font-size: 21px; font-weight: 800; margin-bottom: 24px; color: var(--text-primary); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.fg { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.fg label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.fc {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: 'Cairo', sans-serif;
  transition: all 0.25s;
  width: 100%;
  outline: none;
}
.fc:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
textarea.fc { resize: vertical; min-height: 110px; }


/* ── Footer ─────────────────────────────────────────────────── */
#footer {
  background: var(--footer-bg);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand-name {
  font-size: 20px;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-brand-sub { font-size: 11px; color: rgba(255,255,255,.35); font-weight: 500; }
.footer-desc { font-size: 13px; color: var(--footer-text); line-height: 1.8; margin: 14px 0 20px; }

.footer-socials { display: flex; gap: 9px; }
.soc-ico {
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 15px;
  transition: all 0.25s;
}
.soc-ico:hover {
  background: var(--brand-blue);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.88); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links li a {
  color: var(--footer-text);
  font-size: 13px;
  transition: color 0.25s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links li a:hover { color: #3D8EDB; }

.footer-bottom { padding: 22px 0; text-align: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.25); margin: 0; }


/* ── WhatsApp Float Buttons ─────────────────────────────────── */
.wa-group {
  position: fixed;
  bottom: 76px; left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9990;
}
[dir="ltr"] .wa-group { left: auto; right: 22px; }

.wa-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #25D366;
  color: #fff;
  padding: 9px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  text-decoration: none;
}
.wa-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
  color: #fff;
}
.wa-btn img { width: 20px; height: 20px; object-fit: contain; border-radius: 3px; }
.wa-btn.ksa { background: #128C7E; }


/* ── Scroll-to-top Button ───────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 42px; height: 42px;
  background: var(--brand-gradient);
  color: #fff;
  border-radius: 11px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 9990;
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.4);
  transition: all 0.3s;
}
#scroll-top:hover { transform: translateY(-3px); color: #fff; }
#scroll-top.visible { display: flex; }


/* ── Training Videos ────────────────────────────────────────── */
#videos {
  background: var(--bg-secondary);
  padding: 100px 0;
}

.vid-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}

.vid-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Cairo', sans-serif;
}
.vid-filter-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(0, 102, 204, 0.06);
}
.vid-filter-btn.active {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(0, 102, 204, 0.35);
}
.vid-filter-btn i { font-size: 15px; }

.vid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 50px;
}
@media (max-width: 1000px) { .vid-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .vid-grid { grid-template-columns: 1fr; } }

.vid-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--card-shadow);
}
.vid-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
  border-color: var(--brand-blue);
}
.vid-card.hidden { display: none; }

.vid-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a1628;
}
.vid-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.vid-thumb:hover img { transform: scale(1.05); }

.vid-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.3s;
}
.vid-thumb:hover .vid-play-overlay { background: rgba(0, 0, 0, 0.45); }

.vid-play-btn {
  width: 54px; height: 54px;
  background: var(--brand-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 6px 24px rgba(0, 102, 204, 0.5);
  transition: transform 0.3s;
}
.vid-thumb:hover .vid-play-btn { transform: scale(1.12); }

.vid-duration {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.vid-cat-tag {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.vid-info { padding: 18px 20px 20px; }
.vid-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 7px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vid-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vid-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.vid-meta span { display: flex; align-items: center; gap: 5px; }
.vid-meta i    { color: var(--brand-blue); font-size: 13px; }

.vid-upload-hint {
  background: linear-gradient(135deg, rgba(0,102,204,.08), rgba(0,166,81,.06));
  border: 1px dashed rgba(0, 102, 204, 0.3);
  border-radius: 18px;
  padding: 28px 32px;
}
.vid-upload-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.vid-upload-icon {
  width: 56px; height: 56px;
  background: var(--brand-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  flex-shrink: 0;
}
.vid-upload-inner > div { flex: 1; min-width: 200px; }
.vid-upload-inner h4 { font-size: 16px; font-weight: 700; margin-bottom: 5px; color: var(--text-primary); }
.vid-upload-inner p  { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* Video Lightbox Modal */
.vid-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.vid-modal.open { display: flex; }

.vid-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #0a1628;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.vid-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.vid-modal-close:hover { background: rgba(255, 255, 255, 0.25); }

.vid-modal-title {
  padding: 18px 56px 0 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  min-height: 10px;
}

.vid-modal-body { position: relative; padding-top: 56.25%; }
.vid-modal-body iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Embed-blocked error state */
.vid-modal-error {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 48px 32px;
  text-align: center;
}
.vid-modal-error-icon {
  font-size: 56px;
  color: #FF0000;
  line-height: 1;
}
.vid-modal-error p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  line-height: 1.7;
  max-width: 380px;
  margin: 0;
}
.vid-modal-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FF0000;
  color: #fff;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
  box-shadow: 0 6px 24px rgba(255,0,0,0.4);
}
.vid-modal-watch-btn:hover {
  background: #CC0000;
  transform: translateY(-2px);
  color: #fff;
}
.vid-modal-watch-btn i { font-size: 20px; }
