/* Gaya untuk container slider */
.list-courses {
  padding-left: 0;
  padding-right: 0;
  display: flex;
  overflow: hidden;
}

/* Item di dalam slider */
.list-courses .course-item {
  flex: none;
  width: 100%;
  /* Default untuk mobile */
  padding: 10px;
  /* Memberikan ruang antar item */
  box-sizing: border-box;
  transition: transform 0.3s ease;
  /* Animasi smooth untuk slider */
}

/* Slide kosong untuk mobile */
.course-item .btn-block {
  display: block;
  width: 100%;
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
  padding: 10px 0;
}

/* Indikator dot */
.slider-indicators {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.slider-indicators .dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.slider-indicators .dot.active {
  background-color: #007AB0;
}

/* Kontainer slider versi desktop */
@media (min-width: 768px) {
  #section-online-courses .list-courses {
    display: flex;
    /* Tetap menggunakan flex untuk item slider */
    overflow-x: auto;
    /* Mengaktifkan scroll horizontal */
    padding-bottom: 10px;
    /* Memberikan ruang di bawah slider agar terlihat rapi */
  }

  /* Reset scrollbar styling untuk tampil default */
  #section-online-courses .list-courses::-webkit-scrollbar {
    height: auto;
    /* Gunakan tinggi default scrollbar */
  }

  #section-online-courses .list-courses::-webkit-scrollbar-thumb,
  #section-online-courses .list-courses::-webkit-scrollbar-track {
    background: unset;
    /* Tidak ada gaya khusus */
  }

  /* Setiap item kursus */
  .list-courses .course-item {
    flex: 0 0 auto;
    /* Memastikan item tidak mengecil */
    width: 310px;
    /* Ukuran tetap untuk setiap item kursus */
  }

  /* Sembunyikan slide kosong di desktop */
  .course-item.d-md-none {
    display: none;
  }

  /* Sembunyikan indikator dot di desktop */
  .slider-indicators {
    display: none;
  }
}


.course-item img {
  width: 100%;
  height: auto;
  border-radius: 20px 20px 0 0;
}

.course-item h5 {
  margin: 0px 0;
  font-size: 16px;
  font-weight: bold;
}

.course-item p {
  font-size: 14px;
  color: #666;
}

.course-item .btn {
  margin-top: 5px;
}

/* Desain tombol untuk versi mobile */
@media (max-width: 767px) {
  .course-item.d-md-none {
    display: flex;
    justify-content: center;
    /* Memusatkan tombol secara horizontal */
    align-items: center;
    /* Memastikan tombol tetap di tengah vertikal */
  }

  .btn-special-mobile {
    background-color: #fff !important;
    color: #007AB0 !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    padding: 20px 15px !important;
    height: 415px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    box-sizing: border-box;
    box-shadow: 0px 8px 10px rgba(177, 177, 177, 0.1) !important;
    /* Bayangan lebih lembut */
    transition: box-shadow 0.3s ease !important;
    /* Efek transisi bayangan */
    text-decoration: none !important;
    /* Menghilangkan garis bawah */
  }

  .btn-special-mobile:focus {
    outline: none !important;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15) !important;
  }

  .btn-content {
    text-align: center;
  }

  .btn-text {
    font-size: 16px !important;
    color: #007AB0 !important;
    margin-bottom: 10px;
  }

  .btn-icon {
    background-color: #007AB0 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: 10px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .btn-icon i {
    color: #fff !important;
    font-size: 18px !important;
  }

  .btn-special-mobile:hover {
    background-color: #fff !important;
    color: #333 !important;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1) !important;
  }

  .btn-special-mobile:active {
    background-color: #fff !important;
    color: #333 !important;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15) !important;
  }
}

.container-library {
  width: calc(90% + 20px);
  margin: auto;
}