/* =============================================
   TRENDING COURSES — 3-CARD SECTION
   ============================================= */

.tc-section {
  position: relative;
  padding: 70px 50px 50px;
  background: linear-gradient(180deg, #0a0e27 0%, #0d1135 50%, #0a0e27 100%);
  overflow: hidden;
}

.tc-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.2), transparent);
}

.tc-bg-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.035) 0%, transparent 70%);
  pointer-events: none;
}

.tc-dot-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.tc-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Header ---------- */
.tc-header {
  text-align: center;
  margin-bottom: 44px;
}

.tc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f97316;
  margin-bottom: 14px;
}

.tc-badge i {
  font-size: 10px;
}

.tc-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.tc-heading .tc-accent {
  background: linear-gradient(135deg, #f97316, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Cards Grid ---------- */
.tc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ---------- Course Card ---------- */
.tc-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.tc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25), 0 0 30px rgba(249, 115, 22, 0.04);
}

/* Card top visual */
.tc-card-top {
  position: relative;
  height: 140px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-card-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tc-card:hover .tc-card-top img {
  transform: scale(1.06);
}

.tc-card-top-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 14, 39, 0.95) 100%);
}

/* Card icon (centered on image) */
.tc-card-icon {
  position: absolute;
  z-index: 3;
  width: 52px;
  height: 52px;
  background: rgba(10, 14, 39, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fb923c;
  bottom: 10px;
  left: 18px;
  transition: all 0.35s;
}

.tc-card:hover .tc-card-icon {
  transform: scale(1.08) rotate(-3deg);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.2);
}

/* Tags */
.tc-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.tc-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.tc-tag-recommended {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.tc-tag-most_placed { background: #2196f3; }
.tc-tag-trending { background: #ff9800; }

.tc-tag-new {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.tc-tag-placed {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Placement badge */
.tc-placement {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  font-size: 8.5px;
  font-weight: 700;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tc-placement i {
  font-size: 8px;
}

/* Card body */
.tc-card-body {
  padding: 18px 18px 20px;
}

.tc-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

/* Skills chips */
.tc-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tc-skill {
  padding: 3px 9px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 500;
  color: #c4b5fd;
  letter-spacing: 0.02em;
}

/* Stats row */
.tc-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tc-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.tc-stat i {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
}

.tc-stat strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* Rating */
.tc-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tc-rating-stars {
  display: flex;
  gap: 1px;
}

.tc-rating-stars i {
  font-size: 10px;
  color: #fbbf24;
}

.tc-rating-val {
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
}

/* See More button */
.tc-see-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.18);
  color: #fb923c;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.tc-see-more:hover {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-color: #f97316;
  color: #fff;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.tc-see-more i {
  font-size: 10px;
  transition: transform 0.3s;
}

.tc-see-more:hover i {
  transform: translateX(3px);
}

/* ---------- Reveal Animation ---------- */
.tc-card {
  opacity: 0;
  transform: translateY(28px);
}

.tc-card.tc-in {
  animation: tcUp 0.6s ease forwards;
}

.tc-card:nth-child(1).tc-in { animation-delay: 0.05s; }
.tc-card:nth-child(2).tc-in { animation-delay: 0.15s; }
.tc-card:nth-child(3).tc-in { animation-delay: 0.25s; }

.tc-header {
  opacity: 0;
  transform: translateY(20px);
}

.tc-header.tc-in {
  animation: tcUp 0.65s ease forwards;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tc-section {
    padding: 50px 24px 40px;
  }

  .tc-heading {
    font-size: 26px;
  }

  .tc-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .tc-section {
    padding: 40px 16px 36px;
  }

  .tc-heading {
    font-size: 22px;
  }

  .tc-card-top {
    height: 120px;
  }

  .tc-card-icon {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  .tc-card-body {
    padding: 14px 14px 16px;
  }

  .tc-card-title {
    font-size: 13.5px;
  }

  .tc-skills {
    gap: 4px;
  }

  .tc-skill {
    font-size: 9px;
    padding: 2px 7px;
  }
}