/* Sticky black top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0b0b0b;      /* near-black */
  border-bottom: 1px solid #1f1f1f;
}

/* Inner container (max width + spacing) */
.topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand (left) */
.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.topbar__logo {
  height: 22px;
}

.topbar__title {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.2px;
  color: #fff;
}

/* Nav links (right) */
.topbar__nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.topbar__link {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
}

.topbar__link:hover,
.topbar__link--active {
  opacity: 1;
  background: #151515;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Prevent anchor headings from hiding behind the sticky bar */
main, .content {
  scroll-margin-top: 70px;
}

/* --- Subtitle fix (force normal horizontal line) --- */
.subtitle,
.subtitles {
  display: block;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: normal;
  margin-top: 0.3rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: #666;
}

/* If the theme renders subtitles as a list, show them inline on one line */
.subtitles {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
}
.subtitles li {
  display: inline;
  margin-right: 0.6rem;
}

/* Section separators (style all <hr> lines) */

hr {
  border: none;
  height: 1px;
  background: #e6e6e6;
  margin: 8px 0;   /* reduced spacing */
}

/* Optional: slightly softer on dark backgrounds */
@media (prefers-color-scheme: dark) {
  hr { background: #2a2a2a; }
}

/* Location + Date under hero title */
.banner-info {
  display: flex;
  justify-content: center;     /* keep them grouped together */
  gap: 2rem;                   /* space between left/right text */
  margin: 0.25rem auto 0.75rem auto;  /* tighter spacing */
  font-size: 1rem;
  font-weight: 500;
  color: #444;
}
.banner-left,
.banner-right {
  text-align: center;
}

/* Reduce hero banner bottom padding */
.header {
  padding-bottom: 0.2rem !important;  /* was 1.5rem */
}

/* Reduce space above the first section (About) */
#about {
  margin-top: 0 !important;
  padding-top: 0.2rem !important;
}

/* Flex layout for banner with image on the left */
.header-flex {
  display: flex;
  align-items: center;    /* vertically center image and text */
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 180px;      /* ensures a consistent banner height */
}

.header-image img {
  max-height: 200px;   /* controls size */
  width: auto;
  height: auto;
  object-fit: contain;
}

.header-text {
  flex: 1;
}

/* Keep location/date together under the subtitle */
.banner-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0.25rem auto 0.75rem auto;
  font-size: 1rem;
  font-weight: 500;
  color: #444;
}
.banner-left, .banner-right { text-align: center; }

/* Mobile: stack image above text */
@media (max-width: 700px) {
  .header-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .header-image img {
    max-height: 120px; /* smaller on mobile */
    width: auto;
  }
}

/* --- Mobile navbar layout --- */
@media (max-width: 720px) {
  .topbar__inner {
    flex-direction: column;     /* stack brand above links */
    align-items: center;
    gap: 4px;
  }
  .topbar__brand {
    margin-bottom: 2px;
  }
  .topbar__title {
    font-size: 14px;            /* slightly smaller title on mobile */
  }
  .topbar__nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;    /* center the links under the brand */
    gap: 4px;
  }
  .topbar__link {
    padding: 6px 8px;           /* a bit tighter on mobile */
    font-size: 13px;
  }
}

/* Submit button style */
.submit-btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  margin: 1rem 0;           /* adds space above & below */
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  background: #666;         /* grey background */
  color: #fff;              /* white text */
}

.submit-btn:hover {
  background: #555;         /* slightly darker grey on hover */
}


