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

:root {
  --blue-950: #032d59;
  --blue-900: #043b76;
  --blue-800: #054e9c;
  --blue-700: #2a6fc0;
  --blue-050: #f5f9ff;
  --paper: #ffffff;
  --paper-soft: #fbfdff;
  --ink-950: #0f1d2c;
  --ink-800: #223449;
  --ink-650: #556779;
  --ink-500: #6f7f90;
  --line: rgba(5, 78, 156, 0.12);
  --line-strong: rgba(5, 78, 156, 0.2);
  --shadow: 0 22px 54px rgba(15, 29, 44, 0.11);
  --shadow-soft: 0 12px 30px rgba(15, 29, 44, 0.08);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container: 1180px;
  --heading-font: 'Linux Biolinum', Georgia, serif;
  --header-height: 90px;
  --hero-media-shift: 0px;
  --hero-content-shift: 0px;
  --hero-scale: 1;
  --header-offset: 0px;
  --transition: 220ms ease;
  --transition-fast: 150ms ease;
  --transition-slow: 320ms ease;
  --z-sticky: 100;
  --z-skip-link: 9999;
}

[data-theme="dark"] {
  --blue-950: #e0e8f5;
  --blue-900: #d0dae8;
  --blue-800: #c0cde0;
  --blue-700: #a8c2d5;
  --blue-050: #0a1420;
  --paper: #0f1d2c;
  --paper-soft: #151e2e;
  --ink-950: #f5f9ff;
  --ink-800: #dce8f0;
  --ink-650: #a8b8c8;
  --ink-500: #8898a8;
  --line: rgba(210, 220, 240, 0.12);
  --line-strong: rgba(210, 220, 240, 0.2);
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink-950);
  background:
    radial-gradient(circle at top left, rgba(5,78,156,0.08), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #fbfdff 42%, #ffffff 100%);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  transition: background var(--transition), color var(--transition);
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(210,220,240,0.04), transparent 24%),
    linear-gradient(180deg, #0a1420 0%, #0f1e2f 42%, #151e35 100%);
}
html[lang="fa"] body,
html[dir="rtl"] body {
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}
html[lang="fa"],
html[dir="rtl"] {
  direction: rtl;
}
html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[lang="fa"] p,
html[lang="fa"] li,
html[lang="fa"] dt,
html[dir="rtl"] p,
html[dir="rtl"] li,
html[dir="rtl"] dt {
  text-align: right !important;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
iframe { border: 0; display: block; }
h1, h2, h3 { 
  font-family: var(--heading-font);
  line-height: 1.22; 
  margin: 0 0 0.75rem; 
  letter-spacing: -0.02em; 
}
p { margin: 0 0 1rem; letter-spacing: 0.01em; }
ul { margin: 0; padding: 0; }

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: var(--z-skip-link);
  background: var(--blue-800);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--blue-800);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.site-header.scrolled {
  background: var(--blue-900);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .site-header {
  background: var(--blue-800);
}

[data-theme="dark"] .site-header.scrolled {
  background: var(--blue-900);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: min-height var(--transition);
}
.site-header.scrolled .header-inner {
  min-height: 76px;
}
.brand-section {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-direction: row-reverse;
}
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.brand-tagline {
  margin: 0;
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  width: clamp(126px, 14.7vw, 210px);
  height: auto;
}

.header-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav a,
.lang-toggle button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  color: #ffffff;
  background: transparent;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}
