/*---ourpartners---*/

.wrapper {
  max-width: 1000px;
  width: 100%;
  position: relative;
}
.wrapper i {
  top: 50%;
  height: 50px;
  width: 50px;
  cursor: pointer;
  font-size: 1.25rem;
  position: absolute;
  text-align: center;
  line-height: 50px;
  background-color: #ffffff;
  border-radius: 50%;
  border: 2px solid #00ACED;
  box-shadow: 0 3px 6px rgba(0,0,0,0.23);
  transform: translateY(-50%);
  transition: transform 0.1s linear;
}
.wrapper i:hover {
  background-color: #00ACED;
  border: 0px solid #ffffff;
}

.fa-angle-left {
  color: #00ACED;
}
.fa-angle-right {
  color: #00ACED;
}
.fa-angle-left:hover {
  color: #ffffff;
}
.fa-angle-right:hover {
  color: #ffffff;
}
.wrapper i:active {
  transform: translateY(-50%) scale(0.85);
}
.wrapper i:first-child {
  left: -22px;
  z-index: 1;
}
.wrapper i:last-child {
  right: 0px; /* แก้ไขจาก 0px เป็น -22px เพื่อให้สอดคล้องกับสไตล์ใน media query */
  z-index: 1;
}
.wrapper .carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% / 3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* gap: 30px; */
  border-radius: 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0px;
  margin: 5px;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel.no-transition {
  scroll-behavior: auto;
}
.carousel.dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.carousel.dragging .card {
  cursor: grab;
  user-select: none;
}
.carousel :where(.card, .img) {
  display: flex;
  justify-content: center;
  align-items: center;
}
.carousel .card {
  display: flex;
  scroll-snap-align: start;
  height: 300px;
  list-style: none;
  background: #ffffff;
  cursor: pointer;
  padding-bottom: 15px;
  flex-direction: column;
  border-radius: 20px;
  width: 300px;
  justify-content: flex-start;
  padding-top: 15%;
}
.carousel .card .img {
  /* background: #8B53FF; */
  height: 80px;
  width: 150px;
}
.card .img img {
  height: 100px;
  width: 150px;
  object-fit: scale-down;
  border-radius: 9%;
}
.carousel .card h2 {
  font-weight: 500;
  font-size: 30px;
  margin: 0;
  margin-top: 15px;
  margin-bottom: 5px;
}
.carousel .card span {
  color: #6A6D78;
  font-size: 20px;
}
.sec3Line {
  margin: 10px 0;
  width: 80%;
  height: 3px;
  background-color: #00ACED;
}
.groupcardimg {
  display: flex;
}
.card .img img:hover {
  transform: scale(1.20);
  transition: 0.5s;
}
@media (min-width:1000px) and (max-width:1919px) { 
  .wrapper .carousel {
    grid-auto-columns: calc((100% / 2) - 0px);
  }
  .wrapper {
    max-width: 650px;
  }
  .textcontainer_sec2_1 {
    text-align: center;
    font-size: 30px;
  } 
  .wrapper i:first-child {
    left: -22px;
    z-index: 1;
  }
  .wrapper i:last-child {
    right: 0px;
    z-index: 1;
  }

}

@media (max-width: 1199px) {
  .wrapper .carousel {
    grid-auto-columns: 100%;
  }
  .wrapper {
    max-width: 50%;
    width: 100%;
  }
  .card .img img {
    height: 70px;
    width: 125px;
  }
  .carousel .card .img {
    /* background: #8B53FF; */
    height: 80px;
    width: 150px;
  }
  .carousel .card {
    scroll-snap-align: start;
    height: 250px;
    padding-bottom: 0px;
    width: 100%;
  }
  .carousel .card h2 {
    font-size: 20px;
    margin: 30px 0 5px;
    width: 80%;
  }
  .sec3Line {
    margin-top: 30px;
  }
  .wrapper i:first-child {
    left: -22px;
    z-index: 1;
  }
  .wrapper i:last-child {
    right: -22px; /* แก้ไขจาก 0px เป็น -22px เพื่อให้สอดคล้องกับสไตล์ใน media query */
    z-index: 1;
  }
}

.dark-mode .wrapper i {
  border: 2px solid #ffffff;
  background-color: rgb(38, 38, 38);
}
.dark-mode .fa-angle-left {
  color: #ffffff;
}
.dark-mode .fa-angle-right {
  color: #ffffff;
}
.dark-mode .wrapper i:hover {
  border: 2px solid rgb(38, 38, 38);
  background-color: #ffffff;
}
.dark-mode .fa-angle-left:hover {
  color: rgb(38, 38, 38);
}
.dark-mode .fa-angle-right:hover {
  color: rgb(38, 38, 38);
}
