*,
:after,
:before {
  box-sizing: border-box;
  --strong-color: rgb(178, 15, 15); 
}

body,
figure,
h1,
h2,
h3,
h4,
h5,
p,
picture {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-weight: 400;
}

button,
input,
select,
textarea {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {

  *,
  :after,
  :before {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: Barlow, sans-serif;
  font-size: 0.9375rem;
  background-color: #0c0e18;
  line-height: 1.5;
  min-height: 100vh;
  background-size: cover;
  background-position: bottom;
  display: grid;
  grid-template-rows: min-content 1fr;
  overflow-x: hidden;
}

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

.flex {
  display: flex;
}

.flex,
.grid {
  gap: var(--gap, 1rem);
}

.grid {
  display: grid;
}

.d-block {
  display: block;
}

.flow> :where(:not(:first-child)) {
  margin-top: var(--flow-space, 1rem);
}

.flow--space-small {
  --flow-space: 0.75rem;
}

.container {
  padding-inline: 2em;
  margin-inline: auto;
  max-width: 80rem;
}

.grid-container {
  text-align: center;
  display: grid;
  place-items: center;
  padding-inline: 1rem;
  padding-bottom: 4rem;
  margin-bottom: 2rem;
}

.grid-container p:not([class]) {
  max-width: 50ch;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 2;
}

/* === OVERLAY (click to close) === */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.site-nav-list {
  --gap: clamp(1.5rem, 5vw, 3.5rem);
  --underline-gap: 2rem;
  flex-direction: row;
  list-style: none;
  padding: 0;
  margin: 0;
  background: hsla(0, 0%, 100%, 0.05);
  backdrop-filter: blur(1.5rem);
}

.site-nav-list a {
  text-decoration: none;
}

.site-nav-list a>span {
  font-weight: 700;
  margin-right: 0.5em;
}

.underline-indicators>* {
  cursor: pointer;
  padding: var(--underline-gap, 0.5rem) 0;
  border: 0;
  border-bottom: 0.2rem solid hsla(0, 0%, 100%, 0);
  background-color: transparent;
}

.underline-indicators> :focus,
.underline-indicators> :hover {
  border-color: hsla(0, 0%, 100%, 0.5);
}

.underline-indicators>.active,
.underline-indicators>[aria-selected="true"] {
  color: #fff;
  border-color: #fff;
}

.underline-indicators> :focus a,
.underline-indicators> :hover a {
  color: var(--strong-color,rgb(178, 15, 15));
}

.logo {
/*  margin: 1.5rem clamp(1.5rem, 5vw, 3.5rem); */
}

h1.logo {
  margin-top: 0.5rem;
  margin-left: 1rem;
  font-size: 2rem;
  font-family: Bellefair, serif;
  display: inline-block;
  white-space: nowrap;
  --bc: rgb(17, 3, 55);
  --ls: 1px;
  color: white;
  text-shadow: var(--ls) 0 var(--bc, black), var(--ls) 0 var(--bc, black), 0 var(--ls) var(--bc, black), 
               0 calc(-1*var(--ls)) var(--bc, black), 1px 1px var(--bc, black), -1px -1px var(--bc, black),
               1px -1px var(--bc, black), -1px 1px var(--bc, black);
}

#conference-name h3 {
  text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
               1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
}

.info-container {
  text-align: left;
  margin: 0 2rem 0 2rem;
}

.float-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.col-sm-12 {
  width: 100%;
}

.info-box {
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  background-color: white;
  border-radius: 15px;
  padding-top: 0.5rem;
  padding-right: 1rem;
  padding-left: 1rem;

  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.info-box h2 {
  padding-left: 1em;
  padding-right: 1em;
  width: 100%;
  text-align: center;
}

.info-box h2 span {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  position: relative;
  top: 1px;
  display: inline-block;
  border-bottom: 1px solid #aaa;
  text-transform: uppercase;
  background-color: white;
  backdrop-filter: opacity(20%);
}

.info-text {
  width: 100%;
  background-color: white;
  backdrop-filter: opacity(20%);
}

info h3 {
  font-size: 1.375rem;
  line-height: 28px;
  letter-spacing: -0.7px;
  padding-bottom: 12px;
  padding-top: 24px;
}

.info-text p {
  padding-inline-start: 1em;
  margin-bottom: 1em;
}

.info-container h1 {
  font-size: 2.5rem;
  /* Makes the heading large */
  font-weight: bold;
  /* Emphasizes the heading */
  position: relative;
  /* Needed to position the underline */
  padding-bottom: 0.5rem;
  /* Adds space between text and line */
  margin-bottom: 1rem;
  /* Adds spacing below the whole heading */
}

.info-container h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  /* Places the line directly below the text */
  width: 100%;
  /* Makes the line span the full width */
  height: 3px;
  /* Line thickness */
  background-color: #333;
  /* Line color - adjust as needed */
  border-radius: 2px;
  /* Slightly rounds the edges */
}

.info-box img {
  aspect-ratio: 1 / 1;
  max-width: 100%;
  height: auto;
}

.btn {
  display: block;
  margin: 0 20%;
  padding: 10px 20px;
  text-align: center;
  background-color: #007bff;
  /* Bootstrap blue */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  /* background-color: #0056b3; */
  background-color: rgb(178, 15, 15);
}

.btn:active {
  background-color: #004080;
}

.menu-toggle {
  display: none;
}

@media (min-width: 30rem) {
  info h3 {
    font-size: 1.625rem;
    line-height: 32px;
    letter-spacing: -0.8px;
    padding-bottom: 12px;
    padding-top: 28px;
  }
}

@media (max-width: 40rem) {
  .site-nav-list {
    --underline-gap: 0.5rem;
    flex-direction: column;
    list-style: none;
    padding: min(20rem, 15vh) 2rem;
    margin: 0;
    position: fixed;
    inset: 0 0 0 30%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    background: white;
    backdrop-filter: unset;
    z-index: 3;
  }

  .underline-indicators>.active {
    border-color: black;
  }

  .underline-indicators li:hover {
    background-color: lightblue;
  }

  /* --- Toggle --- */
  .menu-toggle {
    display: inline-block;
    position: relative;
    margin-right: 1em;
    height: 3rem;
    width: 3rem;
    cursor: pointer;
    z-index: 4;
  }

  /* Hamburger bars */
  .menu-toggle .bars,
  .menu-toggle .bars::before,
  .menu-toggle .bars::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    height: 2px;
    background: #e2e8f0;
    transition: transform 0.35s ease, opacity 0.2s ease, top 0.35s ease;
  }

  .menu-toggle .bars {
    top: 50%;
    transform: translateY(-50%);
  }

  .menu-toggle .bars::before {
    top: -9px;
  }

  .menu-toggle .bars::after {
    top: 9px;
  }
}

