/* IM Powerhouse — Reviews Masonry v1.2 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ── Grid ── */
.imrm-wrap {
  font-family: 'DM Sans', -apple-system, sans-serif;
  max-width: 1100px;
  margin: 0 auto;
}
.imrm-cols-3 { columns: 3; column-gap: 1.25rem; }
.imrm-cols-2 { columns: 2; column-gap: 1.25rem; }

/* ── Card ── */
.imrm-card {
  background: rgba(255,255,255,.04);
  border: 0.5px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  break-inside: avoid;
  display: block;
  position: relative;
  overflow: hidden;
  transition: background .25s, border-color .25s, transform .25s;
  box-shadow: none;
  color: rgba(255,255,255,.68);
}
.imrm-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-2px);
}
.imrm-card.imrm-hl {
  background: rgba(37,99,235,.1);
  border-color: rgba(37,99,235,.28);
}
.imrm-card.imrm-hl::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563EB, #60a5fa);
}
.imrm-card.imrm-hl:hover {
  background: rgba(37,99,235,.15);
  border-color: rgba(37,99,235,.4);
}
.imrm-card.imrm-hidden { display: none; }

/* ── Stars ── */
.imrm-stars {
  color: #fbbf24;
  font-size: 15px;
  letter-spacing: 2px;
  display: block;
  margin-bottom: .75rem;
  line-height: 1;
}

/* ── Body ── */
.imrm-body {
  display: flex;
  gap: 8px;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

/* SVG quote mark */
.imrm-qsvg {
  width: 16px;
  height: 11px;
  flex-shrink: 0;
  margin-top: 4px;
  color: rgba(37,99,235,.3);
  display: block;
}
.imrm-card.imrm-hl .imrm-qsvg { color: rgba(96,165,250,.35); }

.imrm-body-text {
  font-size: 14px;
  color: rgba(255,255,255,.68);
  line-height: 1.75;
  flex: 1;
}
.imrm-body-text p {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
.imrm-card.imrm-hl .imrm-body-text,
.imrm-card.imrm-hl .imrm-body-text p { color: rgba(255,255,255,.82); }

/* ── Footer ── */
.imrm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 1rem;
  border-top: 0.5px solid rgba(255,255,255,.07);
}
.imrm-card.imrm-hl .imrm-footer { border-top-color: rgba(255,255,255,.12); }

.imrm-author-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.imrm-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  display: block;
}
.imrm-date {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  display: block;
}
.imrm-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  flex-shrink: 0;
}

/* ── View All (homepage) ── */
.imrm-viewall { text-align: center; margin-top: 2.5rem; }
.imrm-viewall-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  height: 48px;
  background: transparent;
  color: rgba(255,255,255,.55);
  border: 0.5px solid rgba(255,255,255,.14);
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.imrm-viewall-btn:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.24);
}

/* ── Load More (testimonials page) ── */
.imrm-load-more-wrap { text-align: center; margin-top: 2.5rem; }
.imrm-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  height: 50px;
  background: transparent;
  color: rgba(255,255,255,.6);
  border: 0.5px solid rgba(255,255,255,.15);
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.imrm-load-more-btn:hover:not(:disabled) {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.25);
}
.imrm-load-more-btn:disabled { opacity: .5; cursor: not-allowed; }
.imrm-btn-count { font-size: 12px; color: rgba(255,255,255,.28); }

@keyframes imrm-spin { to { transform: rotate(360deg); } }

/* ── Empty ── */
.imrm-empty {
  text-align: center;
  color: rgba(255,255,255,.35);
  padding: 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 900px) { .imrm-cols-3 { columns: 2; } }
@media (max-width: 560px) {
  .imrm-cols-3, .imrm-cols-2 { columns: 1; }
  .imrm-card { padding: 1.25rem; }
}