.nav a:hover,
.lang-toggle button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}
.nav a.active,
.lang-toggle button.active {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.lang-toggle {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .lang-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
}

.theme-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  color: #ffffff;
  background: transparent;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  font-size: 1.1rem;
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .theme-btn {
  color: #ffffff;
}

[data-theme="dark"] .theme-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .nav a,
[data-theme="dark"] .lang-toggle button {
  color: #ffffff;
}

[data-theme="dark"] .nav a:hover,
[data-theme="dark"] .lang-toggle button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .nav a.active,
[data-theme="dark"] .lang-toggle button.active {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 800px) {
  [data-theme="dark"] .header-panel {
    background: var(--blue-900);
    border-color: rgba(255,255,255,0.15);
  }
  [data-theme="dark"] .header-panel .nav a,
  [data-theme="dark"] .header-panel .lang-toggle button,
  [data-theme="dark"] .header-panel .theme-btn {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
  }
  [data-theme="dark"] .header-panel .nav a:hover,
  [data-theme="dark"] .header-panel .lang-toggle button:hover,
  [data-theme="dark"] .header-panel .theme-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.25);
  }
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 99px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.hero {
  min-height: 640px;
  padding: 6.25rem 0 4rem;
}
.page-hero {
  min-height: 420px;
  padding: 5.6rem 0 3rem;
}
.hero-media,
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-media img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(var(--hero-media-shift)) scale(var(--hero-scale));
  transition: transform 120ms linear;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 42, 84, 0.3) 0%, rgba(10, 35, 70, 0.15) 40%, rgba(15, 45, 90, 0.35) 100%),
    radial-gradient(ellipse at top center, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.15) 100%);
  z-index: 1;
}
.hero-content,
.page-hero-content {
  position: relative;
  display: grid;
  align-items: end;
  gap: 1.25rem;
  transform: translateY(var(--hero-content-shift));
}
.hero-content {
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  min-height: 520px;
}
.page-hero-content {
  min-height: 300px;
}
.hero-card,
.page-hero-card,
.hero-note {
  position: relative;
  z-index: 2;
  color: #fff;
  background: rgba(8, 28, 54, 0.3);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 46px rgba(0,0,0,0.15);
  backdrop-filter: blur(9px);
}
.hero-card,
.page-hero-card {
  padding: 1.7rem 1.8rem 1.55rem;
  border-radius: var(--radius-xl);
  max-width: 700px;
}
.hero-note {
  padding: 1.3rem 1.4rem 1.2rem;
  border-radius: var(--radius-lg);
  align-self: end;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.84);
  margin: 0 0 0.85rem;
}
.hero h1,
.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 4rem);
  margin-bottom: 0.8rem;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}
.hero-meta {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.25rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.note-label,
.mini-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--blue-700);
  margin: 0 0 0.7rem;
}
html[dir="rtl"] .mini-label,
html[dir="rtl"] .note-label {
  text-align: right !important;
}
.hero-note .note-label {
  color: rgba(255,255,255,0.76);
}

[data-theme="dark"] .hero-note .note-label {
  color: rgba(255,255,255,0.9);
}

.hero-note h2 {
  margin-bottom: 0.5rem;
  font-size: 1.45rem;
}
.note-meta,
.note-text {
  margin: 0;
  color: rgba(255,255,255,0.92);
}
.note-meta { margin-bottom: 0.55rem; }

.section {
  padding: 4.8rem 0;
}
.section-soft {
  background: linear-gradient(180deg, rgba(5,78,156,0.03), rgba(5,78,156,0.01));
}
.section-intro {
  padding-top: 4rem;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.section-head-tight {
  margin-bottom: 1.6rem;
}

.text-layout,
.programme-layout,
.venue-grid {
  display: grid;
  gap: 1.4rem;
}
.text-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
}
.programme-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  align-items: start;
}
.venue-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  align-items: stretch;
}
.cards-3,
.cards-4,
.cards-instructions {
  display: grid;
  gap: 1.3rem;
}
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-instructions { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.panel,
.map-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  color: var(--ink-950);
}

[data-theme="dark"] .panel,
[data-theme="dark"] .map-card {
  background: rgba(21, 30, 46, 0.92);
  color: var(--ink-950);
}

[data-theme="dark"] .mini-label {
  color: rgba(210, 220, 240, 0.8);
}

[data-theme="dark"] .facts-list dt {
  color: var(--ink-650);
}

[data-theme="dark"] .map-mini {
  color: var(--ink-650);
}

