/* Rahim Invest — Web Design System v2.0
   Brand-locked CSS. Source: Curated Patrimony deck (Tier 1).
   Created 2026-04-25. */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

/* ===== CSS RESET ===== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: "Calibri", "Inter", "IBM Plex Sans", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  color: #333333;
  background: #FFFFFF;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color 200ms ease; }
a:hover { color: #B88A5C; }

/* ===== CSS VARIABLES ===== */
:root {
  --navy:     #2C3C5E;
  --gold:     #B88A5C;
  --body:     #333333;
  --dim:      #BFBFBF;
  --hairline: #E5E5E5;
  --tint:     #F7F7F8;
  --white:    #FFFFFF;

  --max-content: 1280px;
  --pad-x: 6.4rem;
  --pad-x-mobile: 1.5rem;
  --section-gap: 3.25rem;
  --internal-gap: 2rem;

  --transition-base: 200ms ease;
}

@media (max-width: 768px) {
  :root {
    --pad-x: 1.5rem;
    --section-gap: 2rem;
  }
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section { padding: var(--section-gap) 0; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.25; }
h1 { font-size: 3rem; letter-spacing: -0.01em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

p { margin: 0 0 1rem 0; }
p:last-child { margin-bottom: 0; }

.lead-gold {
  font-style: italic;
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1.5;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .lead-gold { font-size: 1rem; }
}

.tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.source {
  font-style: italic;
  color: var(--dim);
  font-size: 0.875rem;
  margin-top: 1rem;
}

hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 1rem 0;
}

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 1rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  flex-shrink: 0; /* Never let the logo squish in flex layout (esp. with longer DE/FR labels) */
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 100px;
  width: auto;
  max-width: none; /* Override global img { max-width: 100% } that would squish the logo when nav is tight */
  display: block;
}
@media (max-width: 768px) { .nav-logo img { height: 72px; } }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover { color: var(--gold); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--gold);
}

.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 0.85rem 1.65rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--navy);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: white !important; }

/* ===== REGULATORY STRIP (prominent, between nav and hero) ===== */
.regulatory-strip {
  background: var(--tint);
  border-bottom: 1px solid var(--hairline);
  padding: 0.75rem 0;
  text-align: center;
}
.regulatory-strip-text {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--dim);
  margin: 0;
  line-height: 1.45;
}
.regulatory-strip-text strong {
  color: var(--navy);
  font-weight: 600;
}
@media (max-width: 600px) {
  .regulatory-strip-text { font-size: 0.75rem; padding: 0 1rem; }
}

/* ===== LANGUAGE PICKER ===== */
.lang-picker {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 2px;
  margin-left: 0.5rem;
  background: white;
}
.lang-picker button {
  background: transparent;
  border: 0;
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dim);
  cursor: pointer;
  border-radius: 999px;
  font-family: inherit;
  line-height: 1;
}
.lang-picker button:hover { color: var(--navy); }
.lang-picker button.is-active {
  background: var(--navy);
  color: white;
}

/* ===== HAMBURGER (mobile only) ===== */
.nav-burger {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  position: relative;
  flex-shrink: 0;
}
.nav-burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 28px; }
.nav-burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-burger { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 1rem;
  }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-cta {
    display: inline-block;
    margin-top: 0.75rem;
    text-align: center;
  }
  .lang-picker {
    margin: 0.85rem 0 0;
    align-self: center;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--navy);
  color: white;
  border: 2px solid var(--navy);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-secondary:hover {
  background: var(--gold);
  color: white;
}

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #2C3C5E 0%, #1F2D4A 100%);
  color: white;
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--gold);
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  letter-spacing: -0.01em;
  max-width: 900px;
}

.hero .lead-gold {
  color: var(--gold);
  font-size: 1.5rem;
  max-width: 800px;
  margin: 1.5rem 0 3rem;
}

@media (max-width: 768px) {
  .hero { padding: 4rem 0; }
  .hero h1 { font-size: 2rem; }
  .hero .lead-gold { font-size: 1.125rem; }
}

