
/* ============================================
   COURSES LISTING v2 (courses index only)
   ============================================ */
.courses-v2-section {
  padding: 90px 0 100px;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(13, 148, 136, 0.06), transparent 60%),
    white;
}

.courses-v2-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.courses-v2-head .section-title {
  margin-bottom: 8px;
}

.courses-v2-head .section-lead {
  margin-bottom: 0;
}

.courses-v2-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 50px;
  white-space: nowrap;
}

.courses-v2-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  padding: 16px;
  background: var(--off-white);
  border: 1px solid rgba(10, 22, 40, 0.07);
  border-radius: var(--radius-lg);
}

.courses-v2-pill {
  background: white;
  border: 1.5px solid rgba(10, 22, 40, 0.12);
  color: var(--slate);
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.courses-v2-pill i {
  font-size: 12px;
}

.courses-v2-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-1px);
}

.courses-v2-pill.active {
  background: linear-gradient(135deg, var(--navy), #0F2A50);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-md);
}

.courses-v2-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(10, 22, 40, 0.08);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.courses-v2-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 148, 136, 0.35);
}

.courses-v2-media {
  height: 210px;
  overflow: hidden;
  position: relative;
}

.courses-v2-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0) 45%, rgba(10, 22, 40, 0.55) 100%);
  pointer-events: none;
}

.courses-v2-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.courses-v2-card:hover .courses-v2-media img {
  transform: scale(1.07);
}

.courses-v2-type {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(8px);
  color: white;
  padding: 5px 13px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.courses-v2-price {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  background: white;
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.courses-v2-price small {
  font-size: 10px;
  font-weight: 500;
  color: var(--slate);
  margin-right: 3px;
}

.courses-v2-price.free {
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: white;
  font-family: inherit;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.courses-v2-body {
  padding: 22px 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.courses-v2-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
}

.courses-v2-meta span {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.courses-v2-meta span i {
  color: var(--teal);
  font-size: 11px;
}

.courses-v2-meta span.upcoming {
  color: var(--teal);
  font-weight: 700;
}

.courses-v2-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}

.courses-v2-title a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.25s ease;
}

.courses-v2-card:hover .courses-v2-title a {
  color: var(--teal);
}

.courses-v2-desc {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.courses-v2-foot {
  padding-top: 15px;
  border-top: 1px solid rgba(10, 22, 40, 0.07);
}

.courses-v2-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.courses-v2-link i {
  transition: transform 0.25s ease;
}

.courses-v2-card:hover .courses-v2-link i {
  transform: translateX(5px);
}

.courses-v2-empty {
  text-align: center;
  padding: 70px 20px;
  background: var(--off-white);
  border: 1.5px dashed rgba(10, 22, 40, 0.15);
  border-radius: var(--radius-lg);
}

.courses-v2-empty > i {
  font-size: 40px;
  color: var(--slate-light);
  margin-bottom: 16px;
}

.courses-v2-empty h5 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 8px;
}

.courses-v2-empty p {
  margin-bottom: 20px;
}

@media (max-width: 767.98px) {
  .courses-v2-section {
    padding: 60px 0 70px;
  }

  .courses-v2-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .courses-v2-filters {
    padding: 12px;
  }

  .courses-v2-pill {
    padding: 8px 16px;
    font-size: 12.5px;
  }

  .courses-v2-media {
    height: 180px;
  }
}
