/* ============================================================================
   WUTHQA — Home: Numbers · Mada Gate · Insights (+ LinkedIn) · Testimonials
   New classes only (prefixed wq-). Reuses tokens from colors_and_type.css and
   the shared .wq-post* blog classes from site-pages.css.
   ============================================================================ */

/* ── SECTION 1 — Numbers (white · full world map · one gold dot per country) ── */
.wq-numbers { position: relative; background: #fff; padding: 80px 0 70px; }
.wq-numbers-inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.wq-numbers-map { position: relative; margin: 22px auto 0; max-width: 860px; }
.wq-worldmap { width: 100%; }
.wq-worldmap .wq-wm-svg { width: 100%; height: auto; display: block; }
/* Stats in a single row beneath the map */
.wq-numbers-stats { display: flex; justify-content: center; flex-wrap: wrap; margin: 30px auto 0; max-width: 800px; }
.wq-numbers-stat { flex: 1 1 0; min-width: 130px; text-align: center; padding: 6px 16px;
  border-inline-end: 1px solid var(--border); }
.wq-numbers-stat:last-child { border-inline-end: none; }
.wq-numbers-val { font-family: var(--font-en); font-weight: 600; font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1; letter-spacing: -.02em; color: var(--gold); }
.wq-numbers-lb { display: block; font-size: 13px; line-height: 1.4; color: var(--fg-2); margin-top: 8px; }
@media (max-width: 560px) {
  .wq-numbers-stats { gap: 24px 0; }
  .wq-numbers-stat { flex: 1 1 45%; border-inline-end: none; }
}

/* Blog cards (homepage Insights) — real header image · title · tags */
.wq-post-cover .wq-post-img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  object-fit: cover; transition: transform .5s var(--ease); }
.wq-post:hover .wq-post-img { transform: scale(1.05); }
/* Subtle vignette so the gold bar + category chip stay legible over any photo */
.wq-post-cover::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13, 13, 13, .12) 0%, transparent 38%, rgba(13, 13, 13, .30) 100%); }
.wq-post-cover::before { z-index: 2; }
.wq-post-cover .wq-post-cat { z-index: 2; }
.wq-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wq-tag { font-family: var(--font-en); font-weight: 600; font-size: 12px; color: var(--teal);
  background: var(--teal-tint); border-radius: var(--r-full); padding: 4px 11px; line-height: 1.45; }
.wq-post-excerpt { font-size: 14px; color: var(--fg-2); line-height: 1.7; margin: 8px 0 0; }

/* ---- Company in Numbers: real world-map SVG + gold network dots + tooltip ---- */
.wq-worldmap .wq-wm-svg path { fill: #e6e3da; stroke: #fff; stroke-width: .5; }   /* light land on white */
.wq-worldmap .wq-wm-svg path.wq-wm-on { fill: rgba(200, 168, 75, .32); }          /* IBLC network countries */
.wq-worldmap .wq-wm-svg path.wq-wm-hub { fill: var(--gold); }                     /* Saudi Arabia (home base) */
.wq-wm-dot { fill: var(--gold); stroke: #fff; stroke-width: 1; cursor: pointer; transition: fill .15s var(--ease); }
.wq-wm-dot:hover { fill: var(--gold-600); }
.wq-wm-dot.hub { fill: var(--gold-600); stroke: #fff; stroke-width: 1.5; }
/* Country-name tooltip */
.wq-map-tip { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 8px));
  pointer-events: none; opacity: 0; transition: opacity .15s var(--ease); z-index: 6;
  background: var(--teal); color: #fff; font-family: var(--font-en); font-weight: 600; font-size: 12px;
  letter-spacing: .01em; padding: 5px 11px; border-radius: var(--r-full); white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }

/* ── SECTION 2 — Mada Gate (gold-accented portal panel) ──────────────────── */
.wq-mada {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-top: 3px solid var(--gold);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 52px);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px -38px rgba(0, 0, 0, .9);
}
.wq-mada-copy .wq-head { margin-bottom: 0 !important; }
.wq-mada-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.wq-mada-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-full);
  padding: 8px 15px;
}
.wq-mada-chip svg { color: var(--gold); }
/* Mada Gate "Learn More" outline button on the dark panel */
.wq-mada-actions .wq-btn-outline { color: #fff; border-color: rgba(255, 255, 255, .28); }
.wq-mada-actions .wq-btn-outline:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.wq-mada-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* Relocation pathway preview (vertical, numbered journey) */
.wq-mada-visual { min-width: 0; }
.wq-pathway {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
/* Connector segments live only in the gaps between cards (aligned to the icon
   column) so the line never shows through the translucent glass steps. */
.wq-pathway-step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 39px;
  top: 100%;
  width: 2px;
  height: 12px;
  background: var(--gold);
  opacity: .55;
}
.wq-pathway-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
  box-shadow: 0 14px 30px -22px rgba(0, 0, 0, .8);
  margin-bottom: 12px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.wq-pathway-step:last-child { margin-bottom: 0; }
.wq-pathway-step:hover { transform: translateX(4px); border-color: var(--gold); background: rgba(255, 255, 255, .08); }
.wq-pathway-ic {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--r-full);
  background: var(--gold-tint);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #15140f;
}
.wq-pathway-step:hover .wq-pathway-ic { background: var(--gold); color: var(--teal-900); }
.wq-pathway-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.wq-pathway-main .t { font-weight: 700; font-size: 15.5px; color: #fff; line-height: 1.35; }
.wq-pathway-main .d { font-size: 13px; color: rgba(255, 255, 255, .6); line-height: 1.5; }
.wq-pathway-n {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 22px;
  color: rgba(255, 255, 255, .28);
  letter-spacing: -.02em;
}

/* ── SECTION 3 — Insights layout + LinkedIn placeholder ──────────────────── */
.wq-insights-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
}
/* The shared 3-up post grid sits in a narrow left column here → single column */
.wq-insights-grid { grid-template-columns: 1fr; }

