/* =========================
   POPULAR COURSE CATEGORIES
========================= */

.tm-categories{
  padding: 100px 0;
  background: #f6f7fb;
}

.tm-categories .tm-title{
  font-weight: 900;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: #0f172a;
}

.tm-categories .tm-text{
  color: #6b7280;
  max-width: 520px;
  font-size: 16px;
}

/* category card */
.tm-category-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #eef1f6;
  box-shadow: 0 14px 30px rgba(0,0,0,.06);
  text-decoration: none;
  transition: .25s ease;
  height: 100%;
}

.tm-category-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

/* left content */
.tm-category-left{
  display: flex;
  align-items: center;
  gap: 14px;
}

.tm-category-left img{
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tm-category-left h6{
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

/* count badge */
.tm-category-count{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f6f7fb;
  color: #6b7280;
  font-weight: 900;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
}

/* responsive */
@media (max-width: 768px){
  .tm-categories{
    padding: 70px 0;
  }
}
