.home-courses {
  background: #fff;
  padding: 0 70px 70px;
  direction: rtl;
  text-align: right;
  font-family: "Vazirmatn", "Mona Sans", sans-serif;
}

.courses-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 36px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 9px;
  color: #1a453b;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  border-bottom: 1px solid rgba(26, 69, 59, 0.1);
}

.section-heading-title {
  margin: 0;
  max-width: 640px;
  color: #1a453b;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
}

.section-heading-title span {
  color: #F59403;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.courses-empty {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
}

.course-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.course-thumb {
  display: block;
  height: 224px;
  overflow: hidden;
  background: var(--card-art);
}

.course-thumb img {
  display: block;
  width: 100%;
  height: 224px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.course-card:hover .course-thumb img {
  transform: scale(1.06);
}

.course-body {
  padding: 20px 19px 12px 20px;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.course-stars {
  display: inline-flex;
  gap: 3px;
  color: #1a453b;
}

.course-stars svg {
  width: 14px;
  height: 14px;
}

.course-author {
  color: var(--muted);
  font-size: 14px;
}

.course-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.course-title a {
  color: #1a453b;
  text-decoration: none;
}

.course-title a:hover {
  color: #F59403;
}

.course-lessons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.course-lessons svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 8px 20px 20px;
}

.course-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #1a453b;
  font-size: 20px;
  font-weight: 600;
}

.course-price del {
  color: #757c8e;
  font-size: 15px;
  font-weight: 500;
}

.course-arrow {
  display: inline-flex;
  color: #F59403;
}

.course-arrow svg {
  width: 12px;
  height: 12px;
  transform: scaleX(-1);
}

.courses-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.theme-more {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 3px 3px 3px 20px;
  color: #1a453b;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(26, 69, 59, 0.14);
  border-radius: 6px;
}

.theme-more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #F59403;
  border-radius: 4px;
}

.theme-more-icon svg {
  width: 12px;
  height: 12px;
  transform: scaleX(-1);
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
}

.home-courses.is-visible .fade-up,
.home-process.is-visible .fade-up {
  animation: sectionFadeUp 0.8s ease forwards;
}

.home-courses.is-visible .course-card {
  animation-delay: var(--delay, 0s);
}

@keyframes sectionFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading-title {
    font-size: 34px;
  }
}

@media (max-width: 1024px) {
  .home-courses {
    padding: 70px 20px 50px;
  }
}

@media (max-width: 700px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-title {
    font-size: 28px;
  }
}
