main {
  margin-top: 0em;
}

#hero-image {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg);
}

#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

#hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.2) 55%, transparent 100%);
  z-index: 2;
}


#videoDiv2 {
  width: 100%;
  margin: auto;
  display: block;
  position: relative;
  background-color: black;
  background-size: cover;
  top: 55px
}

/* This has been changed */
#video2 {
  width: 100%;
  height: auto;
  opacity: 0.8
}

#title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text);
  z-index: 12;
  pointer-events: none;
  text-align: center;
}

#title h1 {
  padding-top: 0;
  padding-left: 0;
  color: #ffffff;
  background: linear-gradient(to right, var(--accent) 50%, #ffffff 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sweepFill 1.8s ease-out 0.4s 1 forwards;
}

@keyframes sweepFill {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0% 0;
  }
}

#title h2 {
  padding-left: 0;
  color: #ffffff;
}

#title img {
  padding-left: 4%;
  padding-top: 6%;
}

#about-us-header {
  margin-top: -1%;
}

#about-us-container{
  scroll-margin-top: 55px;
  padding: 2%;
  padding-left: 2%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3em;
  margin-bottom: 2%;
  width: 55%;
  height: 20%;
  float: auto;
}

.section-desccription {
  width: 55%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  /* margin-bottom: 3em; */
}

#about-us-container .section-desccription {
  width: 90%;
}

#metrics-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 7%;
  margin-bottom: 9%;
}

#metrics-container div {
  margin-left: 5em;
  margin-right: 5em;
  padding: 2em 2.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-raised);
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(101, 200, 208, 0.85), 0 0 32px rgba(101, 200, 208, 0.55);
}

#metrics-container #majors-metric {
  box-shadow: 0 0 10px rgba(179, 27, 27, 0.85), 0 0 32px rgba(179, 27, 27, 0.55);
}

#metrics-container #members-metric h2,
#metrics-container #members-metric p,
#metrics-container #yearfounded-metric h2,
#metrics-container #yearfounded-metric p {
  color: var(--accent);
}

#metrics-container #majors-metric h2,
#metrics-container #majors-metric p {
  color: var(--accent-red);
}

#year-founded {
  width: 1.85em;
}

#images-container {
  margin-top: 4em;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
}

#images-container img {
  margin-left: .5em;
  margin-right: .5em;
  margin-bottom: 1em;
  border: 1px solid black;
}

.section-separator {
  margin-top: 4em;
  margin-bottom: 4em;
  border: 1px solid #DADADA;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.carousel-viewport {
  width: 948px; /* 3 × card width + 2 × 8px gap  948*/
  overflow: hidden;
}

#events-container {
  display: flex;
  transition: transform 0.4s ease-in-out;
  gap: 8px;
}

.event-card {
  flex: 0 0 312px; /* fixed width for clean slicing */
  height: 460px;
  background: var(--bg-raised);
  box-shadow: 0 0 40px rgba(101, 200, 208, 0.15), 0 4px 16px rgba(0, 0, 0, 0.25);
  color: white;
}

.event-card img {
  width: 100%;
  height: auto;
}

.event-card h4,
.event-card p {
  margin-left: 20px;
  margin-right: 20px;
}

.carousel-button {
  background: none;
  border: none;
  font-size: 2em;
  cursor: pointer;
  color: white;
  padding: 0 10px;
  background-color: rgba(131, 130, 130, 0.3);
  z-index: 2;
  height: 100%;
  border-radius: 100px;
}

.carousel-button:hover {
  background-color: rgba(22, 22, 22, 0.3);
}

.event-card img {
  width: 100%;
}

.event-card h4 {
  margin-left: 20px;
  margin-top: .5em;
  margin-bottom: .5em;
}

.event-card p {
  margin-left: 20px;
  margin-right: 20px;
}

#goals-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  width: 60%;
}

.picture-goals{
  display: flex;
  flex-direction: row;
  width: 100%;
}

#cayuga-description {
  height: 9.4em;
}

#ocean-description {
  height: 7.8em;
}

#goals-container h4 {
  margin-bottom: .25em;
}

#description-container {
  display: flex;
  /* flex-direction: column; */
  margin-bottom: auto;
  margin-right: auto;
}

.goal-test{
  margin-top: 10%;
  margin-left: auto;
  margin-right: 10%;
}

.goal {
  width: 600px;
  height: 460px;
  margin: 1em;
  background: var(--bg-raised);
  box-shadow: 0 0 40px rgba(101, 200, 208, 0.15), 0 4px 16px rgba(0, 0, 0, 0.25);
  float: left;
}

.goal img {
  width: 100%;
}

.goal h4 {
  margin-left: 20px;
  margin-top: .5em;
  margin-bottom: .5em;
}

.goal p {
  margin-left: 20px;
  margin-right: 20px;
}

@media (max-width: 700px) {
  #description-container {
    flex-direction: column;
  }

  #title {
    text-align: center;
    color: var(--text);
  }

  #title h1 {
    padding: 0;
    font-size: 40px;
  }

  #title h2 {
    padding: 0;
    font-size: 20px;
  }

}

@media (max-width: 620px) {

  #about-us-header {
    margin-top: 1.5em;
  }

  .section-desccription {
    width: 85%;
  }

  #metrics-container {
    flex-direction: column;
    align-items: center;
  }

  #metrics-container div {
    margin-bottom: 1.5em;
  }

  #images-container {
    margin-top: 1.5em;
  }

  .section-separator {
    margin-top: 2em;
    margin-bottom: 2em;
  }

  #goals-container {
    width: 97%;
    justify-content: center;
    margin-left: 0;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  main {
    margin-bottom: 2em;
  }

  #goals-container img,
  .goal img {
    width: 100%;
    height: auto;
    margin: 0;
    display: block;
    object-fit: cover;
    max-width: 100%;
  }

  .goal,
  .goal-test {
    width: 95%;
    max-width: 700px;
    height: auto;
    margin: 1rem auto;
    background: var(--bg-raised);
    float: none;
    box-sizing: border-box;
    padding-bottom: 0.5rem;
  }


  #current-goal {
    margin-top: 1.5em;
    text-align: center;
  }

  #cayuga-description,
  #ocean-description {
    height: auto;
    text-align: left;
  }

  #goals-container h4 {
    margin-bottom: .25em;
    text-align: center;
  }

  .goal p,
  .goal h4 {
    margin-left: 20px;
    margin-right: 20px;
  }

  #description-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  #description-container h4 {
    font-size: 20px;
  }

  .picture-goals{
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

}

@media (min-width: 1500px) {
  #goals-container {
    margin-left: 20em;
  }
}

@media (min-width: 621px) {
  #description-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    gap: 1rem;
  }

  .picture-goals{
    display: flex;
    flex-direction: row;
    flex: 0 0 100%;
    justify-content: center;
    gap: 1rem;
    box-sizing: border-box;
  }

  .picture-goals .goal {
    float: none;
    width: calc(50% - 2rem);
    max-width: 600px;
    box-sizing: border-box;
    margin: 1rem 0;
  }

  .goal-test {
    width: 100%;
    max-width: 900px;
    margin: 1rem auto 2rem auto;
    box-sizing: border-box;
  }
}