.mm-wrap{
  padding-top: 120px;
  padding-bottom: 28px;
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, rgba(252,239,255,1) 0%, rgba(252,239,255,0.6) 30%, rgba(255,255,255,1) 60%);
}

.mm-hero{
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px 16px 18px;
  text-align: center;
}

.mm-hero-title{
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #210346;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
}

.mm-hero-subtitle{
  margin: 0 auto 18px;
  max-width: 880px;
  color: rgba(33, 3, 70, 0.62);
  font-size: 18px;
  line-height: 1.6;
}

.mm-hero-search{
  display: flex;
  justify-content: center;
  padding: 8px 0 18px;
}

.mm-hero-search-inner{
  width: min(920px, 100%);
  background: #fff;
  border: 2px solid #370178;   /* single border */
  border-radius: 999px;
  padding: 10px 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 12px 40px rgba(33, 3, 70, 0.06);
}

.mm-hero-search-icon{
  color: #370178;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.mm-hero-search-input{
  flex: 1;
  min-width: 0;
  border: 0 !important;        /* prevents “second border” */
  outline: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  font-size: 18px;
  color: #210346;
}

.mm-hero-search-input::placeholder{
  color: rgba(33, 3, 70, 0.45);
}

.mm-hero-search-btn{
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 18px;
  font-weight: 900;
  background: #6B2BAA;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.mm-hero-search-btn:hover{
  background: #370178;
}


.mm-empty {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 16px;
  border: 1px solid rgba(55, 1, 120, 0.12);
  border-radius: 16px;
  background: #fff;
  color: #210346;
}
.mm-empty h3 { margin: 0 0 6px; font-weight: 800; }
.mm-empty p { margin: 0 0 12px; color: rgba(33, 3, 70, 0.7); }
.mm-clear { color: #6B2BAA; text-decoration: none; font-weight: 600; }
.mm-clear:hover { text-decoration: underline; }

.mm-controls{
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px 18px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.mm-controls-left{ flex: 1; min-width: 260px; }
.mm-controls-right{ display: flex; align-items: center; }

.mm-pills{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mm-pill{
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(55,1,120,0.14);
  color: #210346;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  text-decoration: none;
  font-weight: 800;
}
.mm-pill:hover{ border-color: rgba(55,1,120,0.28); }
.mm-pill.is-active{
  background: #370178;
  border-color: #370178;
  color: #fff;
}

.mm-filter-form{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mm-select-wrap{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(55,1,120,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
}

.mm-label{
  font-size: 12px;
  color: rgba(33, 3, 70, 0.7);
  font-weight: 800;
}

.mm-select{
  border: 0;
  outline: 0;
  font-size: 13px;
  color: #210346;
  background: transparent;
  padding: 0;
}

.mm-toggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #210346;
  padding: 10px 14px;
  border: 1px solid rgba(55,1,120,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  font-weight: 900;
}
.mm-toggle input{ width: 18px; height: 18px; accent-color: #FF0998; }

.mm-btn{
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  color: #fff;
  background: #6B2BAA;
  cursor: pointer;
  font-weight: 900;
}
.mm-btn:hover{ background: #370178; }

.mm-link{
  font-size: 13px;
  color: #6B2BAA;
  text-decoration: none;
  padding: 10px 6px;
  font-weight: 900;
}
.mm-link:hover{ text-decoration: underline; }

.mm-grid{
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1100px){
  .mm-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .mm-grid{ grid-template-columns: 1fr; }
  .mm-wrap{ padding-top: 104px; }
  .mm-hero-search{ flex-direction: column; }
  .mm-hero-search-btn{ width: 100%; }
}

.mm-card{
  position: relative;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(55, 1, 120, 0.12);
  border-radius: 20px;
  padding: 28px 18px 16px;  /* extra top padding so content doesn't collide */
  box-shadow: 0 12px 36px rgba(33, 3, 70, 0.06);
  min-height: 240px;
  overflow: visible;        /* IMPORTANT — allows chips to overflow */
}

}

.mm-card-header{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
  padding-top: 18px;
}

.mm-avatar{
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(149, 70, 219, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mm-logo{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mm-letter{
  font-weight: 900;
  font-size: 24px;
  color: #210346;
}

.mm-card-title{ min-width: 0; }

.mm-name{
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
  color: #210346;
  line-height: 1.12;
}

.mm-cat{
  display: inline-flex;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(55, 1, 120, 0.14);
  background: rgba(252, 239, 255, 0.7);
  color: #210346;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 800;
}

.mm-desc{
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(33, 3, 70, 0.62);
}

.mm-meta{
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.mm-meta-row{
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: rgba(33, 3, 70, 0.62);
}

.mm-meta-row a{
  color: #6B2BAA;
  text-decoration: none;
  font-weight: 900;
}
.mm-meta-row a:hover{ text-decoration: underline; }

.mm-icon{
  width: 18px;
  display: inline-flex;
  justify-content: center;
  opacity: 0.85;
}

.mm-chip{
  position: absolute;
  top: -14px;              /* move it above the card */
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  z-index: 5;              /* ensure it sits above card */
}


.mm-chip-eaa{
  left: 18px;
  background: #370178;
  color: #ffffff;
  border: none;
}

.mm-chip-featured{
  right: 18px;
  background: #FF0998;
  color: #ffffff;
  border: none;
}

.mm-pagination{
  max-width: 1440px;
  margin: 18px auto 0;
  padding: 0 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.mm-page-btn{
  border: 1px solid rgba(55, 1, 120, 0.15);
  background: #fff;
  color: #210346;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}
.mm-page-btn:hover{ border-color: rgba(55, 1, 120, 0.35); }

.mm-page-label{
  font-size: 13px;
  color: rgba(33, 3, 70, 0.7);
  font-weight: 800;
}
