/* ==========================================================================
   TRENDS Global â€” 6th Annual Conference 2026
   Sustainable Security: The Post-War Future of the Middle East
   Dark, bold, editorial theme built strictly on the brand system:
   Midnight Navy / Charcoal (dark surfaces), Copper (action), Sandstone
   (structure & labels), Warm Ivory (bold light contrast blocks).
   ========================================================================== */

:root {
  /* ---- Exact brand colors (do not tint/blend) ---- */
  --navy: #0D1B2A;
  --sandstone: #D8C6A4;
  --copper: #A56A3A;
  --ivory: #F8F5EF;
  --charcoal: #2C3138;

  /* ---- Semantic roles ----
     Navy      = primary dark surface
     Charcoal  = secondary dark surface (nav, alt sections, footer)
     Copper    = action / interactive accent
     Sandstone = structure: rules, labels, secondary text
     Ivory     = bold light contrast blocks + primary body text on dark
  */
  --bg: var(--navy);
  --bg-alt: var(--charcoal);
  --surface: #182a3d;           /* navy, one step lighter â€” for cards on navy */
  --surface-on-charcoal: #363c45; /* charcoal, one step lighter â€” for cards on charcoal */
  --rule: rgba(216, 198, 164, 0.28);
  --rule-soft: rgba(216, 198, 164, 0.14);
  --text: var(--ivory);
  --text-muted: rgba(248, 245, 239, 0.74);

  --font-display: 'Tajawal', 'Cairo', sans-serif;
  --font-body: 'Montserrat', 'Tajawal', sans-serif;
  --font-ar: 'Cairo', 'Tajawal', sans-serif;

  --container: 1180px;
  --radius: 6px;
  --radius-lg: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--navy);
  background-image: url('../images/hero-bg.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Smaller asset on narrow viewports â€” same art, less bandwidth. Navy
   fallback below the image tail keeps the seam invisible either way. */
@media (max-width: 700px) {
  body { background-image: url('../images/hero-bg-mobile.jpg'); }
}

/* ---------- One continuous ambient layer behind the whole page ----------
   Sits above the photographic background (fixed to the viewport so it
   never seams at section boundaries) and does two jobs: keeps every
   section's text legible against the image, and folds the brand's warm
   copper/sandstone glow into the photo instead of fighting it. */
.ambient-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient-bg__wash {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6,11,17,.62) 0%,
    rgba(6,11,17,.34) 18%,
    rgba(6,11,17,.5) 38%,
    rgba(6,11,17,.66) 60%,
    rgba(6,11,17,.5) 80%,
    rgba(6,11,17,.68) 100%
  );
  animation: wash-breathe 16s ease-in-out infinite;
}
@keyframes wash-breathe {
  0%, 100% { opacity: .9; }
  50% { opacity: 1; }
}
.ambient-bg__vignette {
  position: absolute; inset: -10%;
  background: radial-gradient(ellipse 120% 70% at 50% 0%, transparent 45%, rgba(4,7,11,.5) 100%);
}
main, .site-footer, .fab { position: relative; z-index: 1; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

::selection { background: var(--copper); color: var(--ivory); }


/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; color: var(--copper); }
.icon--lg { width: 26px; height: 26px; color: var(--copper); }

/* ---------- Brand / Logo ---------- */
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.brand__logo {
  height: 52px; width: auto; aspect-ratio: 2567 / 1281; display: block;
  background-color: #2C3138;
  -webkit-mask-image: var(--logo-src); mask-image: var(--logo-src);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  transition: transform .35s var(--ease);
}
.brand--lg .brand__logo { height: 108px; }
.brand--sm .brand__logo { height: 72px; }

/* ---------- Floating register CTA (replaces the old nav bar) ---------- */
.fab {
  position: fixed;
  right: 26px; bottom: 26px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--copper);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(165,106,58,.45);
  opacity: 1; transform: translateY(0) scale(1);
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
  animation: fab-pulse 3.2s ease-in-out infinite;
}
.fab .icon { width: 16px; height: 16px; color: var(--ivory); transform: rotate(90deg); }
.fab:hover { background: color-mix(in srgb, var(--copper), white 12%); box-shadow: 0 16px 36px rgba(165,106,58,.55); animation-play-state: paused; }
.fab.is-hidden { opacity: 0; transform: translateY(16px) scale(.92); pointer-events: none; }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(165,106,58,.45); }
  50% { box-shadow: 0 12px 30px rgba(165,106,58,.45), 0 0 0 10px rgba(165,106,58,.12); }
}
@media (max-width: 620px) {
  .fab span { display: none; }
  .fab { padding: 16px; }
  .fab .icon { transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1.5px solid var(--copper);
  background: var(--copper);
  color: var(--ivory);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), letter-spacing .3s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-120%) skewX(-15deg);
  transition: transform .6s var(--ease);
}
.btn:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--copper), white 12%); box-shadow: 0 14px 28px rgba(165,106,58,.35); letter-spacing: 0.11em; }
.btn:hover::before { transform: translateX(120%) skewX(-15deg); }
.btn:active { transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--ivory);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--sandstone); background: rgba(216,198,164,.08); box-shadow: none; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.btn__spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
}
.btn.is-loading .btn__label { opacity: .55; }
.btn.is-loading .btn__spinner { display: inline-block; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 70px 0 0;
  background: transparent;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('../images/closing-bg.jpg');
  background-repeat: no-repeat;
  background-position: center 68%;
  background-size: cover;
  filter: brightness(1.3) contrast(1.15) saturate(1);
  /* Long, gradual dissolve (starts fading at 25%, fully gone by 100%) so
     the golden dune lines read clearly up top, then melt down into the
     dark page background â€” and into the Panels section right after it â€”
     instead of cutting off with a visible edge. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 25%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 25%, transparent 100%);
}
@media (max-width: 700px) {
  .hero__bg { background-image: url('../images/closing-bg-mobile.jpg'); }
}
/* extra warm glow layered above the page-wide ambient background, unique
   to the hero â€” everything else (map/stripes/sweep) now comes from the
   single fixed .ambient-bg so motion is continuous down the page. */
.hero__wash {
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse 900px 500px at 82% 88%, rgba(165,106,58,.20), transparent 60%),
    radial-gradient(ellipse 700px 500px at 12% 100%, rgba(216,198,164,.10), transparent 65%),
    radial-gradient(ellipse 600px 400px at 50% 0%, rgba(216,198,164,.08), transparent 60%),
    linear-gradient(180deg, rgba(6,11,17,.32) 0%, transparent 40%, rgba(6,11,17,.4) 100%);
  animation: wash-drift 16s ease-in-out infinite alternate;
}
@keyframes wash-drift {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-24px) scale(1.05); }
}

