.course-card {
  direction: rtl;
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: IRANSans, sans-serif;
  text-align: right;
  height: 100%;
}

.card-inner {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.course-thumbnail {
  width: 150px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
}

.course-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-card h2 {
  font-size: 18px;
  color: #333;
  margin-bottom: 12px;
}

.course-card p {
  font-size: 14px;
  margin-bottom: 16px;
  color: #666;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-direction: row-reverse;
  margin-top: auto;
}

.course-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #555;
}

.circular-progress {
  width: 60px;
  height: 60px;
}

.circular-progress svg {
  transform: rotate(0deg);
  width: 100%;
  height: 100%;
}

.circular-progress .bg {
  fill: none;
  stroke: #eee;
  stroke-width: 3;
}

.circular-progress .progress {
  fill: none;
  stroke: #BD0B6F;
  stroke-width: 3;
  stroke-linecap: round;
}

.circular-progress .percentage {
  fill: #BD0B6F;
  font-size: 10px;
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: sans-serif;

  font-family: 'vvsans';
}

.btn {
  display: inline-block;
  padding: 8px 20px;
  background: #0DA678;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}

.swiper {
  padding: 20px 0;
}

.swiper-slide {
  width: auto;
}

.swiper-button-prev,
.swiper-button-next {
  width: 40px;
  height: 40px;
  background: #0077B5;
  border-radius: 65.625px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 16px;
}

.course-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #555;
  border: 1px solid #BD0B6F;
  border-radius: 16px;
  padding: 8px 12px;
}

.circular-progress {
  width: 36px;
  height: 36px;
}

.circular-progress svg {
  transform: rotate(0deg);
  width: 100%;
  height: 100%;
}

/* فلش‌ها - کوچک و دقیق در موقعیت مناسب */
.swiper-button-prev,
.swiper-button-next {
  width: 24px;
  height: 24px;
  background-color: #0077B5;
  border-radius: 50%;
  color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-button-prev {
  right: 5px;
  left: auto;
}

.swiper-button-next {
  left: 5px;
  right: auto;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 12px;
  font-weight: bold;
}

/* تصویر شاخص - بهینه‌سازی با اندازه ثابت و نسبت خوب */
.course-thumbnail {
  width: 280px;
  max-width: 40%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
}

.course-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
}

/* حالت موبایل */
@media (max-width: 768px) {
  .card-inner {
    flex-direction: column;
  }

  .course-thumbnail {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .course-content {
    width: 100%;
  }

  .swiper-button-prev,
  .swiper-button-next {
    top: auto;
    bottom: -10px;
    transform: none;
  }

  .swiper-button-prev {
    left: 10px;
    right: auto;
  }

  .swiper-button-next {
    right: 10px;
    left: auto;
  }
}

/* خارج کردن نقطه‌های زیر از کادر */
.swiper-pagination {
  position: relative;
  margin-top: 20px;
}

/* داخل کادر آوردن فلش‌ها */
.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.swiper {
  padding: 20px 40px; /* فاصله برای فلش‌ها از چپ و راست */
  position: relative;
}

@media (max-width: 768px) {
  .swiper {
    padding: 20px 20px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    top: auto;
    bottom: -20px;
    transform: none;
  }

  .swiper-button-prev {
    left: 10px;
  }

  .swiper-button-next {
    right: 10px;
  }
}

.swiper-button-prev,
.swiper-button-next {
  width: 30px !important;
  height: 30px !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 14px !important;
}

.swiper-pagination {
  display: none !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  color: white !important;
}

.course-thumbnail {
  margin-right: 30px;
}

.course-content {
  padding-left: 30px;
}

@media (max-width: 768px) {
  .card-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .course-thumbnail {
    width: 100% !important;
    margin: 0 0 16px 0 !important;
  }

  .course-content {
    padding-left: 0 !important;
    width: 100%;
  }

  .card-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }

  .course-progress-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .swiper {
    padding: 20px 16px !important;
  }

  .swiper-button-prev,
  .swiper-button-next {
    top: auto;
    bottom: -20px;
    transform: none;
  }

  .swiper-button-prev {
    left: 10px;
  }

  .swiper-button-next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .btn {
    width: 100% !important;
    text-align: center;
    justify-content: center;
  }
}