/* ===== ACTION CARDS (Compare/Negotiate/Orchestrate row) ===== */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .actions-grid { grid-template-columns: 1fr; }
}

.action-card {
  background: var(--tint);
  padding: 2.5rem 2rem;
  border-top: 4px solid var(--gold);
}

.action-card h3 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.action-card p { color: var(--body); font-size: 1rem; line-height: 1.6; }

/* ===== PRODUCT CARDS ===== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--tint);
  padding: 3rem 2.5rem;
  border-top: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
}

.product-card .product-tag {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.product-card h2 {
  color: var(--navy);
  font-size: 1.875rem;
  margin-bottom: 0.75rem;
}

.product-card .product-subline {
  font-style: italic;
  color: var(--gold);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.product-card p { font-size: 1rem; margin-bottom: 1.5rem; flex-grow: 1; }

.product-card .product-link {
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.25rem;
  display: inline-block;
  align-self: flex-start;
}
.product-card .product-link:hover { color: var(--gold); }

/* ===== NEWS GRID ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
}

.news-card {
  background: white;
  border-top: 4px solid var(--navy);
  display: flex;
  flex-direction: column;
}

.news-card .news-photo {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
}

/* Variant for portrait-grid photos (e.g., Euro-GCC speakers list) — show whole image */
.news-card .news-photo.news-photo-contain {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #1B2842;
}

.news-card .news-body { padding: 1.5rem; }

.news-card .news-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.news-card h4 {
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-card .news-link {
  font-style: italic;
  color: var(--gold);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: block;
}

.news-card p {
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.55;
}

/* ===== JOURNEY STRIP ===== */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .journey-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .journey-grid { grid-template-columns: 1fr; }
}

.journey-step {
  position: relative;
  padding: 1.5rem 1rem 1rem 0;
}

.journey-step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px; background: var(--navy);
}

.journey-step .step-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0.75rem 0 0.5rem;
  line-height: 1;
}

.journey-step h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.journey-step p { font-size: 0.875rem; color: var(--body); line-height: 1.5; }

/* ===== CTA STRIP ===== */
.cta-strip {
  background: var(--tint);
  padding: 3rem 0;
  margin: var(--section-gap) 0;
  border-top: 4px solid var(--gold);
}

.cta-strip-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-strip h3 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.cta-strip p { color: var(--body); font-size: 1rem; max-width: 600px; }

/* ===== NEWSLETTER ===== */
.newsletter {
  background: var(--navy);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.newsletter h2 { color: white; margin-bottom: 0.5rem; }

.newsletter .lead-gold {
  color: var(--gold);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0.5rem auto 2rem;
}

.newsletter form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.newsletter input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 1rem 1.25rem;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--body);
}

.newsletter input[type="email"]::placeholder { color: var(--dim); }

.newsletter button {
  background: var(--gold);
  color: white;
  padding: 1rem 2rem;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.newsletter button:hover { background: white; color: var(--navy); }

/* ===== FOOTER ===== */
footer {
  background: white;
  color: var(--body);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.footer-brand img { height: 56px; margin-bottom: 1rem; }

.footer-brand p { font-size: 0.95rem; color: var(--body); max-width: 300px; }

.footer-col h4 {
  font-size: 0.85rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--body); font-size: 0.95rem; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--dim);
}

.footer-bottom .regulatory {
  font-style: italic;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-large { margin-top: 2.5rem; }
.mb-large { margin-bottom: 2.5rem; }

/* ===== PRODUCT-PAGE-SPECIFIC ===== */
.product-hero { padding: 5rem 0 4rem; background: var(--tint); }
.product-hero h1 { color: var(--navy); }

.split-2col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .split-2col { grid-template-columns: 1fr; }
}

.stat-block {
  background: var(--tint);
  padding: 2rem;
  border-top: 4px solid var(--gold);
}

