/* =========================================================================
   CODEORBITZ — TRENDING COURSES (FIGMA DESIGN)
   ========================================================================= */

.trending-courses-section {
  position: relative;
  width: 100%;
  padding-top: 50px;
  padding-bottom: 75px;
  box-sizing: border-box;
}

.trending-courses-heading {
  text-align: center;
  margin-bottom: 38px;
  position: relative;
}

.trending-heading-wrap {
  display: inline-block;
  position: relative;
}

.trending-heading-wrap h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #111827;
  margin: 0;
}

.trending-burst-accent {
  position: absolute;
  top: -10px;
  right: -24px;
  pointer-events: none;
  display: inline-flex;
}

.trending-subtitle {
  font-family: var(--serif, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 1.6;
  color: #64748b;
  margin: 12px auto 0;
  max-width: 530px;
}

.trending-courses-row {
  display: flex;
  flex-wrap: wrap;
}

/* ── Product Card ── */
.trending-product-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.trending-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}

/* ── Thumb / Image Area with Pastel Backgrounds ── */
.trending-thumb {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.pastel-bg-1 {
  background-color: #eef2ff !important;
}

.pastel-bg-2 {
  background-color: #f3e8ff !important;
}

.pastel-bg-3 {
  background-color: #ffedd5 !important;
}

.pastel-bg-4 {
  background-color: #e6f7ec !important;
}

.trending-thumb-img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.trending-product-img {
  max-height: 145px;
  max-width: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  transition: transform 0.3s ease;
}

.trending-product-card:hover .trending-product-img {
  transform: scale(1.05);
}

/* ── Wishlist Heart Button (Top Right) ── */
.trending-wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.trending-wishlist-btn i {
  font-size: 14px;
  color: #ef4444;
  transition: transform 0.2s ease, color 0.2s ease;
}

.trending-wishlist-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.trending-wishlist-btn.in-wishlist i,
.trending-wishlist-btn i.fas {
  color: #ef4444;
  font-weight: 900;
}

/* ── Content Area ── */
.trending-content {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

.trending-title {
  font-family: var(--serif, 'Plus Jakarta Sans', sans-serif);
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.32;
  color: #111827;
  margin: 0 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-title a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.trending-title a:hover {
  color: #2563eb;
}

.trending-category {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: capitalize;
}

.trending-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Footer / Price & Enroll Button ── */
.trending-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.trending-price {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.3px;
}

.trending-enroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 18px;
  background: #5fa9e4;
  color: #ffffff !important;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(95, 169, 228, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.trending-enroll-btn:hover {
  background: #4a9be0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(95, 169, 228, 0.38);
}

.trending-enroll-btn svg {
  transition: transform 0.2s ease;
}

.trending-enroll-btn:hover svg {
  transform: translate(2px, -2px);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .trending-courses-section {
    padding-top: 35px;
    padding-bottom: 50px;
  }

  .trending-courses-heading {
    margin-bottom: 28px;
  }

  .trending-thumb {
    height: 180px;
  }
}

@media (max-width: 575px) {
  .trending-courses-section {
    padding-top: 25px;
    padding-bottom: 40px;
  }

  .trending-heading-wrap h2 {
    font-size: 24px;
  }

  .trending-burst-accent {
    top: -8px;
    right: -16px;
  }

  .trending-subtitle {
    font-size: 13.5px;
  }
}
