:root{
  --linkColor: rgb(252, 252, 252);
  --visitedLinkColor: rgb(255, 255, 255);
}

.scroll-behaviour-smooth {
  scroll-behavior: smooth;
}
.hidden{
  display: none;
}

.strong{
  font-weight: bold;
}

body {
  margin: 0;
  font-family: "Lato", sans-serif;
  color: #1d1a05;
  background-color: whitesmoke;
  font-size: 100%;
}

p{
  line-height: 1.7em;
}

h1 {
  font-size: 2.25em;
  line-height: 1.5em;
  padding-top: 0.2em;
  text-align: center;
}

li{
  line-height: 1.7em;
}

.info h2{
  text-align: center;
  margin-bottom: 1em;
}

.info p {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-size: larger;
  line-height: 1em;
}

.info a{
  font-size: 1.5em;
  text-align: center;
  line-height: 1em;
}

.info a:visited{
  color: #faff54;
}

a:link{
  color: var(--linkColor);
}

a:visited{
  color: var(--visitedLinkColor);
}

.skip-link {
  position: absolute;
  top: -9999px; /* hide it off-screen initially */
  left: 0;
  background: #004080;
  color: white;
  padding: 0.5em 1em;
  z-index: 0;
  text-decoration: none;
  font-weight: bold;
}
.skip-link:focus {
  top: 1; /* reveal when focused via keyboard */
  z-index: 2000;
}

/* ensure content appears above the overlay */

.header img{
  height: 80px;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* adjust the 0.5 for more or less darkness */
  z-index: 0;
}

header > * {
  position: relative;
  z-index: 1;
}

header {
  position: relative;
  background-position: top center;
  background-image: url('../blog.jpg');
  background-size: cover; 
  color: white;
  overflow: hidden;
  box-sizing: border-box;
}

header .info{
  max-width: 75%;
  margin: 0 auto;
  text-align: center;
  padding-top: 2%;
}

header .prefix{
  font-size: 0.75em;
}
header .title{
  display: block;
  font-size: 1em;
}

header h2{
  font-size: 1.5em;
}

.nav-links{
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000; /* stays on top of content */
  background-color: rgb(3, 52, 99); /* or any background to prevent overlap */
}

.nav-left{
  line-height: 1.0em;
  margin-left: 1%;
  color: white;
}


.nav-links ul {
  display: flex;
  justify-content: center; /* center the links horizontally */
  list-style-type: none;
  margin: 0;
  padding: 0;
  gap: 2rem; /* spacing between links */
  margin-right: 3%;

}

.nav-links li a {
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-right li:hover {
  transform: scale(1.2);
}

.nav-right li {
  transition: transform .2s;
}

/* Toggle styles */
/* Hidden checkbox */
.menu-toggle {
  display: none;
}

/* Hamburger icon */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

.content{
  display: grid;
  grid-template-columns: 65% 35%;
}

.container {
  width: 85%;
  margin-right: auto;
  margin-left: auto;
  max-width: 1140px;
}

.button {
  background-color: #0571a0;
  color: white;
  width: 40%;
  align-self: center;
  font-size: 1.1em;
  font-weight: 600;
  padding: 0.45em 1em;
  border: none;
  border-radius: 0.8em;
  font-family: "Montserrat";
}
.button:hover {
  cursor: pointer;
}

.description{
  scroll-margin-top: 70px; 
  height: fit-content;
  margin-top: 1.5em;
  padding: 2em;
  box-shadow: 0px 5px 14px #b2b2b2;
}

.description h2{
  margin-top:0;
}

.description p{
  margin-top: 0.5%;
}

.dates-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dates-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.dates-list .date {
  width: 200px; /* fixed width for alignment */
  font-weight: bold;
  color: #004080;
  flex-shrink: 0;
}

.dates-list .detail {
  flex: 1; /* takes up remaining space */
  text-align: end;
}

footer {
  text-align: center;
  margin-top: 1.5em;
  padding: 1em 1em;
}

footer a:link{
  color: darkgray;
}

footer a:visited{
  color: cornflowerblue;
}

#backToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  padding: 12px 18px;
  background-color: #004080;
  color: white;
  text-decoration: none;
  border-radius: 50%;
  aspect-ratio: 1/1;
  width: 20%;
  max-width: 100px;
  font-size: 1em;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.3s;
}

.hidden {
  display: none;
}

.block {
  display: block;
}


@media screen and (max-width: 1056px) {
  .hamburger {
    display: flex;
    padding-left: 1.2em;
    padding-top: 1.2em;
    padding-bottom: 1.2em;
  }

  .menu-toggle:checked ~ .nav-right {
    display: flex;
  }

  .nav-right {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .nav-left{
    display: none;
  }

  .nav-right li:hover {
    transform: none;
  }

  .menu-toggle:checked ~ .hamburger span:first-child {
    position: absolute;
    rotate: 45deg;
  }

  .menu-toggle:checked ~ .hamburger span:last-child {
    position: absolute;
    rotate: -45deg;
  }

  .menu-toggle:checked ~ .hamburger span:nth-child(2) {
    display: none;
  }

  .nav-links{
    display: block;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgb(3, 52, 99);
  }

  .nav-links ul{
    display: none;
    padding-left: 1.2em;
  }

  .nav-links ul:last-child {
    padding-bottom: 1.2em;
  }

  header{
    height: 70%;
    margin: 0 auto;
  }

  header h1{
    font-size: 1em;
  }

  .header h2{
    font-size: 0.75em;
  }

  .content{
    display: flex;
    flex-direction: column;
  }
  .content-container-home{
    display: flex;
    flex-direction: column;
  }

  .grid{
    display: grid;
    grid-template-columns: 24fr 24fr 24fr;
    row-gap: 1em;
  }

  .info > p[class="larger"]{
    font-size: 1em;
  }

  .back-home{
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5em;
  }

  .description{
    padding: 1em;
    border-radius: 30px;
  }

  #dates{
    width:auto;
  }

  .dates-list li {
    display: block;
  }

  span .detail {
    display: block;
  }

  .date {
    display: block;
  }

  .button-row{
    flex-direction: column;
    gap: 0em;
    font-size: 1.5em;
  }

}

@media screen and (max-width: 480px) {


  .sponsor img{
    height: 32px;
    width: auto;
  }


  .header img{
    height: 35px;
  }

  h1 {
    font-size: 1.8em;
  }

  h2{
    font-size: 1.2em;
  }

  .content-dx{
    padding:0;
  }

  .subscription-form{
    padding-top:24px;
  }

  .info{
    padding-top: 10px;
  }

  .grid{
    display: grid;
    grid-template-columns: 50fr 50fr;
  }

  .subscription-form .button{
    width: 100%;
  }

}
