/* MIYAAR Homepage — Stage 6.6 / refreshed training picks + stats rhythm
   Scope: homepage course showcase and its following statistics strip only. */

.miyaar-home-reference .mi-home-ref-courses{
  padding:clamp(62px,7vw,92px) 0 52px!important;
  background:#f8f6fd!important;
  border-block:0!important;
}
.miyaar-home-reference .mi-home-ref-courses>.mi-container{
  width:min(calc(100% - 40px),1120px)!important;
}
.miyaar-home-reference .mi-home-ref-courses__head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:24px!important;
  margin:0 0 34px!important;
}
.miyaar-home-reference .mi-home-ref-courses__head>div{max-width:690px!important}
.miyaar-home-reference .mi-home-ref-courses__head .mi-home-kicker{
  display:block!important;
  margin:0 0 8px!important;
  color:var(--mi-accent)!important;
  font-size:11px!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
}
.miyaar-home-reference .mi-home-ref-courses__head h2{
  position:relative!important;
  margin:0!important;
  color:#0b173c!important;
  font-size:clamp(30px,3.25vw,43px)!important;
  font-weight:950!important;
  line-height:1.2!important;
  letter-spacing:-.55px!important;
}
.miyaar-home-reference .mi-home-ref-courses__head h2::after{
  content:""!important;
  display:inline-block!important;
  width:58px!important;
  height:3px!important;
  margin-inline-start:10px!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--mi-brand) 56%,var(--mi-accent))!important;
  vertical-align:middle!important;
}
.miyaar-home-reference .mi-home-ref-courses__head p{
  margin:10px 0 0!important;
  color:#71809d!important;
  font-size:13px!important;
  line-height:1.8!important;
}
.miyaar-home-reference .mi-home-ref-courses__all{
  min-height:44px!important;
  padding:0 18px!important;
  border:1px solid color-mix(in srgb,var(--mi-brand) 58%,#d8dce8)!important;
  border-radius:13px!important;
  background:transparent!important;
  color:var(--mi-brand)!important;
  font-size:11px!important;
  font-weight:900!important;
  box-shadow:none!important;
  white-space:nowrap!important;
}

/* Featured program: image on the right in RTL, copy on the left. */
.miyaar-home-reference .mi-home-ref-featured-course{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(420px,1.05fr)!important;
  direction:ltr!important;
  min-height:402px!important;
  overflow:hidden!important;
  border:1px solid #e6e1ef!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 12px 26px rgba(38,30,75,.08)!important;
}
.miyaar-home-reference .mi-home-ref-featured-course__media{
  grid-column:2!important;
  min-height:402px!important;
  background:#eef1f7!important;
}
.miyaar-home-reference .mi-home-ref-featured-course__media img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.miyaar-home-reference .mi-home-ref-featured-course__badge{
  top:15px!important;
  right:15px!important;
  min-height:30px!important;
  padding:0 12px!important;
  border:1px solid rgba(78,47,143,.12)!important;
  border-radius:999px!important;
  background:rgba(248,244,255,.96)!important;
  color:#4f2f8e!important;
  font-size:10px!important;
  box-shadow:0 6px 18px rgba(31,21,67,.10)!important;
}
.miyaar-home-reference .mi-home-ref-featured-course__body{
  grid-column:1!important;
  grid-row:1!important;
  display:flex!important;
  flex-direction:column!important;
  padding:34px 38px 30px!important;
  direction:rtl!important;
  text-align:right!important;
}
.miyaar-home-reference .mi-home-ref-course__meta{
  gap:8px 10px!important;
  color:#8993aa!important;
  font-size:10px!important;
  font-weight:750!important;
}
.miyaar-home-reference .mi-home-ref-course__meta span:first-child{
  min-height:28px!important;
  padding:0 11px!important;
  border-radius:999px!important;
  background:#f7f2ff!important;
  color:#6434a3!important;
}
.miyaar-home-reference .mi-home-ref-featured-course h3{
  margin:14px 0 0!important;
  color:#071538!important;
  font-size:clamp(25px,2.55vw,34px)!important;
  font-weight:950!important;
  line-height:1.35!important;
}
.miyaar-home-reference .mi-home-ref-featured-course__body>p{
  margin:11px 0 0!important;
  color:#6f7890!important;
  font-size:12.5px!important;
  line-height:1.95!important;
  -webkit-line-clamp:3!important;
}
.miyaar-home-reference .mi-home-ref-featured-course__facts{
  gap:11px 18px!important;
  margin-top:19px!important;
  color:#818ba2!important;
  font-size:10px!important;
}
.miyaar-home-reference .mi-home-ref-featured-course__facts span{
  gap:6px!important;
}
.miyaar-home-reference .mi-home-ref-featured-course__facts b{
  color:#6a748b!important;
  font-weight:700!important;
}
.miyaar-home-reference .mi-home-ref-featured-course__foot{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin-top:auto!important;
  padding-top:24px!important;
  border-top:1px solid #f0edf5!important;
}
.miyaar-home-reference .mi-home-ref-featured-course__foot>strong{
  color:#53318e!important;
  font-size:27px!important;
  font-weight:950!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.miyaar-home-reference .mi-home-ref-featured-course__details{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  align-self:flex-start!important;
  margin-top:14px!important;
  color:var(--mi-brand)!important;
  font-size:10.5px!important;
  font-weight:900!important;
  text-decoration:none!important;
}

/* Course cards: three-up desktop rhythm matching the reference. */
.miyaar-home-reference .mi-home-ref-course-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:24px!important;
  margin-top:28px!important;
}
.miyaar-home-reference .mi-home-ref-course-card{
  min-width:0!important;
  overflow:hidden!important;
  border:1px solid #e6e1ef!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 8px 20px rgba(38,30,75,.055)!important;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease!important;
}
.miyaar-home-reference .mi-home-ref-course-card:hover{
  transform:translateY(-4px)!important;
  border-color:color-mix(in srgb,var(--mi-brand) 24%,#e6e1ef)!important;
  box-shadow:0 16px 30px rgba(38,30,75,.10)!important;
}
.miyaar-home-reference .mi-home-ref-course-card__media{
  height:178px!important;
  background:#eceef4!important;
}
.miyaar-home-reference .mi-home-ref-course-card__media img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.miyaar-home-reference .mi-home-ref-course-card__mode{
  top:12px!important;
  right:12px!important;
  min-height:28px!important;
  padding:0 10px!important;
  border:1px solid rgba(79,47,142,.12)!important;
  border-radius:999px!important;
  background:rgba(250,247,255,.95)!important;
  color:#53318e!important;
  font-size:9px!important;
  box-shadow:0 5px 14px rgba(29,20,65,.08)!important;
}
.miyaar-home-reference .mi-home-ref-course-card__body{
  padding:18px 19px 20px!important;
}
.miyaar-home-reference .mi-home-ref-course-card h3{
  min-height:57px!important;
  margin:12px 0 0!important;
  font-size:17px!important;
  font-weight:950!important;
  line-height:1.65!important;
}
.miyaar-home-reference .mi-home-ref-course-card h3 a{
  display:-webkit-box!important;
  overflow:hidden!important;
  color:#071538!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
}
.miyaar-home-reference .mi-home-ref-course-card__trainer{
  margin-top:12px!important;
  color:#8791a6!important;
  font-size:9.5px!important;
}
.miyaar-home-reference .mi-home-ref-course-card__trainer>span{
  flex:0 0 25px!important;
  height:25px!important;
  background:#f4effd!important;
  color:#6738a4!important;
}
.miyaar-home-reference .mi-home-ref-course-card__trainer b{color:#6f7890!important}
.miyaar-home-reference .mi-home-ref-course-card__foot{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-top:16px!important;
  padding-top:14px!important;
  border-top:1px solid #f0edf5!important;
}
.miyaar-home-reference .mi-home-ref-course-card__foot>strong{
  color:#53318e!important;
  font-size:22px!important;
  font-weight:950!important;
  white-space:nowrap!important;
}

/* Rating is sourced from published course_reviews; no synthetic scores. */
.miyaar-home-reference .mi-home-ref-course-rating{
  display:flex!important;
  min-width:0!important;
  align-items:center!important;
  gap:4px!important;
  color:#9ba3b5!important;
  font-size:9px!important;
  white-space:nowrap!important;
}
.miyaar-home-reference .mi-home-ref-course-rating__stars{
  display:inline-flex!important;
  direction:ltr!important;
  gap:1px!important;
  color:#d6d8e0!important;
  font-size:13px!important;
  line-height:1!important;
}
.miyaar-home-reference .mi-home-ref-course-rating__stars i{
  font-style:normal!important;
  color:#d7d8df!important;
}
.miyaar-home-reference .mi-home-ref-course-rating__stars i.is-filled{color:#e6ad28!important}
.miyaar-home-reference .mi-home-ref-course-rating b{color:#5c6475!important;font-size:10px!important}
.miyaar-home-reference .mi-home-ref-course-rating small{overflow:hidden!important;text-overflow:ellipsis!important}

/* Statistics immediately after training picks. */
.miyaar-home-reference .mi-home-ref-stats{
  padding:0!important;
  border-block:1px solid #e8e4ee!important;
  background:#fff!important;
}
.miyaar-home-reference .mi-home-ref-stats>.mi-container{
  width:min(calc(100% - 40px),1120px)!important;
}
.miyaar-home-reference .mi-home-ref-stats__grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:0!important;
}
.miyaar-home-reference .mi-home-ref-stat{
  position:relative!important;
  padding:30px 18px 28px!important;
  text-align:center!important;
}
.miyaar-home-reference .mi-home-ref-stat:not(:last-child)::after{
  content:""!important;
  position:absolute!important;
  top:25%!important;
  bottom:25%!important;
  inset-inline-end:0!important;
  width:1px!important;
  background:#ebe7f0!important;
}
.miyaar-home-reference .mi-home-ref-stat strong{
  display:block!important;
  color:var(--mi-brand)!important;
  font-size:31px!important;
  font-weight:950!important;
  line-height:1.15!important;
}
.miyaar-home-reference .mi-home-ref-stat span{
  display:block!important;
  margin-top:6px!important;
  color:#7c869b!important;
  font-size:11px!important;
  font-weight:650!important;
}

@media(max-width:980px){
  .miyaar-home-reference .mi-home-ref-featured-course{grid-template-columns:1fr!important;direction:rtl!important}
  .miyaar-home-reference .mi-home-ref-featured-course__media{grid-column:auto!important;grid-row:auto!important;min-height:320px!important}
  .miyaar-home-reference .mi-home-ref-featured-course__body{grid-column:auto!important;grid-row:auto!important}
  .miyaar-home-reference .mi-home-ref-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
  .miyaar-home-reference .mi-home-ref-courses>.mi-container,
  .miyaar-home-reference .mi-home-ref-stats>.mi-container{width:min(calc(100% - 28px),1120px)!important}
  .miyaar-home-reference .mi-home-ref-courses__head{align-items:flex-start!important;flex-direction:column!important}
  .miyaar-home-reference .mi-home-ref-courses__all{width:100%!important;justify-content:center!important}
  .miyaar-home-reference .mi-home-ref-featured-course__media{min-height:240px!important}
  .miyaar-home-reference .mi-home-ref-featured-course__body{padding:24px 21px!important}
  .miyaar-home-reference .mi-home-ref-featured-course__foot{align-items:flex-start!important;flex-direction:column!important}
  .miyaar-home-reference .mi-home-ref-course-grid{grid-template-columns:1fr!important;gap:18px!important}
  .miyaar-home-reference .mi-home-ref-course-card__media{height:210px!important}
  .miyaar-home-reference .mi-home-ref-stats__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .miyaar-home-reference .mi-home-ref-stat:nth-child(2)::after{display:none!important}
  .miyaar-home-reference .mi-home-ref-stat:nth-child(-n+2){border-bottom:1px solid #ebe7f0!important}
}
@media(max-width:440px){
  .miyaar-home-reference .mi-home-ref-courses>.mi-container,
  .miyaar-home-reference .mi-home-ref-stats>.mi-container{width:min(calc(100% - 20px),1120px)!important}
  .miyaar-home-reference .mi-home-ref-featured-course h3{font-size:24px!important}
  .miyaar-home-reference .mi-home-ref-course-card__media{height:185px!important}
  .miyaar-home-reference .mi-home-ref-course-card__foot{align-items:flex-start!important;flex-direction:column!important}
  .miyaar-home-reference .mi-home-ref-stat{padding:24px 10px!important}
  .miyaar-home-reference .mi-home-ref-stat strong{font-size:27px!important}
}
@media(prefers-reduced-motion:reduce){
  .miyaar-home-reference .mi-home-ref-course-card{transition:none!important}
  .miyaar-home-reference .mi-home-ref-course-card:hover{transform:none!important}
}
