/* ==========================================================================
   INFONAS × ZAIN — 2026 rebrand stylesheet
   Brand: Zain Blue #2b3990 · Deep #1f2a6b · Wash #eaecf7 · Accent #4a5ac0
   Typeface: "Zain" (Google Fonts) — Arabic & English brand font
   Loaded last: intentionally overrides legacy theme styles.
   ========================================================================== */

:root {
  --brand: #2b3990;
  --brand-deep: #1f2a6b;
  --brand-wash: #eaecf7;
  --brand-accent: #4a5ac0;
  --brand-ink: #0b1030;
  --brand-navy: #10163f;
  --brand-logo: #344C98;
  --ink: #14162b;
  --muted: #5a5f7a;
  --card-border: #e3e7f6;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-soft: 0 10px 30px rgba(16, 22, 63, 0.08);
  --shadow-lift: 0 22px 45px rgba(31, 42, 107, 0.18);
  --font-brand: "Zain", "Segoe UI", -apple-system, system-ui, sans-serif;

  /* Re-point legacy theme variables at the new palette */
  --theme-bg-theme-dark: var(--brand);
  --theme-bg-theme-true-black: var(--brand-ink);
  --theme-bg-theme-gray: var(--brand-wash);
  --theme-bg-theme-electric-green: var(--brand);
  --theme-bg-theme-emerald-green: var(--brand);
  --theme-bg-theme-forest-green: var(--brand-deep);
  --theme-text-theme-dark: var(--brand-accent);
  --theme-text-electric-green: var(--brand-accent);
  --theme-text-emerald-green: var(--brand);
  --theme-border-electric-green: var(--brand-deep);
  --theme-border-emerald-green: var(--brand);
}

/* --------------------------------------------------------------------------
   Global typography
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-brand);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body h1, body h2, body h3, body h4, body h5, body h6,
body .h1, body .h2, body .h3, body .h4, body .h5, body .h6 {
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

body p, body li, body a, body button, body input, body label, body span {
  font-family: var(--font-brand);
}

/* Legacy stylesheets reference "Hero New" / "FSAlbert", which no longer load.
   Force the brand font everywhere except icon fonts. */
body :not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.icon):not([class^="ion-"]):not([class*=" ion-"]) {
  font-family: var(--font-brand) !important;
}

body h2 { font-size: clamp(28px, 3.2vw, 40px); }
body h3 { font-size: clamp(22px, 2.4vw, 28px); }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

