* {
  font-family: Montserrat;
}

body {
  margin: 0;
  width: 100vw;
}

.panel {
  padding: 0px 1.5rem;
}

h1,
h2 {
  font-weight: 700;
  margin: 0;
}

a {
  text-decoration: none;
}

p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 1rem 0;
}

.top {
  height: 100vh;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 2rem;
  background-image: url('../assets/community-partner-page/landing/owl5.png');
  background-color: rgba(255, 255, 255, 0.6);
  background-blend-mode: lighten;
}

.top .panel-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.top h1 {
  color: #002244;
  font-size: 4rem;
}

.top h2 {
  color: #002244;
  font-size: 3.5rem;
}

.top h4 {
  font-size: 1.5rem;
  margin: 1rem;
  /* max-width: 340px; */
}

.top button {
  color: white;
  background-color: #002244;
  padding: 1rem 2.5rem;
  font-size: 1.5rem;
  font-family: Montserrat;
  font-weight: 300;
  border-radius: 5px;
  border: none;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
}

/* Panel Two Video and Emily Angulalik */

.two .container {
  display: block;
  height: auto;
  padding-top: 4rem;
  border-top-left-radius: 2.5rem;
  border-top-right-radius: 2.5rem;
}

.two .title {
  text-align: center;
}

/* Goose Video */

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 30px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* NOTE THREE WAS SCRAPPED BECAUSE IT'S FROM AN OLDER VERSION OF THE MOCKUP */
/* COLLAPSIBLE CONTAINER STYLING */

.collapsible-container {
  border: none;
  overflow: hidden;
}

.collapsible-header {
  padding-top: 60px;
  padding-bottom: 60px;
  font-weight: bold;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.audio-snippet-button {
  margin-right: 1rem;
}
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.collapsible-container.expanded .collapsible-content {
  max-height: 2000vh;
  padding-bottom: 60px;
}

.collapsible-header h3 {
  font-weight: 700;
}

/* PANEL FOUR */

.four {
  background-image: url(../assets/community-partner-page/landing/texture4.jpg);
  background-color: rgba(255, 255, 255, 0.6);
  background-blend-mode: lighten;
}

/* PANEL FIVE */
.five {
  background-color: #002244;
  background-image: url(../assets/community-partner-page/landing/five/fivebackground.svg);
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  color: white;
  position: relative;
}

.five p {
  text-shadow:
    0 0 5px black,
    0 0 5px black,
    0 0 5px black;
}

.background-component {
  display: none;
}

#five-description {
  margin-bottom: 2rem;
}

.five-monitoring {
  margin: 2rem 0;
  background-color: white;
  border-radius: 2.5rem;
  padding: 30px;
  text-align: center;
}

.five-monitoring p {
  text-align: left;
  margin: 10px 0px;
  font-size: 1rem;
  text-shadow: none;
  color: #002244;
}

.five-bottom {
  display: flex;
  flex-direction: column;
}

.five-bottom p {
  order: 1;
  line-height: 1.1;
}

.five-bottom img {
  order: 2;
  margin-top: 2rem;
  width: 100%;
}

/* PANEL SIX */
.six {
  background-color: #c1d8e9;
  padding: 0;
}

.six .collapsible-header {
  margin-left: 1.5rem;
}

.six .container {
  display: flex;
  flex-direction: column;
}

.six-background {
  order: 3;
  position: relative;
  width: 100vw;
  z-index: 1;
  height: 30vh;
}

#six-description {
  order: 1;
}

#six-links-1 {
  order: 2;
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

#six-links-2 {
  order: 4;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin-top: 2rem;
}

.six-link {
  z-index: 7;
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
  /* background-color: #ffffff78; */
}

.six-link img {
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
  /* object-fit: contain; */
  width: 100%;
}
.six-link p {
  overflow-wrap: normal;
  font-size: 1rem;
  margin: 0.5rem;
  text-decoration: none;
  font-weight: 500;
}

.six iframe {
  width: 100%;
  order: 5;
}

.six-background img {
  position: absolute;
  height: 60%;
  width: auto;
}

#tree1 {
  left: 0px;
  bottom: 90px;
}

#tree2 {
  right: 110px;
  bottom: 20px;
}

#tree3 {
  right: 10px;
  bottom: 5px;
}

#snow {
  left: 0px;
  bottom: 0px;
}

#caribou {
  left: 60px;
  bottom: 10px;
}

