body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f4f6f7;
  color: #333;
}

/* ---------- Header ---------- */

header {
  background: #ffffff;
  color: #333;
  text-align: center;
  padding: 18px 20px 16px;
  border-bottom: 4px solid #005f6b;
}

.brand-lockup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  text-align: center;
}

.site-logo {
  grid-column: 1;
  justify-self: end;
  display: block;
  width: 110px;
  height: auto;
  margin-right: 20px;
}

.brand-copy {
  grid-column: 2;
}

.brand-copy h1 {
  margin: 0;
  color: #005f6b;
  font-size: 2.35rem;
  line-height: 1.15;
  font-weight: 700;
}

.brand-copy .tagline {
  margin: 4px 0 0;
  color: #666;
  font-size: 1.15rem;
  font-style: italic;
  text-align: center;
}

.landing-header .event-year {
  display: inline-block;
  margin: 3px 0 7px;
  padding: 4px 15px;
  background: #e9f7f6;
  color: #005f6b;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: bold;
}

.landing-header h2 {
  margin: 3px 0;
  color: #333;
  font-size: 1.45rem;
}

/* ---------- Navigation ---------- */

nav {
  background: #005f6b;
  text-align: center;
  padding: 11px 10px;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 14px;
  font-weight: bold;
  font-size: 0.95rem;
}

nav a:hover {
  color: #d1e7e3;
}

/* ---------- Main sections ---------- */

section {
  padding: 24px 28px;
  margin: 22px auto;
  background: #fff;
  border-radius: 8px;
  max-width: 900px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-left: 4px solid transparent;
}

section:hover {
  border-left-color: #008fc5;
}

h2 {
  color: #005f6b;
  margin-top: 0;
}

h3 {
  color: #444;
}

/* ---------- Event information ---------- */

.event-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.info-card {
  padding: 16px;
  background: #f1f8f8;
  border-radius: 7px;
  border-top: 3px solid #008fc5;
}

.info-card h3 {
  margin-top: 0;
  color: #005f6b;
  font-size: 1rem;
}

.info-card p {
  margin-bottom: 0;
}

/* ---------- Schedules and posters ---------- */

.schedule {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 2fr;
  gap: 12px;
}

.schedule div {
  padding: 10px;
  background: #e9f7f6;
  border-radius: 5px;
}

.schedule div:nth-child(odd) {
  background: #d1e7e3;
  font-weight: bold;
}

.poster-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.poster-card {
  padding: 16px;
  background: #f1f8f8;
  border: 1px solid #d1e7e3;
  border-radius: 7px;
}

.poster-card h4 {
  margin: 8px 0;
  color: #005f6b;
  font-size: 1.05rem;
}

.poster-card p {
  margin: 0;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  padding: 11px 22px;
  margin: 8px 5px;
  background-color: #005f6b;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.button:hover {
  background-color: #004b53;
}

/* ---------- Dates ---------- */

.dates {
  border-left: 4px solid #e84b3c;
  padding: 5px 0 5px 18px;
}

.dates p {
  margin: 8px 0;
}

/* ---------- Committee ---------- */

.committee {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}

.committee div {
  padding: 10px;
  background: #e9f7f6;
  border-radius: 5px;
}

.committee div:nth-child(odd) {
  background: #d1e7e3;
  font-weight: bold;
}

/* ---------- Utilities ---------- */

.center {
  text-align: center;
}

a {
  color: #005f6b;
}

a:hover {
  color: #008fc5;
}

/* ---------- Poster tables ---------- */

.table-wrapper {
  overflow-x: auto;
}

.poster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.poster-table th,
.poster-table td {
  padding: 10px;
  border: 1px solid #d1e7e3;
  text-align: left;
  vertical-align: top;
}

.poster-table th {
  background: #005f6b;
  color: #fff;
}

.poster-table tbody tr:nth-child(even) {
  background: #f1f8f8;
}

/* ---------- Photo gallery ---------- */

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.photo-gallery figure {
  margin: 0;
}

.photo-gallery img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 7px;
}

.photo-gallery figcaption {
  padding-top: 7px;
  color: #666;
  font-size: 0.9rem;
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #005f6b;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 9px 14px;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: #004b53;
  color: #fff;
}

/* ---------- Left column (nav + participating institutions) ---------- */

.left-col {
  position: sticky;
  top: 16px;
  align-self: start;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.left-col .sidenav {
  position: static;
}

/* ---------- Participating organizations (text list; swap in logos later) ---------- */

.org-panel {
  margin: 22px 16px 20px;
  padding: 18px 0 0;
  border-top: 2px solid #005f6b;   /* divider between the top and bottom panels */
}

.org-panel-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #005f6b;
  line-height: 1.3;
  padding: 0 0 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid #b9dcd9;
}

