/* BusySkill Premium Course Cards */

#courses {
  position: relative;
  padding-top: 42px !important;
  padding-bottom: 52px !important;
  background:
    radial-gradient(circle at 10% 10%, rgba(14, 165, 233, .12), transparent 32%),
    radial-gradient(circle at 90% 85%, rgba(37, 99, 235, .10), transparent 30%),
    #eff8ff !important;
  overflow: hidden;
}

#courses h2 {
  color: #071a36;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1.2;
  margin-bottom: 12px !important;
}

#courses h2::after {
  content: "AI-ভিত্তিক দক্ষতা, practical training ও career support";
  display: block;
  max-width: 680px;
  margin: 12px auto 30px;
  color: #40546f;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
}

#courses .grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch;
}

#courses .grid > div {
  position: relative;
  min-height: 100%;
  padding: 28px !important;
  border: 1px solid rgba(14, 116, 144, .20) !important;
  border-top: 6px solid #0284c7 !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 15px 38px rgba(15, 72, 110, .10);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
  overflow: hidden;
}

#courses .grid > div:nth-child(2) {
  border-top-color: #7c3aed !important;
}

#courses .grid > div:nth-child(3) {
  border-top-color: #059669 !important;
}

#courses .grid > div:nth-child(4) {
  border-top-color: #ea580c !important;
  background:
    linear-gradient(145deg, #fff7ed, #ffffff 58%) !important;
}

#courses .grid > div:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 116, 144, .38) !important;
  box-shadow: 0 22px 48px rgba(15, 72, 110, .16);
}

#courses .grid > div::before {
  content: "CAREER COURSE";
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .09em;
}

#courses .grid > div:nth-child(2)::before {
  content: "CREATIVE COURSE";
  color: #6d28d9;
  background: #f3e8ff;
}

#courses .grid > div:nth-child(3)::before {
  content: "WEBSITE COURSE";
  color: #047857;
  background: #d1fae5;
}

#courses .grid > div:nth-child(4)::before {
  content: "BEST VALUE COMBO";
  color: #c2410c;
  background: #ffedd5;
}

#courses .grid h4 {
  color: #071a36 !important;
  font-size: 21px !important;
  line-height: 1.45 !important;
  margin-bottom: 12px !important;
}

#courses .grid p.text-primary {
  color: #075fdd !important;
  font-size: 25px !important;
  line-height: 1.2;
  margin-bottom: 16px !important;
}

#courses .grid p.text-on-surface-variant {
  color: #293b53 !important;
  font-size: 14px !important;
  line-height: 1.85 !important;
  white-space: pre-line;
}

#courses .grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  background: #dbeafe;
}

#courses .grid a {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  padding: 12px 18px;
  justify-content: center;
  border-radius: 13px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0369a1, #2563eb);
  box-shadow: 0 9px 20px rgba(37, 99, 235, .22);
  text-align: center;
  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

#courses .grid > div:nth-child(2) a {
  background: linear-gradient(135deg, #6d28d9, #9333ea);
}

#courses .grid > div:nth-child(3) a {
  background: linear-gradient(135deg, #047857, #059669);
}

#courses .grid > div:nth-child(4) a {
  background: linear-gradient(135deg, #c2410c, #f97316);
}

#courses .grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 25px rgba(15, 23, 42, .22);
}

@media (max-width: 767px) {
  #courses {
    padding-top: 32px !important;
    padding-bottom: 40px !important;
  }

  #courses .grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  #courses .grid > div {
    padding: 22px !important;
  }

  #courses h2::after {
    margin-bottom: 22px;
    padding: 0 12px;
  }
}