/* PANEL SEVEN */
.seven {
  background-image: url(../assets/community-partner-page/landing/texture4.jpg);
  background-color: rgba(24, 24, 24, 0.771);
  background-blend-mode: darken;
  color: white;
}

.seven .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.seven-left,
.seven-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 500px;
}

.seven .container a {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.seven-slide {
  border-radius: 20px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: #c1d8e9;
}

.seven-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.seven-br {
  margin-bottom: 2rem;
}

.eight {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem !important;
}

.eight .icon {
  height: 50%;
  width: auto;
  flex: 2;
  background-color: #002244;
  border-radius: 30px;
  padding: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eight .icon img {
  width: 60%;
  height: auto;
  margin: auto;
  text-align: center;
}

.eight .eight-text {
  flex: 3;
}

/* CUSTOM STYLING FOR WHAT IS GENOMICS SLIDESHOW */

@media only screen and (max-width: 1049px) {
  .four.collapsible-container.expanded .collapsible-content {
    max-height: 90vh;
  }

  .slideshow-container {
    max-width: 1200px;
    position: relative;
    margin: auto;
    height: 70vh;
    display: flex;
    align-items: center;
  }

  .slideshow-container h2 {
    font-size: 1.1rem;
  }

  .slideshow-container p {
    font-size: 0.8rem;
  }

  /* Base style for all slides */
  .slide {
    width: 100%;
    height: 100%;
    padding: 2rem;
    background-color: #002244;
    border-radius: 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Prevent anything from spilling out of the slide's rounded corners */
  }

  .slide-1 {
    background-color: #002244;
    background-image: url(../assets/community-partner-page/landing/genomics/slide-1-bg.png);
    color: white;
  }

  .slide-1 .slide-content {
    display: contents;
  }

  .slide-1 h2,
  .slide-1 h3 {
    color: white;
  }

  /* Slide 2: Light blue background */
  .slide-2 {
    background-color: #c1d8e9;
    background-image: url(../assets/community-partner-page/landing/genomics/slide-2-bg.png);
    color: #002244;
    /* Use dark text */
  }

  .slide-2 h2,
  .slide-2 h3 {
    color: #002244;
  }

  .slide-3 {
    background-color: #002244;
    background-image: url(../assets/community-partner-page/landing/genomics/slide-3-bg.png);
    color: white;
  }

  .slide-3 h2,
  .slide-3 h3 {
    color: white;
  }

  /* Slide 4: Light blue background */
  .slide-4 {
    background-color: #c1d8e9;
    background-image: url(../assets/community-partner-page/landing/genomics/slide-4-bg.png);
    color: #002244;
  }

  .slide-4 h2,
  .slide-4 h3 {
    color: white;
  }

  /* Slide 5: Dark background */
  .slide-5 {
    background-color: #002244;
    background-image: url(../assets/community-partner-page/landing/genomics/slide-5-bg.png);
    color: white;
  }

  .slide-5 h2,
  .slide-5 h3 {
    color: white;
  }

  .slide-content,
  .slide-image {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .slide-content {
    text-align: left;
    overflow-y: auto;
    padding-right: 1rem;
  }

  .slide-image {
    /* No special styles needed here, it will center its content by default */
  }

  /* This rule now correctly targets ALL images in the slideshow */
  .slide img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .slide-image > img {
    text-align: center;
    width: 80%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 10px;
    margin: auto auto;
  }

  .slide.slide-full-image {
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
  }

  .slide.slide-full-image .slide-content {
    flex: 0 1 auto;
    height: auto;
    width: 100%;
    text-align: center;
    overflow-y: visible;
  }

  .slide.slide-full-image .slide-image {
    flex: 1 1 auto;
    width: 100%;
  }

  /* Specific slide content styling */
  .slide h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
  }

  .slide p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .alphabet {
    font-weight: bold;
    font-family: monospace;
    font-size: 1.2rem;
  }

  .sub-columns {
    display: flex;
    gap: 1rem;
  }

  .sub-column {
    flex: 1;
  }

  .sub-column img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0.5rem 0;
  }

  .placeholder-text {
    color: #ccc;
    font-size: 2rem;
    text-align: center;
    margin: auto;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 900px) {
  /* FONT STYLING  */
  .hidden {
    display: none;
  }

  h1,
  h2 {
    font-weight: 700;
    margin: 0;
  }

  h2 {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 50px;
  }

  p {
    font-size: 1.5rem;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 1050px) {
  /* FONT STYLING  */

  h2 {
    font-weight: 700;
    font-size: 48px;
    margin-bottom: 50px;
  }

  /* Intro Panel */

  .panel {
    padding: 0px 4rem;
    border-radius: 0;
    margin: 0;
  }
  .top .panel-inner {
    position: absolute;
    top: 25vh;
    right: 120px;
    width: 40%;
  }

  .top h1 {
    color: #002244;
    font-size: 100px;
  }

  .top h2 {
    color: #002244;
    font-size: 70px;
  }

  .top h4 {
    font-size: 28px;
  }

  .top button {
    color: white;
    background-color: #002244;
    font-size: 24px;
    font-family: Montserrat;
    font-weight: 300;
    border-radius: 5px;
    border: none;
    margin-left: auto;
    margin-right: auto;
  }

  /* Panel 2 */

  .two .title p {
    font-size: 2rem;
  }

  .two .title h2 {
    margin-bottom: 2rem;
  }

  /* Panel 3 */

  .three h2 {
    font-size: 40px;
  }

  .three img {
    height: 80vh;
  }

  /* Collapsing Styles */

  .collapsible-container.expanded .collapsible-content {
    max-height: 2000vh;
    /* adjust as needed or use JS for auto-height */
    padding-bottom: 60px;
  }

  .collapsible-header h3 {
    font-size: 42px;
    font-weight: 700;
  }

  /* Panel 4 */

  .four .collapsible-header h3 {
    color: #002244;
  }

  /* Panel 5 */

  .five p {
    font-weight: 600;
    font-size: 24px;
    margin: 60px 0px;
    z-index: 5;
  }

  .five-top {
    position: relative;
    z-index: 5;
    height: 120vh;
  }

  #five-description {
    width: 60%;
    position: absolute;
    margin: 0px;
    /* left: 60px; */
  }

  .five-points {
    position: absolute;
    width: 50%;
    top: 250px;
    left: 60px;
  }

  .five-monitoring {
    position: absolute;
    right: 0px;
    top: 0px;
    width: 35%;
    background-color: white;
    border-radius: 40px;
    padding: 30px;
    text-align: center;
  }
  .five-monitoring img {
    width: 100%;
  }

  .five-monitoring p {
    text-align: left;
    margin: 10px 0px;
    font-size: 18px;
    text-shadow: none;
    color: #002244;
  }

  .five-bottom {
    display: block;
    z-index: 5;
  }

  .five-bottom img {
    float: left;
    margin: 0 1.5rem 1.5rem 1.5rem;
    width: 50%;
  }

  .five-bottom p {
    margin: 0px 10px;
  }

  .background-component {
    display: block;
  }

  .five .background-component {
    position: absolute;
    z-index: 1;
  }

  .five #fish-1 {
    top: 380px;
    left: 40px;
  }

  .five #fish-2 {
    top: 920px;
    left: 40px;
  }

  .five #fish-3 {
    top: 900px;
    right: 210px;
  }

  .five #star-1 {
    top: 780px;
    left: 0px;
  }

  .five #star-2 {
    top: 610px;
    left: 60%;
  }

  /* Panel 6 */

  .six {
    padding: 0;
  }
  .six .collapsible-header {
    margin-left: 60px;
  }

  .six .collapsible-content {
    height: 180vh;
    padding-bottom: 0px !important;
    position: relative;
  }

  .six-background {
    height: 90vh;
  }

  .six-background img {
    position: absolute;
    height: auto;
    width: auto;
  }

  #tree1 {
    left: 0px;
    bottom: 180px;
  }
  #caribou {
    left: 20px;
    bottom: 10px;
  }

  #tree3 {
    right: 10px;
    bottom: 50px;
  }

  #snow {
    width: 100%;
  }

  .six-link {
    position: absolute;
    z-index: 7;
    width: 290px;
    border-radius: 20px;
    background-color: #ffffff78;
  }

  .six .container {
    background: none;
    display: block;
  }

  #six-description {
    position: absolute;
    top: 0px;
    left: 40px;
    font-size: 24px;
    font-weight: 600;
    width: 35%;
  }

  .six-link img {
    height: 175px;
    width: 290px;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
  }

  .six-link p {
    font-size: 16px;
    font-weight: 600;
    margin: 10px;
  }

  #six-one {
    top: 0px;
    right: 35%;
  }

  #six-two {
    top: 0px;
    right: 7%;
  }

  #six-three {
    top: 330px;
    right: 45%;
  }

  #six-four {
    top: 330px;
    right: 17%;
  }

  .six iframe {
    width: 100%;
    height: 90vh;
  }

  /* Panel 7 */

  .seven .collapsible-header {
  }

  .seven .collapsible-content {
    padding-bottom: 0px !important;
    position: relative;
  }

  .seven .container {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }

  .seven-left,
  .seven-right {
    gap: 4rem;
    width: auto;
    max-width: none;
  }

  .seven-slide {
    border-radius: 40px;
  }

  .seven-br {
    margin-bottom: 10rem;
  }

  /* ==========================================================================
   SLIDESHOW STYLES (Final, Robust Version)
   ========================================================================== */

  /* Constrain the parent panel height */
  .four.collapsible-container.expanded .collapsible-content {
    max-height: 90vh;
  }

  .slideshow-container {
    max-width: 1200px;
    position: relative;
    margin: auto;
    height: 70vh;
    display: flex;
    align-items: center;
  }

  /* Base style for all slides */
  .slide {
    display: none;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background-color: #002244;
    border-radius: 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Prevent anything from spilling out of the slide's rounded corners */
  }

  .slide-1 {
    background-color: #002244;
    background-image: url(../assets/community-partner-page/landing/genomics/slide-1-bg.png);
    color: white;
  }

  .slide-1 h2,
  .slide-1 h3 {
    color: white;
  }

  /* Slide 2: Light blue background */
  .slide-2 {
    background-color: #c1d8e9;
    background-image: url(../assets/community-partner-page/landing/genomics/slide-2-bg.png);
    color: #002244;
    /* Use dark text */
  }

  .slide-2 h2,
  .slide-2 h3 {
    color: #002244;
  }

  .slide-3 {
    background-color: #002244;
    background-image: url(../assets/community-partner-page/landing/genomics/slide-3-bg.png);
    color: white;
  }

  .slide-3 h2,
  .slide-3 h3 {
    color: white;
  }

  /* Slide 4: Light blue background */
  .slide-4 {
    background-color: #c1d8e9;
    background-image: url(../assets/community-partner-page/landing/genomics/slide-4-bg.png);
    color: #002244;
  }

  .slide-4 h2,
  .slide-4 h3 {
    color: white;
  }

  /* Slide 5: Dark background */
  .slide-5 {
    background-color: #002244;
    background-image: url(../assets/community-partner-page/landing/genomics/slide-5-bg.png);
    color: white;
  }

  .slide-5 h2,
  .slide-5 h3 {
    color: white;
  }

  .slide-content,
  .slide-image {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .slide-content {
    text-align: left;
    overflow-y: auto;
    padding-right: 1rem;
  }

  .slide-image {
    /* No special styles needed here, it will center its content by default */
  }

  /* This rule now correctly targets ALL images in the slideshow */
  .slide img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .slide-image > img {
    text-align: center;
    width: 80%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 10px;
    margin: auto auto;
  }

  .slide.slide-full-image {
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
  }

  .slide.slide-full-image .slide-content {
    flex: 0 1 auto;
    height: auto;
    width: 100%;
    text-align: center;
    overflow-y: visible;
  }

  .slide.slide-full-image .slide-image {
    flex: 1 1 auto;
    width: 100%;
  }

  /* Specific slide content styling */
  .slide h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
  }

  .slide p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .alphabet {
    font-weight: bold;
    font-family: monospace;
    font-size: 1.2rem;
  }

  .sub-columns {
    display: flex;
    gap: 1rem;
  }

  .sub-column {
    flex: 1;
  }

  .sub-column img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0.5rem 0;
  }

  .placeholder-text {
    color: #ccc;
    font-size: 2rem;
    text-align: center;
    margin: auto;
  }

  .prev-btn,
  .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    user-select: none;
    border: none;
    z-index: 10;
  }

  .prev-btn {
    left: -50px;
  }

  .next-btn {
    right: -50px;
  }

  .prev-btn:hover,
  .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
  }

  /* Dots */
  .dots-container {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  .dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
  }

  .dot.active,
  .dot:hover {
    background-color: #717171;
  }

  .fade {
    animation-name: fade;
    animation-duration: 0.8s;
  }

  @keyframes fade {
    from {
      opacity: 0.4;
    }

    to {
      opacity: 1;
    }
  }
}