.panel {
  padding: 1.5rem;
}
html[dir="rtl"] .panel {
  direction: rtl;
}
.panel-rich {
  padding: 1.75rem;
}
.panel-wide {
  padding: 1.2rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--blue-800);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  margin-top: 0.5rem;
}

.read-more:hover {
  color: var(--blue-900);
  border-bottom-color: var(--blue-800);
}

[data-theme="dark"] .read-more {
  color: var(--blue-700);
}

[data-theme="dark"] .read-more:hover {
  color: var(--blue-800);
  border-bottom-color: var(--blue-700);
}

[data-theme="dark"] .side-panel,
[data-theme="dark"] .programme-side {
  background: rgba(21, 30, 46, 0.92);
}

.side-panel,
.programme-side {
  position: sticky;
  top: 102px;
}
.lead-strip {
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, rgba(5,78,156,0.05), rgba(5,78,156,0.02));
  border: 1px solid rgba(5,78,156,0.08);
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
}
.lead-strip p {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

[data-theme="dark"] .lead-strip {
  background: linear-gradient(180deg, rgba(210,220,240,0.08), rgba(210,220,240,0.03));
  border-color: rgba(210, 220, 240, 0.12);
}

[data-theme="dark"] .lead-strip p {
  color: var(--ink-950);
}

.facts-list {
  display: grid;
  gap: 1.1rem;
  margin: 0;
}
.facts-list div {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.facts-list div:first-child { border-top: none; padding-top: 0; }
.facts-list dt {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  margin-bottom: 0.35rem;
}
.facts-list dd {
  margin: 0;
  color: var(--ink-950);
  font-weight: 600;
}
.button-row,
.button-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.05rem;
}
.button-stack { flex-direction: column; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.72rem 1.02rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  line-height: 1.1;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.button-primary {
  background: var(--blue-800);
  color: #fff;
  box-shadow: 0 8px 18px rgba(5,78,156,0.12);
}
.button-primary:hover {
  background: var(--blue-900);
  box-shadow: 0 12px 24px rgba(5,78,156,0.18);
}
.button-secondary {
  background: rgba(255,255,255,0.7);
  color: var(--blue-900);
  border-color: rgba(5,78,156,0.18);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.5);
}
.button-secondary:hover {
  background: rgba(5,78,156,0.06);
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.6);
}

[data-theme="dark"] .button-primary {
  background: var(--blue-700);
  box-shadow: 0 10px 20px rgba(42, 111, 192, 0.2);
}

[data-theme="dark"] .button-primary:hover {
  background: var(--blue-800);
}

[data-theme="dark"] .button-secondary {
  background: rgba(210, 220, 240, 0.15);
  color: var(--blue-050);
  border-color: rgba(210, 220, 240, 0.3);
}

[data-theme="dark"] .button-secondary:hover {
  background: rgba(210, 220, 240, 0.25);
  color: #fff;
}

.button-small {
  min-height: 38px;
  min-width: 38px;
  padding: 0.6rem 0.78rem;
}

.hero-note-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-self: end;
}

.keynote-registration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  text-align: center;
}

.registration-text {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.registration-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(5, 78, 156, 0.08) 0%, rgba(5, 78, 156, 0.04) 100%);
  border: 1px solid rgba(5, 78, 156, 0.15);
  border-radius: var(--radius-md);
}

.registration-label {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-800);
  font-weight: 500;
}

.email-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--blue-800);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.email-link:hover {
  color: var(--blue-900);
  border-bottom-color: var(--blue-800);
}

[data-theme="dark"] .registration-label {
  color: var(--ink-800);
}

[data-theme="dark"] .email-link {
  color: var(--blue-700);
}

[data-theme="dark"] .email-link:hover {
  color: var(--blue-800);
  border-bottom-color: var(--blue-700);
}

.address-box {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
  padding: 1.15rem 1.15rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5,78,156,0.05), rgba(5,78,156,0.02));
  border: 1px solid rgba(5,78,156,0.1);
  align-content: start;
}

