/* ==============================
   Home Featured Courses Section
============================== */
.tr-home-featured-courses {
  direction: rtl;
  position: relative;
  padding: 88px 20px;
  background:
    radial-gradient(circle at top right, rgba(228, 113, 79, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fff8f6 100%);
  overflow: hidden;
}

.tr-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.tr-section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.tr-section-head--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.tr-section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #fff1ee;
  color: #e4714f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.tr-section-head h2 {
  margin: 0 0 14px;
  color: #383838;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.5;
}

.tr-section-head p {
  margin: 0;
  color: #5f5f5f;
  font-size: 16px;
  line-height: 2;
}

.tr-featured-courses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.tr-course-card {
  position: relative;
  border: 1px solid rgba(56, 56, 56, 0.08);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(56, 56, 56, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}

.tr-course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 56px rgba(56, 56, 56, 0.14);
  border-color: rgba(228, 113, 79, 0.22);
}

.tr-course-card--accent {
  border-color: rgba(228, 113, 79, 0.2);
  box-shadow: 0 20px 50px rgba(228, 113, 79, 0.12);
}

.tr-course-card--accent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, #e4714f 0%, #ffb39f 100%);
}

.tr-course-card__inner {
  padding: 34px 30px 30px;
}

.tr-course-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e4714f;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(228, 113, 79, 0.25);
}

.tr-course-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff1ee 0%, #ffe4dc 100%);
  color: #e4714f;
  font-size: 34px;
  box-shadow: inset 0 0 0 1px rgba(228, 113, 79, 0.08);
}

.tr-course-title {
  margin: 0 0 14px;
  color: #383838;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.4;
}

.tr-course-desc {
  margin: 0 0 20px;
  color: #5e5e5e;
  font-size: 15.5px;
  line-height: 2;
}

.tr-course-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.tr-course-features li {
  position: relative;
  padding-right: 28px;
  color: #444;
  font-size: 15px;
  line-height: 1.9;
}

.tr-course-features li::before {
  content: "";
  position: absolute;
  top: 9px;
  right: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e4714f;
  box-shadow: 0 0 0 4px rgba(228, 113, 79, 0.12);
}

.tr-course-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.tr-course-meta-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: #fcf7f5;
  border: 1px solid rgba(228, 113, 79, 0.08);
}

.tr-course-meta-label {
  display: block;
  margin-bottom: 6px;
  color: #8b8b8b;
  font-size: 13px;
  font-weight: 700;
}

.tr-course-meta-item strong {
  color: #383838;
  font-size: 14px;
  font-weight: 800;
}

.tr-course-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.tr-btn--primary {
  background: #e4714f;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(228, 113, 79, 0.24);
}

.tr-btn--primary:hover {
  background: #d76443;
  color: #ffffff;
  transform: translateY(-2px);
}

.tr-btn--secondary {
  background: #fff1ee;
  color: #e4714f;
  border-color: rgba(228, 113, 79, 0.12);
}

.tr-btn--secondary:hover {
  background: #e4714f;
  color: #ffffff;
  transform: translateY(-2px);
}

.tr-featured-courses-note {
  margin-top: 26px;
  text-align: center;
}

.tr-featured-courses-note p {
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 2;
}

.tr-featured-courses-note a {
  color: #e4714f;
  font-weight: 800;
  text-decoration: none;
}

.tr-featured-courses-note a:hover {
  color: #383838;
}

@media (max-width: 991px) {
  .tr-home-featured-courses {
    padding: 72px 18px;
  }

  .tr-featured-courses-grid {
    grid-template-columns: 1fr;
  }

  .tr-course-title {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .tr-home-featured-courses {
    padding: 58px 16px;
  }

  .tr-course-card__inner {
    padding: 28px 20px 24px;
  }

  .tr-course-meta {
    grid-template-columns: 1fr;
  }

  .tr-section-head h2 {
    font-size: 26px;
  }

  .tr-section-head p,
  .tr-course-desc,
  .tr-course-features li,
  .tr-featured-courses-note p {
    font-size: 14.5px;
  }
}