.org-panel a.org-name {
  display: block;
  text-align: center;
  color: #005f6b;
  background: #fff;
  border: 1px solid #d5e8e6;
  border-radius: 7px;
  padding: 10px 8px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}

.org-panel a.org-name:hover {
  background: #e9f7f6;
}

.org-panel a.org-name img {
  display: block;
  width: 100%;
  height: auto;
}

.org-note {
  font-size: 0.72rem;
  color: #777;
  line-height: 1.4;
  margin: 10px 0 0;
}

.sponsor-rail .org-panel-companies {
  margin: 22px 0 0;
  padding: 18px 0 0;
}

/* ---------- Sponsor rail (right column) ---------- */

.page-layout.has-rail {
  grid-template-columns: 180px 1fr 170px;
  max-width: 1300px;
}

.sponsor-rail {
  position: sticky;
  top: 16px;
  align-self: start;
  padding: 20px 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.sponsor-rail-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #005f6b;
  line-height: 1.3;
  padding: 0 0 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid #b9dcd9;
}

.sponsor-rail a {
  display: block;
  line-height: 0;
  margin-bottom: 14px;
}

.sponsor-rail img {
  width: 100%;
  height: auto;
  border-radius: 7px;
  border: 1px solid #d5e8e6;
  background: #fff;
}

/* Narrow screens: rail drops below the content as a row of logos */
@media (max-width: 900px) {
  .page-layout.has-rail {
    grid-template-columns: 1fr;
  }

  .left-col {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .sponsor-rail {
    position: static;
    max-height: none;
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
  }

  .sponsor-rail-title {
    width: 100%;
    margin-bottom: 0;
  }

  .sponsor-rail > a {
    width: 140px;
    margin-bottom: 0;
  }

  .sponsor-rail .org-panel-companies {
    width: 100%;
    padding: 8px 0 0;
  }
}

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 18px;
  margin-top: 35px;
  background: #005f6b;
  color: #fff;
}

footer h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

/* ---------- Page layout (sidebar + content) ---------- */

.page-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  gap: 0;
}

.sidenav {
  position: sticky;
  top: 16px;
  padding: 20px 0 20px 16px;
  align-self: start;
}

.sidenav a {
  display: block;
  color: #005f6b;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 12px;
  border-left: 3px solid transparent;
  border-radius: 0 4px 4px 0;
  margin-bottom: 2px;
  transition: border-color 0.15s, background 0.15s;
}

.sidenav a:hover {
  border-left-color: #005f6b;
  background: #e9f7f6;
}

.sidenav a.active {
  border-left-color: #005f6b;
  background: #e9f7f6;
  color: #003f48;
}

.sidenav .sidenav-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #005f6b;
  padding: 0 12px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid #b9dcd9;
}

.content-area {
  min-width: 0;
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {

  .brand-lockup {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .site-logo {
    grid-column: 1;
    justify-self: center;
    width: 80px;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .brand-copy {
    grid-column: 1;
    text-align: center;
  }

  .brand-copy h1 {
    font-size: 1.6rem;
  }

  .landing-header h2 {
    font-size: 1.1rem;
  }

  nav a {
    display: inline-block;
    margin: 5px 8px;
  }

  section {
    margin: 12px;
    padding: 18px;
  }

  .event-info,
  .poster-list,
  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .schedule,
  .committee {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidenav {
    position: static;
    padding: 8px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid #e5e7eb;
  }

  .sidenav .sidenav-title {
    display: none;
  }

  .sidenav a {
    border-left: none;
    border-radius: 4px;
    padding: 4px 10px;
    background: #e9f7f6;
    font-size: 0.8rem;
  }
}

/* ---------- Schedule Table ---------- */

.schedule-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 520px;
  margin: 12px 0 20px;
}

.schedule-table td {
  padding: 7px 14px;
  border-bottom: 1px solid #dde3e7;
  vertical-align: top;
}

.schedule-table td:first-child {
  white-space: nowrap;
  font-weight: bold;
  color: #005f6b;
  width: 130px;
}

/* ---------- Speaker Bio ---------- */

.speaker-bio {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin: 16px 0;
}

.speaker-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #005f6b;
  flex-shrink: 0;
}

.speaker-name {
  font-size: 1.15rem;
  font-weight: bold;
  margin: 0 0 2px;
  color: #005f6b;
}

.speaker-role {
  font-style: italic;
  color: #555;
  margin: 0 0 12px;
}