[data-theme="dark"] .address-box {
  background: linear-gradient(180deg, rgba(210,220,240,0.08), rgba(210,220,240,0.03));
  border-color: rgba(210, 220, 240, 0.15);
}

.address-main {
  font-weight: 700;
  margin: 0;
}
.address-sub {
  color: var(--ink-800);
  margin: 0;
}

.map-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.map-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.2rem 0.85rem;
}
.map-mini {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-650);
}
.map-shell {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
  background: #dce9f7;
  flex: 1;
  display: flex;
  min-height: 320px;
}
.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.simple-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}
.simple-list li {
  position: relative;
  padding-inline-start: 1.1rem;
}
.simple-list li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  inset-inline-start: 0;
  width: 0.46rem;
  height: 0.46rem;
  background: var(--blue-700);
  border-radius: 999px;
}

.programme-shell {
  display: grid;
  gap: 1.2rem;
}
.programme-day {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}
.programme-day:first-child {
  border-top: none;
  padding-top: 0.2rem;
}
.programme-head {
  margin-bottom: 0.9rem;
}
.programme-date {
  margin: 0 0 0.32rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue-700);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  -webkit-overflow-scrolling: touch;
}
.programme-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  color: var(--ink-950);
}
.programme-table .time {
  width: 90px;
  min-width: 90px;
  white-space: nowrap;
  font-weight: 700;
  color: var(--blue-900);
}
.programme-table .session {
  word-break: break-word;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

[data-theme="dark"] .programme-table {
  background: rgba(21, 30, 46, 0.9);
  color: var(--ink-950);
}

.programme-table th,
.programme-table td {
  text-align: start;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(5,78,156,0.08);
  vertical-align: top;
}

[data-theme="dark"] .programme-table th,
[data-theme="dark"] .programme-table td {
  border-bottom-color: rgba(210, 220, 240, 0.1);
}

[data-theme="dark"] .programme-table th:nth-child(2) {
  border-right-color: rgba(210, 220, 240, 0.15);
}

[data-theme="dark"] .programme-table td:nth-child(2) {
  border-right-color: rgba(210, 220, 240, 0.08);
}

.programme-table thead th {
  background: rgba(5,78,156,0.05);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-650);
}

.programme-table th:nth-child(1) {
  width: 100px;
}

.programme-table th:nth-child(2) {
  width: auto;
  border-right: 1px solid rgba(5,78,156,0.15);
}

.programme-table td:nth-child(2) {
  border-right: 1px solid rgba(5,78,156,0.08);
}

.programme-table th:nth-child(3) {
  width: 320px;
}

.programme-table tbody tr:last-child td {
  border-bottom: none;
}

.site-footer {
  padding: 1.4rem 0 1.8rem;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
}

[data-theme="dark"] .site-footer {
  background: rgba(15, 29, 44, 0.75);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  max-width: 900px;
  margin-inline: auto;
}
.footer-logo {
  width: clamp(119px, 14vw, 196px);
  height: auto;
}
.footer-meta p {
  margin: 0;
  color: var(--ink-650);
  font-size: 0.95rem;
}

[data-theme="dark"] {
  --text-on-bright: #223449;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] a,
[data-theme="dark"] .address-main,
[data-theme="dark"] .address-sub,
[data-theme="dark"] .mini-label,
[data-theme="dark"] .map-mini,
[data-theme="dark"] dt,
[data-theme="dark"] dd {
  color: var(--ink-950);
}

[data-theme="dark"] .panel p,
[data-theme="dark"] .panel h1,
[data-theme="dark"] .panel h2,
[data-theme="dark"] .panel h3,
[data-theme="dark"] .panel li,
[data-theme="dark"] .panel a {
  color: var(--ink-950);
}

.footer-actions .button {
  color: var(--ink-950);
}

[data-theme="dark"] .footer-actions .button {
  color: #fff;
  background: rgba(210, 220, 240, 0.15);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--transition-slow) ease, transform var(--transition-slow) ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .text-layout,
  .programme-layout,
  .venue-grid,
  .cards-4 {
    grid-template-columns: 1fr;
  }
  .cards-3,
  .cards-instructions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .side-panel,
  .programme-side {
    position: static;
  }
  .section { padding: 4rem 0; }
}

