.medium-carousel {
  display: flex;
  overflow-x: auto; /* Allow horizontal scrolling */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on touch devices */
  scrollbar-width: none; /* For Firefox */
  margin:  0em 0.625em;
  font-size: 1em;
}

.medium-carousel p{
  font-size: 1.5em;
  color: black;
}
.medium-carousel p:hover{
  color: #007bff;
}
.medium-carousel::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Opera */
}

.medium-carousel-card {
  position: relative; /* Enables absolute positioning inside the card */
  flex: 0 0 25em;
  margin: 0.6em 0em 0.6em 1.9em;
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.medium-carousel-card img {
  width: 100%;
  height: 12.5em;
  object-fit: cover;
}

.medium-carousel-card-content {
  padding: 22px 1em 1em 1em;
}

.medium-carousel-author {
  display: flex;
  align-items: center;
  margin-top: 0.625em;
}
.medium-carousel-author p {
  margin: 0; /* Remove any default margin from the paragraph */
}
.medium-carousel-author img {
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  margin-right: 0.625em;
}

.medium-carousel-controls {
  display: flex;
  justify-content: center;
  margin-top: 0.625em;
}


.icon-bottom-right {
  position: absolute;
  bottom: 0.75em;
  right: 0.75em;
}

.icon-bottom-right img {
  width: 1.25em;
  height: 1.25em;
}

.whole-medium-carousel h1{
  margin: 0 auto;
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
}


.whole-medium-carousel{
  padding: 6rem 0;
}

.whole-medium-carousel h3{
  text-align: center;
}



/* Media query for tablets */
@media (width <= 1000px) {

}

@media (width <= 600px) {
  .whole-medium-carousel{
    padding: 1rem 0;
  }
  .medium-carousel-card {
    flex: 0 0 10em;
  }
  .medium-carousel p{
    font-size: 1em;
    color: black;
    margin-bottom: 0;
  }
  .medium-carousel-card-content {
    padding: 0.3125em 0.625em;
  }
  .volunteers-section p{
    width: 95%;
  }
}

/* Media query for mobile devices */
@media (width <=  480px) {

}