body a { transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease; }
body a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-round,
body .btn-round {
  background: linear-gradient(120deg, var(--brand-deep), var(--brand) 60%, var(--brand-accent) 130%);
  border: none;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 26px;
  box-shadow: 0 8px 20px rgba(43, 57, 144, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-round:hover,
body .btn-round:hover {
  color: #fff !important;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 30px rgba(43, 57, 144, 0.38);
}

.btn-round-white,
body .btn-round-white {
  background: #fff;
  color: var(--brand) !important;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  padding: 10px 26px;
  box-shadow: 0 10px 24px rgba(11, 16, 48, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-round-white:hover {
  transform: translateY(-2px);
  color: var(--brand-deep) !important;
  box-shadow: 0 16px 34px rgba(11, 16, 48, 0.35);
}

/* --------------------------------------------------------------------------
   Brand lockup (logo)
   -------------------------------------------------------------------------- */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  text-decoration: none;
}

.brand-mark { height: 44px; width: auto; display: block; }
.brand-mark-dots, .brand-mark g { fill: currentColor; }

.brand-text { display: flex; flex-direction: column; }

.brand-word {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 31px;
  letter-spacing: 0.01em;
  line-height: 0.9;
}

.brand-tag {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-top: 5px;
}

.brand-lockup--dark .brand-mark { color: var(--brand-logo); }
.brand-lockup--dark .brand-word,
.brand-lockup--dark .brand-tag { color: #000; }

.brand-lockup--light .brand-mark { color: var(--brand-accent); }
.brand-lockup--light .brand-word,
.brand-lockup--light .brand-tag { color: #fff; }

.brand-lockup--white .brand-mark { color: #fff; }
.brand-lockup--white .brand-word,
.brand-lockup--white .brand-tag { color: #fff; }

/* Official lockup artwork (image) — sizes per placement; aspect ratio is preserved */
.brand-logo { display: block; height: 48px; width: auto; max-width: 100%; }
.brand-logo--on-dark { display: none; }
[data-theme="dark"] .brand-lockup--dark .brand-logo--on-light { display: none; }
[data-theme="dark"] .brand-lockup--dark .brand-logo--on-dark { display: block; }
.site-header .navbar-brand .brand-logo { height: 46px; }
.footer-brand .brand-logo { height: 62px; }
.netmap-brand .brand-logo { height: 54px; }
@media (max-width: 767px) {
  .site-header .navbar-brand .brand-logo { height: 38px; }
  .netmap-brand .brand-logo { height: 44px; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header .topbar {
  background: var(--brand-navy);
  padding: 6px 0;
}

.site-header .topbar .list-top a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  border: none;
  display: inline-block;
}

.site-header .topbar .list-top a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14); /* beat legacy white hover bg (white-on-white in light mode) */
}

.site-header .topbar .list-top a.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.topbar-phone {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  align-items: center;
  white-space: nowrap;
  margin-right: 14px;
}
.topbar-phone:hover { color: #fff !important; }

@media (max-width: 1199px) {
  .topbar-phone { display: none !important; }
}

.site-header .searchBox,
.topbar .searchBox {
  position: static !important;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 2px 4px 2px 14px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.topbar .searchBox:hover { background: rgba(255, 255, 255, 0.2); }

.topbar .searchBox:hover > .searchInput {
  width: 120px;
  padding: 4px 0;
}

.topbar .searchBox:hover > .searchButton { color: #fff; border: 0; }

.site-header .searchBox:focus-within {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(74, 90, 192, 0.45);
}

.site-header .searchInput,
.topbar .searchInput {
  float: none;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13.5px;
  width: 120px;
  transition: width 0.35s ease;
  padding: 4px 0;
}

.site-header .searchInput::placeholder { color: rgba(255, 255, 255, 0.55); }
.site-header .searchBox:focus-within .searchInput { width: 180px; }

.site-header .searchButton {
  color: rgba(255, 255, 255, 0.8);
  padding: 2px 10px;
  border: none;
}
.site-header .searchButton:hover { color: #fff; }

.site-header .main-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 22, 43, 0.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled .main-nav {
  box-shadow: 0 10px 30px rgba(16, 22, 63, 0.12);
}

.site-header .navbar-brand { padding: 10px 0; margin-right: 28px; }
.site-header .navbar-brand .brand-mark { height: 40px; }
.site-header .navbar-brand .brand-word { font-size: 28px; }
.site-header .navbar-brand .brand-tag { font-size: 8.5px; letter-spacing: 0.3em; }

.site-header .nav-link {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink) !important;
  position: relative;
}

@media (min-width: 768px) {
  .site-header .navbar-nav > .nav-item > .nav-link { padding: 26px 14px; }

  /* One hover/active line per tab: the full-width bottom line from the base theme
     (.nav-link:before). The extra short underline that used to be drawn here doubled up
     on tabs without a dropdown (Global Services, Network Map), so it is switched off. */
  .site-header .navbar-nav > .nav-item > .nav-link::after { content: none; display: none; }
  .site-header .navbar-nav > .nav-item > .nav-link:not(.btn-round):before {
    background: linear-gradient(90deg, var(--brand), var(--brand-accent));
    height: 3px;
  }
  .site-header .navbar-nav > .nav-item.show > .nav-link:before { width: 100%; }
}

.site-header .header-contact-us .btn-round { padding: 9px 24px; margin-left: 10px; color: #fff !important; }
.site-header .header-contact-us .btn-round::after { display: none; }

/* Mega menu */
.site-header .dropdown-menu {
  margin-top: 0;
  background: transparent;
}

.mega-panel {
  background: #fff;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 34px 60px rgba(16, 22, 63, 0.18);
  border-top: 3px solid var(--brand);
}

.mega-panel h4, .mega-panel h4 a {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--brand-deep);
  letter-spacing: 0.01em;
}

.mega-panel h4 a:hover { color: var(--brand); }

.mega-panel .list-megamenu li { padding: 2px 0; }

.mega-panel .list-megamenu a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 400;
  padding: 3px 0;
  transition: color 0.2s ease, transform 0.2s ease, padding-left 0.2s ease;
}

.mega-panel .list-megamenu a:hover {
  color: var(--brand);
  padding-left: 6px;
}

@media (min-width: 768px) {
  .dropdown-mega .dropdown-menu {
    animation: megaIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes megaIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.menu-caret { font-size: 18px; color: #707070; float: right; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--brand-navy);
  min-height: clamp(420px, 58vh, 620px);
}

.hero-brand.hero-noimg { min-height: clamp(540px, 78vh, 780px); }

.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.7);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 140% at 85% -20%, rgba(74, 90, 192, 0.55) 0%, rgba(74, 90, 192, 0) 45%),
    linear-gradient(112deg, #0b1030 0%, var(--brand-navy) 28%, var(--brand-deep) 58%, var(--brand) 100%);
}

.hero-brand:not(.hero-noimg) .hero-gradient {
  background: linear-gradient(100deg,
    rgba(11, 16, 48, 0.95) 0%,
    rgba(31, 42, 107, 0.85) 38%,
    rgba(43, 57, 144, 0.55) 68%,
    rgba(43, 57, 144, 0.28) 100%);
}

.hero-motif {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-motif svg {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  min-width: 55%;
}

.motif-drift-a { animation: drift 9s ease-in-out infinite alternate; }
.motif-drift-b { animation: drift 12s ease-in-out 1.2s infinite alternate-reverse; }
.motif-dumbbell { animation: driftSmall 10s ease-in-out 0.5s infinite alternate; }

@keyframes drift      { from { transform: translateY(-14px); } to { transform: translateY(16px); } }
@keyframes driftSmall { from { transform: translateY(-8px);  } to { transform: translateY(10px); } }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 90px 12px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-chip::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 12px 2px rgba(74, 90, 192, 0.9);
}

.hero-title {
  color: #fff !important;
  font-size: clamp(52px, 7.5vw, 96px) !important;
  font-weight: 900 !important;
  line-height: 0.95 !important;
  letter-spacing: -0.015em;
  margin: 18px 0 10px;
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 300;
  max-width: 56ch;
  line-height: 1.55;
  margin-bottom: 8px;
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

.hero-actions {
  margin-top: 26px;
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both;
}

.btn-hero {
  background: #fff;
  color: var(--brand-deep) !important;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  padding: 13px 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.45);
}

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

/* Compact hero (service menu pages) */
.hero-compact { min-height: clamp(320px, 46vh, 480px); }
.hero-title-md { font-size: clamp(38px, 5vw, 64px) !important; }

/* Card-style hero (service + industry pages) */
.hero-card-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(380px, 52vh, 560px);
  background: var(--brand-navy);
  padding: 60px 0;
}

.hero-card-banner .hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.75);
}

.hero-card-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(11, 16, 48, 0.82) 0%,
    rgba(31, 42, 107, 0.55) 45%,
    rgba(31, 42, 107, 0.15) 100%);
}

.banner-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 38px 42px;
  box-shadow: 0 30px 70px rgba(11, 16, 48, 0.35);
  border-left: 5px solid var(--brand);
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.banner-card h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 8px;
}

.banner-card-sub {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
  margin: 14px 0 22px;
}

.banner-card-tagline {
  color: var(--brand) !important;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  margin-top: 6px;
}

@media (max-width: 767px) {
  .hero-card-banner { padding: 40px 0; min-height: 340px; }
  .banner-card { padding: 26px 24px; }
}

/* --------------------------------------------------------------------------
   Sections — shared
   -------------------------------------------------------------------------- */
.section-text .pre-title {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.24em;
  font-size: 13px;
}

.section-text .pre-title-line {
  display: inline-block;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-accent));
}