@media (max-width: 800px) {
  :root { --header-height: 84px; }
  .section { padding: 3.6rem 0; }
  .panel,
  .panel-rich,
  .panel-wide { padding: 1.3rem; }
  .menu-toggle { display: inline-flex; }
  .header-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    inset-inline: 1rem;
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    background: var(--blue-900);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  }
  .header-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .header-panel .nav a,
  .header-panel .lang-toggle button,
  .header-panel .theme-btn {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
  }
  .header-panel .nav a:hover,
  .header-panel .lang-toggle button:hover,
  .header-panel .theme-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.25);
  }
  .header-panel .nav a.active,
  .header-panel .lang-toggle button.active {
    background: rgba(255,255,255,0.3);
    color: #ffffff;
  }
  .header-panel .lang-toggle {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
  }
  .nav {
    display: grid;
    gap: 0.3rem;
  }
  .nav a,
  .lang-toggle button {
    justify-content: center;
  }
  .lang-toggle {
    justify-content: center;
  }
  .hero {
    min-height: 580px;
    padding-top: 5.4rem;
  }
  .page-hero {
    min-height: 360px;
    padding-top: 5.2rem;
  }
  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1rem;
  }
  .hero-card,
  .page-hero-card,
  .hero-note {
    padding: 1.25rem 1.2rem;
    border-radius: 18px;
  }
  .hero-note-section {
    gap: 1rem;
  }
  .keynote-registration {
    padding: 0.6rem 1rem;
  }
  .cards-3,
  .cards-instructions {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 600px) {
  .container { width: min(var(--container), calc(100% - 1.1rem)); }
  html[lang="fa"] .container { width: min(var(--container), calc(100% - 1.2rem)); }
  .brand-logo { width: 185px; }
  .brand-tagline { font-size: 0.65rem; }
  .hero h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 1.6rem; }
  .hero-meta { font-size: 0.98rem; }
  .panel,
  .panel-rich,
  .panel-wide { padding: 1.15rem; }
  html[lang="fa"] .panel,
  html[lang="fa"] .panel-rich,
  html[lang="fa"] .panel-wide { padding: 1.3rem; }
  .button {
    width: 100%;
  }
  .hero-actions,
  .button-row,
  .button-stack {
    display: grid;
  }
  .map-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

html[dir="rtl"] .eyebrow,
html[dir="rtl"] .note-label,
html[dir="rtl"] .mini-label,
html[dir="rtl"] .programme-date,
html[dir="rtl"] .facts-list dt,
html[dir="rtl"] .programme-table thead th {
  letter-spacing: 0.03em;
}
html[dir="rtl"] .section-head {
  flex-direction: row-reverse;
  direction: rtl;
  text-align: right;
  justify-content: flex-end;
}
html[dir="rtl"] .section-head h2 {
  text-align: right !important;
  direction: rtl;
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}
html[dir="rtl"] .text-layout,
html[dir="rtl"] .programme-layout,
html[dir="rtl"] .venue-grid {
  direction: rtl;
}
html[dir="rtl"] .panel h1,
html[dir="rtl"] .panel h2,
html[dir="rtl"] .panel h3 {
  text-align: right !important;
  direction: rtl;
}
html[dir="rtl"] .cards-3,
html[dir="rtl"] .cards-4,
html[dir="rtl"] .cards-instructions {
  direction: rtl;
}
html[dir="rtl"] article,
html[dir="rtl"] .section-soft {
  direction: rtl;
}
html[dir="rtl"] .hero-note {
  align-self: end;
}
html[dir="rtl"] .simple-list li::before {
  inset-inline-start: auto;
  inset-inline-end: 0;
}
html[dir="rtl"] .simple-list li {
  padding-inline-start: 0;
  padding-inline-end: 1.1rem;
}
