/* -------------------------------------------------------
   Investment Forum – Global CSS
   Place fonts in assets/fonts/ and update URLs below.
------------------------------------------------------- */

/* =================== English family =================== */
@font-face{
  font-family: "D-DINEN";
  src: url("../fonts/D-DIN.woff2") format("woff2"),
       url("../fonts/D-DIN.woff")  format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+000-5FF, U+1E00-1EFF; /* Basic Latin + Latin Extended */
}

@font-face{
  font-family: "D-DINEN";
  src: url("../fonts/D-DINCondensed.woff2") format("woff2"),
       url("../fonts/D-DINCondensed.woff")  format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+000-5FF, U+1E00-1EFF;
}

/* =================== Arabic family =================== */
@font-face{
  font-family: "D-DINAR";
  src: url("../fonts/DINNextLTArabic-Regular.woff2") format("woff2"),
       url("../fonts/DINNextLTArabic-Regular.woff")  format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  /* Arabic blocks */
  unicode-range:
    U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face{
  font-family: "D-DINAR";
  src: url("../fonts/DINNextLTArabic-Bold.woff2") format("woff2"),
       url("../fonts/DINNextLTArabic-Bold.woff")  format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

/* CSS Variables (palette + layout) */
:root {

  --font-en: "D-DINEN", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "D-DINAR", "Noto Naskh Arabic", "Amiri", "Tahoma", "Geeza Pro", serif;

  --blue-light: #263c92;  /* your light blue */
  --blue-dark:  #2a3174;  /* your dark blue  */
  --yellow:     #ffcf36;  /* your yellow     */
  --text: #0f172a;
  --muted: #475569;
  --bg: #ffffff;

  --container: 1200px;
  --radius: 14px;
  --header-h:72px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

/* Reset / base */
*,
*::before,
*::after { box-sizing: border-box; }


/* html[lang="en"] body{ font-family: var(--font-en); }
html[lang="ar"] body{ font-family: var(--font-ar); } */

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Screen-reader only utility (matches layout’s skip link) */
.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Container */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}


/* ===================== HEADER (clean) ===================== */
.site-header{
  position: fixed; top:0; z-index:1000;
  background:#fff; border-bottom:1px solid rgba(0,0,0,.06);
  transition: box-shadow .2s ease;
  width: 100%;
  padding: 0 15px;
}
.site-header.is-scrolled{ box-shadow:0 6px 24px rgba(0,0,0,.06); }

.site-header--hidden{ transform: translateY(-100%); }
body.nav-open .site-header{ transform:none !important; }

.header-bar{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0; gap:24px;
}

/* logo (single image) */
.brand{ display:inline-flex; align-items:center; }
.brand__logo{ height:72px; max-height:84px; width:auto; object-fit:contain; }

/* DESKTOP NAV */
.menu-toggle{ display:none; width:42px; height:42px; border:1px solid rgba(0,0,0,.12); border-radius:8px; background:#fff; }
.menu-toggle__bar{ display:block; width:20px; height:2px; margin:4px auto; background:#0f172a; border-radius:2px; }

.site-nav{ display:flex; align-items:center; }
.site-nav__list{ display:flex; align-items:center; gap:28px; }

.nav-link{ padding:10px 4px; color:#475569; font-weight:600; }
.nav-link:hover,.nav-link:focus-visible{ color:#263C92; }

/* divider + language chip */
.header-extra{ display:flex; align-items:center; gap:12px; }
.header-divider{ width:1px; height:28px; background:#263C92; opacity:.85; }
.lang-btn{ display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; background:#263C92; }
.lang-btn:hover{ background:#2A3174; }
.lang-btn img{ width:20px; height:20px; }

/* ===================== MOBILE ===================== */
@media (max-width: 900px) {
    .menu-toggle {   
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    height: 42px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 8px;
    background: #fff; 
    width: auto;
    gap: 2px;                   /* space between bars */
  }

  .menu-toggle__bar {
    display: block;
    width: 28px;                /* make the bars longer */
    height: 3px;                /* thin lines */
    background: var(--blue-dark);
    border-radius: 0;           /* square edges */
  }

  /* Mobile nav panel ... keep as is */
  .site-nav {
    position: fixed;
    left: 0; right: 0; top: 72px;
    height: calc(100vh - 72px);
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.06);
    padding: 16px;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform .28s ease;
    visibility: hidden;
    pointer-events: none;
    display: block;
  }

  .site-nav.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav__list {
    display: grid;
    gap: 8px;
    padding: 8px 6px 16px;
  }

  .nav-link {
    padding: 12px 10px;
    border-radius: 10px;
  }
  .nav-link:hover {
    background: rgba(0,0,0,.04);
  }
}



/* ---- Full-screen hero that subtracts the real header height ---- */
:root { --header-h: 88px; }                 /* fallback; JS will override */
@media (max-width:900px){ :root{ --header-h: 72px; } }

.hero--bg{
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right;        /* tweak if needed */
}

.hero--full{
  min-height: calc(100vh - var(--header-h));/* fills viewport below header */
  display: flex;
  align-items: center;                       /* vertical center */
}

.hero__wrap{ width:100%; padding-block: clamp(24px, 5vw, 96px); }
.hero__grid{ display:block; }                /* left-side stack only */

/* Hero images (title/date/badges) */
.hero__logo{ max-width:min(680px, 92%); width:100%; margin:0 0 20px; }
.hero__meta-img{ max-width:440px; width:100%; margin:12px 0 28px; }
.hero__badges{ display:flex; gap:28px; flex-wrap:wrap; margin-top:28px; }
.hero__badge{ height:140px; width:auto; }

/* Register button (white pill) */
/* REGISTER NOW button (white pill) */
.btn--register {
  background: #fff;
  color: #263C92;                 /* dark blue text */
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 28px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  letter-spacing: .02em;
  border: 0;
  display: inline-block;
  margin: 24px 0;                 /* top & bottom margin */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--register:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 28px rgba(0,0,0,.16);
}

.hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px; /* space between date and location */
  margin: 20px 0;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 8px; /* space between icon and text */
  font-size: 1rem;
  font-weight: 500;
  color: #fff; /* white text over dark blue bg */
}

.hero__meta-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Scroll arrow container */
.hero__scroll {
  position: absolute;
  bottom: 20px;                  /* space from bottom of hero */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-decoration: none;
}

/* Arrow shape (down chevron) */
.hero__scroll-arrow {
  display: block;
  width: 24px;
  height: 24px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
  animation: bounce 1.5s infinite;
}

/* Bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: rotate(-45deg) translateY(0); }
  40% { transform: rotate(-45deg) translateY(6px); }
  60% { transform: rotate(-45deg) translateY(3px); }
}

@media (max-width:900px){
  .hero--bg{ background-position:center top; }
  .hero__logo{ max-width:94%; }
  .hero__meta-img{ max-width:340px; margin:10px 0 22px; }
  .hero__badge{ height:90px; }
}



/* ===================== HERO V2 ===================== */
.hero--v2{
  position: relative;
  color: #fff;
  min-height: calc(100svh - var(--header-h, 80px));
  display: grid;
  place-items: center;
  padding-block: clamp(72px, 12vh, 160px);
  text-align: center;

  /* background + overlay */
  background: var(--blue-dark);
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
}
.hero--v2::before{
  content:"";
  position:absolute; inset:0;
  /* gentle darkening + diagonal tint similar to the mock */
  background:
    linear-gradient(120deg, rgba(42,49,116,.70) 0%, rgba(42,49,116,.55) 40%, rgba(38,60,146,.65) 100%);
}
.hero--v2 .hero__inner{ position: relative; z-index: 1; max-width: 1100px; }

/* Eyebrow */
.hero__eyebrow{
  margin: 0 0 var(--space-3);
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: .02em;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.05;
}

/* Big title */
.hero__title{
  margin: 0 0 var(--space-5);
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(36px, 6.2vw, 84px);
  letter-spacing: .01em;
}

/* Date / Location row */
.hero__meta{
  list-style: none; padding: 0; margin: 0 0 var(--space-6);
  display: flex; gap: clamp(16px, 4vw, 40px);
  flex-wrap: wrap; align-items: center; justify-content: center;
}
.hero__meta-item{
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: clamp(16px, 1.6vw, 22px);
  color: rgba(255,255,255,.95);
}
.hero__meta .icon{
  width: 22px; height: 22px; flex: 0 0 22px;
  color: #fff; /* icon color */
}

/* CTA: white pill */
.btn--pill{ border-radius: 999px; padding: 14px 50px; font-weight: 800; }
.btn--white{
  background: #fff; color: var(--blue-dark);
  box-shadow: 0 10px 22px rgba(255,255,255,.15);
  transition: transform .08s ease, box-shadow .2s ease, color .2s ease, background-color .2s ease;
}
.btn--white:hover{
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 36px rgba(255,255,255,.25);
}
.btn--white:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.95), 0 0 0 6px rgba(255,255,255,.45);
}
.btn--white:active{ transform: translateY(1px); }

/* Mobile tweaks */
@media (max-width: 700px){
  .hero__title{ letter-spacing: 0; }
  .hero__meta-item{ font-size: 16px; }
}

/* Fade-up keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Start hidden, then animate in with a stagger */
.hero--v2 .hero__eyebrow,
.hero--v2 .hero__title,
.hero--v2 .hero__meta,
.hero--v2 .btn--white{
  opacity: 0;
  animation: fadeUp .72s cubic-bezier(.2,.7,.2,1) forwards;
}

/* Stagger timings */
.hero--v2 .hero__eyebrow { animation-delay: .05s; }
.hero--v2 .hero__title   { animation-delay: .18s; }
.hero--v2 .hero__meta    { animation-delay: .32s; }
.hero--v2 .btn--white    { animation-delay: .50s; }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce){
  .hero--v2 .hero__eyebrow,
  .hero--v2 .hero__title,
  .hero--v2 .hero__meta,
  .hero--v2 .btn--white{
    animation: none; opacity: 1; transform: none;
  }
}



/* ============== ABOUT ============== */
.about {
  background: #F6F8FB;                  /* light section bg */
  padding: clamp(var(--space-6), 6vw, var(--space-8)) 0;
}

/* make this section a bit wider than the global container */
.about .container { max-width: 1400px; }

.about__card {
  border: 1.5px solid var(--blue-light);
  border-radius: 35px;
  background: var(--bg);
  padding: clamp(20px, 3vw, 36px);      /* reduced left/right padding */
}

.about__grid {
  display: grid;
  grid-template-columns: 380px 22px 1fr;/* title | divider | text */
  align-items: center;                  /* centers the title block vertically */
  gap: clamp(var(--space-3), 3vw, var(--space-6));
}

/* Title */
.about__heading { margin: 0; line-height: 1.1; text-align: right; }
.about__eyebrow {
  display: block;
  font-size: clamp(22px, 2.2vw, 36px);
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.about__name {
  display: block;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--yellow);
  font-size: clamp(34px, 4vw, 56px);
}

/* Divider with round yellow caps */
.about__divider {
  position: relative;
  width: 2px;
  height: 85%;                         /* a touch shorter so it feels balanced */
  background: var(--blue-light);
  margin-inline: auto;
}
.about__divider::before,
.about__divider::after{
  content: "";
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
}
.about__divider::before{ top: -3px; }
.about__divider::after{ bottom: -3px; }

/* Body copy */
.about__content {
  color: var(--blue-dark);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.8;
}
.about__content p { margin: 0 0 14px; }

/* ============== Mobile ============== */
@media (max-width: 900px){
  .about__grid { grid-template-columns: 1fr; gap: 18px; }
  .about__heading {text-align: center; }
  .about__divider{
    width: 100%; height: 2px; margin: 0;
  }
  .about__divider::before,
  .about__divider::after{
    left: auto; transform: none; 
  }
  .about__divider::before{ left: -4px; }
  .about__divider::after{ right: -4px; }
}



/* ============== AGENDA ============== */
.agenda{
  padding: clamp(var(--space-7), 9vw, 140px) 0;
  color:#fff;
}
.agenda--bg{
  background-image:url('../images/agenda-bg.jpg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* layout */
.agenda__grid{
  display:grid;
  grid-template-columns: 1fr 2fr;     /* title | timeline */
  gap: clamp(28px, 6vw, 80px);
  align-items:start;
}

/* title block */
.agenda__title{ align-self:center; text-align: right; }
.agenda__eyebrow{
  display:block;
  font-weight:800;
  color:#fff;
  font-size:clamp(28px,3vw,44px);
  line-height:1;
  margin-bottom: var(--space-2);
}
.agenda__heading{
  margin:0;
  color:var(--yellow);
  font-weight:800;
  font-size:clamp(44px,6vw,84px);
  line-height:1.02;
  letter-spacing:.02em;
}

/* timeline column */
.agenda__timeline{
  list-style:none; margin:0; padding:0 0 0 44px; position:relative;
}
/* vertical line */
.agenda__timeline::before{
  content:""; position:absolute; left:12px; top:0; bottom:0;
  width:2px; background: rgba(255,255,255,.9);
}

/* Time label (light grey, smaller, sits above the title) */
.agenda__time{
  display:block;
  margin-bottom: 0px;
  font-size: clamp(12px, 0.9rem, 14px);
  font-weight: 600;
  color: var(--yellow);
  opacity: .9;
}

/* Group wrapper controls vertical rhythm; keep title spacing clean */
.agenda__group{ margin: 25px 0; }
.agenda__group .agenda__item{ margin: 0; }  /* don't add extra gap after title */

/* If your agenda sits on a dark background, switch the time color for contrast */
.agenda.agenda--on-dark { --agenda-time: rgba(255,255,255,.65); }

/* each item */
.agenda__item{ position:relative; margin: clamp(14px, 2.2vw, 5px) 0; }
/* white dot */
.agenda__item::before{
  content:""; position:absolute; left:-37px; top:.65em;
  width:12px; height:12px; border-radius:50%;
  background:#fff; box-shadow:0 0 0 2px rgba(42,49,116,.35); /* subtle ring on dark bg */
}
.agenda__label{
  margin:0;
  font-weight:700;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height:1.5;
}
.agenda__label--faded{ opacity:.7; font-weight:700; }

/* ===== AGENDA sub-items: bracket + elbow + bullet (correct) ===== */
.agenda__sub{
  /* geometry */
  --branch-x: 14px;                      /* X of the vertical bracket */
  --gap: 16px;                           /* elbow length */
  --bullet: 6px;                         /* bullet size */
  --stroke: 2px;                         /* line thickness */
  --stroke-color: rgba(255,255,255,.70);

  position: relative;
  list-style: none;
  margin: 8px 0 0;
  /* text starts just after the bullet */
  padding-left: calc(var(--branch-x) + var(--gap) + 12px);
}

/* one vertical bracket for the whole sub-list */
/* .agenda__sub::before{
  content: "";
  position: absolute;
  left: var(--branch-x);
  top: .25em;                           
  bottom: .25em;
  border-left: var(--stroke) solid var(--stroke-color);
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
} */

.agenda__sub li{
  position: relative;
  margin: 8px 0;
  padding-left: 0;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 500;
  color: #fff;
}

/* elbow: horizontal only (explicitly remove any old borders) */
/* .agenda__sub li::before{
  content: "";
  position: absolute;
  left: -28px;                
  top: 0.95em;                           
  width: var(--gap);
  height: 0;
  border-top: var(--stroke) solid var(--stroke-color);
  border-left: none;                     
  border-bottom: none;                   
  border-right: none;
} */

/* bullet at the end of the elbow */
.agenda__sub li::after{
  content: "";
  position: absolute;
  left: -18px;
  top: calc(0.95em - var(--bullet)/2);
  width: var(--bullet);
  height: var(--bullet);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1.5px rgba(38,60,146,.35); /* subtle ring using --blue-light */
}

/* mobile */
@media (max-width: 900px){
  .agenda__sub{
    --branch-x: 10px;
    --gap: 14px;
    --bullet: 5px;
    padding-left: calc(var(--branch-x) + var(--gap) + 15px);
  }
}

/* responsive */
@media (max-width: 900px){
  .agenda__grid{ grid-template-columns:1fr; gap:32px; }
  .agenda__title{ text-align:center; }
  .agenda__timeline{ padding-left:36px; }
  .agenda__timeline::before{ left:8px; }
  .agenda__item::before{ left:-33px; top:0.5em; }
}



/* --- reveal on scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ===================== SPEAKERS ===================== */
.speakers{
    background: url('../images/speakers-bg.jpg') center/cover no-repeat;
  padding: clamp(var(--space-7), 8vw, 70px) 0;
}
.speakers .container{ max-width:1300px; }

/* Title + solid divider */
.speakers__head{ text-align:center; margin-bottom: var(--space-6); }
.speakers__title{
  margin:0;
  color: var(--blue-dark);
  font-weight:800;
  font-size: clamp(36px, 5vw, 64px);
  line-height:1.1;
}

/* solid rail with end dots */
.speakers__divider{
  position:relative;
  width:min(560px, 82%);
  margin: var(--space-3) auto var(--space-4);
  height: 0;
  border-bottom: 3px solid var(--blue-light);
}
.speakers__divider::before,
.speakers__divider::after{
  content:""; position:absolute; top:50%; transform:translateY(-50%);
  width:12px; height:12px; border-radius:50%; background:var(--blue-light);
}
.speakers__divider::before{ left:-6px; }
.speakers__divider::after{ right:-6px; }

.speakers__desc{
  max-width:980px; margin: var(--space-6) auto;
  color:var(--blue-dark); opacity:.85;
  font-size: clamp(12px, .95vw, 18px); line-height:1.5;
}

/* ===== GRID =====
   Desktop: 4 columns. First 2 centered on their own row using
   grid placeholders so no third card can join that row. */
.speakers__grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: var(--space-6);
  align-items: stretch;
}

/* placeholders off by default */
.speakers__grid::before,
.speakers__grid::after{ content:""; display:none; }

/* Center the first two (desktop & up)
  Edit here to bring back 2 speakers in 1st row
*/
@media (min-width:1101px){
  /* .speakers__grid::before,
  .speakers__grid::after{ display:block; grid-row:1; } */

  /* occupy col 1 & 4 so only two center cards sit on row 1 */
  /* .speakers__grid::before{ grid-column:1; }
  .speakers__grid::after { grid-column:4; }

  .speakers__grid > .speaker-card:nth-child(1){ grid-column:2; grid-row:1; }
  .speakers__grid > .speaker-card:nth-child(2){ grid-column:3; grid-row:1; } */
}

/* Responsive columns */
@media (max-width:1100px){
  .speakers__grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width:900px){
  .speakers__grid{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-5); }
}
@media (max-width:600px){
  .speakers__grid{ grid-template-columns: 1fr; }
}

/* ===== CARD (uniform size for all) ===== */
.speaker-card{
  background:#fff;
  border: 3px solid var(--blue-light);
  border-radius: 22px;
  padding: var(--space-5);
  text-align:center;
  box-shadow: 0 1px 0 rgba(0,0,0,.02); /* subtle, static */
  /* no hover / no animations */
}

/* Portrait */
.speaker-card__media{
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background:#EEF2FF;
  margin-bottom: var(--space-4);
}
.speaker-card__media img{
  width:100%; height:100%; object-fit:cover; display:block;
}

/* Text (sizes matching the mock) */
.speaker-card__name{
  margin:0 0 6px;
  color:var(--blue-dark);
  font-weight:800;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height:1.3;
}
.speaker-card__role{
  margin:0;
  color:var(--blue-dark);
  opacity:.75;
  font-size: clamp(13px, 1.15vw, 15px);
  line-height:1.35;
}




/* Back-to-top button */
.to-top{
  position: fixed;
  right: clamp(12px, 2vw, 22px);
  bottom: clamp(12px, 2vw, 22px);
  z-index: 10050;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--blue-light);        /* light blue */
  color: #fff;                          /* arrow color */
  box-shadow: 0 10px 24px rgba(38,60,146,.35);

  /* start hidden (faded) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.96);
  transition: opacity .2s ease, transform .2s ease, visibility .2s step-end,
              background-color .2s ease, box-shadow .2s ease;
}

/* visible state with a subtle fade */
.to-top.is-visible{
  opacity: .85;                         /* “faded properly” */
  visibility: visible;
  transform: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}

/* stronger on hover/focus */
.to-top:hover,
.to-top:focus-visible{
  opacity: 1;
  background: var(--blue-dark);
  box-shadow: 0 14px 30px rgba(38,60,146,.45);
  outline: none;
}

.to-top:active{ transform: translateY(1px); }

/* prefers-reduced-motion: show without animation */
@media (prefers-reduced-motion: reduce){
  .to-top{ transition: none; }
}



/* ============== VENUE ============== */
.venue{
  color:#fff;
  padding: clamp(var(--space-7), 9vw, 140px) 0;
}
.venue--bg{
  background: url('../images/venue-bg.jpg') center/cover no-repeat;
}

/* layout */
.venue .container{ max-width: 1240px; }
.venue__grid{
  display:grid;
  grid-template-columns: 1.1fr 1fr;          /* copy | image */
  gap: clamp(var(--space-6), 6vw, 80px);
  align-items:center;
}

/* headings */
.venue__eyebrow{
  display:block;
  font-weight:800;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height:1;
  margin-bottom: var(--space-2);
}
.venue__heading{
  margin:0 0 var(--space-4);
  color: var(--yellow);
  font-weight:800;
  font-size: clamp(40px, 6vw, 80px);
  line-height:1.02;
  letter-spacing:.02em;
}
.venue__name{
  margin: 0 0 var(--space-3);
  font-weight:800;
  font-size: clamp(20px, 2.2vw, 28px);
  color:#fff;
}
.venue__desc{
  margin:0 0 var(--space-5);
  max-width: 56ch;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height:1.75;
  color: rgba(255,255,255,.92);
}

/* image card */
.venue__media{
  margin:0;
  border-radius: 40px;
  overflow:hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
  background: #0b1b4f;
}
.venue__media img{
  display:block;
  width:100%;
  height:100%;
  object-fit: cover;
}

/* CTA */
.btn.btn--maps{
  display:inline-flex; align-items:center; gap:10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight:800;
  line-height:1;
  text-decoration:none;
  box-shadow: 0 10px 24px rgba(255,207,54,.35);
}
.btn.btn--maps svg{ color: var(--blue-dark); }

.btn--maps:hover{
  /* transform: translateY(-2px) scale(1.04); */
  box-shadow:
    0 16px 36px rgba(255,207,54,.55),
    0 2px 8px rgba(0,0,0,.08); /* subtle depth */
}

/* responsive */
@media (max-width: 900px){
  .venue__grid{ grid-template-columns: 1fr; }
  .venue__media{ order: 2; }       /* text first, image second */
}


/* ===================== SPONSORS ===================== */
.sponsors{
  background:#fff;
  padding: clamp(var(--space-7), 8vw, 70px) 0;
  color: var(--blue-dark);
}
.sponsors .container{ max-width:1100px; }

/* Title + solid divider with end dots */
.sponsors__head{ text-align:center; margin-bottom: var(--space-6); }
.sponsors__title{
  margin:0;
  font-weight:800;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height:1.1;
  color: var(--blue-dark);
}
.sponsors__divider{
  position:relative;
  width:min(520px, 82%);
  margin: var(--space-3) auto 0;
  height:0;
  border-bottom: 3px solid var(--blue-light);
}
.sponsors__divider::before,
.sponsors__divider::after{
  content:""; position:absolute; top:50%; transform:translateY(-50%);
  width:12px; height:12px; border-radius:50%; background:var(--blue-light);
}
.sponsors__divider::before{ left:-6px; }
.sponsors__divider::after{ right:-6px; }

/* ================= GRID =================
   Desktop: first row → 3 items; all following rows → 4 items.
   Mobile: 2 per row.                                       */
.sponsors__grid{
  display:grid;
  grid-template-columns: repeat(12, minmax(0, 1fr)); /* 12-col engine */
  gap: clamp(20px, 5vw, 64px);
  align-items:center;
  justify-items:center;
}

/* Default = 4 per row (span 3 cols) */
.sponsors__grid > .sponsor{
  grid-column: span 3;
  position: relative;                 /* for separator */
  padding-inline: clamp(8px, 2vw, 24px);
}

/* FIRST ROW: exactly 3 items (span 4 cols each) */
/* .sponsors__grid > .sponsor:nth-child(-n+3){ grid-column: span 4; } */

/* Logo sizing */
.sponsor img{
  display:block;
  height: clamp(80px, 7vw, 120px);
  width:auto;
  object-fit:contain;
}

/* Vertical separators between desktop items */
/* .sponsor::after{
  content:"";
  position:absolute;
  right:0; top:50%;
  transform: translate(50%, -50%);
  width:1px; height:72px;
  background: var(--blue-light);
  opacity:.35;
} */
/* Hide after the last item of each row:
   3rd (first row), then every 4th thereafter (7,11,15,…) */
.sponsor:nth-child(4n-1)::after{ display:none; }
/* Also hide on very last item to avoid trailing line */
.sponsor:last-child::after{ display:none; }

/* ============== Mobile (2 per row, no separators) ============== */
@media (max-width: 700px){
  .sponsors__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
  }
  .sponsors__grid > .sponsor{ grid-column: auto; }
  .sponsors__grid > .sponsor:nth-child(-n+3){ grid-column: auto; } 
  .sponsor::after{ display:none; }
}


/* ===================== SPONSORS 2 ===================== */
/* ===== Sponsors bar (one row with vertical separators) ===== */
.sponsors--bar{
  background:#fff;
  padding: clamp(20px, 4vw, 36px) 0;
}

.s-row{
  display: flex;
  align-items: center;                             /* keep groups aligned */
  justify-content: center;                         /* <— was space-between */
  gap: clamp(20px, 5vw, 30px);                 
  flex-wrap: nowrap;   
}

.s-group{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  min-width: 130px;                /* prevents titles wrapping too early */
  gap: 10px;
}

.s-title{
  line-height:1.2;
  margin-bottom: 6px;
}
.s-title__ar{
  display:block;
  font-weight:800;
  color:#1d2551;                    /* dark blue-ish heading */
  font-size: 14px;
}
.s-title__en{
  display:block;
  font-weight:700;
  color:#1d2551;
  font-size: 14px;
}

/* Wider space for Forum Partners (2 logos) */
.s-group.s-group--wide{
  flex: 1.35 1 0;                              /* gives this group more width */
  min-width: 380px;
}

/* logos row inside each group */
.s-logos{ display:flex; align-items:center; justify-content:center; gap: clamp(14px, 2.2vw, 24px); }
.s-logos img{ max-width:150px; max-height:60px; width:auto; height:auto; object-fit:contain; }



/* ===== Responsive ===== */
@media (max-width: 1100px){
  .s-row{
    flex-wrap: wrap;               /* allow wrapping on smaller screens */
    justify-content:center;
  }
  .s-sep{ display:none; }          /* hide vertical rules when wrapped */
  .s-group{ min-width: 220px; margin: 10px; }
  .s-logos img{ max-height: 54px; }
}

@media (max-width: 640px){
  .s-group{ min-width: 180px; }
  .s-logos img{ max-height: 48px; }
}






/* ===================== REGISTRATION ===================== */
.registration{
  padding: clamp(var(--space-7), 8vw, 70px) 0;
  color: #fff;
  position: relative;
}
.registration--bg{
  background:
    linear-gradient(120deg, rgba(42,49,116,.80) 0%, rgba(38,60,146,.72) 50%, rgba(42,49,116,.80) 100%),
    var(--reg-bg) center / cover no-repeat;
}

/* Title & divider (mirrors sponsors but light-on-dark) */
.registration__head{ text-align:center; margin-bottom: var(--space-6); }
.registration__title{
  margin:0;
  font-weight:800;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height:1.1;
  color:#fff;
}
.registration__divider{
  position:relative;
  width:min(520px, 82%);
  margin: var(--space-3) auto 0;
  height:0;
  border-bottom: 3px solid #fff;
  opacity:.9;
}
.registration__divider::before,
.registration__divider::after{
  content:""; position:absolute; top:50%; transform:translateY(-50%);
  width:12px; height:12px; border-radius:50%; background:#fff;
}
.registration__divider::before{ left:-6px; }
.registration__divider::after { right:-6px; }
.registration__lead{
  color: rgba(255,255,255,.9);

  max-width:980px; margin: var(--space-6) auto;
  font-size: clamp(12px, .95vw, 18px); line-height:1.5;
}

/* Cards (radio-like) */
.reg-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* <- adapts to N items */
  gap: clamp(16px, 3vw, 28px);
  margin-top: var(--space-5);
  margin-bottom: var(--space-6);
}
.reg-card{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap: 6px;
  min-height: 116px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.25);
  color:#fff;
  text-align:center;
  cursor:pointer;
  transition: transform .14s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .2s ease, background-color .2s ease;
}
.reg-card:hover{ transform: translateY(-2px); }
.reg-card.is-active{
  border-color: var(--yellow);
  box-shadow: 0 14px 28px rgba(255,207,54,.25);
  background: rgba(255,255,255,.10);
}
.reg-card[role="radio"]{ outline:none; }
.reg-card:focus-visible{
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(255,207,54,.6);
}
.reg-card__title{ font-weight:800; font-size: clamp(16px,1.6vw,20px); }
.reg-card__desc{ font-size: 14px; opacity:.9; }

/* Embeds */
/* Registration embeds live inside one bounded container */
.reg-embed{
  position: relative;
  width: min(100%, 1000px);
  margin: 0 auto;
  min-height: 720px;                  /* keep stable height */
  border-radius: 20px;                /* rounded corners here */
  overflow: hidden;                   /* clip children to the radius */
  background: #fff;                   /* keeps bottom corners white */
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

/* Every embed frame sits absolutely on top of each other */
.reg-embed__frame{
  position: absolute;
  inset: 0;                       /* top:0 right:0 bottom:0 left:0 */
  width: 100%;
  height: 100%;
  overflow: hidden;               /* prevent widgets from bleeding */
  transition: opacity .18s ease;
}

/* Instead of display:none, fade + disable interaction */
.reg-embed__frame.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Optional: visible one fades in */
.reg-embed__frame:not(.is-hidden){
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.reg-embed__frame iframe{
  width: 100%;
  aspect-ratio: 16 / 9;              /* responsive height */
  border: 0;
  border-radius: 16px;
  background: #fff;
  /* box-shadow: 0 18px 44px rgba(0,0,0,.22); */
}

/* Responsive */
@media (max-width: 900px){
  .reg-grid{ grid-template-columns: 1fr; }
  .reg-card{ min-height: 50px; }
}





/* ---------- RTL mirror (Arabic) ---------- */
/* ===================== AGENDA — RTL tabs ===================== */
/* Nothing here affects LTR */
[dir="rtl"] .agenda{
  /* master tab size */
  --tab: var(--tab-rtl, 24px);
  /* mobile tab size (optional) */
  --tab-mobile: var(--tab-rtl-mobile, 20px);

  /* rail horizontal anchor (derived from your existing rail-x + optional nudge) */
  --rtl-x: var(--rail-x-rtl, calc(var(--rail-x) + var(--rtl-x-nudge, 0px)));

  /* vertical anchors for dots/elbows (tweak if dot/text baseline needs nudging) */
  --rtl-item-y: var(--item-y-rtl, .84em);
  --rtl-sub-y:  var(--sub-y-rtl,  .98em);

  /* cosmetics */
  --rtl-dot:    var(--dot-rtl, 9px);
  --rtl-stroke: var(--elbow-stroke-rtl, 1.5px);
}

/* 1) Main timeline padding = 1 tab from the rail */
[dir="rtl"] .agenda__timeline{
  padding-left: 0;
  padding-right: calc(var(--rtl-x) + var(--tab));
}
[dir="rtl"] .agenda__timeline::before{
  left: auto; right: var(--rtl-x); transform: translateX(50%);
}

[dir="rtl"] .agenda__item{
  padding-right: 26px;
}

[dir="rtl"] .agenda__time{
  padding-right: 26px;
}

/* Main item dot */
[dir="rtl"] .agenda__item::before{
  left: 100px; right: 0px; top: .99em;
  width: var(--rtl-dot); height: var(--rtl-dot);
  transform: translate(50%, -50%);
}
/* 2) Sub-lists: total indent = (tabs from rail).
      We express it as: total = gap (1 tab) + elbow (tabs-1) */
[dir="rtl"] .agenda__sub{
  padding-left: 0;
  padding-right: 52px;
}

/* 3-tab variant: add class .sub--3 to the UL */
[dir="rtl"] .sub3{ padding-right: 26px;}

/* sub column branch from rail */
[dir="rtl"] .agenda__sub::before{
  left: auto; right: var(--rtl-x); top: var(--rtl-sub-y);
  transform: translateX(50%);
}

/* elbow + tiny dot per list item */
[dir="rtl"] .agenda__sub li::before{
  left: 100px;
  right: calc(var(--rtl-x) + var(--rtl-gap) - var(--rtl-stroke));
  top: var(--rtl-sub-y);
  width: var(--rtl-elbow); height: var(--rtl-sub-y);
  border-left: none;
  border-bottom: var(--rtl-stroke) solid var(--ink);
  border-right:  var(--rtl-stroke) solid var(--ink);
  border-radius: 0 0 8px 0;
}
[dir="rtl"] .agenda__sub li::after{
  left: 100px;
  right: -15px;
  top: var(--rtl-sub-y);
  height: 6px;
  transform: translate(50%,-50%);
}

/* ---------- Mobile overrides (RTL only) ---------- */
@media (max-width: 700px){
  [dir="rtl"] .agenda{
    --tab: var(--tab-mobile);
    /* optional fine-tuning if needed on small screens */
    --rtl-item-y: var(--rtl-item-y-mobile, var(--rtl-item-y));
    --rtl-sub-y:  var(--rtl-sub-y-mobile,  var(--rtl-sub-y));
    --rtl-x:      var(--rtl-x-mobile,      var(--rtl-x));
  }
}