/* LinkedIn feed PLACEHOLDER — embedded-widget look */
.wq-li-feed {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: sticky;
  top: 96px;
}
.wq-li-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.wq-li-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: #0a66c2; /* LinkedIn brand blue — placeholder widget */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wq-li-id { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.wq-li-id .nm { font-weight: 700; font-size: 15px; color: var(--fg); }
.wq-li-id .sub { font-size: 12px; color: var(--fg-3); }
.wq-li-follow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #0a66c2;
  border: 1px solid #0a66c2;
  border-radius: var(--r-full);
  padding: 5px 13px;
}
.wq-li-posts { padding: 6px 18px; }
.wq-li-post {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.wq-li-post:last-child { border-bottom: none; }
.wq-li-post-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wq-li-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-900) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}
.wq-li-meta { display: flex; flex-direction: column; gap: 1px; }
.wq-li-meta .nm { font-weight: 600; font-size: 13.5px; color: var(--fg); }
.wq-li-meta .tm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--fg-3);
}
.wq-li-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--fg-2);
  margin: 0 0 12px;
}
.wq-li-stats {
  display: flex;
  gap: 18px;
}
.wq-li-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-3);
}
.wq-li-stats svg { color: var(--fg-3); }
.wq-li-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0a66c2;
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
  transition: background .25s var(--ease);
}
.wq-li-foot:hover { background: var(--bg-muted); color: #0a66c2; }

/* ── SECTION 4 — Testimonials ────────────────────────────────────────────── */
.wq-tst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.wq-tst-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-xl);
  padding: 34px 30px 30px;
  margin: 0;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, .9);
  transition: transform .4s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.wq-tst-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: rgba(255, 255, 255, .065);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .95);
}
.wq-tst-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  background: var(--gold-tint);
  color: var(--gold);
  margin-bottom: 18px;
}
.wq-tst-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: var(--gold);
}
.wq-tst-stars svg { fill: var(--gold); stroke: var(--gold); }
.wq-tst-text {
  flex: 1;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .82);
}
.wq-tst-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.wq-tst-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.wq-tst-av.teal { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-900) 100%); }
.wq-tst-av.gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-600) 100%); }
.wq-tst-id { display: flex; flex-direction: column; gap: 3px; }
.wq-tst-id .nm { font-weight: 700; font-size: 15.5px; color: #fff; }
.wq-tst-id .rl { font-size: 13px; color: rgba(255, 255, 255, .6); line-height: 1.4; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .wq-numbers { padding: 72px 0; }

  .wq-mada { grid-template-columns: 1fr; gap: 40px; }
  /* Stack in natural order on mobile: copy (heading + intro) first, then the
     pathway steps. (Was order:-1, which surfaced the step boxes before the text.) */

  .wq-insights-layout { grid-template-columns: 1fr; gap: 32px; }
  .wq-insights-grid { grid-template-columns: repeat(2, 1fr); }
  .wq-li-feed { position: static; top: auto; }

  .wq-tst-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .wq-mada-actions { flex-direction: column; align-items: stretch; }
  .wq-mada-actions .wq-btn { justify-content: center; }

  .wq-insights-grid { grid-template-columns: 1fr; }
}

/* Curated LinkedIn post that links out to the real post on LinkedIn */
a.wq-li-post.is-link { display: block; text-decoration: none; color: inherit;
  margin: 0 -18px; padding-left: 18px; padding-right: 18px;
  transition: background .2s var(--ease); }
a.wq-li-post.is-link:hover { background: var(--bg-muted, rgba(10, 102, 194, .04)); }

/* When no LinkedIn posts are curated for this language, drop the feed column. */
.wq-insights-layout.no-feed { grid-template-columns: 1fr; }
.wq-insights-layout.no-feed .wq-insights-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
