
/* =========================
   MAB Home — Featured Categories (Academic)
   ========================= */

.mab-home-feature{
  margin-top: 18px;
  direction: rtl;
}

.mab-home-feature__wrap{
  border-radius: 18px;
  padding: clamp(16px, 2.6vw, 24px);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 14px 36px rgba(2,6,23,.06);
}

/* Head */
.mab-home-feature__head{
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.mab-home-feature__title{
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 1000;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.mab-home-feature__sub{
  margin: 0;
  font-size: 13.6px;
  line-height: 1.95;
  color: rgba(15,23,42,.72);
  max-width: 85ch;
}

/* Grid */
.mab-home-feature__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Cards (Academic: low-noise) */
.mab-fcard{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(248,250,252,.92);
  border: 1px solid rgba(15,23,42,.08);
  text-decoration: none !important;
  color: inherit;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
  min-height: 70px;
}

.mab-fcard:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
  background: rgba(255,255,255,.96);
}

.mab-fcard__icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.08);
  flex: 0 0 auto;
  font-size: 18px;
  opacity: .9;
}

.mab-fcard__txt{
  min-width: 0;
}

.mab-fcard__txt strong{
  display:block;
  font-weight: 1000;
  font-size: 13.2px;
  color: #0f172a;
  margin-bottom: 3px;
}

.mab-fcard__txt span{
  display:block;
  font-size: 12.4px;
  line-height: 1.8;
  color: rgba(15,23,42,.72);
}

/* Primary card: still academic (not flashy) */
.mab-fcard--primary{
  background: rgba(255,255,255,.96);
  border-color: rgba(37,99,235,.18);
}
.mab-fcard--primary .mab-fcard__icon{
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.16);
}

/* Footnote */
.mab-home-feature__foot{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(15,23,42,.18);
}

.mab-home-feature__hint{
  display: block;
  font-size: 13px;
  line-height: 1.95;
  color: rgba(15,23,42,.74);
}

.mab-home-feature__hint a{
  color: rgba(15,23,42,.92);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 980px){
  .mab-home-feature__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px){
  .mab-home-feature__grid{
    grid-template-columns: 1fr;
  }
}