:root{
  --spi-blue:#01555b;
  --spi-blue-light:#016a71;
  --spi-ink:#0f172a;
  --spi-muted:#475569;

  --badgeW:240px;
  --badgePad:24px;
  --iconS:48px;
}

.spi-about{ --header-h:84px; }
.spi-about-section{
  position:relative; z-index:1;
  margin-top: 0 !important;
  padding:40px 0 64px;
  background:#f7fafc;
}
.header,.site-nav,header.navbar{ position:relative; z-index:1000; }

.about-hero{
  position:relative;
  width:100vw;
  margin-left:0;
  transform:none;
  height:clamp(420px,48vh,480px);
  overflow:hidden;
}

.about-hero-img{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
}

.about-hero-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.35) 100%);
}

.about-hero-inner{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:0 18px;
  gap: 8px;
}


.about-hero-title{
  margin:0 !important;
  font-weight:900;
  font-size:clamp(30px,3.6vw,54px);
  color:#fff;
  line-height:1.12 !important;
  text-shadow:0 10px 26px rgba(0,0,0,.35);
}

.about-hero-sub{
  margin:0 !important;
  color:rgba(255,255,255,.92);
  font-size:15px;
  line-height:1.35 !important;
}


.spi-orb-row{
  display:flex;
  flex-direction:column;
  gap:28px;
  max-width:1400px;
  margin:0 auto;
  padding:20px 10px;
}