.stat-block .stat-tag {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.stat-block .stat-number {
  font-size: 5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin: 0.5rem 0;
}

.stat-block .stat-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.stat-block .stat-source {
  font-style: italic;
  color: var(--dim);
  font-size: 0.85rem;
}

.bands-stack > .band {
  background: var(--tint);
  padding: 1.5rem 2rem;
  border-top: 4px solid var(--gold);
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .bands-stack > .band { grid-template-columns: 1fr; gap: 1rem; }
}

.bands-stack .band-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bands-stack .band-claim {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.25rem;
  line-height: 1.3;
}

.bands-stack .band-bullets li {
  list-style: none;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.bands-stack .band-bullets li strong { color: var(--navy); display: block; margin-bottom: 0.15rem; }

.bands-stack .band-legal {
  font-style: italic;
  color: var(--dim);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* ===== CONFIGURATION LIST (profile pages) ===== */
.config-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.config-item h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.config-item p { font-size: 0.9rem; color: var(--body); margin: 0; }

/* ===== CONTACT FORM ===== */
.contact-form {
  display: grid;
  gap: 1.25rem;
  max-width: 600px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--hairline);
  font-family: inherit;
  font-size: 1rem;
  background: white;
  color: var(--body);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form textarea { min-height: 120px; resize: vertical; }

/* ===== NEWS TICKER (between nav and hero) ===== */
.ticker {
  background: var(--tint);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  padding: 0.6rem 0;
  animation: ticker-scroll 90s linear infinite;
  gap: 4rem;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--body);
  letter-spacing: 0.02em;
}

.ticker-item .ticker-tag {
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.ticker-item .ticker-sep { color: var(--dim); margin: 0 0.5rem; }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== HERO SPLIT LAYOUT (3/4 + 1/4) ===== */
.hero-split {
  display: grid;
  grid-template-columns: 3fr 1.2fr;
  gap: 3rem;
  align-items: stretch;
}

@media (max-width: 1024px) { .hero-split { grid-template-columns: 1fr; gap: 2.5rem; } }

.hero-text { display: flex; flex-direction: column; justify-content: center; }

.hero-news {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-news-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.hero-news-card {
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--gold);
  padding: 0.85rem 1rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  text-decoration: none;
  transition: background 200ms ease;
}

.hero-news-card:hover { background: rgba(255, 255, 255, 0.1); color: white; }

.hero-news-card .hero-news-photo {
  width: 56px; height: 56px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: var(--navy);
}

.hero-news-card .hero-news-meta {
  flex: 1;
  min-width: 0;
}

.hero-news-card .hero-news-tag {
  font-size: 0.65rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.2rem;
}

.hero-news-card h5 {
  font-size: 0.85rem;
  color: white;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.hero-news-card .hero-news-link {
  font-size: 0.7rem;
  color: var(--gold);
  font-style: italic;
  margin-top: 0.2rem;
  display: block;
}

.hero-news-all {
  font-size: 0.8rem;
  color: var(--gold);
  font-style: italic;
  text-align: right;
  margin-top: 0.5rem;
}

/* ===== PHOTO GRID (about page) ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

@media (max-width: 768px) { .photo-grid { grid-template-columns: 1fr 1fr; } }

.photo-grid .photo-tile {
  aspect-ratio: 4 / 3;
  background: var(--tint);
  border-top: 4px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--dim);
  font-style: italic;
}

.photo-grid .photo-tile.wide { grid-column: span 2; }
.photo-grid .photo-tile.full { grid-column: span 3; aspect-ratio: 16 / 5; }

@media (max-width: 768px) {
  .photo-grid .photo-tile.wide { grid-column: span 2; }
  .photo-grid .photo-tile.full { grid-column: span 2; }
}

/* ===== MAP EMBED ===== */
.map-embed {
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--hairline);
  margin: 2rem 0;
}

/* ===== VIDEO GRID (insights page) ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }

.video-card {
  background: white;
  border-top: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-thumb::after {
  content: "▶";
  font-size: 3rem;
  color: var(--gold);
  position: absolute;
}

.video-thumb.short { aspect-ratio: 9 / 16; max-width: 280px; margin: 0 auto; }

/* YouTube shorts — thumbnail + link pattern (avoids embed restrictions) */
.video-embed {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--navy);
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

.video-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 300ms ease;
}

.video-embed:hover img {
  transform: scale(1.04);
}

.video-embed::after {
  content: "▶";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(184, 138, 92, 0.92);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  transition: background 200ms ease, transform 200ms ease;
}

.video-embed:hover::after {
  background: var(--gold);
  transform: translate(-50%, -50%) scale(1.08);
}

@media (max-width: 600px) {
  .video-embed { max-width: 360px; margin: 0 auto; }
}

.video-card .video-body { padding: 1.25rem; }

.video-card h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.video-card p { font-size: 0.9rem; color: var(--body); }

/* ===== LAUSANNE PHOTO (About page) ===== */
.lausanne-photo {
  margin: 2.5rem 0 0;
  width: 100%;
}
.lausanne-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(44, 60, 94, 0.12);
}
.lausanne-photo figcaption {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--dim);
  font-style: italic;
}

