.recent-courses {
  text-align: center;
  margin: 50px 0;
}

.view-all {
  display: block;
  margin: 10px 0 20px;
  color: #00bcd4;
  text-decoration: none;
}

.course-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  /*padding: 0 40px;*/
}

/*
.course-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
}
*/

.course-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* hide scrollbar Firefox */
    
}

.course-carousel::-webkit-scrollbar {
    display: none; /* hide scrollbar Chrome/Safari */
}
/*
.course-box {
  max-width: 300px;
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex-shrink: 0;
}


.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  font-size: 24px;
  background: #00bcd4;
  border: none;
  border-radius: 50%;
  color: white;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1;
}

.carousel-btn.left {
  left: 0;
}

.carousel-btn.right {
  right: 0;
}


*/


.course-box {
    flex: 0 0 auto;
    width: 250px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.course-box:hover {
    transform: scale(1.03);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
}
.carousel-btn.left {
    left: 10px;
}
.carousel-btn.right {
    right: 10px;
}







.course-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-box h3 {
  font-size: 16px;
  padding: 10px;
}


.course-box p {
  padding: 10px;
  font-size: 14px;
  line-height: 1.5;
  white-space: normal; /* allows wrapping */
  word-wrap: break-word; /* breaks long words */
  text-align: left;
  color: rgb(126, 125, 125);
}


.price-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px 10px;
  font-size: 14px;
}

.price {
  background: #00bcd4;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
}
