.mmi-page {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: #f8fafc;
  color: #1f2937;
}

.mmi-hero {
  background: linear-gradient(135deg, #172a74 0%, #21a9af 100%);
  color: #fff;
  padding: 56px 0 40px;
}

.mmi-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}

.mmi-hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.mmi-hero p {
  opacity: 0.92;
  margin-bottom: 18px;
  max-width: 640px;
}

.mmi-hero-search {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 200px auto;
  gap: 10px;
}

.mmi-hero-search input,
.mmi-hero-search select {
  border: none;
  border-radius: 10px;
  padding: 11px 12px;
}

.mmi-find-btn {
  border: none;
  border-radius: 10px;
  background: #10b981;
  color: white;
  font-weight: 700;
  padding: 10px 16px;
}

.mmi-trust {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mmi-trust span {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
}

.mmi-hero-visual {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  overflow: hidden;
  min-height: 210px;
  background: rgba(255, 255, 255, 0.14);
}

.mmi-hero-visual img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.mmi-browse-bar {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8fafb 100%);
  border-bottom: 1px solid #dbe3f0;
  padding: 18px 0;
}

.mmi-browse-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mmi-browse-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #172a74;
  margin: 0 0 6px;
}

.mmi-browse-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  max-width: 680px;
}

.mmi-browse-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mmi-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: 0.2s;
}

.mmi-btn-primary {
  background: linear-gradient(135deg, #172a74, #21a9af);
  color: #fff !important;
}

.mmi-btn-secondary {
  background: #fff;
  color: #172a74 !important;
  border: 2px solid #172a74;
}

.mmi-btn-ghost {
  background: transparent;
  color: #172a74 !important;
  border: 1px solid #cbd5e1;
}

.mmi-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  text-decoration: none;
}

.mmi-sticky-filters {
  position: sticky;
  top: 72px;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
}

.mmi-sticky-inner {
  display: grid;
  grid-template-columns: 1fr 180px 180px 180px;
  gap: 10px;
}

.mmi-sticky-inner input,
.mmi-sticky-inner select {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
}

.mmi-main {
  padding: 28px 0 56px;
}

.mmi-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.mmi-cat-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mmi-cat-btn.active,
.mmi-cat-btn:hover {
  background: #172a74;
  color: #fff;
  border-color: #172a74;
}

.mmi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.mmi-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
}

.mmi-card-top {
  padding: 14px 14px 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.mmi-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #172a74, #21a9af);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.mmi-badge {
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.mmi-card-body {
  padding: 0 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mmi-card-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #111827;
}

.mmi-meta {
  font-size: 0.82rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.mmi-commission {
  font-size: 0.95rem;
  font-weight: 700;
  color: #172a74;
  margin: 8px 0;
}

.mmi-actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mmi-view,
.mmi-promote {
  flex: 1;
  text-align: center;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.mmi-view {
  background: #f3f4f6;
  color: #172a74 !important;
}

.mmi-promote {
  background: #172a74;
  color: #fff !important;
}

.mmi-trust-strip {
  margin-top: 32px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .mmi-hero-grid { grid-template-columns: 1fr; }
  .mmi-hero-search { grid-template-columns: 1fr; }
  .mmi-sticky-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
  .mmi-sticky-inner { grid-template-columns: 1fr; }
}
