/* Marketplace hub — compact hero + image category cards */
.marketplace-page {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: #eef2f7;
  color: #1e293b;
}

/* ---- Hero --------------------------------------------------------------- */
.mkt-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 80% at 92% 0%, rgba(33, 169, 175, 0.35), transparent 55%),
    radial-gradient(35% 60% at 4% 100%, rgba(245, 193, 93, 0.14), transparent 50%),
    linear-gradient(145deg, #0c173f 0%, #172a74 48%, #1a8f96 100%);
  color: #fff;
  padding: 28px 0 32px;
  text-align: center;
}

.mkt-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.mkt-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mkt-hero-kicker i {
  color: #f5c15d;
  font-size: 0.65rem;
}

.mkt-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.mkt-hero-lead {
  max-width: 640px;
  margin: 0 auto 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.45;
}

.mkt-hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(4, 16, 60, 0.22);
}

.mkt-hero-search i.fa-search {
  margin-left: 14px;
  color: #94a3b8;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.mkt-hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 8px;
  font-size: 0.9rem;
  color: #1e293b;
}

.mkt-hero-search input:focus {
  outline: none;
}

.mkt-hero-search input::placeholder {
  color: #94a3b8;
}

.mkt-hero-search button {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #172a74, #21a9af);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.mkt-hero-search button:hover {
  filter: brightness(1.06);
}

.mkt-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
  justify-content: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
}

.mkt-hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mkt-hero-stats i {
  color: #f5c15d;
  font-size: 0.7rem;
}

/* ---- Category grid ------------------------------------------------------ */
.mkt-section {
  padding: 22px 0 28px;
}

.mkt-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

.mkt-section-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #172a74;
}

.mkt-section-head p {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

.mkt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.mkt-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mkt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  border-color: rgba(23, 42, 116, 0.25);
  text-decoration: none;
  color: inherit;
}

.mkt-card-cover-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.mkt-card-title-link {
  color: inherit;
  text-decoration: none;
}
.mkt-card-title-link:hover,
.mkt-card-cover-link:hover {
  text-decoration: none;
  color: inherit;
}

.mkt-card-cover {
  position: relative;
  height: 96px;
  overflow: hidden;
  background: var(--mkt-accent, #172a74);
}

.mkt-card-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, transparent 55%);
  z-index: 1;
}

.mkt-card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: scale(1);
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.mkt-card:hover .mkt-card-cover img {
  transform: scale(1.06);
}

.mkt-card-icon {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--mkt-accent, #172a74);
  font-size: 0.72rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mkt-card-body {
  padding: 10px 11px 11px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mkt-card-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.mkt-card-tagline {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.3;
}

.mkt-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mkt-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  text-transform: capitalize;
  text-decoration: none;
}
a.mkt-pill:hover {
  background: #172a74;
  color: #fff;
  text-decoration: none;
}

.mkt-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
}

.mkt-card-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: #172a74;
  text-decoration: none;
}

.mkt-card-link i {
  font-size: 0.62rem;
  margin-left: 3px;
  transition: transform 0.2s ease;
}

.mkt-card:hover .mkt-card-link i {
  transform: translateX(3px);
}

.mkt-card.hidden-by-search {
  display: none;
}

.mkt-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 16px;
  color: #64748b;
  font-size: 0.88rem;
}

/* ---- CTA strip ---------------------------------------------------------- */
.mkt-cta {
  padding: 20px 16px 28px;
  max-width: 1140px;
  margin: 0 auto;
}

.mkt-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.mkt-cta-text {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.mkt-cta-text strong {
  display: block;
  color: #0f172a;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.mkt-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1f2937;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mkt-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
  color: #1f2937;
  text-decoration: none;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 992px) {
  .mkt-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .mkt-hero {
    padding: 22px 0 26px;
  }

  .mkt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mkt-card-cover {
    height: 76px;
  }

  .mkt-hero-search {
    flex-direction: column;
    border-radius: 14px;
    padding: 8px;
  }

  .mkt-hero-search i.fa-search {
    display: none;
  }

  .mkt-hero-search input {
    width: 100%;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
  }

  .mkt-hero-search button {
    width: 100%;
  }

  .mkt-cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .mkt-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mkt-card-tagline {
    display: none;
  }
}
