.header {
    overflow: hidden;
    background-color: transparent;
    position: sticky;
    top: 0;
    z-index: 2;
    transition: all 0.3s;
    height: 80px;
    color: white;
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.5s ease, height 0.5s ease, color 0.5s ease;
    font-size: 16px;
}

h1 {
  font-size: 30px;
  font-weight: 300;
}

h2 {
  font-size: 24px;
  font-weight: 300;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  color: #4a4a4a;  
  font-size: 18px;  
  font-weight: 300;  
  line-height: 1.5;  
}

.section p {
  font-family: 'Roboto', sans-serif;
  color: #4a4a4a;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  text-align: justify;
}


/* HEADER */ 

.logo {
    position: relative;
    height: 50px;
    width: 400px;
    overflow: hidden;
}

.logo-img {
    position: absolute;
    top: 0;
    left: 0;
    height: 50px;
    transition: opacity 0.5s ease;
    padding-left: 40px
}

#logoImg1 {
    opacity: 1;
}

#logoImg2 {
    opacity: 0;
}


.nav-links {
    display: flex; 
}

.nav-links a {
    display: block;
    color: inherit;
    text-align: center;
    padding: 28px 20px;
    text-decoration: none;
}

/* hides burger icon on wider screen widths*/
.nav-links .icon {
  display: none;
}

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

  /*Only displays the burger icon if responsive class is not on */
  .nav-links:not(.responsive) a:not(.icon){
  display: none;}

  .nav-links a.icon {
    display: flex;
  }

  /* Allows all the links to be visible */
  .header{
    overflow: visible !important;
  }

  /* Styles the entire dropdown format */
  .nav-links.responsive{
    position: absolute;
    top: 80px;
    display: flex;
    right: 0;
    left: 0;
    flex-direction: column;
    z-index: 1000;
    background-color:rgba(166, 166, 166, 0.5) ;
    max-width: 100%;
  }

  /* Styles individual nav-links in dropdown format */
  .nav-links.responsive a {
    position: static;
    display: block;
    width: auto;
    text-align: left;
    padding: 16px 20px;
  }

  .nav-links a.icon{
    text-align: center;
  }
}

/* HERO IMAGE*/
.image-container {
    position: relative;
    z-index: 1;
    margin-top: -80px; 
    width: 100%;  
}

.image-container img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.centered-text {
    position: absolute;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

.centered-image {
  display: grid;
  justify-items: center;
}

/* FOOTER */

.footer-container {
    background-color: #d7345d;
    width: 100%;
    margin-top: 40px;
  }
  
  .custom-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px; 
  }
  
  .footer-left,
  .footer-middle,
  .footer-right {
    flex: 1;
    text-align: center;
  }
  
  .footer-logo {
    max-width: 300px; 
    height: auto;
  }



/* Talks Container to isolate Talks */

.talks-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-items: center;
  margin: 0 auto;
  max-width: 100%;
}

/* Media query to get additional resources to stack vertically on mobile */ 
@media screen and (max-width: 800px){
  .talks-grid-container{
    grid-template-columns: 1fr;
  }
  .talks-thumbnail img{
    height: auto;
  }
}

/* More resources section */
.talks-grid-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  text-align: left;
  white-space: nowrap;  
  overflow: hidden;  
  font-weight: 300;
  text-overflow: ellipsis;  
  font-family: 'Roboto', sans-serif;
}

.talks-grid-item p {
  text-align: left;
  font-family: 'Roboto', sans-serif;
  color: #4a4a4a;  
  font-size: 18px;
  font-weight: 300; 
  line-height: 1.5;  
}

/* Specifying min height + width ensures grid items do not overflow grid container */
.talks-grid-item{
  max-width: 100%;
  min-height: 0;
  min-width: 0;
}

.talks-thumbnail {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-align: center; /* aligns thumbnails to center */
}

.talks-thumbnail img {
  max-width: 100%;
  height: 40vh;
  object-fit: cover;
}

@media screen and (max-width: 1100px) {
  .talks-thumbnail img { 
    height: 30vh;
  }
}

.talks-thumbnail:hover {
  transform: scale(1.1);
}

 
/* Container for outreach */
.outreach-container {
  margin: 0 auto;
  padding: 0 30px;
}

.outreach h1, .outreach h2 {
  text-align: left;
  font-family: 'Roboto', sans-serif;
  color: #000000;
}


/* Custom bullet points for lists */
.custom-list {
  list-style-type: none;
  counter-reset: list-counter;
  text-align: left;
  flex: 1;
  margin-right: 20px; 
}

.custom-list li {
  counter-increment: list-counter;
  position: relative;
  margin-bottom: 1em;
  text-align: left;
}

.custom-list li::before {
  content: counter(list-counter);
  position: absolute;
  left: -2em;
  text-align: center;
  width: 1.2em;
  border: 1px solid black;
  border-radius: 50%;
  padding: 2px;
}


/* Resource Pack: The Mysterious Case...*/ 
.centered-image img {
  max-width: 100%;
  height: auto;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

@media screen and (min-width:800px) {
  .centered-image img{
    width: 600px;
    height: auto;
  }
}

.centered-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  color: white;
  font-family: 'Roboto', sans-serif;
  background-color: rgba(166, 166, 166, 0.5); 
  padding: 10px 20px; 
  border-radius: 0px; 
}

.image-container {
  position: relative;
}


/* Contact to access resource pack*/
.email-link {
  color: inherit; 
  text-decoration: none; 
  cursor: pointer;
}

.email-link:hover {
  text-decoration: underline; 
}