.hero__inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 40px 24px 70px; }
.hero__inner .brand { justify-content: center; margin-bottom: 38px; }

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory);
  background: rgba(44,49,56,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 9px 20px;
  border: none;
  border-radius: 999px;
  margin-bottom: 30px;
  cursor: default;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: border-color .35s var(--ease), background .35s var(--ease), color .35s var(--ease), letter-spacing .35s var(--ease), transform .3s var(--ease), box-shadow .35s var(--ease);
}
.hero__eyebrow:hover {
  border-color: var(--copper);
  background: var(--copper);
  color: var(--ivory);
  letter-spacing: 0.28em;
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(165,106,58,.45);
}
.hero__eyebrow:active {
  background: #8a5830;
  border-color: #8a5830;
  color: var(--ivory);
  transform: translateY(-1px) scale(.97);
  box-shadow: 0 4px 12px rgba(165,106,58,.4);
  transition-duration: .1s;
}

.hero__title { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 20px; }
.hero__title-ar {
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--text-muted);
  position: relative;
  padding-bottom: 14px;
}
.hero__title-ar::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 64px; height: 2px; background: var(--sandstone);
}
.hero__title-en {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--ivory), var(--sandstone) 22%);
  cursor: default;
  background-image: linear-gradient(100deg, color-mix(in srgb, var(--ivory), var(--sandstone) 22%) 35%, var(--ivory) 50%, color-mix(in srgb, var(--ivory), var(--sandstone) 22%) 65%);
  background-size: 260% 100%;
  background-position: 200% 0;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 1.1s var(--ease), transform .4s var(--ease), letter-spacing .4s var(--ease);
}
.hero__title-en:hover {
  background-position: -40% 0;
  transform: scale(1.02);
  letter-spacing: 0;
}
.hero__title-en em {
  font-style: normal;
  color: #A56A3A;
  -webkit-text-fill-color: #A56A3A;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 44px);
  color: var(--sandstone);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 36px;
  cursor: default;
  transition: color .35s var(--ease), letter-spacing .35s var(--ease);
}
.hero__subtitle:hover {
  color: var(--ivory);
  letter-spacing: 0.06em;
}

.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px;
  margin-bottom: 42px;
  font-family: var(--font-display);
  font-size: 17.5px; font-weight: 700; color: var(--text);
}
.hero__meta-item { display: inline-flex; align-items: center; gap: 9px; }
.hero__meta-item .icon { width: 26px; height: 26px; color: var(--sandstone); }
.hero__meta-divider { width: 1px; height: 18px; background: var(--rule); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 64px; }

/* ---------- Sections (shared) ---------- */
/* One continuous surface: every section is transparent and shares the same
   body background + fixed .ambient-bg, so the page reads as a single flow
   instead of stacked color blocks. Separation between sections comes from
   spacing alone, not background changes. */
.section { padding: 100px 0; position: relative; background: transparent; }
.section > .container { position: relative; z-index: 1; }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--copper);
  margin-bottom: 16px;
  padding-bottom: 10px;
  position: relative;
}
.eyebrow::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 34px; height: 2px; background: var(--sandstone);
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }

/* ---------- Overview ---------- */
.overview__text { max-width: 980px; margin: 0 auto; }
.overview__text p {
  font-size: 16.5px; color: var(--text-muted);
  padding-left: 20px; border-left: 2px solid var(--rule-soft);
  margin-bottom: 26px;
  transition: border-color .3s var(--ease), padding-left .3s var(--ease), color .3s var(--ease);
}
.overview__text p:hover { border-left-color: var(--copper); padding-left: 26px; color: var(--text); }

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ---------- Program heading: word-by-word reveal ---------- */
.words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.06s);
}
.words.in-view .word { opacity: 1; transform: translateY(0); }

/* ---------- Panels (timeline) ---------- */
.timeline { position: relative; margin: 0 auto; padding: 10px 0; }
.timeline__rail {
  position: absolute; left: 21px; top: 0; bottom: 0; width: 2px;
  background: var(--rule-soft);
  overflow: hidden;
}
.timeline__rail-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--copper), var(--sandstone));
  transition: height .15s linear;
}
.timeline__row {
  position: relative;
  display: flex;
  padding: 22px 0;
  padding-left: 64px;
}

.timeline__dot {
  position: absolute; left: 21px; top: 26px; transform: translate(-50%, 0);
  width: 44px; height: 44px; border-radius: 50%;
  animation: dot-pulse 2.6s ease-out infinite;
  z-index: 1;
}
.timeline__row--reverse .timeline__dot { animation-name: dot-pulse-alt; }
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(165,106,58,.4); }
  100% { box-shadow: 0 0 0 16px rgba(165,106,58,0); }
}
@keyframes dot-pulse-alt {
  0% { box-shadow: 0 0 0 0 rgba(216,198,164,.4); }
  100% { box-shadow: 0 0 0 16px rgba(216,198,164,0); }
}

