.event-hero {
  height: 50vh;
  background-image: url("../images/event/event-hero.webp");
  background-position: center;
  background-size: cover;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: relative;
}

.event-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  -webkit-border-radius: 6.9vw;
  -moz-border-radius: 6.9vw;
  border-radius: 6.9vw;
}

.hero-content {
  position: relative;
  color: white;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0;
}

.events-container {
  max-width: 1200px;
  margin: -3rem auto 4rem;
  padding: 0 1rem;
  position: relative;
}

.event-list {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 2rem;
}

.event-card {
  background: white;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.event-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  gap: 1rem;
}

.event-thumbnail {
  width: 120px;
  height: 80px;
  overflow: hidden;
  border-radius: 8px;
}

.event-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

/* 3000+ */
.event-content-container > div:nth-child(2) > div:nth-child(1) {
  background-image: url("../images/event/event1_image1.webp");
}

/* Event 1, image 2*/
.event-content-container > div:nth-child(3) > div:nth-child(2) {
  background-image: url("../images/event/event1_image2.webp");
  background-size: cover;
}

/* Event 1, last event content */
.event-content-container > div:nth-child(3) {
}

/* Thumbnail 2 */
div.event-card:nth-child(2)
  > div:nth-child(1)
  > div:nth-child(1)
  > img:nth-child(1) {
  object-fit: contain;
}

/* Event 2, image 1 */
div.event-card:nth-child(2) > div:nth-child(2) > div:nth-child(1) {
  background-image: url("../images/event/event2_image1.webp");
}

/* Event 2, image 2*/
div.event-card:nth-child(2) > div:nth-child(3) > div:nth-child(2) {
  background-image: url("../images/event/event2_image2.webp");
}

/* Image 3_1 */
div.event-card:nth-child(3) > div:nth-child(2) > div:nth-child(2) {
  background-image: url("../images/event/event3_image1.webp");
}

/* Image 3_2 */
div.event-card:nth-child(3) > div:nth-child(3) > div:nth-child(2) {
  background-image: url("../images/event/event3_image2.webp");
}

/* Thumbnail 3, 4 */
div.event-card:nth-child(3)
  > div:nth-child(1)
  > div:nth-child(1)
  > img:nth-child(1),
div.event-card:nth-child(4)
  > div:nth-child(1)
  > div:nth-child(1)
  > img:nth-child(1) {
  object-fit: contain;
}

/* Image 4_1 */
div.event-card:nth-child(4) > div:nth-child(2) > div:nth-child(2) {
  background-image: url("../images/event/image4_1.webp");
  background-size: cover;
}

.event-header h2 {
  flex: 1;
  margin: 0;
  font-size: 1.25rem;
}

.expand-btn {
  background: var(--accent-color);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-content {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  padding: 0 1rem;
  display: flex;
  gap: 2rem;
  margin-left: 3rem;
  margin-right: 3rem;
}

.event-content-img {
  width: 50%;
  min-height: 100%;
  border-radius: 1.38vw;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: rgb(191, 191, 191);
  overflow: hidden;
}

.event-content-text {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-card.active .event-content {
  max-height: 2000px;
  padding: 1rem;
  margin-bottom: 3rem;
}

.event-card.active .expand-btn .icon {
  transform: rotate(45deg);
}

.event-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition);
  width: 50%;
}

.event-cta:hover {
  background: #2d7a94;
}

@media (max-width: 768px) {
  .event-header {
    flex-direction: column;
    text-align: center;
    display: flex;
    flex-direction: row;
  }
}

@media (max-width: 1150px) {
  .event-content {
    flex-direction: column;
    align-items: center;
  }

  .event-card.active .event-content-img {
    height: 22rem;
  }

  .event-list {
    margin-right: 5rem;
    margin-left: 5rem;
  }

  .event-content-text {
    width: 100%;
  }

  .event-content-img {
    width: 100%;
  }

  div.event-card:nth-child(3) > div:nth-child(3) > div:nth-child(2) {
    background-position-y: center;
  }
}

@media (width <= 770px) {
  .event-list {
    margin-right: 2rem;
    margin-left: 2rem;
  }
}

@media (width <= 550px) {
  .event-content {
    margin-left: 0rem;
    margin-right: 0rem;
  }

  .event-card.active .event-content {
    margin-bottom: 0 !important;
  }

  .event-content-img {
    background-size: cover;
    height: 11rem !important;
  }
}

@media (width <= 630px) {
  .event-header h2 {
    font-size: 13px !important;
    text-align: left;
  }
}

/* page videos */
.event-video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .event-video {
    max-width: 100%;
  }
}