/* =====================================================================
   RTL — Arabic
   Activated by <html dir="rtl"> on /pages/ar/ pages.
   ===================================================================== */
html[dir="rtl"] body {
  font-family: "Tajawal", "Noto Naskh Arabic", "Cairo", "Calibri", "Inter", sans-serif;
  font-size: 1.05rem; /* Arabic glyphs render larger */
  line-height: 1.85;
}

html[dir="rtl"] .container,
html[dir="rtl"] .nav-inner,
html[dir="rtl"] .footer-grid,
html[dir="rtl"] .hero-split,
html[dir="rtl"] .split-2col {
  direction: rtl;
}

/* Mirror inline arrow glyphs so they point in the natural reading direction */
html[dir="rtl"] .news-link,
html[dir="rtl"] .ticker-item,
html[dir="rtl"] .source,
html[dir="rtl"] .lead-gold {
  unicode-bidi: plaintext;
}

/* Reverse flex direction for nav so logo stays at start (right in RTL) */
html[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
@media (max-width: 1024px) {
  html[dir="rtl"] .nav-links { flex-direction: column; }
}

/* Tag pills, news-tag, hero-news-tag — ensure left-align letter-spacing reads naturally */
html[dir="rtl"] .tag,
html[dir="rtl"] .news-tag,
html[dir="rtl"] .hero-news-tag,
html[dir="rtl"] .stat-tag {
  letter-spacing: 0; /* Arabic doesn't use letter-spacing the same way */
}

/* Hero / sections: text-align flips automatically with dir=rtl, but enforce on nested */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] p,
html[dir="rtl"] li {
  text-align: right;
}

/* Footer */
html[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }

/* Hero news column: keep on the LEFT in RTL (i.e., visually right of headline because RTL flips) */
html[dir="rtl"] .hero-split { direction: rtl; }

/* Form inputs */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select { text-align: right; direction: rtl; }

/* Buttons / badges keep LTR letter-forms but flip placement */
html[dir="rtl"] .btn { letter-spacing: 0.04em; }

/* Bands stack: ensure column reverse so the headline column sits at the right */
html[dir="rtl"] .bands-stack > .band { direction: rtl; }

/* Ticker animates -50%; in RTL we keep direction left because numbers/Latin still read LTR — leave as is */

/* Mirror language picker — active button stays clearly readable */
html[dir="rtl"] .lang-picker { direction: ltr; }


/* ── FINMA link (regulatory strip + footer) ──────────────────────── */
.finma-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.finma-link:hover { opacity: 0.75; }

/* ── FINMA proof block (homepage) ────────────────────────────────── */
.finma-proof { padding: 36px 0 16px; }
.finma-proof-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.finma-proof-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy, #1a2b4a);
  opacity: 0.55;
  margin-bottom: 14px;
}
.finma-proof-img {
  max-width: 100%;
  border: 1px solid #dde2ea;
  border-radius: 6px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  display: block;
  margin: 0 auto;
  cursor: pointer;
}
.finma-proof-caption {
  font-size: 0.80rem;
  color: var(--navy, #1a2b4a);
  opacity: 0.65;
  margin-top: 10px;
}
.finma-proof-caption a {
  color: var(--gold, #b8963e);
  text-decoration: none;
  margin-left: 6px;
}
.finma-proof-caption a:hover { text-decoration: underline; }