.timeline__no {
  position: absolute; left: 21px; top: 26px; transform: translate(-50%, 0);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  background: var(--copper); color: var(--ivory);
  border: 3px solid var(--bg);
  z-index: 2;
  transition: transform .4s var(--ease);
}
.timeline__row--reverse .timeline__no { background: var(--sandstone); color: var(--navy); }
.timeline__row:hover .timeline__no { transform: translate(-50%, 0) scale(1.14) rotate(-8deg); }

.timeline__content {
  position: relative;
  width: 100%;
  background: rgba(24,42,61,.1);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  transition: transform .15s ease-out, background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  will-change: transform;
}
.timeline__row:hover .timeline__content { transform: translateY(-6px); background: rgba(30,50,71,.2); border-color: rgba(165,106,58,.4); box-shadow: 0 20px 36px rgba(0,0,0,.4); }
.timeline__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sandstone);
  margin-bottom: 12px;
  transition: letter-spacing .35s var(--ease), color .35s var(--ease);
}
.timeline__row:hover .timeline__tag { letter-spacing: .16em; color: var(--copper); }
.timeline__row--reverse:hover .timeline__tag { color: var(--sandstone); }
.timeline__title {
  position: relative;
  display: inline-block;
  font-size: 20px; font-weight: 800; margin-bottom: 16px; line-height: 1.35;
  transition: color .35s var(--ease), transform .35s var(--ease), letter-spacing .35s var(--ease);
}
.timeline__title::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--copper);
  transition: width .45s var(--ease);
}
.timeline__row--reverse .timeline__title::after { background: var(--sandstone); }
.timeline__row:hover .timeline__title {
  color: var(--sandstone);
  transform: translateX(6px);
  letter-spacing: .015em;
}
.timeline__row--reverse:hover .timeline__title { color: var(--copper); }
.timeline__row:hover .timeline__title::after { width: 100%; }
.timeline__body { font-size: 14.5px; color: var(--text-muted); margin-bottom: 0; }

.timeline__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-bottom: 12px;
}
.timeline__meta .timeline__tag { margin-bottom: 0; }
.timeline__time {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--sandstone);
  padding: 4px 12px;
  background: rgba(216,198,164,.08);
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
}
.timeline__time .icon { width: 14px; height: 14px; color: var(--copper); }

/* ---------- Programme (agenda cards) ---------- */
.agenda-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1000px; margin: 0 auto;
}
/* Feature (panel) cards run the full width so the description has room. */
.agenda-card--panel { grid-column: 1 / -1; }

.agenda-card {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 26px;
  align-items: start;
  background: rgba(24,42,61,.28);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  overflow: hidden;
  transition: transform .2s ease-out, background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.agenda-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--rule);
  transition: background .4s var(--ease);
}
.agenda-card:hover {
  transform: translateY(-5px);
  background: rgba(30,50,71,.4);
  border-color: rgba(165,106,58,.4);
  box-shadow: 0 20px 38px rgba(0,0,0,.38);
}
.agenda-card:hover::before { background: var(--copper); }
.agenda-card--panel {
  background:
    radial-gradient(130% 120% at 0% 0%, rgba(165,106,58,.08), transparent 52%),
    rgba(248,245,239,.06);
}
.agenda-card--panel::before { background: linear-gradient(180deg, var(--copper), var(--sandstone)); width: 4px; }
.agenda-card--panel:hover::before { background: var(--sandstone); }

/* Compact (non-panel) cards centre their sparse content vertically. */
.agenda-card:not(.agenda-card--panel) { align-items: center; }

.agenda-card__aside {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
}
.agenda-card__icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(165,106,58,.14);
  border: 1px solid rgba(165,106,58,.22);
  transition: background .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}
.agenda-card__icon .icon--lg { width: 24px; height: 24px; margin: 0; color: var(--copper); transition: color .35s var(--ease); }
.agenda-card:hover .agenda-card__icon { background: var(--copper); border-color: var(--copper); transform: scale(1.08) rotate(-6deg); }
.agenda-card:hover .agenda-card__icon .icon--lg { color: var(--ivory); }
.agenda-card__time {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 14.5px;
  color: var(--copper); letter-spacing: .01em; white-space: nowrap;
}
.agenda-card__time .icon { width: 16px; height: 16px; color: var(--copper); }
.agenda-card__badge {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); background: var(--sandstone);
  padding: 5px 12px; border-radius: 999px;
}
.agenda-card__kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sandstone);
  margin-bottom: 10px;
}
.agenda-card__title {
  font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.4;
  color: var(--text); margin: 0;
  transition: color .35s var(--ease);
}
.agenda-card--panel .agenda-card__title { font-size: 20px; }
.agenda-card:hover .agenda-card__title { color: var(--sandstone); }
.agenda-card__note-inline {
  display: inline-block; margin-top: 8px;
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--copper);
}
.agenda-card__desc {
  font-size: 14.5px; color: var(--text-muted); line-height: 1.65;
  margin: 14px 0 0;
}