@media (min-width: 40em) {
  #nav-toggle,
  .menu-toggle,
  .overlay{
    display: none;
  }
  h1.logo {
    margin-top: 0;
    font-size: 3.5rem;
  }
  

    .site-header:after {
    content: "";
    display: block;
    position: relative;
    height: 1px;
    width: 100%;
    margin-right: -2.5rem;
    background: hsla(0, 0%, 100%, 0.25);
    order: 1;
  }
   nav {
    order: 2;
  }
    .site-nav-list {
      padding-inline: clamp(3rem, 7vw, 7rem);
    margin-block: 2rem;
  }
    .site-nav-list a>span {
    display: none;
  }
}

@media (min-width: 60em) {
  .grid-container {
    text-align: left;
    padding-bottom: 15rem;
    column-gap: var(--container-gap, 2rem);
    grid-template-columns: minmax(1rem, 1fr) repeat(2, minmax(0, 30rem)) minmax(1rem,
        1fr);
  }

  .info-box {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    margin-bottom: 4rem;
  }

  .info-box h2 {
    padding-left: 2em;
    width: 20%;
  }

  .info-text {
    width: 75%;
  }

  .btn {
    display: inline-block;
    margin: 0;
  }

  .info-box img {
    aspect-ratio: 1 / 1;
    max-width: 50%;
    height: auto;
    vertical-align: middle;
  }
}

/* === STATE (hidden checkbox) === */
#nav-toggle {
  position: absolute;
  inset: 0;
  appearance: none;
  opacity: 0;
}

/* When checked morph to "X" */
#nav-toggle:checked~label .bars {
  background: transparent;
}

#nav-toggle:checked~label .bars::before {
  top: 0;
  transform: rotate(45deg);
  background-color: black;
}

#nav-toggle:checked~label .bars::after {
  top: 0;
  transform: rotate(-45deg);
  background-color: black;
}

#nav-toggle:checked~.overlay {
  opacity: 1;
  pointer-events: auto;
}

#nav-toggle:checked~nav .site-nav-list {
  transform: translateX(0);
}