.orb-pro{
  position:relative;
  display:grid;
  grid-template-columns:minmax(calc(var(--badgeW) + var(--badgePad)*2), 28%) 1fr;
  align-items:center;
  min-height:220px;
  background:linear-gradient(135deg,#ffffff 40%,#f6f9ff 100%);
  border:1px solid rgba(107,114,128,.12);
  border-radius:22px;
  box-shadow:0 8px 22px rgba(2,6,23,.08);
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease;
}
.orb-pro:hover{ transform:translateY(-3px); box-shadow:0 14px 34px rgba(107,114,128,.12); }

.orb-pro .orb-top{
  position:absolute;
  inset-inline:0;
  top:0;
  height:5px;
  background:linear-gradient(90deg,var(--spi-blue-light),var(--spi-blue));
}

.orb-left{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px var(--badgePad);
  min-height:150px;
  background:linear-gradient(180deg,rgba(107,114,128,.08),transparent 70%);
}

.orb-badge{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  max-width:var(--badgeW);
  height:72px;
  padding:0 18px;
  background:#f8fafc;
  border-radius:16px;
  box-shadow:0 10px 22px rgba(2,6,23,.08);

  font-family:"Cairo","Poppins",system-ui;
  font-size:18px;
  font-weight:900;
  line-height:1.15;

  color:var(--spi-ink);
  justify-content:center;
}


.orb-badge .i{
  width:var(--iconS);
  height:var(--iconS);
  border-radius:12px;
  display:grid;
  place-items:center;
  flex-shrink:0;
}

[dir="rtl"] .orb-badge{
  direction: rtl;
  flex-direction: row;
  justify-content: center;
}


.orb-badge:hover{ transform:scale(1.04); }

.orb-right{ padding:28px 36px; }
.orb-right p{
  margin:0;
  color:var(--spi-muted);
  font-size:18px;
  line-height:1.9;
  max-width:80ch;
  text-align:start;
}

@media (max-width:768px){
  .orb-pro{ grid-template-columns:1fr; min-height:auto; }
  .orb-left{ background:none; padding:16px 0 0; }
  .orb-badge{ max-width:100%; height:auto; padding:10px 16px; grid-template-columns:auto 1fr; }
  .orb-right{ padding:14px 18px 20px; }
}
@media (max-width:480px){
  :root{ --badgeW:220px; --iconS:40px; }
  .orb-badge{ font-size:clamp(15px,4vw,17px); }
  .orb-left{ min-height:160px; }
}

.map-hero{
  --accent-1:var(--spi-blue-light);
  --accent-2:var(--spi-blue);
  position:relative; padding:20px 20px 12px;
  border-radius:22px;
  background:
    radial-gradient(900px 420px at 12% -10%, color-mix(in srgb, var(--accent-1) 18%, transparent) 0%, transparent 70%),
    radial-gradient(800px 380px at 110% 0%, color-mix(in srgb, var(--spi-sky) 16%, transparent) 0%, transparent 65%),
    linear-gradient(180deg,#ffffff,#f8fafc);
  border:1px solid rgba(2,6,23,.06);
  box-shadow:0 12px 28px rgba(2,6,23,.07), inset 0 1px 0 rgba(255,255,255,.5);
  overflow:hidden;
}
.logos-hero{ margin-top:18px; }

.spi-map-title,.logo-title-gradient{
  text-align:center; margin:0 auto 16px;
  font-weight:900; letter-spacing:.3px; line-height:1.15;
  font-size:clamp(26px,3vw,44px);
  filter:drop-shadow(0 2px 12px rgba(2,6,23,.08));
}
.title-gradient{
  background:linear-gradient(90deg,var(--accent-1),var(--accent-2));
  -webkit-background-clip:text; background-clip:text; color:transparent; position:relative;
}
.title-gradient::after{
  content:""; display:block; height:6px; width:90px; margin:10px auto 0; border-radius:999px;
  background:linear-gradient(90deg,var(--accent-1),var(--accent-2));
  box-shadow:0 3px 10px color-mix(in srgb, var(--accent-1) 35%, transparent);
}

.map-frame{
  position:relative; z-index:1; border-radius:16px; overflow:hidden; isolation:isolate;
  background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.08); margin-bottom:28px;
}
#reg-map{ width:100%; height:65vh; min-height:320px; max-height:80vh; }
@media (max-width:768px){ #reg-map{ height:52vh; } }
#reg-map.leaflet-container{ overflow:hidden!important; border-radius:inherit; }
.map-frame .leaflet-pane.tile-pane{ z-index:200!important; }
.map-frame .leaflet-pane.countries-pane{ z-index:650!important; }
.map-frame .leaflet-pane.tooltip-pane{ z-index:1000!important; }
.map-frame .leaflet-pane.logos-pane{ z-index:9999!important; pointer-events:none; }
.map-frame .leaflet-tile-pane,
.map-frame .leaflet-overlay-pane,
.map-frame .leaflet-shadow-pane,
.map-frame .leaflet-marker-pane,
.map-frame .leaflet-tooltip-pane,
.map-frame .leaflet-popup-pane{ clip-path: inset(0 round 16px); }

.logo-tooltip{ background:transparent; border:0; box-shadow:none; pointer-events:none; }
.logo-badge{
  background:#fff; border:1px solid rgba(2,6,23,.12);
  border-radius:14px; padding:8px; min-width:84px; min-height:84px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}
.logo-badge img{ width:72px; height:72px; object-fit:contain; display:block; }

.map-ctrl-hint{
  position:absolute; top:12px; left:12px; padding:8px 10px;
  background:rgba(17,24,39,.85); color:#fff; font:600 12px/1 system-ui;
  border-radius:10px; box-shadow:0 6px 16px rgba(0,0,0,.2);
  opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.map-ctrl-hint.show{ opacity:1; }

/* ===== Regulatory logos grid ===== */
.reg-logos-grid{
  display:grid; gap:16px; grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
}
.reg-card{
  --logo-bg: color-mix(in srgb, var(--spi-sky) 13%, transparent);
  background: color-mix(in srgb, var(--spi-blue) 10%, #ffffff);
  border:1px solid rgba(2,6,23,.08);
  border-radius:14px; padding:14px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.reg-card:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.12); }
.reg-card .logo-wrap{ width:100%; height:120px; display:grid; place-items:center; }
.reg-card img{ max-width:70%; max-height:100%; width:auto; height:auto; object-fit:contain; display:block; }
.reg-card .noimg{
  width:72px; height:72px; border-radius:50%;
  background:#f3f5f6; color:#111; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:14px;
}
.reg-card figcaption{ margin-top:10px; font-weight:700; font-size:14px; text-align:center; line-height:1.3; }
.reg-card[data-iso="QAT"] .logo-wrap img,
.reg-card[data-iso="BHR"] .logo-wrap img,
.reg-card[data-iso="JOR"] .logo-wrap img,
.reg-card[data-iso="KWT"] .logo-wrap img,
.reg-card[data-iso="LBY"] .logo-wrap img,
.reg-card[data-iso="ARE"] .logo-wrap img,
.reg-card[data-iso="SAU"] .logo-wrap img,
.reg-card[data-iso="IRQ"] .logo-wrap img{ transform:scale(1.6); }

.agents-section{ margin:48px 0; }
.agents-title{
  font-weight:900; font-size:clamp(22px,3vw,36px);
  text-align:center; margin:0 0 18px;
  background:linear-gradient(90deg,var(--spi-blue-light),var(--spi-blue));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

.agents-grid{
  display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}
.agent-card{
  background:#f8fafc; border:1px solid #e6edf5; border-radius:14px;
  box-shadow:0 8px 18px rgba(15,23,42,.06);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.agents-grid .agent-head{
  background:transparent; border-bottom:0; padding:12px 14px;
  height:72px; display:flex; align-items:center; gap:10px;
}
.agent-card:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(16,24,40,.16);
  border-color:#d1d5db;
}

.agent-flag{ font-size:20px; line-height:1; }
.agents-grid .agent-name{
  flex:1; line-height:1.25; display:-webkit-box;
  -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; white-space:normal;
}
.agents-grid .agent-count{
  color:#6b7280;
  background:#eef2f3;
  border-radius:20px; padding:4px 8px; font-weight:700; font-size:12px;
}

.agents-grid .agent-list{
  background: transparent;
  color: #0f172a;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 14px;
  transition: max-height .25s ease, opacity .2s ease, padding .2s ease;
}
.agent-card:hover .agent-list,
.agent-card.open .agent-list{
  max-height: calc(3 * 78px);
  opacity: 1;
  overflow: auto;
  padding: 0 14px 10px;
}

.agents-grid .agent-list::-webkit-scrollbar{ width: 8px; }
.agents-grid .agent-list::-webkit-scrollbar-thumb{
  background: rgba(1,85,91,.35);
  border-radius: 999px;
}
.agents-grid .agent-list::-webkit-scrollbar-track{ background: transparent; }

.agents-grid .agent-item{
  border-bottom:1px dashed rgba(2,6,23,.10); padding:10px 0;
  font-size:13px; line-height:1.45; min-height: 78px;
}
.agents-grid .agent-item:last-child{ border-bottom:0; }
.agents-grid .agent-item,.agents-grid .agent-item a{ color:#0f172a; }
.agents-grid .agent-item a:hover{ text-decoration:underline; }

[dir="rtl"] .agents-section,
[dir="rtl"] .agents-grid,
[dir="rtl"] .agent-card,
[dir="rtl"] .agent-head,
[dir="rtl"] .agent-list,
[dir="rtl"] .agent-item{
  direction: rtl;
}

[dir="rtl"] .agents-grid .agent-head{
  text-align: right;
}

[dir="rtl"] .agents-grid .agent-name,
[dir="rtl"] .agents-grid .agent-title,
[dir="rtl"] .agents-grid .agent-meta,
[dir="rtl"] .agents-grid .agent-contact{
  text-align: right;
}

[dir="rtl"] .agents-grid a[href^="mailto:"],
[dir="rtl"] .agents-grid a[href^="tel:"],
[dir="rtl"] .agents-grid .agent-contact a{
  direction: ltr;
  unicode-bidi: plaintext;
  display: inline-block;
}


:root{
  --about-max: 1400px;
  --about-pad: 16px;
}

.about-wrap{
  max-width: var(--about-max);
  margin: 0 auto;
  padding: 0 var(--about-pad);
}

.about-wrap .spi-orb-row,
.about-wrap .spi-map-section,
.about-wrap .agents-section{
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.about-wrap .map-hero,
.about-wrap .map-frame{
  width: 100%;
}

.about-wrap .agents-grid{
  width: 100%;
}

.spi-map-section{
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.spi-map-section .map-hero{
  border-radius: 22px !important;
  overflow: hidden !important;
  background: #fff !important;
}

.spi-map-section .map-hero::before,
.spi-map-section .map-hero::after{
  border-radius: inherit !important;
}
@media (max-width: 768px){
  .about-hero{
    height: clamp(220px, 30vh, 300px) !important;
  }
  .about-hero-inner{
    padding: 0 14px !important;
    gap: 6px !important;
  }
  .about-hero-title{
    font-size: clamp(22px, 6vw, 30px) !important;
  }
  .about-hero-sub{
    font-size: 12.5px !important;
  }

  .about-wrap{
    padding: 0 12px !important;
  }
  .spi-orb-row{
    gap: 14px !important;
    padding: 12px 0 !important;
  }

  .orb-pro{
    border-radius: 16px !important;
    min-height: auto !important;
    box-shadow: 0 6px 16px rgba(2,6,23,.07) !important;
  }

  .orb-left{
    padding: 12px 12px 0 !important;
    min-height: auto !important;
  }

  .orb-badge{
    max-width: 100% !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    gap: 10px !important;
    box-shadow: 0 8px 16px rgba(2,6,23,.08) !important;
  }

  :root{ --iconS: 38px; }
  .orb-badge .i{
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }
  .orb-badge .i img{
    width: 28px !important;
    height: 28px !important;
  }

  .orb-right{
    padding: 10px 14px 14px !important;
  }
  .orb-right p{
    font-size: 14px !important;
    line-height: 1.75 !important;
    max-width: none !important;
  }

  .map-hero{
    padding: 14px 12px 10px !important;
    border-radius: 16px !important;
  }
  .spi-map-title{
    margin-bottom: 10px !important;
    font-size: clamp(18px, 5.2vw, 26px) !important;
  }
  .title-gradient::after{
    height: 4px !important;
    width: 64px !important;
    margin-top: 8px !important;
  }

  #reg-map{
    height: 42vh !important;
    min-height: 240px !important;
  }
  .map-frame{
    margin-bottom: 16px !important;
    border-radius: 14px !important;
  }

  .reg-logos-grid{
    gap: 10px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .reg-card{
    padding: 10px !important;
    border-radius: 12px !important;
  }
  .reg-card .logo-wrap{
    height: 90px !important;
  }
  .reg-card figcaption{
    font-size: 12px !important;
    margin-top: 8px !important;
  }
}