/* Roster inside a card (speakers, panellists, moderator) */
.agenda-card__roster { margin-top: 18px; }
.agenda-card__list-label {
  display: block;
  font-family: var(--font-display);
  font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sandstone);
  margin-bottom: 10px;
}
.people-list { display: flex; flex-direction: column; gap: 12px; }
.people-list--cols {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px;
}
.person { display: flex; align-items: center; gap: 14px; }
/* Don't stretch grid cells, so each person's name stays centered to its own photo. */
.people-list--cols { align-items: start; }
.person__photo {
  flex: none;
  width: 80px; height: 80px; border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  border: 1.5px solid var(--rule-soft);
  display: grid; place-items: center;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person__photo--initials {
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  letter-spacing: .03em; color: var(--sandstone);
  background: linear-gradient(150deg, #1e3651, var(--navy));
}
.agenda-card:hover .person__photo { border-color: rgba(165,106,58,.5); }
.person:hover .person__photo { transform: scale(1.05); }
.person__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.person__name {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--copper); line-height: 1.3;
}
.person__role { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.person__pending {
  display: inline-block; vertical-align: middle;
  font-family: var(--font-display);
  font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); background: var(--sandstone);
  padding: 2px 7px; border-radius: 999px; margin-left: 6px;
}
.agenda-card__moderator {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--rule-soft);
}
@media (max-width: 620px) {
  .people-list--cols { grid-template-columns: 1fr; }
}
.agenda__note {
  text-align: center; margin-top: 30px;
  font-size: 13px; color: var(--text-muted);
}
@media (max-width: 820px) {
  .agenda-cards { grid-template-columns: 1fr; }
  .agenda-card--panel { grid-column: auto; }
}
@media (max-width: 560px) {
  .agenda-card { grid-template-columns: 1fr; gap: 14px; padding: 22px 22px; }
  .agenda-card__aside { flex-direction: row; align-items: center; gap: 14px; }
}

/* ---------- Speakers ---------- */
.speaker-group { margin-bottom: 56px; }
.speaker-group:last-of-type { margin-bottom: 0; }
.speaker-group__head {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800; color: var(--sandstone);
  letter-spacing: .01em;
  margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
}
.speakers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.speaker-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  background: var(--ivory);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 30px 22px 26px;
  text-align: center;
  transition: transform .15s ease-out, box-shadow .4s var(--ease);
  will-change: transform;
}
.speaker-card__flag {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-display);
  font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}
.speaker-card__flag--mod { background: var(--copper); color: var(--ivory); }
.speaker-card__flag--pending { background: rgba(13,27,42,.1); color: var(--navy); }
.speaker-card__org {
  font-size: 12.5px; line-height: 1.45; color: rgba(13,27,42,.72);
  margin: 0 0 14px;
}
.speaker-card:hover { transform: translateY(-8px); box-shadow: 0 20px 36px rgba(0,0,0,.35); }
.speaker-card__avatar {
  width: 76px; height: 76px; margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--sandstone);
  font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .04em;
  text-transform: uppercase;
  animation: chip-float 6s ease-in-out infinite;
  transition: transform .45s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.speaker-card:nth-child(even) .speaker-card__avatar { animation-delay: -3s; }
.speaker-card:hover .speaker-card__avatar { transform: scale(1.12) rotate(8deg); background: var(--copper); color: var(--ivory); }
.speaker-card__name {
  font-family: var(--font-display); font-size: 16px; font-weight: 800; margin-bottom: 6px;
  transition: color .3s var(--ease);
}
.speaker-card:hover .speaker-card__name { color: var(--copper); }
.speaker-card__role {
  font-family: var(--font-display);
  font-size: 10.5px; color: var(--copper); font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 10px;
}
.speaker-card__panel {
  display: inline-block;
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy);
  background: rgba(13,27,42,.08);
  padding: 5px 12px;
  border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.speaker-card:hover .speaker-card__panel { background: var(--navy); color: var(--ivory); }
.speakers-note {
  text-align: center; margin-top: 34px;
  font-size: 13.5px; color: var(--text-muted);
}

/* ---------- Details ---------- */
.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 980px; margin: 0 auto; }
.detail-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
  overflow: hidden;
  background: rgba(24,42,61,.34);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  border: 1px solid var(--rule-soft);
  transition: transform .15s ease-out, border-color .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
  will-change: transform;
}
.detail-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--copper);
  box-shadow: 0 0 14px rgba(165,106,58,.55);
}
.detail-card:nth-child(even)::before {
  background: var(--sandstone);
  box-shadow: 0 0 14px rgba(216,198,164,.55);
}
.detail-card:hover {
  transform: translateY(-6px);
  background: rgba(248,245,239,.04);
  border-color: rgba(165,106,58,.4);
  box-shadow: 0 20px 36px rgba(0,0,0,.32);
}
.detail-card:nth-child(even):hover { border-color: rgba(216,198,164,.4); }

.detail-card__icon {
  flex: none;
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(165,106,58,.14);
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.detail-card:nth-child(even) .detail-card__icon { background: rgba(216,198,164,.14); }
.detail-card:hover .detail-card__icon { transform: scale(1.12) rotate(-8deg); background: var(--copper); }
.detail-card:nth-child(even):hover .detail-card__icon { background: var(--sandstone); }
.detail-card__icon .icon--lg { width: 28px; height: 28px; margin: 0; color: var(--copper); transition: color .35s var(--ease); }
.detail-card:nth-child(even) .detail-card__icon .icon--lg { color: var(--sandstone); }
.detail-card:hover .detail-card__icon .icon--lg { color: var(--ivory); }
.detail-card:nth-child(even):hover .detail-card__icon .icon--lg { color: var(--navy); }

.detail-card__text { min-width: 0; }
.detail-card__text p { color: var(--ivory); font-size: 18px; font-weight: 700; margin: 0; font-family: var(--font-display); line-height: 1.3; }

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

/* ---------- Media Partners ---------- */
.eyebrow--title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: .04em; padding-bottom: 18px; }
.eyebrow--title::after { width: 56px; }
.partners-row {
  display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap;
  gap: 28px; max-width: 900px; margin: 0 auto;
}
.partner-logo {
  display: flex; align-items: center; justify-content: center;
  width: 380px; height: 200px;
  background: var(--ivory);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule-soft);
  overflow: hidden;
  transition: transform .15s ease-out, box-shadow .4s var(--ease);
}
.partner-logo:hover { transform: translateY(-4px); box-shadow: 0 20px 36px rgba(0,0,0,.32); }
.partner-logo img { width: 100%; height: 100%; object-fit: contain; padding: 40px; box-sizing: border-box; display: block; }
/* This source file's background is pure white (not the card's ivory) —
   multiply blend lets the ivory show through the white instead of a
   visible rectangle, while keeping the dark logo mark solid. It also
   has a lot of built-in white margin around the mark itself, so it
   renders much smaller than the other partner logos at the same box
   size — scale it up to match their visual weight. */
