.activities-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: auto;
  animation: fadeIn 1s ease-in;
  background-color: white;
}

.main-heading {
  margin-top: 5rem;
  font-size: 3.6rem;
  margin-bottom: 4rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}

.conference-title {
  font-size: 2.4rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 2rem;
  border-bottom: 3px solid red;
  padding-bottom: 0.5rem;
  display: inline-block;
  animation: slideIn 1s ease-in-out;
}

.conference-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  height: 60vh;
  flex-wrap: nowrap;
  overflow: hidden;
  background-color: white;
}

/* Poster section */
.poster {
  width: 35%;
  height: 100%;
  margin-right: 2%;
  animation: zoomIn 1s ease-in-out;
  background-color: white;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Slideshow section */
.slideshow {
  width: 65%;
  height: 100%;
  position: relative;
  animation: slideInRight 1s ease-in-out;
  overflow: hidden;
  background-color: white;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slider .list {
  display: flex;
  transition: transform 1s ease;
  height: 100%;
}

.slider .list .item {
  width: 100%;
  flex: 1 0 100%;
}

.slider .list img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Slider buttons */
.buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

/* Button styles */
#prev,
#next {
  background: rgba(120, 120, 120, 0.5);
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 2rem;
  color: var(--color-primary);
  border-radius: 5px;
}

#prev:hover,
#next:hover {
  background: rgba(255, 255, 255, 1);
}

.dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.dots li {
  list-style: none;
  width: 1rem;
  height: 1rem;
  margin: 0 0.5rem;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.dots li.active {
  background-color: var(--color-primary);
}

/* Conference details */

.conference {
  margin-bottom: 5rem;
  border-bottom: 1px solid red;
}
.conference-details {
  margin-top: 2rem;
  animation: fadeInUp 1s ease-in;
}

.details-heading {
  font-size: 2rem;
  color: var(--color-primary);
  border-bottom: 3px solid red;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.conference-details p {
  font-size: 1.6rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.conference-date {
  display: block;
  text-align: right;
  font-size: 1.2rem;
  color: #888;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(10rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media screen and (max-width: 48em) {
  .conference-content {
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  .poster,
  .slideshow {
    width: 100%;
    height: auto;
    margin-right: 0;
    margin-bottom: 2rem;
  }

  .slider .list {
    display: flex;
    flex-direction: row;
    transition: transform 1s ease;
    height: auto;
  }

  .slider .list .item {
    width: 100%;
    flex: 1 0 100%;
    height: auto;
  }

  .slider .list img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .buttons {
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
  }
}
