/* ============================================================
   Oula Wasata — First Securities Brokerage Co. K.S.C.C.
   Design system: Navy #1E3D7D · Azure #0082B6
   ============================================================ */
:root {
  --navy: #1E3D7D;
  --navy-dark: #152C5C;
  --azure: #0A6E96;        /* darkened from #0082B6 for WCAG AA contrast on light backgrounds */
  --azure-light: #1487C0;  /* darkened from #29ABE2; decorative / large-text use */
  --azure-bright: #29ABE2; /* original bright azure — dark backgrounds & decorative only */
  --bg: #F4F7FB;
  --white: #FFFFFF;
  --text: #2A3342;
  --muted: #5B6B82;
  --border: #E2E8F2;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(30, 61, 125, 0.08);
  --shadow-hover: 0 12px 32px rgba(30, 61, 125, 0.16);
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
html[lang="ar"] { --font: 'Tajawal', 'Segoe UI', system-ui, sans-serif; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--azure); text-decoration: none; }
a:hover { color: var(--navy); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); margin-top: 12px; }
.eyebrow { display: inline-block; color: var(--azure); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; margin-bottom: 10px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 13px 28px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; transition: all .25s; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--azure); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { border-color: var(--azure); color: var(--azure); background: transparent; }
.btn-outline:hover { background: var(--azure); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--azure); color: #fff; }
.btn-ghost-white { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-white:hover { background: #fff; color: var(--navy); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dark); color: #C9D4E8; font-size: 0.82rem; padding: 7px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #C9D4E8; }
.topbar a:hover { color: #fff; }
.topbar .tb-links { display: flex; gap: 18px; }
.topbar .tb-wa svg { vertical-align: -5px; }
/* auto-rendered links inside admin-managed section text */
a.wa-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #128C7E; font-weight: 600;
}
a.wa-link:hover { color: #0b6e62; }
a.wa-link svg { flex: 0 0 auto; }
a.tel-link { unicode-bidi: isolate; white-space: nowrap; }

/* ---------- Header / Nav ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(30,61,125,.07); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--navy); font-weight: 600; font-size: 0.92rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--azure); border-bottom-color: var(--azure); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.85rem; }
.lang-switch { font-weight: 700; color: var(--navy); border: 1.5px solid var(--border); padding: 8px 14px; border-radius: 8px; font-size: 0.85rem; }
.lang-switch:hover { border-color: var(--azure); color: var(--azure); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.7rem; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 55%, var(--azure) 130%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset-inline-end: -180px; top: -180px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(41,171,226,.35), transparent 70%); }
.hero .container { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 96px; max-width: 1180px; }
.hero h1 { color: #fff; max-width: 640px; }
.hero p.lead { color: #D7E2F4; font-size: 1.15rem; max-width: 560px; margin: 20px 0 32px; }
.hero .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero.inner { text-align: center; }
.hero.inner .container { padding-top: 64px; padding-bottom: 64px; }
.hero.inner h1 { margin: 0 auto; }
.hero.inner p.lead { margin: 16px auto 0; }
.breadcrumb { font-size: .85rem; color: #A9BCDD; margin-bottom: 14px; }
.breadcrumb a { color: #C9D8F0; }

/* ---------- Ticker ---------- */
.ticker { background: var(--navy-dark); color: #fff; overflow: hidden; white-space: nowrap; padding: 9px 0; font-size: .88rem; border-top: 1px solid rgba(255,255,255,.08); }
.ticker-track { display: inline-block; animation: ticker 150s linear infinite; padding-inline-start: 100%; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { margin: 0 26px; }
.up { color: #4ADE80; } .down { color: #F87171; }
@keyframes ticker { to { transform: translateX(-100%); } }
@keyframes ticker-rtl { to { transform: translateX(100%); } }
[dir="rtl"] .ticker-track { animation-name: ticker-rtl; }

/* ---------- Trust bar ---------- */
.trustbar { background: #fff; border-bottom: 1px solid var(--border); }
.trustbar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 26px; padding-bottom: 26px; }
.trust-item { display: flex; gap: 12px; align-items: center; }
.trust-item .ico { font-size: 1.6rem; }
.trust-item strong { color: var(--navy); display: block; font-size: .95rem; }
.trust-item small { color: var(--muted); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card .ico { width: 54px; height: 54px; border-radius: 12px; background: linear-gradient(135deg, var(--azure), var(--azure-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .9rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
  position: relative; padding: 34px 28px 30px; background: #fff;
  border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.step::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--navy), var(--azure-bright));
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.step .num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--azure));
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(10, 110, 150, .3);
}
.step h3 { font-size: 1.1rem; }
.step h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(10, 110, 150, .45);
}
.step h3 a:hover { color: var(--azure); }
.step p { color: var(--muted); font-size: .93rem; }
@media (min-width: 961px) {
  /* dotted connector between the step cards */
  .steps .step:not(:last-child)::after {
    content: ""; position: absolute; top: 58px; inset-inline-end: -26px;
    width: 26px; height: 2px; opacity: .6;
    background: repeating-linear-gradient(to right, var(--azure-light) 0 6px, transparent 6px 11px);
  }
}

/* ---------- Stats ---------- */
.stats { background: linear-gradient(120deg, var(--navy) 0%, var(--azure) 140%); color: #fff; }
.stats .grid { text-align: center; }
.stat strong { font-size: 2.4rem; display: block; font-weight: 800; }
.stat span { color: #CFE0F5; font-size: .92rem; }

/* ---------- App promo ---------- */
.app-promo { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.store-badges { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.store-badge { display: flex; align-items: center; gap: 10px; background: var(--navy-dark); color: #fff; padding: 10px 20px; border-radius: 10px; font-size: .85rem; line-height: 1.2; transition: background .25s; }
.store-badge:hover { background: var(--azure); color: #fff; }
.store-badge .big { font-size: 1.05rem; font-weight: 700; display: block; }
.phone-mock { background: linear-gradient(150deg, var(--navy), var(--azure)); border-radius: 28px; padding: 40px 30px; color: #fff; box-shadow: var(--shadow-hover); text-align: center; }
.phone-mock .screen { background: rgba(255,255,255,.12); border-radius: 16px; padding: 26px 18px; backdrop-filter: blur(4px); }
.phone-mock .px-row { display: flex; justify-content: space-between; padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,.15); font-size: .88rem; }

/* ---------- News ---------- */
.news-card { overflow: hidden; padding: 0; }
.news-card .nc-body { padding: 24px; }
.news-card .nc-date { color: var(--azure); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.news-card h3 { margin: 8px 0 10px; font-size: 1.05rem; }
.news-card .nc-tag { display: inline-block; background: var(--bg); color: var(--navy); font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; margin-bottom: 12px; }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, var(--azure) 140%); border-radius: 22px; color: #fff; padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #D7E2F4; margin-top: 8px; }

/* ---------- Accordion ---------- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion details:last-child { border-bottom: none; }
.accordion summary { padding: 20px 26px; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::after { content: "+"; font-size: 1.4rem; color: var(--azure); transition: transform .25s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 26px 22px; color: var(--muted); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th { background: var(--navy); color: #fff; text-align: start; padding: 14px 18px; font-size: .9rem; }
.table td { padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: .93rem; }
.table tr:last-child td { border-bottom: none; }
.table a { font-weight: 600; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-weight: 600; color: var(--navy); font-size: .88rem; display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-family: var(--font); font-size: .95rem; background: #fff; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azure); }

/* ---------- Contact ---------- */
.contact-card { text-align: center; }
.contact-card .ico { margin: 0 auto 16px; }

/* ---------- People ---------- */
.person { text-align: center; }
.person .avatar { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--azure)); color: #fff; font-size: 2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.person h3 { font-size: 1.02rem; }
.person p { color: var(--muted); font-size: .85rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-inline-start: 32px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 8px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(var(--azure), var(--navy)); border-radius: 3px; }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -30px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--azure); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--azure); }
.tl-item .tl-year { color: var(--azure); font-weight: 800; font-size: 1.05rem; }
.tl-item p { color: var(--muted); }

/* ---------- Placeholder marker ---------- */
.placeholder { background: #FFF7E0; border: 1.5px dashed #E0B83C; color: #8a6d1d; padding: 14px 18px; border-radius: 10px; font-size: .88rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #B9C7E0; padding: 64px 0 0; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 38px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer a { color: #B9C7E0; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .flogo img { height: 52px; margin-bottom: 18px; }
.fbottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; }
.fbottom a { display: inline; padding: 0 8px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; padding: 0; }
.social a:hover { background: var(--azure); }

/* ---------- Two-col feature ---------- */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-split.one-col { grid-template-columns: 1fr; max-width: 780px; }
.feature-split ul { list-style: none; margin-top: 18px; }
.feature-split ul li { padding: 9px 0 9px; padding-inline-start: 32px; position: relative; color: var(--muted); }
.feature-split ul li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--azure); font-weight: 800; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .trustbar .container { grid-template-columns: repeat(2, 1fr); }
  .app-promo, .feature-split { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: #fff; flex-direction: column; padding: 18px 24px; gap: 4px; box-shadow: 0 16px 24px rgba(30,61,125,.12); align-items: flex-start; }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 11px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  /* Keep the primary conversion CTAs visible on mobile (compact) */
  .nav-cta { gap: 7px; }
  .nav-cta .btn { padding: 8px 12px; font-size: 0.78rem; }
}
@media (max-width: 480px) {
  .nav-cta .btn-outline { padding: 7px 10px; font-size: 0.72rem; }
  .lang-switch { padding: 7px 9px; font-size: 0.75rem; }
  .logo img { height: 38px; }
}
@media (max-width: 600px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2, .form-grid { grid-template-columns: 1fr; }
  .trustbar .container { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .cta-banner { padding: 40px 28px; }
  .topbar .tb-links { display: none; }
}


/* ============================================================
   Accessibility, icons & components (added in audit remediation)
   ============================================================ */

/* ---------- Skip to content (C1) ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 999; font-weight: 600; }
.skip-link:focus { left: 0; }
[dir="rtl"] .skip-link { left: auto; right: -9999px; border-radius: 0 0 0 8px; }
[dir="rtl"] .skip-link:focus { right: 0; }
:focus-visible { outline: 2px solid var(--azure-light); outline-offset: 2px; }
main { display: block; }

/* ---------- Inline SVG icons (R1 / C3) ---------- */
.ico svg { width: 26px; height: 26px; display: block; }
.card .ico svg, .contact-card .ico svg { stroke: #fff; }
.trust-item .ico { width: auto; height: auto; background: none; }
.trust-item .ico svg { width: 30px; height: 30px; stroke: var(--azure); }
.topbar svg { width: 14px; height: 14px; vertical-align: -2px; margin-inline-end: 4px; }
.store-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.social a svg { width: 18px; height: 18px; fill: currentColor; }
.px-row svg { width: 13px; height: 13px; vertical-align: -1px; }

/* ---------- Tick list (replaces inline check characters) ---------- */
.tick-list { list-style: none; margin-top: 18px; }
.tick-list li { padding: 9px 0; padding-inline-start: 30px; position: relative; color: var(--muted); }
.tick-list li::before { content: "\2713"; position: absolute; inset-inline-start: 0; color: var(--azure); font-weight: 800; }

/* ---------- Responsive table wrapper (R11) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Semantic breadcrumb (R13) ---------- */
nav.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
nav.breadcrumb li { display: flex; align-items: center; gap: 6px; }
nav.breadcrumb li + li::before { content: "/"; color: #A9BCDD; }
nav.breadcrumb { margin-bottom: 14px; }

/* ---------- Reduced motion (R12) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none !important; transform: none !important; padding-inline-start: 0 !important; white-space: normal !important; }
}

/* ---------- Accessible form status (R13) ---------- */
#form-status { margin-top: 16px; font-weight: 600; }
#form-status.is-success { background: #E8F7EE; color: #1E7A46; padding: 14px 18px; border-radius: 10px; }


/* ---------- Utility classes (migrated from inline styles, R5) ---------- */
.u1{color:var(--muted);margin-top:14px}
.u2{background:var(--azure)}
.u3{font-weight:700;margin-bottom:14px}
.u4{border:none}
.u5{margin-top:16px;font-size:.85rem;color:#CFE0F5}
.u6{text-align:center;margin-top:34px}
.u7{margin-top:30px}
.u8{color:var(--muted);font-size:.92rem}
.u9{padding-top:0}
.u10{display:flex;gap:14px;flex-wrap:wrap}
.u11{margin-top:8px}
.u12{color:var(--muted);margin-top:12px}
.u13{margin-top:56px}
.u14{list-style:none;margin-top:14px;color:var(--muted)}
.u15{margin-top:24px;display:flex;gap:14px;flex-wrap:wrap}
.u16{margin-top:18px}
.u17{display:flex;justify-content:center}
.u18{margin-top:24px;text-align:center}
.u19{color:#8a6d1d}
.u20{padding-top:0;margin-top:72px}
.u21{text-align:center}
.u22{margin:0 auto 18px}
.u23{max-width:860px}
.u24{text-align:center;margin-top:36px;color:var(--muted)}

/* ---- Boursa Kuwait announcements (homepage) ---- */
.boursa-list { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; }
.boursa-list li { display: flex; align-items: baseline; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.boursa-list time { flex: 0 0 128px; color: var(--muted); font-size: .85rem; }
.boursa-list li > a:not(.boursa-doc) { flex: 1 1 auto; color: var(--text); font-weight: 600; text-decoration: none; }
.boursa-list li > a:not(.boursa-doc):hover { color: var(--azure); text-decoration: underline; }
.boursa-doc { flex: 0 0 auto; color: var(--azure); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.boursa-doc:hover { text-decoration: underline; }
.boursa-note { text-align: center; margin-top: 22px; color: var(--muted); font-size: .85rem; }
@media (max-width: 640px) {
  .boursa-list li { flex-wrap: wrap; gap: 6px 14px; }
  .boursa-list time { flex-basis: 100%; }
}

/* ---- experimental dark mode for the light zone (admin → Theme → Mode).
       The cinematic dark scenes are unaffected; this remaps the light
       design tokens only. Applied by js/content-overrides.js. ---- */
body.theme-dark {
  --bg: #101a2e;
  --white: #16233f;
  --text: #dbe4f5;
  --muted: #93a5c4;
  --border: #2a3a5c;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.45);
}


/* ---- leadership photos in About-page person cards (js/leadership.js) ---- */
.person .avatar { overflow: hidden; }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* ---- centered cinematic risk note (was an inline style; strict CSP) ---- */
.u-note-center { text-align: center; margin-top: 18px; }

/* ---- contact-form honeypot: invisible to people, present for bots.
       Uses off-screen positioning (not display:none) so naive bots
       still consider the field fillable. ---- */
.hp-field {
  position: absolute !important;
  inset-inline-start: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---- scheduled announcement popup (js/popup.js, admin → Popups) ---- */
.site-popup-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(14, 26, 51, 0.62);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: popup-fade .25s ease;
}
.site-popup {
  position: relative;
  background: var(--white, #fff);
  color: var(--text, #1c2434);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  max-width: min(640px, 100%);
  max-height: min(86vh, 100%);
  overflow: auto;
  padding: 28px;
  animation: popup-rise .3s ease;
}
.site-popup--wide { max-width: min(860px, 100%); width: 100%; }
.site-popup-close {
  position: absolute; top: 10px; inset-inline-end: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border, #e3e8f2); background: transparent;
  color: inherit; font-size: 1rem; line-height: 1; cursor: pointer;
}
.site-popup-close:hover, .site-popup-close:focus-visible { background: var(--bg, #f4f6fb); }
.site-popup-title {
  margin: 0 34px 14px 0; font-size: 1.35rem; color: var(--navy, #1E3D7D);
}
[dir="rtl"] .site-popup-title { margin: 0 0 14px 34px; }
.site-popup-text p { margin: 0 0 10px; line-height: 1.65; }
.site-popup-text p:last-child { margin-bottom: 0; }
.site-popup-img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.site-popup-pdf {
  display: block; width: 100%; height: min(64vh, 640px);
  border: 1px solid var(--border, #e3e8f2); border-radius: 10px; background: #fff;
}
.site-popup-openpdf { margin-top: 14px; }
body.site-popup-open { overflow: hidden; }
@keyframes popup-fade { from { opacity: 0; } }
@keyframes popup-rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  .site-popup-overlay, .site-popup { animation: none; }
}
@media (max-width: 560px) {
  .site-popup { padding: 20px; }
  .site-popup-pdf { height: 58vh; }
}

/* ---- digital onboarding video (phone-frame portrait clip) ---- */
.onboard-video { max-width: 720px; margin: 30px auto 0; text-align: center; }
.onboard-video video {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 16px; background: #0e1a33;
  box-shadow: var(--shadow-hover, 0 12px 32px rgba(0, 0, 0, 0.25));
}
.onboard-video p { color: var(--muted); font-size: .85rem; margin-top: 10px; }

/* ---- onboarding panel (platform page: video + pitch + QR in one band) ---- */
.onboard-panel {
  margin-top: 44px; border-radius: 20px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 55%, var(--azure));
  color: #fff; display: grid; grid-template-columns: 1.25fr 1fr; gap: 38px;
  padding: 34px; align-items: center; box-shadow: var(--shadow-hover);
}
.onboard-panel video {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; background: #0e1a33;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.onboard-side .eyebrow { color: var(--azure-bright); }
.onboard-side h3 { color: #fff; font-size: 1.45rem; margin-bottom: 10px; }
.onboard-side p { color: rgba(255, 255, 255, .78); font-size: .95rem; margin-bottom: 22px; }
.onboard-panel .qr-download { margin-top: 0; border: 0; transition: transform .25s ease, box-shadow .25s ease; }
.onboard-panel .qr-download:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
@media (max-width: 960px) {
  .onboard-panel { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
}

/* ---- QR download card (under the onboarding video) ---- */
.qr-download {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 16px; padding: 12px 18px;
  border: 1px solid var(--border, #e3e8f2); border-radius: 14px;
  background: var(--white, #fff); text-decoration: none;
  color: var(--navy, #1E3D7D); font-weight: 700; font-size: .9rem;
}
.qr-download:hover, .qr-download:focus-visible { border-color: var(--azure, #0A6E96); }
.qr-download img { display: block; width: 92px; height: 92px; }

/* ---- news module: richer cards (js/news.js renders from admin posts) ---- */
.news-grid { align-items: stretch; }
.news-grid .news-card {
  position: relative; display: flex;
  border-top: 3px solid var(--azure);
  transition: transform .22s ease, box-shadow .22s ease;
}
.news-grid .news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.news-grid .news-card .nc-body { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.news-grid .news-card h3 { font-size: 1.12rem; line-height: 1.35; }
.news-grid .featured { border-top-color: var(--navy); }
.news-grid .featured h3 { font-size: 1.3rem; }
@media (min-width: 861px) { .news-grid .featured { grid-column: span 2; } }
.nc-excerpt { color: var(--muted); font-size: .92rem; line-height: 1.6; flex: 1; }
.nc-more {
  align-self: flex-start; margin-top: 12px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--azure); font-weight: 700; font-size: .9rem; font-family: inherit;
}
.nc-more:hover, .nc-more:focus-visible { text-decoration: underline; }
[dir="rtl"] .nc-more { align-self: flex-start; }

/* ---- news attachment chip ---- */
.nc-attach { color: var(--muted); font-size: .78rem; margin-top: 8px; }

/* ---- investor-relations document lists (js/ir.js, admin → Investor Relations) ---- */
.ir-list { list-style: none; padding: 0; margin: 0; }
.ir-doc { border-top: 1px solid var(--border); }
.ir-doc:first-child { border-top: 0; }
.ir-doc a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 12px 4px; text-decoration: none; color: var(--text);
}
.ir-doc a:hover .ir-title, .ir-doc a:focus-visible .ir-title { color: var(--azure); text-decoration: underline; }
.ir-title { font-weight: 700; }
.ir-meta { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.ir-empty { color: var(--muted); }
#agm-latest { margin-top: 10px; font-weight: 700; }
#agm-latest a { color: var(--azure); }
@media (max-width: 560px) {
  .ir-doc a { flex-direction: column; gap: 2px; }
}

/* ---- page-section tables (js/sections.js, admin → Page Sections) ---- */
.sec-table-wrap { overflow-x: auto; margin: 12px 0; }
.sec-table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.sec-table th, .sec-table td { border: 1px solid var(--border); padding: 8px 12px; text-align: start; }
.sec-table th { background: var(--bg); color: var(--navy); font-weight: 700; white-space: nowrap; }
.sec-table td { color: var(--text); }

/* ---- leadership bio popup (js/leadership.js) ---- */
.has-bio { cursor: pointer; }
.has-bio:hover, .has-bio:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 8px; }
.bio-head { display: flex; align-items: center; gap: 18px; margin: 0 34px 16px 0; }
[dir="rtl"] .bio-head { margin: 0 0 16px 34px; }
.bio-photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bio-name { margin: 0 0 4px !important; }
.bio-role { margin: 0; color: var(--azure); font-weight: 700; font-size: .92rem; }
@media (max-width: 560px) { .bio-head { flex-direction: column; text-align: center; margin-inline-end: 0; } }
