.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: transform .25s ease, box-shadow .25s ease;
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

/* Фото у верхній частині */
.course-header {
  position: relative;
  height: 160px;
  overflow: hidden;
}
.course-header img.course-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.96);
  transition: transform .4s ease;
}
.course-card:hover .course-header img.course-logo {
  transform: scale(1.05);
}

/* Легкий градієнт */
.course-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.85), rgba(255,255,255,0.15));
  z-index: 1;
}

/* Ціна з теплим акцентом */
.course-price {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: #2196F3;
  color: #ffffff;
  font-weight: 700;
  padding: .4rem .8rem;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.course-price .muted {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
}

/* Текст після фото */
.course-title {
  font-weight: 700;
  font-size: 18px;
  margin: 1rem 1rem 0.4rem;
  color: #0f172a;
}
.course-card > p {
  margin: 0 1rem 1rem;
  color: #475569;
  font-size: 14px;
}

/* Список характеристик */
.course-meta {
  list-style: none;
  padding: 0 1rem 1rem;
  margin: 0;
  font-size: 13px;
  color: #334155;
}
.course-meta li {
  padding-left: 1em;
  position: relative;
}
.course-meta li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #f97316;
}

/* Теги */
.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  padding: 0 1rem 1rem;
}
.chip {
  background: #f1f5f9;
  border-radius: 999px;
  padding: .25rem .55rem;
  font-size: 11px;
  color: #334155;
}

/* Кнопки */
.btn-row {
  display: flex;
  gap: .5rem;
  padding: 0 1rem 1rem;
  margin-top: auto;
}
.btn {
  flex: 1;
  padding: .6rem 0;
  text-align: center;
  font-weight: 600;
  border-radius: 6px;
}
.btn.outline {
  border: 1px solid #f97316;
  color: #f97316;
  background: transparent;
}
.btn:not(.outline) {
  background: #f97316;
  color: #ffffff;
}
.btn:hover {
  opacity: 0.9;
}
.course-header {
  position: relative;
  height: 140px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px 14px 0 0;
}
.course-header img.course-logo {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: brightness(0.9);
}
.course-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0.05));
}
