:root{
  --brand:#0d6efd;
  --deep:#0b2a5b;
  --bg:#f6f8fc;
  --card:#ffffff;
  --radius:16px;
}

*{ font-family: "Noto Sans Thai", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

body{ background: var(--bg); }

.brand-badge{
  width: 36px; height: 36px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(13,110,253,.12);
  color: var(--brand);
}

.hero{
  background: radial-gradient(1200px 600px at 15% 10%, rgba(13,110,253,.14), transparent 60%),
              radial-gradient(900px 450px at 80% 0%, rgba(11,42,91,.14), transparent 55%),
              linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
}

.hero-card{
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
}
.hero-card img{
  height: 220px; object-fit: cover;
}

.mini-stat{
  display:flex; gap:10px; align-items:center;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 10px 12px;
  backdrop-filter: blur(6px);
}
.mini-icon{
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(13,110,253,.12);
  display:flex; align-items:center; justify-content:center;
  color: var(--brand);
}

.filter-box{
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
}

.course-card{
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11,42,91,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.course-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(11,42,91,.12);
}

.course-cover{ position: relative; }
.course-cover img{
  width: 100%;
  height: 140px;
  object-fit: cover;
  display:block;
}
.course-badge{
  position:absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .8rem;
  border: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(6px);
}

.cta-inner{
  background: linear-gradient(90deg, rgba(13,110,253,.12), rgba(11,42,91,.08));
  border: 1px solid rgba(0,0,0,.06);
  border-radius: calc(var(--radius) + 6px);
}

/* Mobile: 2 cards/row already via col-6 */
@media (min-width: 768px){
  .course-cover img{ height: 170px; }
}
/* Semester cards (แนวทางรายภาคเรียน) */
.badge.text-bg-warning{ color:#111 !important; } /* ช่วยให้อ่านชัดบนพื้นเหลือง */
/* VTR */
.ratio.rounded-4 { box-shadow: 0 10px 30px rgba(11,42,91,.10); }
/* Special highlight course */
.special-course {
  border-radius: 20px;
  overflow: hidden;
}
.special-course .bg-primary-subtle {
  background: linear-gradient(
    135deg,
    rgba(13,110,253,.15),
    rgba(13,110,253,.05)
  );
}
/* Special course image full height */
.special-course .course-cover {
  height: 100%;
}

.special-course .course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* ครอบเต็ม ไม่ยืดภาพ */
  display: block;
}
.special-course .course-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.15),
    rgba(0,0,0,0)
  );
}

