:root {
  --navy: #16213f;
  --navy-2: #1f2d55;
  --navy-light: #2f4a86;
  --gold: #c9a266;
  --gold-light: #e4c78c;
  --teal: #2f8f7f;
  --bg: #f6f5f2;
  --card-bg: #ffffff;
  --text: #1c2333;
  --text-muted: #5c6478;
  --border: #e7e3da;
  --shadow: 0 4px 18px rgba(22, 33, 63, 0.08);
  --shadow-hover: 0 8px 28px rgba(22, 33, 63, 0.14);
  --radius: 16px;
  --font: "Rubik", "Heebo", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* ---------- Minimalist outline icons ---------- */
.line-icon {
  width: 1em;
  height: 1em;
  overflow: visible;
  display: block;
}
.line-icon path,
.line-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

.skip-link {
  position: absolute;
  right: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 0 0 0 10px;
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus { right: 0; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(201,162,102,0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(47,143,127,0.22), transparent 50%),
    linear-gradient(160deg, #1c224f 0%, #224b9a 100%);
  color: #fff;
  padding: 56px 20px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--gold));
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto 6px;
}

.tagline {
  max-width: 640px;
  margin: 8px auto 28px;
  color: rgba(255,255,255,0.86);
  font-size: 0.98rem;
  font-weight: 400;
}
.tagline-ar {
  display: block;
  direction: rtl;
  color: rgba(255,255,255,0.6);
  font-size: 0.92em;
  margin-top: 4px;
}

.event-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 22px;
  color: #fff;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
}
.meta-icon { font-size: 1.15rem; color: var(--gold-light); }

.organizer {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Quick nav ---------- */
.quicknav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,245,242,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.quicknav-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  max-width: 1100px;
  margin: 0 auto;
  scrollbar-width: thin;
}
.quicknav-track::-webkit-scrollbar { height: 5px; }
.quicknav-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.quicknav-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.quicknav-item:hover,
.quicknav-item:focus-visible {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.quicknav-item .qn-time { color: var(--gold); font-weight: 700; }
.quicknav-item:hover .qn-time,
.quicknav-item:focus-visible .qn-time { color: var(--gold-light); }
.quicknav-item .qn-icon { font-size: 1rem; display: inline-flex; }

/* ---------- Timeline ---------- */
.timeline {
  max-width: 1000px;
  margin: 0 auto;
  padding: 46px 18px 20px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 40px;
  right: 39px;
  width: 2px;
  background: linear-gradient(var(--border), var(--border) 90%, transparent);
}

@media (min-width: 720px) {
  .timeline::before { right: 50%; margin-right: -1px; }
}

.session {
  position: relative;
  margin-bottom: 34px;
  padding-right: 84px;
  scroll-margin-top: 70px;
}

@media (min-width: 720px) {
  .session { padding-right: 0; width: 50%; }
  .session.side-right { margin-right: auto; padding-right: 48px; padding-left: 0; text-align: right; }
  .session.side-left { margin-left: auto; padding-left: 48px; padding-right: 0; text-align: right; }
}

.session-node {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 0 5px var(--bg);
  z-index: 2;
}
.session.is-break .session-node { background: var(--gold); color: var(--navy); }

@media (min-width: 720px) {
  .session-node { right: -18px; }
  .session.side-left .session-node { right: auto; left: -18px; }
}

.session-time {
  display: inline-block;
  font-weight: 800;
  color: var(--navy);
  background: var(--gold-light);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.session.is-break .session-time { background: #f1e6cf; }

.session-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.session-card:hover { box-shadow: var(--shadow-hover); }

.session.is-break .session-card {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fbf6ea, #fff);
}
.session.is-break .session-title { margin: 0; }
.session.is-break .session-subtitle { margin: 0; }

.session-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}

.session-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.block:first-of-type { margin-top: 14px; }

.block-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.block-label.is-moderator { color: var(--gold); }

.talk-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.talk-item:last-child { margin-bottom: 0; }

.talk-heading {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
}

.person {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
}

.person-photo {
  width: 69px;
  height: 69px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  border: 2px solid var(--gold-light);
  background: var(--navy);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }

.person-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.person-role {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 2px 0 0;
  line-height: 1.35;
}

/* single-speaker highlight block (macro talks) */
.talk-item .person-photo { width: 78px; height: 78px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 40px 20px 30px;
  margin-top: 40px;
}

.footer-title {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 18px;
}

.sponsors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.sponsor-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 12px 20px;
  border-radius: 10px;
}
.sponsor-badge img {
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.footer-note {
  margin: 26px 0 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 22px;
  left: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 60;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--navy-light); }

@media print {
  .quicknav, .back-to-top, .skip-link { display: none !important; }
  .hero { background: var(--navy) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
