:root {
  --brand-primary: #b22222;
  --brand-secondary: #00008b;
  --brand-accent: #ff5566;
  --neutral-100: #ffffff;
  --neutral-200: #f7f5f2;
  --neutral-300: #e6dfd8;
  --neutral-800: #1f1f1f;
  --sidebar-bg: #f2d2bd;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background: var(--neutral-100);
  color: var(--neutral-800);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-secondary);
  text-decoration: none;
  font-weight: 600;
}

a:hover,
a:focus {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.6rem;
  font-weight: 700;
  color: var(--brand-secondary);
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1.5rem 1.2rem;
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 100;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  background: var(--brand-secondary);
  color: var(--neutral-100);
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#myBtn img {
  width: 32px;
  margin: 0 auto;
}

#myBtn:hover {
  background: var(--brand-primary);
}

.page-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px;
}

.hero-banner {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 24px;
}

.logo-square {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 200px;
  gap: 24px;
  align-items: start;
}

.hero__left {
  text-align: center;
}

.hero__center {
  text-align: center;
  padding: 16px 24px;
}

.hero__crest {
  margin: 0 auto 16px;
}

.hero__title {
  font-size: 2.4rem;
  color: var(--brand-secondary);
  margin-bottom: 0.25rem;
}

.hero__edition {
  font-size: 1.4rem;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.hero__subtitle {
  font-size: 1.6rem;
  color: var(--brand-secondary);
  margin-bottom: 1rem;
}

.hero__details {
  h3: 24px;
  /*color: #f0f0f0;*/
}

/*.hero__details p {*/
/*  margin: 0 0 0.4rem;*/
/*}*/

.hero__details strong {
  color: #000000;
  h3: 24px;
}

.hero__venue {
  margin-top: 16px;
}

.hero__logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero__logos .logo-square {
  margin-bottom: 0;
}

.countdown-section {
  margin: 32px 0;
  /* border: 1px solid var(--neutral-300); */
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.countdown-grid div {
  min-width: 120px;
  padding: 16px;
  border-radius: 12px;
  background: var(--brand-secondary);
  color: var(--neutral-100);
  font-size: 1.5rem;
}

.countdown-grid span {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--neutral-100);
}

.live-clock {
  margin-top: 12px;
  font-weight: 600;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  margin-bottom: 48px;
  align-items: stretch;
}

.sidebar {
  background: var(--sidebar-bg);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  min-height: 100%;
}
/*.sidebar {*/
/*  background: var(--sidebar-bg);*/
/*  border-radius: 12px;*/
/*  padding: 16px;*/
/*  display: flex;*/
/*  flex-direction: column;*/
/*  gap: 24px;*/
/*  border: 1px solid rgba(0, 0, 0, 0.05);*/
  /* NEW: Make sidebar sticky and control its height */
/*  position: sticky;*/
/*  top: 24px;*/
/*  align-self: start;*/
/*  max-height: calc(100vh - 48px);*/
/*  overflow-y: auto;*/
/*}*/

.sidebar__brand {
  text-align: center;
}

.sidebar__brand img {
  margin: 0 auto;
}



.sidebar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--brand-secondary);
}

.sidebar nav a:hover,
.sidebar nav .active {
  background: var(--neutral-100);
  color: var(--brand-primary);
}

.sidebar__gallery img {
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.sidebar__stats,
.sidebar__links {
  text-align: center;
}

.sidebar__stats img {
  margin: 0 auto;
}

.sidebar__links a {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.content-block {
  background: var(--neutral-100);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--neutral-300);
}

.content-block h2 {
  color: var(--brand-primary);
  font-size: 1.8rem;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--neutral-200);
}

.speaker-table {
  border: 1px solid var(--neutral-300);
  border-radius: 12px;
  overflow: hidden;
}

.speaker-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--neutral-100);
}

.speaker-row:nth-child(2n) {
  background: var(--neutral-200);
}

.speaker-row + .speaker-row {
  border-top: 1px solid var(--neutral-300);
}

.speaker-row img {
  width: 150px;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.speaker-name {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  color: var(--brand-secondary);
}

.content-block figure {
  margin: 1rem 0;
}

.content-block figcaption {
  font-size: 0.95rem;
  color: #444;
  margin-top: 0.4rem;
}

.themes-grid {
  columns: 2;
  column-gap: 32px;
}

.themes-grid li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.flow-list {
  list-style: decimal inside;
  padding-left: 0;
}

.promo-card {
  background: #fff6c2;
  border-radius: 12px;
  padding: 20px;
  border: 2px dashed var(--brand-secondary);
  text-align: center;
}

.footer {
  text-align: center;
  padding: 32px 16px 64px;
  background: var(--neutral-300);
  border-radius: 12px 12px 0 0;
}

.footer p {
  margin-bottom: 0.4rem;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

  .content {
    order: 1;
  }

  .themes-grid {
    columns: 1;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__logos {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .speaker-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .speaker-row img {
    margin: 0 auto;
  }
}