/*
---------------------------------------------
Courses Style
---------------------------------------------
*/

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.play-button i {
  color: var(--primary-color);
  background-color: var(--white-color);
  display: inline-block;
  height: 50px;
  width: 50px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  font-size: 16px;
  transition: all 0.3s;
}

.play-button i:hover,
.thumb:hover .play-button i {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: scale(1.1);
}

.courses {
  margin-top: 20px;
}

.course_filter {
  background-color: var(--secondary-color);
  border-radius: 50px;
  list-style: none;
  margin: 0 auto 70px;
  max-width: max-content;
  text-align: center;
  display: flex;
  height: 50px;
  padding: 0 40px;
}

.course_filter li {
  display: flex;
  align-items: stretch;
}

.course_filter li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  color: #1e1e1e;
  transition: all 0.3s;
}

.course_filter li a.is_active,
.course_filter li a:hover {
  background-color: #ffffff9c;
  color: var(--primary-color);
}

.courses_item {
  background-color: var(--secondary-color);
  border-radius: 25px;
  margin-bottom: 30px;
  position: relative;
}

.courses_item .thumb {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: grab;
}

.courses_item .thumb:active {
  cursor: grabbing;
}

.courses_item .thumb img {
  margin-bottom: -5px;
}

.courses_item .thumb span.category {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--primary-color);
  background-color: rgba(250, 250, 250, 0.95);
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 500;
}

.courses_item .down-content {
  padding: 20px 30px 25px 30px;
}

.courses_item .down-content span.description {
  color: var(--primary-color);
  font-size: 13px;
  display: inline-block;
  margin-top: 6px;
}

.courses_item .down-content h4 {
  font-size: 20px;
  font-weight: 600;
  transition: all 0.3s;
}

.courses_item:hover .down-content h4 {
  color: var(--primary-color);
}

@media (max-width: 1200px) {
  .courses_item .down-content h4 {
    font-size: 16px;
  }
}

.course_filter_dropdown {
  display: none;
}

@media (max-width: 767px) {
  .course_filter {
    display: none;
  }

  .course_filter_dropdown {
    display: block;
    width: 100%;
    margin: 0 auto 40px;
    padding: 10px 25px;
    font-weight: 500;
    font-size: 16px;
    border-radius: 25px;
    border: none;
    background-color: var(--secondary-color);
    color: #1e1e1e;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 40l60 60 60-60' stroke='%231e1e1e' stroke-width='20' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 25px center;
    background-size: 14px;
  }

  .course_filter_dropdown option {
    color: #1e1e1e;
    background-color: var(--secondary-color);
    font-size: 16px;
    font-weight: 500;
  }
}