.partner-logo img[alt*="Emirates News Agency"] { mix-blend-mode: multiply; }
@media (max-width: 900px) {
  .partner-logo { width: 320px; height: 170px; }
  .partner-logo img { padding: 32px; }
}
@media (max-width: 520px) {
  .partner-logo { width: 100%; max-width: 360px; height: 150px; }
  .partner-logo img { padding: 26px; }
}

/* ---------- Media Partners: compact hero variant ---------- */
.hero__partners { margin-top: 4px; margin-bottom: 8px; }
.eyebrow--title-sm { font-size: clamp(15px, 1.9vw, 20px); letter-spacing: .16em; padding-bottom: 12px; }
.eyebrow--title-sm::after { width: 34px; }
.partners-row--hero { gap: 16px; margin-top: 4px; transform-origin: center top; will-change: transform; }
.partner-logo--hero { width: 220px; height: 114px; }
.partner-logo--hero img { padding: 22px; }
@media (max-width: 560px) {
  .hero__partners { margin-top: -16px; }
  .partner-logo--hero { width: 160px; height: 84px; }
  .partner-logo--hero img { padding: 14px; }
}

/* ---------- Closing stretch (Details -> Register): one continuous dimmed
   photo behind both sections, faded in/out top and bottom so it melts into
   the flat background left by Speakers above and the plain footer below. */
.closing-bg { position: relative; overflow: hidden; }
.closing-bg::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(13,27,42,.45) 0%, rgba(13,27,42,.22) 25%, rgba(13,27,42,.28) 60%, rgba(13,27,42,.5) 100%),
    url('../images/hero-bg-3.jpg');
  background-repeat: no-repeat, no-repeat;
  background-position: center, center 40%;
  background-size: cover, cover;
  filter: brightness(1.15) contrast(1.05) saturate(.9);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

