:root {
  --bg-dark: #0f2d52;
  --bg-darker: #0a1f3a;
  --bg-light: #f4f7fb;
  --card: #ffffff;
  --text-primary: #132238;
  --text-muted: #576579;
  --accent: #1f5ea8;
  --accent-hover: #17467d;
  --border: #d7e0ea;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-primary);
  background: #ffffff;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.hero {
  background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark));
  color: #ffffff;
  padding: 1.25rem 0 4.5rem;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand img {
  height: 54px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: #eaf1f9;
}

.hero-content {
  max-width: 760px;
  margin-top: 4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #aac6e8;
}

.eyebrow.dark {
  color: var(--accent);
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-copy {
  font-size: 1.05rem;
  color: #dbe8f7;
  max-width: 64ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.btn {
  border-radius: 0.45rem;
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-block;
  transition: background 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  border: 1px solid #96b2d5;
  color: #eaf1f9;
}

.event-highlights {
  background: var(--bg-light);
  padding: 2rem 0 1.4rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 1rem;
}

.card h2 {
  font-size: 0.88rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.card p {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.card small {
  color: var(--text-muted);
}

.ticket-prices {
  list-style: none;
  margin-top: 0.3rem;
}

.ticket-prices li {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.4;
}

.ticket-prices li + li {
  margin-top: 0.2rem;
}

.section {
  padding: 4.2rem 0;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.section-heading p {
  color: var(--text-muted);
}

.overview {
  background: #fff;
}

.overview-copy {
  max-width: 980px;
}

.overview-copy p {
  color: var(--text-muted);
  line-height: 1.7;
}

.overview-copy p + p {
  margin-top: 0.9rem;
}

.speakers {
  background: #fff;
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.speaker-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 1rem;
}

.speaker-photo {
  height: 320px;
  border-radius: 0.45rem;
  /* border: 1px dashed #9db0c5; */
  display: grid;
  place-items: center;
  color: #6f8195;
  font-weight: 700;
  margin-bottom: 0.8rem;
  background: #f8fbff;
}

.speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.45rem;
}

.speaker-card h3 {
  font-size: 1.03rem;
  margin-bottom: 0.15rem;
}

.speaker-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.speaker-card-actions {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* CSS-only modal: opened when URL hash matches #bio-... */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal:target {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 26, 49, 0.55);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(85vh, 640px);
  overflow-y: auto;
  background: #fff;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(8, 26, 49, 0.22);
  padding: 1.35rem 1.35rem 1.15rem;
}

.modal-dialog-wide {
  width: min(100%, 760px);
}

.modal-dialog h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  padding-right: 2rem;
  margin-bottom: 0.35rem;
}

.modal-role {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.modal-bio {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.modal-bio p + p {
  margin-top: 0.65rem;
}

.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--text-muted);
  font-weight: 700;
}

.modal-close:hover {
  color: var(--text-primary);
}

.agenda {
  background: #0D2849;
  color: #eaf4ff;
}

.panels {
  background: #f8fbff;
}

.panels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.panel-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 1rem;
}

.panel-card h3 {
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.panel-list {
  margin-left: 1.1rem;
  color: var(--text-muted);
}

.panel-list li + li {
  margin-top: 0.35rem;
}

.panel-speaker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.agenda .section-heading h2,
.agenda .section-heading p {
  color: #eaf4ff;
}

.agenda .section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.agenda-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.agenda-column {
  border: 1px solid rgba(205, 228, 248, 0.45);
  border-radius: 0.7rem;
  padding: 1rem;
  background: rgba(9, 54, 88, 0.45);
}

.agenda-column-title {
  background: #dbe8f6;
  color: #0f3860;
  border-radius: 0.45rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  margin-bottom: 0.9rem;
}

.agenda-item {
  padding: 0.7rem 0.15rem;
  border-bottom: 1px solid rgba(205, 228, 248, 0.2);
}

.agenda-item:last-child {
  border-bottom: none;
}

.agenda-time {
  font-size: 0.95rem;
  font-weight: 700;
  color: #b9d8f4;
  margin-bottom: 0.2rem;
}

.agenda-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.agenda-detail,
.agenda-note {
  font-size: 0.92rem;
  color: #d5e7f7;
  margin-top: 0.2rem;
}

.agenda-note {
  font-style: italic;
}

.agenda-label {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.agenda-list {
  margin-top: 0.2rem;
  margin-left: 1.1rem;
  color: #d5e7f7;
  font-size: 0.9rem;
}

.agenda-list li + li {
  margin-top: 0.15rem;
}

.participants {
  background: #fff;
}

.participant-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.participant-list li {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.55rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.participant-flag {
  width: min(100%, 84px);
  height: auto;
  border: 1px solid #d6e2f0;
  border-radius: 0.2rem;
  box-shadow: 0 3px 8px rgba(8, 26, 49, 0.08);
}

.participant-country {
  font-size: 0.82rem;
  color: var(--text-primary);
}

.registration-box {
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: #fff;
  padding: 1.5rem;
}

.registration-box h2 {
  margin-bottom: 0.4rem;
}

.registration-box p {
  color: var(--text-muted);
}

.registration-intro {
  margin-bottom: 1.15rem;
}

.registration-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.4rem;
}

.registration-title-row h2 {
  margin-bottom: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  width: 100%;
  align-items: stretch;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: #f8fbff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
}

.pricing-card h3 {
  font-size: 0.95rem;
}

.pricing-amount {
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.pricing-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.pricing-card .btn {
  margin-top: auto;
  text-align: center;
}

.sponsors {
  background: #fff;
}

.sponsors-banner {
  display: block;
  width: 100%;
  height: auto;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.sponsor-slot {
  border: 1px dashed #9db0c5;
  border-radius: 0.55rem;
  min-height: 92px;
  display: grid;
  place-items: center;
  color: #6f8195;
  font-weight: 700;
  background: #f8fbff;
}

.sponsor-logo {
  max-width: 85%;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-footer {
  background: #081a31;
  color: #dde8f6;
  padding: 1.2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .speaker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .participant-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agenda-split {
    grid-template-columns: 1fr;
  }

  .panels-grid {
    grid-template-columns: 1fr;
  }

  .panel-speaker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .grid-4,
  .highlights-grid,
  .sponsor-grid,
  .participant-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .speaker-grid {
    grid-template-columns: 1fr;
  }

  .panel-speaker-grid {
    grid-template-columns: 1fr;
  }

  .speaker-card {
    display: flex;
    flex-direction: column;
    padding: 0.85rem;
    gap: 0.45rem;
    overflow: hidden;
  }

  .speaker-photo {
    height: auto;
    aspect-ratio: 4 / 5;
    min-height: 280px;
    margin-bottom: 0.7rem;
    overflow: hidden;
  }

  .speaker-card h3 {
    margin-top: 0.1rem;
    text-align: center;
  }

  .speaker-card > p {
    margin-top: 0.2rem;
    text-align: center;
  }

  .speaker-card-actions {
    margin-top: 0.7rem;
    display: flex;
    justify-content: center;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .participant-flag {
    width: min(100%, 72px);
  }

  .agenda-column {
    padding: 0.85rem;
  }

  .registration-box {
    padding: 1.1rem;
  }

  .registration-title-row {
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
