/* Menerapkan box-sizing hanya untuk elemen-elemen di dalam .slideshow-container */
.slideshow-container * {
  box-sizing: border-box;
}

/* Menerapkan font Verdana hanya untuk elemen-elemen di dalam .slideshow-container */
.slideshow-container {
  font-family: Verdana, sans-serif;
}

/* Menyembunyikan elemen dengan class .mySlides hanya di dalam .slideshow-container */
.slideshow-container .mySlides {
  display: none;
}

/* Mengatur vertikal align pada gambar hanya di dalam .slideshow-container */
.slideshow-container img {
  vertical-align: middle;
}

/* Mengatur maksimal lebar slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Mengatur teks caption di dalam slideshow */
.slideshow-container .text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: -25px;
  width: 100%;
  text-align: center;
  background-color: #035914 !important;
  border-radius: 0 0 8px 8px !important;
  background: url(../../../assets/magazine/background/bg-ukir.png) #035914 top center fixed !important;
  text-transform: uppercase;
}

/* Mengatur teks nomor di dalam slideshow */
.slideshow-container .numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Mengatur dot indicator di dalam slideshow */
.slideshow-container .dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

/* Mengatur active dot di dalam slideshow */
.slideshow-container .active {
  background-color: #717171;
}

/* Mengatur animasi fade di dalam slideshow */
.slideshow-container .fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

/* Keyframes untuk animasi fade */
@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* Mengatur ukuran teks pada layar kecil di dalam slideshow */
@media only screen and (max-width: 300px) {
  .slideshow-container .text {
    font-size: 11px;
  }
}

/*slider card*/
.box-wrapper {
    max-width: 550px;
    width: 100%;
    position: relative;
}

.box-wrapper i {
    height: 50px;
    width: 50px;
    background: rgb(118, 233, 118);
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 1.25 rem;
    transform: translateY(-50%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);

}

.box-wrapper i:first-child {
    left: -22px;

}

.box-wrapper i:last-child {
    right: -22px;

}

.box-wrapper .carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 3) - 12px);
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: 0;
    height: 290px !important;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel :where(.card, .img) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.carousel.no-transition {
    scroll-behavior: auto;
}

.carousel.dragging .card {
    cursor: grab;
    user-select: none;
}

.carousel .card {
    scroll-snap-align: start;
    height: 260px !important;
    list-style: none;
    background: #fcfcfc;
    border-radius: 8px;
    display: flex;
    cursor: pointer;
    width: 98%;
    padding-bottom: 15px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.card .img {
    background: #03591426;
    width: 125px;
    height: 125px;
    border-radius: 50%;
}

.card .img img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #d9dbe4;
}

.card h2 {
    font-weight: 500;
    font-size: 1.56rem;
    margin: 30px 0 5px;
}

.card span {
    color: #6a6d78;
    font-size: 1rem;
    margin-top: 0.5rem;
}

@media screen and (max-width: 900px) {
    .box-wrapper .carousel {
        grid-auto-columns: calc((100% / 2) - 9px);

    }
}

@media screen and (max-width: 600px) {
    .box-wrapper .carousel {
        grid-auto-columns: 100%;

    }
}