/* ---------- Register ---------- */
.register-panel {
  margin-top: -40px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0;
  background: rgba(24,42,61,.3);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.register-panel__intro {
  position: relative;
  padding: 56px 48px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  border-right: 3px solid var(--copper);
}
.register-panel__intro p { color: var(--text-muted); font-size: 15.5px; }

.register-form {
  background: rgba(44,49,56,.25);
  padding: 48px;
  display: flex; flex-direction: column; gap: 22px;
}

.field { position: relative; }
.student-fields { display: flex; flex-direction: column; gap: 22px; }
.student-fields[hidden] { display: none; }
.field--hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.field input {
  width: 100%;
  background: rgba(248,245,239,.05);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 21px 16px 9px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:hover { border-color: var(--rule); background: rgba(248,245,239,.07); }
.field input:focus {
  border-color: var(--copper);
  background: rgba(165,106,58,.08);
  box-shadow: 0 0 0 3px rgba(165,106,58,.18);
}
.field label {
  position: absolute; left: 16px; top: 17px;
  font-size: 15px; color: var(--text-muted);
  pointer-events: none;
  transition: transform .22s var(--ease), font-size .22s var(--ease), color .22s var(--ease), top .22s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 8px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--sandstone); font-family: var(--font-display); font-weight: 700;
}
.field__error {
  display: block; min-height: 16px;
  font-size: 12.5px; color: #e18a6c; margin-top: 6px;
}
.field.has-error input { border-color: #c85a3f; animation: shake .4s var(--ease); }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.form-status {
  font-size: 14px; font-weight: 700; text-align: center;
  min-height: 20px; padding-top: 4px;
  font-family: var(--font-display);
}
.form-status.success { color: #8fdcb0; }
.form-status.error { color: #e18a6c; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 36px; text-align: center; background: transparent; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-inner .brand__logo { background-color: var(--ivory); }
.footer-inner .brand:hover .brand__logo { transform: scale(1.05); }
.footer-tagline { font-family: var(--font-display); font-size: 14.5px; color: var(--text); font-weight: 700; }
.footer-meta { font-size: 13px; color: var(--text-muted); }
.footer-copy { font-size: 11.5px; color: rgba(248,245,239,.5); margin-top: 10px; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }
[data-reveal-delay="5"] { transition-delay: .5s; }
[data-reveal-delay="6"] { transition-delay: .6s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .speakers-grid { grid-template-columns: repeat(2, 1fr); }
  .register-panel { grid-template-columns: 1fr; }
  .register-panel__intro { padding: 40px 32px; border-right: none; border-bottom: 3px solid var(--copper); }
  .register-form { padding: 36px 32px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(78vw, 320px);
    background: rgba(44,49,56,.98);
    backdrop-filter: blur(16px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 28px; padding: 40px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    border-left: 1px solid var(--rule);
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .speakers-grid { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
}

/* ==========================================================================
   2026 ENHANCEMENT LAYER — premium polish on the existing brand system.
   Palette unchanged (navy / sandstone / copper / ivory); this adds depth,
   a sticky glass header, a technological hero layer, refined micro-
   interactions, accessible focus states and a restructured footer.
   ========================================================================== */

:root {
  --shadow-sm: 0 4px 14px rgba(0,0,0,.24);
  --shadow-md: 0 16px 34px rgba(0,0,0,.34);
  --shadow-lg: 0 28px 60px rgba(0,0,0,.42);
  --glow-copper: 0 0 0 1px rgba(165,106,58,.35), 0 10px 30px rgba(165,106,58,.28);
  --header-h: 74px;
}

html { scroll-padding-top: calc(var(--header-h) + 18px); }

/* ---------- Accessible focus (keyboard only) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.btn:focus-visible,
.site-nav__link:focus-visible {
  outline: 2px solid var(--sandstone);
  outline-offset: 3px;
  border-radius: 5px;
}
.field input:focus-visible { outline: none; }

/* ---------- Sticky glass header / primary nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: flex-end;
  height: var(--header-h);
}
.site-header.is-scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
.site-header__brand { display: inline-flex; align-items: center; }
.site-header .brand { flex-direction: row; gap: 0; }
.site-header .brand__logo {
  height: 34px; background-color: var(--ivory);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.site-header__brand:hover .brand__logo { transform: scale(1.04); }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav__link {
  position: relative;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 1px;
  transition: color .3s var(--ease);
}
.site-nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  height: 2px; width: 0; background: var(--copper);
  transition: width .35s var(--ease);
}
.site-nav__link:hover,
.site-nav__link.is-active { color: var(--ivory); }
.site-nav__link:hover::after,
.site-nav__link.is-active::after { width: 100%; }

.btn--sm { padding: 11px 24px; font-size: 12px; }
.site-nav__cta { box-shadow: 0 8px 22px rgba(165,106,58,.32); }

@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .site-nav { gap: 0; }
  .site-nav__link { display: none; }
}

/* The floating FAB is superseded by the always-present header CTA. */
.fab { display: none !important; }

/* ---------- Hero: technological layer ---------- */
/* Fine perspective grid + a faint node constellation, both derived from the
   sandstone/copper palette and masked so they melt into the photograph. */
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(216,198,164,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,198,164,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 32%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 32%, #000 0%, transparent 72%);
  opacity: .8;
}
.hero__net {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}
.hero__net line { stroke: rgba(216,198,164,.28); stroke-width: 1; }
.hero__net circle { fill: var(--copper); }
.hero__net .node--soft { fill: var(--sandstone); }
.hero__net circle { animation: node-twinkle 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hero__net circle:nth-child(odd) { animation-delay: -2.2s; }
@keyframes node-twinkle { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* Time added to the hero meta row */
.hero__meta-item .icon { flex: none; }

/* ---------- Section rhythm ---------- */
/* A hairline + tonal wash to separate major sections without repainting them. */
.section + .section::before,
.closing-bg::before ~ .section::before { content: none; }
.section-head { position: relative; }

/* ---------- Registered-count stat in the register panel ---------- */
.register-stat {
  display: inline-flex; align-items: baseline; gap: 10px;
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
}
.register-stat__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 34px; line-height: 1; color: var(--sandstone);
  font-variant-numeric: tabular-nums;
}
.register-stat__label {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Footer redesign ---------- */
.site-footer { padding-top: 72px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  text-align: left;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--rule-soft);
}
.footer-col .brand { align-items: flex-start; margin-bottom: 20px; }
.footer-col .brand__logo { height: 60px; background-color: var(--ivory); }
.footer-col__title {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sandstone);
  margin: 0 0 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 14px; color: var(--text-muted);
  width: fit-content; position: relative;
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.footer-links a::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 1px; background: var(--copper); opacity: 0;
  transition: opacity .3s var(--ease), width .3s var(--ease);
}
.footer-links a:hover { color: var(--ivory); padding-left: 6px; }
.footer-links a:hover::before { opacity: 1; width: 10px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--rule-soft);
  color: var(--sandstone);
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.footer-social a .icon { color: currentColor; }
.footer-social a:hover {
  transform: translateY(-3px);
  background: var(--copper); border-color: var(--copper); color: var(--ivory);
}
.footer-tagline { margin-bottom: 8px; }
.footer-bottom { padding-top: 26px; text-align: center; }
.footer-bottom .footer-copy { margin: 0; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: left; }
}

/* ---------- Cross-cutting micro-interaction polish ---------- */
.btn { will-change: transform; }
.agenda-card, .detail-card, .speaker-card { backface-visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .hero__net circle { animation: none; opacity: .6; }
}

/* ---------- Programme area: subtitle + editorial ghost number ---------- */
.section-sub {
  max-width: 660px; margin: 18px auto 0;
  font-size: 15.5px; color: var(--text-muted); line-height: 1.7;
}
.agenda-card__ghost {
  position: absolute; top: 2px; right: 22px; z-index: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: 150px; line-height: 1;
  color: rgba(216,198,164,.05);
  letter-spacing: -.04em;
  pointer-events: none; user-select: none;
}
.agenda-card--panel:hover .agenda-card__ghost { color: rgba(165,106,58,.10); transition: color .4s var(--ease); }
.agenda-card__aside, .agenda-card__main { position: relative; z-index: 1; }

/* ---------- Global: prevent any horizontal overflow ---------- */
html, body { overflow-x: hidden; max-width: 100%; }
/* Let flex/grid children shrink below their content width instead of
   forcing the row wider than the screen. */
.site-header__inner, .site-nav,
.hero__inner, .hero__meta, .hero__actions,
.agenda-card, .agenda-card__main, .people-list,
.register-panel, .footer-grid { min-width: 0; }
.hero__title, .hero__title-en, .hero__subtitle, .section-sub {
  max-width: 100%; overflow-wrap: break-word;
}

/* ---------- Hero: mobile scaling so nothing clips ---------- */
@media (max-width: 560px) {
  .hero__title-en { font-size: clamp(22px, 7vw, 28px); }
  .hero__subtitle { font-size: clamp(24px, 8vw, 40px); }
  .hero__eyebrow { font-size: 10.5px; letter-spacing: .1em; white-space: normal; text-align: center; line-height: 1.5; max-width: 100%; }
  .hero__meta { gap: 10px 14px; font-size: 14px; }
  .hero__meta-divider { display: none; }
  .agenda-card__ghost { font-size: 92px; right: 12px; }
  .section-sub { font-size: 14.5px; }
}

/* ---------- Full-width slim rows (Lunch, Closing) ---------- */
.agenda-card--span {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 22px;
  padding: 18px 30px;
}
.agenda-card--span .agenda-card__aside {
  flex-direction: row; align-items: center; gap: 16px; flex: none;
}
.agenda-card--span .agenda-card__main { display: flex; align-items: center; }
.agenda-card--span .agenda-card__title { font-size: 16px; }
@media (max-width: 560px) {
  .agenda-card--span { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 22px; }
}

.section-head__title--caps { text-transform: uppercase; letter-spacing: .05em; }
.section-head h2.section-head__title--lg { font-size: clamp(34px, 5vw, 58px); }
.section-head h2.section-head__title--sm { font-size: clamp(22px, 3vw, 30px); color: color-mix(in srgb, var(--ivory), var(--navy) 20%); }
.eyebrow--lg { font-size: clamp(15px, 1.9vw, 20px); letter-spacing: .16em; padding-bottom: 12px; }

/* ==========================================================================
   BILINGUAL (AR / EN) — flag language toggle + RTL support
   ========================================================================== */
.lang-toggle { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 10px; }
.lang-toggle__opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 8px; border-radius: 8px;
  opacity: .5;
  transition: opacity .3s var(--ease), background .3s var(--ease);
}
.lang-toggle__opt:hover { opacity: 1; background: rgba(248,245,239,.08); }
.lang-toggle__opt.is-active { opacity: 1; }
.lang-toggle .flag {
  width: 22px; height: 15px; border-radius: 2px; display: block; flex: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22);
}
.lang-toggle__code {
  font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: .06em;
  color: var(--text-muted);
}
.lang-toggle__opt.is-active .lang-toggle__code { color: var(--ivory); }
@media (max-width: 380px) { .lang-toggle__code { display: none; } }

/* ---------- RTL adjustments ---------- */
[dir="rtl"] .site-header__brand { margin-right: 0; margin-left: auto; }
[dir="rtl"] .site-nav__link::after { left: auto; right: 0; }
[dir="rtl"] .agenda-card::before { left: auto; right: 0; }
[dir="rtl"] .agenda-card__ghost { right: auto; left: 22px; }
[dir="rtl"] .field label { left: auto; right: 16px; }
[dir="rtl"] .field input { text-align: right; }
[dir="rtl"] .footer-links a::before { left: auto; right: -14px; }
[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 6px; }
[dir="rtl"] .agenda-card--span .agenda-card__aside { flex-direction: row; }
[dir="rtl"] .hero__title-ar { direction: ltr; }
@media (min-width: 961px) {
  [dir="rtl"] .register-panel__intro { border-right: none; border-left: 3px solid var(--copper); }
}
/* Arabic reads a touch larger for legibility in body copy */
[dir="rtl"] .agenda-card__desc, [dir="rtl"] .hero__subtitle { line-height: 1.85; }

/* ---------- Single text language switch (replaces flag toggle) ---------- */
.lang-switch {
  margin-inline-start: 12px;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--text-muted);
  padding: 7px 15px;
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.lang-switch:hover { color: var(--ivory); border-color: var(--sandstone); background: rgba(216,198,164,.08); }

/* ---------- Footer alignment in RTL ---------- */
[dir="rtl"] .footer-grid { text-align: right; }
[dir="rtl"] .footer-col .brand { align-items: flex-start; }
[dir="rtl"] .footer-links a { width: fit-content; }
[dir="rtl"] .footer-tagline,
[dir="rtl"] .footer-meta,
[dir="rtl"] .footer-col__title { text-align: right; }

/* Flag inside the single language switch */
.lang-switch { display: inline-flex; align-items: center; gap: 8px; }
.lang-switch .flag {
  width: 22px; height: 15px; border-radius: 2px; display: block; flex: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22);
}
/* ---------- Registration Type select field ---------- */
.field--select select {
  width: 100%;
  background-color: rgba(248,245,239,.05);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 21px 16px 9px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  cursor: pointer;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D8C6A4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* Custom dropdown (built in script.js); native select kept as hidden source of truth */
.field--cselect { position: relative; }
.field--cselect select { color: transparent; pointer-events: none; position: relative; height: 51px; display: block; }
.field--cselect select option { color: #12212f; }
.field--cselect:focus-within select,
.field--cselect.is-open select { background-color: rgba(165,106,58,.08); }
.field--cselect.has-error select { border-color: #c85a3f; animation: shake .4s var(--ease); }
.cselect__btn {
  position: absolute; top: 0; left: 0; bottom: 22px; width: 100%;
  background: transparent; border: 0; border-radius: var(--radius);
  padding: 21px 44px 9px 16px;
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  text-align: left; cursor: pointer; outline: none;
}
[dir="rtl"] .cselect__btn { text-align: right; padding: 21px 16px 9px 44px; font-family: var(--font-ar); }
.field--cselect.is-open select,
.cselect__btn:focus-visible ~ select { border-color: var(--copper); }
.field--cselect:focus-within select { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(165,106,58,.18); }
.field--cselect.has-value label {
  top: 8px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sandstone); font-family: var(--font-display); font-weight: 700;
}
.cselect__list {
  position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% - 18px);
  margin: 0; padding: 4px; list-style: none;
  background: #fff; color: #12212f;
  border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.cselect__list[hidden] { display: none; }
.cselect__list li {
  padding: 10px 12px; font-size: 15px; line-height: 1.5; cursor: pointer;
  border-radius: 4px; text-align: left; font-family: var(--font-body);
}
[dir="rtl"] .cselect__list li { text-align: right; direction: rtl; font-family: var(--font-ar); }
.cselect__list li:hover { background: #efe6d3; }
.cselect__list li[aria-selected="true"] { background: #e9dfcc; font-weight: 700; }
.field--select select:hover { border-color: var(--rule); background-color: rgba(248,245,239,.07); }
.field--select select:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(165,106,58,.18); }
.field--select select option { color: #12212f; background: #fff; }
.field--select label {
  position: absolute; left: 16px; top: 8px;
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sandstone); font-family: var(--font-display); font-weight: 700;
  pointer-events: none;
}
[dir="rtl"] .field--select select { background-position: left 16px center; text-align: right; }
[dir="rtl"] .field--select select,
[dir="rtl"] .field--select select option {
  direction: rtl;
  text-align: right;
  font-family: var(--font-ar);
}
[dir="rtl"] .field--select label { left: auto; right: 16px; }

/* Firefox: the dropdown popup inherits the select's translucent background and
   light text, and Arabic option text gets clipped by the select's padding.
   Force an opaque, high-contrast popup with its own sizing. */
.field--select select { color-scheme: light; }
.field--select select option,
[dir="rtl"] .field--select select option {
  color: #12212f !important;
  background-color: #fff !important;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.6;
  min-height: 1.6em;
}
.field--select select option:disabled { color: #8a8a8a !important; }
.field--select select option:checked { background-color: #e9dfcc !important; }



/* ---------- Hero: dual logo lockup ---------- */
.hero__logos { display: flex; align-items: center; justify-content: center; gap: 26px; margin-bottom: 38px; flex-wrap: wrap; }
.hero__logo { height: 58px; width: auto; }
.hero__logo-divider { width: 1px; height: 48px; background: var(--rule); }
@media (max-width: 560px) {
  .hero__logos { gap: 18px; }
  .hero__logo { height: 40px; }
  .hero__logo-divider { height: 34px; }
}

/* global-2.png ships with a lot of baked-in transparent canvas around the
   actual mark (content occupies ~30% of the image height, ~84% of the
   width), so a plain height rule renders it far smaller than its box
   suggests and out of vertical alignment with the tightly-cropped TRENDS
   Group mark. These rules zoom + shift the image inside a clipped box so
   only the real glyphs show, sized to match the sibling logo's cap-height. */
.global-logo-crop { position: relative; overflow: hidden; display: block; }
.global-logo-crop img { position: absolute; max-width: none; }
.global-logo-crop--hero { height: 42px; width: 166px; }
.global-logo-crop--hero img { height: 140px; width: 198px; top: -42px; left: -20px; }
@media (max-width: 560px) {
  .global-logo-crop--hero { height: 28px; width: 111px; }
  .global-logo-crop--hero img { height: 93px; width: 132px; top: -28px; left: -14px; }
}

/* ---------- Hero: interchange title / subtitle colours ---------- */
/* "Sustainable Security" now sandstone; "The Post-War Future…" now ivory. */
.hero__title-en { background: none; color: #925625; -webkit-text-fill-color: #925625; }
.hero__title-en em { color: #925625; -webkit-text-fill-color: #925625; }
.hero__subtitle { color: var(--ivory); }
.hero__subtitle:hover { color: var(--sandstone); }

/* ---------- Registration Type select: match the Position input exactly ---------- */
.field--select label {
  position: absolute; left: 16px; top: 17px;
  font-family: var(--font-body); font-size: 15px; font-weight: 400;
  letter-spacing: normal; text-transform: none;
  color: var(--text-muted); pointer-events: none;
  transition: transform .22s var(--ease), font-size .22s var(--ease), color .22s var(--ease), top .22s var(--ease);
}
.field--select select:focus + label,
.field--select select:valid + label {
  top: 8px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sandstone); font-family: var(--font-display); font-weight: 700;
}

/* ---------- Footer: dual logo lockup ---------- */
.footer-logos { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-logo { height: 40px; width: auto; }
.footer-logo-divider { width: 1px; height: 32px; background: var(--rule); }
@media (max-width: 520px) { .footer-logo { height: 34px; } }

.global-logo-crop--footer { height: 28px; width: 111px; }
.global-logo-crop--footer img { height: 93px; width: 132px; top: -28px; left: -14px; }
@media (max-width: 520px) {
  .global-logo-crop--footer { height: 24px; width: 95px; }
  .global-logo-crop--footer img { height: 80px; width: 113px; top: -24px; left: -12px; }
}

/* Keep the dual-logo order identical in Arabic (RTL) and English. */
.hero__logos, .footer-logos { direction: ltr; }

/* Arabic hero meta: keep date · time · venue on one line (desktop) like EN. */
@media (min-width: 701px) {
  [dir="rtl"] .hero__meta { flex-wrap: nowrap; font-size: 15px; gap: 14px; }
  [dir="rtl"] .hero__meta-item { white-space: nowrap; }
}

/* Main hero headline on one line (desktop); wraps on mobile. */
@media (min-width: 701px) { .hero__subtitle { white-space: nowrap; } }

/* Footer logos: right-align with the text in Arabic (RTL), order unchanged. */
[dir="rtl"] .footer-logos { justify-content: flex-end; }

/* Arabic hero meta: venue may use two lines, with taller separators. */
@media (min-width: 701px) {
  [dir="rtl"] .hero__meta { font-size: 17.5px; gap: 16px; align-items: center; }
  [dir="rtl"] .hero__meta-item:last-child { white-space: normal; max-width: 340px; line-height: 1.45; gap: 9px; }
  [dir="rtl"] .hero__meta-divider { height: 44px; }
}