/* Service cards (home sliders + card arrays) */
.box-slider,
body .box-slider {
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.box-slider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand) 50%, var(--brand-accent));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.box-slider:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(43, 57, 144, 0.35);
}

.box-slider:hover::after { opacity: 1; }

.box-slider .fs-14 {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11.5px !important;
}

/* Industry solution cards */
.sec-solution .img-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.sec-solution .img-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.sec-solution .img-box img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sec-solution .img-box:hover img { transform: scale(1.04); }

.sec-solution .figure-caption h3,
.sec-solution .figure-caption p { color: #fff; }

/* Stats — why choose */
.sec-choose .box-choose {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft) !important;
  padding: 28px 30px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.sec-choose .box-choose:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift) !important;
}

.sec-choose .box-choose h2 {
  color: var(--brand);
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 900;
  line-height: 1;
}

.sec-choose .box-choose h2 span { font-size: 0.45em; font-weight: 800; }

.sec-choose .box-choose p {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.sec-choose .box-choose img { filter: hue-rotate(0deg); max-height: 64px; }

/* CTA band (img-text-banner, bg-emerald-green legacy class) */
.sec-digital,
.sec-digital.bg-emerald-green,
body .bg-emerald-green {
  background: linear-gradient(115deg, var(--brand-navy) 0%, var(--brand-deep) 45%, var(--brand) 100%) !important;
}

.sec-digital {
  position: relative;
  overflow: hidden;
}

.sec-digital::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 90, 192, 0.5), rgba(74, 90, 192, 0) 70%);
}

.sec-digital h2 { color: #fff; font-weight: 800; }

/* Partner logos */
.sec-companies-logo {
  background: linear-gradient(180deg, #fff 0%, var(--brand-wash) 160%);
  padding: 40px 0 60px;
}

.sec-companies-logo h3 {
  font-weight: 400;
  color: var(--muted);
}

.sec-companies-logo h3 strong { color: var(--ink); font-weight: 800; }

.sec-companies-logo .logos img,
.sec-companies-logo img.img-fluid {
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.sec-companies-logo img.img-fluid:hover {
  filter: grayscale(0) opacity(1);
  transform: translateY(-3px);
}

.sec-companies-logo .wd-link a {
  color: var(--brand);
  font-weight: 800;
}

/* Newsroom preview */
.sec-news-preview { background: var(--brand-wash) !important; }

.sec-news-preview h2 { color: var(--ink) !important; }

.sec-news-preview .net-content h3 {
  color: var(--ink) !important;
  font-weight: 700 !important;
}

.news-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, var(--brand-navy), var(--brand-deep) 55%, var(--brand));
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-thumb-placeholder svg { width: 34%; height: auto; }

.sec-news-preview .net-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px 16px 22px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.sec-news-preview .net-content:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.sec-news-preview .net-content img {
  border-radius: var(--radius-md);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.sec-news-preview .net-content h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  min-height: 0;
}

.sec-news-preview .net-content a {
  color: var(--brand);
  font-weight: 800;
}

/* Help cards */
.sec-help .row.text-center > div > div {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 34px 40px;
  width: 100%;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.sec-help .row.text-center > div > div:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.sec-help .border-bx { border: none !important; }

/* Subscribe */
.sec-subscribe,
.sec-subscribe.bg-electric-green {
  background:
    radial-gradient(90% 160% at 100% 0%, rgba(74, 90, 192, 0.5) 0%, rgba(74, 90, 192, 0) 50%),
    linear-gradient(115deg, var(--brand-navy), var(--brand-deep) 50%, var(--brand)) !important;
  position: relative;
  overflow: hidden;
}

.sec-subscribe::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -140px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.sec-subscribe .input-group {
  border-radius: 999px !important;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.sec-subscribe .btn-subscribe {
  background: linear-gradient(120deg, var(--brand-deep), var(--brand));
  color: #fff;
  border-radius: 999px !important;
  font-weight: 800;
  padding: 8px 24px;
}

/* Form submit buttons (contact + careers use .btn-green) */
body .btn-green {
  background: linear-gradient(120deg, var(--brand-deep), var(--brand) 60%, var(--brand-accent) 130%);
  border: none;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  padding: 10px 34px;
  box-shadow: 0 8px 20px rgba(43, 57, 144, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

body .btn-green:hover:not(:disabled) {
  color: #fff !important;
  transform: translateY(-2px);
  filter: brightness(1.08);
}

body .btn-green:disabled { opacity: 0.45; }

/* Divider */
.sec-divider hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 57, 144, 0.3), transparent);
  opacity: 1;
}

/* Leadership team */
.team .content img {
  border: 5px solid #fff;
  box-shadow: 0 14px 34px rgba(16, 22, 63, 0.16);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.team .content:hover img {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 24px 48px rgba(31, 42, 107, 0.3);
}

.team h5 { font-weight: 800; font-size: 21px; }
.team .text-emerald-green { color: var(--brand) !important; font-weight: 700; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background:
    radial-gradient(80% 100% at 100% 100%, rgba(43, 57, 144, 0.35) 0%, rgba(43, 57, 144, 0) 55%),
    var(--brand-ink) !important;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  overflow: hidden;
  padding: 70px 0 30px;
}

.footer-motif {
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 420px;
  color: var(--brand-accent);
  pointer-events: none;
}

.footer-top { padding-bottom: 40px; }

.footer-brand .brand-mark { height: 52px; }
.footer-brand .brand-word { font-size: 36px; }

.footer-ownership {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.btn-footer-cta { font-size: 16px; padding: 12px 30px; }

.footer-links-row {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 44px;
  row-gap: 28px;
}

.footer-heading {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-heading::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--brand-accent), transparent);
}

.site-footer .f-links li { padding: 3px 0; }

.site-footer .f-links a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14.5px;
  font-weight: 300;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.site-footer .f-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff !important;
  transition: background 0.25s ease, transform 0.25s ease;
}

.footer-social a:hover {
  background: var(--brand);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  margin-top: 48px;
  padding-top: 24px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-tagline {
  color: var(--brand-accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .motif-drift-a, .motif-drift-b, .motif-dumbbell { animation: none; }
  .hero-chip, .hero-title, .hero-sub, .hero-actions { animation: none; }
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .site-header .navbar-brand .brand-mark { height: 34px; }
  .site-header .navbar-brand .brand-word { font-size: 23px; }
  .site-header .navbar-brand .brand-tag { font-size: 7px; letter-spacing: 0.26em; }
  .site-header .searchInput { width: 84px; }
  .site-header .searchBox:focus-within .searchInput { width: 120px; }
  .hero-content { padding: 70px 12px; }
  .hero-motif svg { opacity: 0.55; }
  .footer-motif { width: 280px; right: -80px; }
  .mega-panel { border-radius: 0; box-shadow: none; border-top: none; }
}

/* --------------------------------------------------------------------------
   Interactive network map
   -------------------------------------------------------------------------- */
.netmap-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  margin-bottom: 40px;
  overflow: hidden;
}

.netmap-header {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.netmap-brand .brand-mark { height: 46px; }
.netmap-brand .brand-word { font-size: 30px; }

.netmap-title h2 { margin: 0; font-size: 26px; }
.netmap-title p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.igf-badge {
  display: inline-block;
  background: linear-gradient(120deg, var(--brand-deep), var(--brand));
  color: #fff;
  border-radius: 10px;
  padding: 2px 14px;
  margin-right: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.netmap-stage { position: relative; overflow-x: auto; }
.netmap-stage svg { width: 100%; height: auto; display: block; min-width: 760px; border-radius: var(--radius-md); }

.netmap-stage .sea { fill: #f3f5fb; }

.netmap-stage .land {
  fill: #e6e9f2;
  stroke: #fff;
  stroke-width: 1;
  transition: fill 0.25s ease;
}

.netmap-stage .land.presence { fill: #d9dff5; }
.netmap-stage .land:hover { fill: #cdd5f0; cursor: pointer; }
.netmap-stage .land.presence:hover { fill: #b9c4ee; }

.netmap-stage .route {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  cursor: pointer;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.netmap-stage .route:hover {
  filter: drop-shadow(0 0 6px rgba(43, 57, 144, 0.55)) brightness(1.05);
  stroke-width: 6px;
}

#netmap-svg.dim .route:not(.focused) { opacity: 0.1; }
#netmap-svg.dim .route.focused {
  filter: drop-shadow(0 0 7px rgba(43, 57, 144, 0.5));
  stroke-width: 6px;
}

.netmap-stage .node { cursor: pointer; }
.netmap-stage .node .dot { transition: transform 0.25s ease; }
.netmap-stage .node:hover .dot { transform: scale(1.35); }

.netmap-stage .node-gpop .dot { fill: #10163f; stroke: #fff; stroke-width: 2.5; }
.netmap-stage .node-gcc .dot { fill: var(--brand); stroke: #fff; stroke-width: 2.5; }
.netmap-stage .node-cls .dot { fill: #8d4ec7; }
.netmap-stage .dot-future { fill: #8b90a8 !important; }
.netmap-stage .pulse { fill: var(--brand-accent); opacity: 0.5; pointer-events: none; }

.netmap-stage .lbl {
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 800;
  fill: #14162b;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 3;
  pointer-events: none;
}

.netmap-stage .lbl-sub {
  font-family: var(--font-brand);
  font-size: 12.5px;
  font-weight: 400;
  fill: #5a5f7a;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 3;
  pointer-events: none;
}

#netmap-inset-svg .lbl { font-size: 15px; }

.netmap-tooltip {
  position: absolute;
  z-index: 6;
  background: var(--brand-navy);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(11, 16, 48, 0.35);
}

.netmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 2px 0 16px;
}

.netmap-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.netmap-legend-item:hover,
.netmap-legend-item.active {
  border-color: var(--brand);
  box-shadow: 0 6px 16px rgba(43, 57, 144, 0.18);
  transform: translateY(-1px);
}

.netmap-legend-item .swatch {
  width: 22px;
  height: 5px;
  border-radius: 3px;
  background: var(--c);
}

.netmap-legend-item.dashed .swatch {
  background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 9px);
}

/* Node-type key (mirrors the official network map legend) */
.netmap-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: -6px 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.netmap-key { display: inline-flex; align-items: center; gap: 7px; }

.netmap-key .k-disc {
  width: 18px;
  height: 8px;
  border-radius: 4px;
  background: var(--c);
}

.netmap-key .k-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-sizing: border-box;
}

.netmap-key .k-gpop { background: #10163f; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #10163f; }
.netmap-key .k-gcc { background: var(--brand); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--brand); }
.netmap-key .k-cls { width: 9px; height: 9px; background: #8d4ec7; }

.netmap-stage .lbl.lbl-sm { font-size: 13.5px; }
#netmap-inset-svg .lbl.lbl-sm { font-size: 15px; }
.netmap-stage .svc { pointer-events: none; }

.netmap-stage .lbl-country {
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  fill: #7d84a6;
  pointer-events: none;
}

/* Map + right-hand legend sidebar */
.netmap-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 20px;
  align-items: start;
}

.netmap-side {
  position: sticky;
  top: 140px;
  margin: 0;
  align-self: start;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 14px 16px;
}

.netmap-side-title {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.netmap-side .netmap-legend {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 0 16px;
}

.netmap-side .netmap-legend-item {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.25;
}

.netmap-side .netmap-legend-item .swatch { flex: 0 0 22px; }

.netmap-side .netmap-keys {
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0 2px;
}

.netmap-side .netmap-key i { flex: 0 0 auto; }

@media (max-width: 991px) {
  .netmap-body { grid-template-columns: minmax(0, 1fr); }
  .netmap-side { position: static; order: -1; }
  .netmap-side .netmap-legend { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .netmap-side .netmap-legend-item { width: auto; border-radius: 999px; }
  .netmap-side .netmap-keys { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
}

@media (max-width: 767px) {
  .netmap-card { padding: 16px; }
  .netmap-title h2 { font-size: 21px; }
}

/* --------------------------------------------------------------------------
   Rich photo hero (homepage banner from brand imagery)
   -------------------------------------------------------------------------- */
.hero-rich { min-height: clamp(520px, 74vh, 760px); background: #06070f; }

.hero-brand.hero-rich .hero-photo {
  filter: none;
  background-position: 62% top;
}

.hero-brand.hero-rich .hero-gradient {
  background: linear-gradient(93deg,
    rgba(5, 7, 15, 0.95) 0%,
    rgba(5, 7, 15, 0.78) 26%,
    rgba(5, 7, 15, 0.30) 48%,
    rgba(5, 7, 15, 0) 66%);
}

.hero-rich .hero-motif { display: none; }

@media (max-width: 767px) {
  .hero-rich { min-height: 480px; }
  .hero-brand.hero-rich .hero-photo { background-position: 68% top; }
  .hero-brand.hero-rich .hero-gradient {
    background: linear-gradient(180deg,
      rgba(5, 7, 15, 0.55) 0%,
      rgba(5, 7, 15, 0.82) 70%,
      rgba(5, 7, 15, 0.95) 100%);
  }
}

/* --------------------------------------------------------------------------
   Theme toggle button
   -------------------------------------------------------------------------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.theme-toggle:hover { background: rgba(255, 255, 255, 0.22); transform: rotate(18deg); }

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

html.theme-anim,
html.theme-anim body,
html.theme-anim body * {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, fill 0.4s ease !important;
}

/* --------------------------------------------------------------------------
   Dark theme
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --brand-wash: #10172e;
  --card-border: rgba(255, 255, 255, 0.09);
  --ink: #e8ecfb;
  --muted: #9aa6d0;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 22px 45px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] body { background: #0b1020; color: #dfe4f8; }

[data-theme="dark"] body h1, [data-theme="dark"] body h2, [data-theme="dark"] body h3,
[data-theme="dark"] body h4, [data-theme="dark"] body h5, [data-theme="dark"] body h6 {
  color: #f2f4ff;
}

[data-theme="dark"] body p, [data-theme="dark"] body li { color: #c6cde8; }

[data-theme="dark"] body a { color: #aab6f5; }
[data-theme="dark"] body a:hover { color: #ccd4ff; }

/* Header */
[data-theme="dark"] .site-header .topbar { background: #060a1a; }

[data-theme="dark"] .site-header .main-nav {
  background: rgba(11, 16, 32, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .site-header .nav-link { color: #e8ecfb !important; }
[data-theme="dark"] .site-header .navbar-nav > .nav-item > .nav-link:not(.btn-round):before { background: linear-gradient(90deg, #8093ff, #b3bfff); }
[data-theme="dark"] .navbar-light .navbar-toggler-icon { filter: invert(1); }

[data-theme="dark"] .brand-lockup--dark .brand-word,
[data-theme="dark"] .brand-lockup--dark .brand-tag { color: #fff; }
[data-theme="dark"] .brand-lockup--dark .brand-mark { color: var(--brand-accent); }

[data-theme="dark"] .mega-panel {
  background: #121a35;
  box-shadow: 0 34px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .mega-panel h4 a, [data-theme="dark"] .mega-panel h4 { color: #c3cdfa; }
[data-theme="dark"] .mega-panel .list-megamenu a { color: #9aa6d0; }
[data-theme="dark"] .mega-panel .list-megamenu a:hover { color: #e8ecfb; }

/* Cards & sections */
[data-theme="dark"] .box-slider,
[data-theme="dark"] .sec-choose .box-choose,
[data-theme="dark"] .sec-news-preview .net-content,
[data-theme="dark"] .sec-help .row.text-center > div > div,
[data-theme="dark"] .banner-card,
[data-theme="dark"] .card,
[data-theme="dark"] .promo-card,
[data-theme="dark"] .netmap-card,
[data-theme="dark"] .netmap-legend-item {
  background-color: #131b38;
  border-color: rgba(255, 255, 255, 0.09);
  color: #dfe4f8;
}

[data-theme="dark"] .box-slider h3, [data-theme="dark"] .box-slider p,
[data-theme="dark"] .card-title, [data-theme="dark"] .card-text { color: #dfe4f8; }

[data-theme="dark"] .banner-card h1 { color: #f2f4ff; }
[data-theme="dark"] .banner-card-sub { color: #9aa6d0; }
[data-theme="dark"] .banner-card { background: rgba(19, 27, 56, 0.93); }

[data-theme="dark"] .sec-news-preview { background: #0d1329 !important; }
[data-theme="dark"] .sec-news-preview h2,
[data-theme="dark"] .sec-news-preview .net-content h3 { color: #f2f4ff !important; }

[data-theme="dark"] .sec-companies-logo {
  background: linear-gradient(180deg, #0b1020 0%, #0d1329 100%);
}

[data-theme="dark"] .sec-companies-logo h3 strong { color: #f2f4ff; }

[data-theme="dark"] .sec-companies-logo img.img-fluid {
  filter: grayscale(1) opacity(0.85);
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
}

[data-theme="dark"] .sec-companies-logo img.img-fluid:hover {
  filter: none;
}

[data-theme="dark"] .sec-divider hr {
  background: linear-gradient(90deg, transparent, rgba(170, 182, 245, 0.35), transparent);
}

[data-theme="dark"] .section-text .description { color: #9aa6d0; }

[data-theme="dark"] .team .content img { border-color: #131b38; }
[data-theme="dark"] .breadcrumbs a, [data-theme="dark"] .breadcrumbs span { color: #9aa6d0; }

/* Forms */
[data-theme="dark"] input.form-control,
[data-theme="dark"] textarea.form-control,
[data-theme="dark"] select.form-select,
[data-theme="dark"] select,
[data-theme="dark"] .form-control {
  background: #0d1329;
  border-color: rgba(255, 255, 255, 0.18);
  color: #e8ecfb;
}

[data-theme="dark"] .form-control::placeholder { color: #6f78a0; }

[data-theme="dark"] .sec-subscribe .input-group input.form-control { background: #fff; color: #14162b; }

/* Cookie banner */
[data-theme="dark"] .cookies-banner-general { background: #121a35 !important; color: #dfe4f8; }
[data-theme="dark"] .cookies-text { color: #dfe4f8 !important; }

/* Network map */
[data-theme="dark"] .netmap-stage .sea { fill: #0d1329; }
[data-theme="dark"] .netmap-stage .land { fill: #1a2244; stroke: #0d1329; }
[data-theme="dark"] .netmap-stage .land.presence { fill: #273367; }
[data-theme="dark"] .netmap-stage .land:hover { fill: #2e3b78; }
[data-theme="dark"] .netmap-stage .land.presence:hover { fill: #38468e; }

[data-theme="dark"] .netmap-stage .lbl {
  fill: #eef1ff;
  stroke: rgba(13, 19, 41, 0.9);
}

[data-theme="dark"] .netmap-stage .lbl-sub {
  fill: #9aa6d0;
  stroke: rgba(13, 19, 41, 0.9);
}

[data-theme="dark"] .netmap-stage .node-gpop .dot { fill: #e8ecfb; stroke: #0d1329; }
[data-theme="dark"] .netmap-title p { color: #9aa6d0; }
[data-theme="dark"] .netmap-legend-item { color: #dfe4f8; }
[data-theme="dark"] .netmap-keys { color: #9aa6d0; }
[data-theme="dark"] .netmap-side { border-color: rgba(154, 166, 208, 0.22); }
[data-theme="dark"] .netmap-side-title { color: #9aa6d0; }
[data-theme="dark"] .netmap-key .k-gpop { background: #e8ecfb; border-color: #0d1329; box-shadow: 0 0 0 1.5px #e8ecfb; }
[data-theme="dark"] .netmap-stage .lbl-country { fill: #7f8bb8; }
[data-theme="dark"] .netmap-stage .svc { stroke: #0d1329; }
/* IGF brand blue is too dark on the dark map — lift it */
[data-theme="dark"] .netmap-stage .route[data-route="igf"] { stroke: #8093ff; }
[data-theme="dark"] .netmap-stage .route[data-route="future"] { stroke: #9aa3c7; }
[data-theme="dark"] .netmap-stage .route[data-route="ameer2"] { stroke: #9097a6; }

/* Route hover glow brighter on dark */
[data-theme="dark"] .netmap-stage .route:hover,
[data-theme="dark"] #netmap-svg.dim .route.focused {
  filter: drop-shadow(0 0 8px rgba(122, 143, 255, 0.8));
}

/* --------------------------------------------------------------------------
   Layout nits (all themes)
   -------------------------------------------------------------------------- */
/* Uniform leadership portraits regardless of source aspect ratio */
.team .content img {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
}

/* Photo heroes: the dot-cluster motif reads as a second logo — photo + logo in
   the header is enough. Keep the motif only on pure-brand (no photo) heroes. */
.hero-brand:not(.hero-noimg) .hero-motif { display: none; }

/* --------------------------------------------------------------------------
   Dark theme: readability fixes
   -------------------------------------------------------------------------- */
/* Mega menu — legacy selectors carry high specificity, match and exceed them */
[data-theme="dark"] .navbar .dropdown-mega .dropdown-menu a { color: #c7cff3; }
[data-theme="dark"] .navbar .dropdown-mega .dropdown-menu a:hover { color: #ffffff; }

[data-theme="dark"] .navbar .dropdown-mega .dropdown-menu h4,
[data-theme="dark"] .navbar .dropdown-mega .dropdown-menu h4 a {
  color: #eef1ff;
}

[data-theme="dark"] .navbar .dropdown-mega .dropdown-menu .list-megamenu li a {
  color: #9fabd8;
}

[data-theme="dark"] .navbar .dropdown-mega .dropdown-menu .list-megamenu li a:hover {
  color: #ffffff;
}

[data-theme="dark"] .mega-panel .border-bx,
[data-theme="dark"] .mega-panel .border-s,
[data-theme="dark"] .mega-panel [class*="border"] {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Generic light-background utilities used across service pages */
[data-theme="dark"] .bg-white { background-color: #131b38 !important; }
[data-theme="dark"] .bg-gray-50,
[data-theme="dark"] .bg-gray { background-color: #0d1329 !important; }
[data-theme="dark"] .sec-feature { background-color: #0d1329 !important; }

[data-theme="dark"] .box-feature,
[data-theme="dark"] .sec-feature .box-feature {
  background-color: #131b38 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .box-feature img,
[data-theme="dark"] .sec-choose .box-choose img,
[data-theme="dark"] .sec-help img {
  filter: invert(0.82) hue-rotate(180deg) saturate(0.6) brightness(1.4);
}

/* Service overview tabs + FAQ accordions */
[data-theme="dark"] .nav-tabs .nav-link { color: #9fabd8; }
[data-theme="dark"] .nav-tabs .nav-link.active,
[data-theme="dark"] .sec-faq .nav-tabs .nav-link.active {
  background-color: transparent;
  color: #c7cff3;
  border-bottom-color: var(--brand-accent);
}

[data-theme="dark"] .accordion-item,
[data-theme="dark"] .accordion-button {
  background-color: #131b38;
  color: #e8ecfb;
  border-color: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .accordion-button::after { filter: invert(1); }
[data-theme="dark"] .accordion-body { color: #c6cde8; }

/* Breadcrumbs */
[data-theme="dark"] .breadcrumb-item span,
[data-theme="dark"] .breadcrumb-item a span,
[data-theme="dark"] .breadcrumb-item.active a span {
  color: #9fabd8;
}

[data-theme="dark"] .breadcrumb-item a:hover span { color: #ffffff; }
[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before { color: #6f78a0; }

/* Links that inherit legacy dark colors inside dark cards (Call: numbers etc.) */
[data-theme="dark"] .sec-help a,
[data-theme="dark"] .sec-help a strong,
[data-theme="dark"] .box-slider a:not(.btn),
[data-theme="dark"] .net-content a {
  color: #aab6f5 !important;
}

[data-theme="dark"] .sec-help a:hover { color: #ffffff !important; }

/* Section-text blocks & misc legacy text colors */
[data-theme="dark"] .section-text .pre-title { color: #aab6f5; }
[data-theme="dark"] .text-black,
[data-theme="dark"] .text-dark { color: #e8ecfb !important; }

/* Search page + pagination */
[data-theme="dark"] .page-link {
  background-color: #131b38;
  border-color: rgba(255, 255, 255, 0.12);
  color: #c7cff3;
}

/* Careers / legal content wrappers that rely on white body */
[data-theme="dark"] .card-news .card-body { background-color: #131b38; }

/* --------------------------------------------------------------------------
   Dark theme round 2: shadows, forms, tables, subscribe
   -------------------------------------------------------------------------- */
/* Legacy light-gray glows (0 0 6px #ccc etc.) read as halos on dark — replace
   with deep shadows everywhere cards appear */
[data-theme="dark"] .box-slider,
[data-theme="dark"] .sec-business .box-slider,
[data-theme="dark"] .box-services,
[data-theme="dark"] .sec-suggservs .box-services,
[data-theme="dark"] .sec-choose .box-choose,
[data-theme="dark"] .sec-news-preview .net-content,
[data-theme="dark"] .sec-help .row.text-center > div > div,
[data-theme="dark"] .card,
[data-theme="dark"] .box-feature,
[data-theme="dark"] .form-wrapper,
[data-theme="dark"] .banner-card,
[data-theme="dark"] .netmap-card,
[data-theme="dark"] .netmap-legend-item,
[data-theme="dark"] .promo-card {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55) !important;
}

[data-theme="dark"] .box-slider:hover,
[data-theme="dark"] .sec-choose .box-choose:hover,
[data-theme="dark"] .sec-news-preview .net-content:hover {
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.75) !important;
}

/* Subscribe: keep the input capsule white, on a clean dark shadow */
[data-theme="dark"] .sec-subscribe .input-group {
  background: #ffffff !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .sec-subscribe .input-group input.form-control {
  background: transparent;
  border: none;
  color: #14162b;
}

/* Forms (contact + careers application) */
[data-theme="dark"] .form-wrapper { background: #131b38 !important; }

[data-theme="dark"] .form-wrapper form .form-label,
[data-theme="dark"] .form-wrapper form .form-check-label,
[data-theme="dark"] .form-wrapper label {
  color: #aab6f5;
}

[data-theme="dark"] .form-wrapper .form-control,
[data-theme="dark"] .form-wrapper select,
[data-theme="dark"] .form-wrapper textarea {
  background: #0d1329;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #e8ecfb;
}

[data-theme="dark"] .form-wrapper .form-control:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(74, 90, 192, 0.35);
}

[data-theme="dark"] .form-wrapper ::placeholder { color: #6f78a0; }

[data-theme="dark"] .form-wrapper input[type="file"].form-control { color: #9aa6d0; }

[data-theme="dark"] .white-bg { background: transparent !important; }

[data-theme="dark"] .form-wrapper p,
[data-theme="dark"] .form-wrapper small,
[data-theme="dark"] .form-wrapper .form-check-input ~ * { color: #9aa6d0; }

/* Careers vacancies table */
[data-theme="dark"] .table {
  --bs-table-bg: transparent;
  --bs-table-color: #dfe4f8;
  --bs-table-striped-color: #dfe4f8;
  --bs-table-hover-color: #ffffff;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
  color: #dfe4f8;
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .table th,
[data-theme="dark"] .table td {
  color: #dfe4f8;
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .table a { color: #aab6f5; }
[data-theme="dark"] .table a:hover { color: #ffffff; }

/* --------------------------------------------------------------------------
   Round 3: compact mega panel, glass header, remaining dark-mode gaps
   -------------------------------------------------------------------------- */
/* Compact dropdown panel for short menus (e.g. Partner With Us) */
.mega-panel--narrow {
  max-width: 620px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Liquid-glass header once the page is scrolled */
.site-header.scrolled .main-nav {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(26px) saturate(1.7);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
}

[data-theme="dark"] .site-header.scrolled .main-nav {
  background: rgba(10, 14, 30, 0.52);
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* "Invested in Innovation" style overlap cards */
[data-theme="dark"] .box-image-text-1,
[data-theme="dark"] .sec-services .box-image-text-1,
[data-theme="dark"] .sec-img-text-overlap .box-image-text-1 {
  background: #131b38 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55) !important;
}

[data-theme="dark"] .box-image-text-1 h2,
[data-theme="dark"] .box-image-text-1 h3 { color: #f2f4ff !important; }

[data-theme="dark"] .box-image-text-1 p { color: #c6cde8; }
[data-theme="dark"] .box-image-text-1 .pre-title { color: #aab6f5; }

/* Slider arrows */
[data-theme="dark"] .swiper-button-prev,
[data-theme="dark"] .swiper-button-next,
[data-theme="dark"] .sec-news-preview .swiper-button-prev,
[data-theme="dark"] .sec-news-preview .swiper-button-next,
[data-theme="dark"] .sec-business .swiper-button-prev,
[data-theme="dark"] .sec-business .swiper-button-next,
[data-theme="dark"] .sec-solution .swiper-button-prev,
[data-theme="dark"] .sec-solution .swiper-button-next {
  color: #dfe4f8;
}

[data-theme="dark"] .swiper-button-prev:hover,
[data-theme="dark"] .swiper-button-next:hover { color: #ffffff; }

/* "Partner with us" link under partner logos */
[data-theme="dark"] .sec-companies-logo .wd-link a,
[data-theme="dark"] .sec-companies-logo .link-dark {
  color: #aab6f5 !important;
}

[data-theme="dark"] .sec-companies-logo .wd-link a:hover,
[data-theme="dark"] .sec-companies-logo .link-dark:hover {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Round 4: industry solutions overlap boxes in dark mode
   -------------------------------------------------------------------------- */
[data-theme="dark"] .box-image-text-2,
[data-theme="dark"] .sec-services .box-image-text-2,
[data-theme="dark"] .sec-img-text-overlap .box-image-text-2 {
  background: #131b38 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55) !important;
}

[data-theme="dark"] .box-image-text-2 h2,
[data-theme="dark"] .box-image-text-2 h3,
[data-theme="dark"] .box-img-text-link h2,
[data-theme="dark"] .box-img-text-link h3 { color: #f2f4ff !important; }

[data-theme="dark"] .box-image-text-2 p,
[data-theme="dark"] .box-img-text-link p { color: #c6cde8; }

[data-theme="dark"] .box-image-text-2 a,
[data-theme="dark"] .box-img-text-link a,
[data-theme="dark"] .sec-img-text-overlap a,
[data-theme="dark"] .sec-img-text-link a { color: #aab6f5 !important; }

[data-theme="dark"] .box-image-text-2 a:hover,
[data-theme="dark"] .box-img-text-link a:hover,
[data-theme="dark"] .sec-img-text-overlap a:hover,
[data-theme="dark"] .sec-img-text-link a:hover { color: #ffffff !important; }

/* Line-art icons on industry pages: keep visible on dark */
[data-theme="dark"] .sec-img-text-link img[src$=".svg"] {
  filter: invert(0.82) hue-rotate(180deg) saturate(0.6) brightness(1.4);
}

/* Dark: legacy white token flips so inline card backgrounds follow the theme */
[data-theme="dark"] { --theme-bg-theme-white: #131b38; }

[data-theme="dark"] .box-services,
[data-theme="dark"] .sec-suggservs .box-services {
  background-color: #131b38 !important;
  color: #dfe4f8;
}

[data-theme="dark"] .box-services h3,
[data-theme="dark"] .box-services h3 strong { color: #f2f4ff !important; }
[data-theme="dark"] .box-services p { color: #c6cde8; }
[data-theme="dark"] .box-services .fs-14 { color: #aab6f5 !important; }

/* 404 page: shift the legacy green link-broken artwork to brand blue */
.link-broken,
.four-oh-four img.link-broken {
  filter: hue-rotate(100deg) saturate(0.72) brightness(0.95);
}

/* Dark mode: overlap text panels lose the box — plain text on the page,
   mirroring how these sections read in light mode */
[data-theme="dark"] .box-image-text-1,
[data-theme="dark"] .sec-services .box-image-text-1,
[data-theme="dark"] .sec-img-text-overlap .box-image-text-1,
[data-theme="dark"] .box-image-text-2,
[data-theme="dark"] .sec-services .box-image-text-2,
[data-theme="dark"] .sec-img-text-overlap .box-image-text-2 {
  background: transparent !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Page titles promoted to <h1> for SEO/a11y keep the former <h2> look
   -------------------------------------------------------------------------- */
body h1.page-title { font-size: clamp(28px, 3.2vw, 40px); }
.four-oh-four h1.page-title { color: var(--theme-text-electric-green); }
.news-article-title .category { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
/* Item titles demoted from <h1> to <h2> (one h1 per page) keep the former h1 size */
body h2.h1-size { font-size: 50px; }
@media (max-width: 768px) { #global h2.h1-size { font-size: 30px; } }
@media (max-width: 576px) { body h2.h1-size { font-size: 36px; } #global h2.h1-size { font-size: 30px; } }

/* Careers page: empty state when there are no vacancies */
.careers-empty {
  margin-top: 8px;
  padding: 28px 32px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--brand-wash, #eaecf7);
  max-width: 760px;
}
.careers-empty a { color: var(--brand); font-weight: 700; }
[data-theme="dark"] .careers-empty { background: #161d3f; border-color: rgba(154, 166, 208, 0.22); }
[data-theme="dark"] .careers-empty a { color: #9fb0ff; }

/* --------------------------------------------------------------------------
   Header nav: single-line items ("Global Services", "Network Map" must never
   wrap) and a logo that keeps its proportions; tighten spacing at mid widths
   -------------------------------------------------------------------------- */
.site-header .navbar-nav .nav-link { white-space: nowrap; }
.site-header .navbar-brand { flex: 0 0 auto; }
.site-header .navbar-brand .brand-logo { max-width: none; flex-shrink: 0; }

@media (min-width: 768px) and (max-width: 1199px) {
  .site-header .navbar-brand { margin-right: 14px; }
  .site-header .navbar-nav > .nav-item > .nav-link { padding: 26px 9px; font-size: 14.5px; }
  .site-header .navbar-nav .btn-round { padding-left: 18px; padding-right: 18px; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .site-header .header-nav-container { max-width: 100%; padding-left: 14px; padding-right: 14px; }
  .site-header .navbar .nav-item { padding-left: 2px !important; padding-right: 2px !important; }
  .site-header .navbar-brand { margin-right: 6px; }
  .site-header .navbar-brand .brand-logo { height: 32px; }
  .site-header .navbar-nav > .nav-item > .nav-link { padding: 24px 5px; font-size: 12.5px; letter-spacing: -0.01em; }
  .site-header .navbar-nav .btn-round,
  .site-header .navbar-nav > .nav-item > .nav-link.btn-round { padding: 8px 12px; font-size: 12.5px; margin-left: 4px; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .site-header .header-nav-container { max-width: 100%; padding-left: 20px; padding-right: 20px; }
  .site-header .navbar .nav-item { padding-left: 5px !important; padding-right: 5px !important; }
}

@media (min-width: 1100px) and (max-width: 1199px) {
  .site-header .navbar .nav-item { padding-left: 8px !important; padding-right: 8px !important; }
}

/* --------------------------------------------------------------------------
   Newsroom slider arrows: legacy #swiper-3 rules hardcode WHITE arrow PNGs
   (the section was dark in the old design). It is a light wash now, so use
   the same dark arrows as the other sliders; keep white in dark theme.
   -------------------------------------------------------------------------- */
#swiper-3 .swiper-button-prev:after {
  background-image: url("../img/icons/arrow-left.png");
}
#swiper-3 .swiper-button-next:after {
  background-image: url("../img/icons/arrow-right.png");
}
[data-theme="dark"] #swiper-3 .swiper-button-prev:after {
  background-image: url("../img/icons/arrow-left-white.png");
}
[data-theme="dark"] #swiper-3 .swiper-button-next:after {
  background-image: url("../img/icons/arrow-right-white.png");
}
