/* JM____ Shopping News Sections — scoped classes only, no element selectors */

.JM____root {
  box-sizing: border-box;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.5;
}

.JM____root *,
.JM____root *::before,
.JM____root *::after {
  box-sizing: inherit;
}

/* ── Hero Section ── */

.JM____hero {
  background-color: #f7f7f7;
  padding: 56px 24px 48px;
  text-align: center;
}

.JM____hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.JM____hero-title {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111;
}

.JM____hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #6b7280;
}

.JM____hero-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.JM____hero-meta-text {
  display: inline;
}

.JM____hero-meta-sep {
  margin: 0 2px;
}

.JM____hero-btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #111;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.JM____hero-btn:hover {
  border-color: #9ca3af;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ── Content Section ── */

.JM____content {
  background: #fff;
  padding: 32px 24px 64px;
}

.JM____content-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* Article Grid */

.JM____grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.JM____card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.JM____card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.JM____card-image-wrap {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f4f6;
}

.JM____card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.JM____card-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.JM____card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.JM____card-category {
  color: #FF5757;
  font-weight: 600;
}

.JM____card-meta-dot {
  color: #d1d5db;
}

.JM____card-read-time {
  color: #000;
}

.JM____card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */

.JM____pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 48px;
}

.JM____pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #374151;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.JM____pagination-btn:hover {
  border-color: #9ca3af;
  color: #111;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.JM____pagination-arrow {
  font-size: 15px;
  line-height: 1;
}

.JM____pagination-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.JM____pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #374151;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.JM____pagination-page:hover {
  background: #f3f4f6;
  color: #111;
}

.JM____pagination-page--active {
  color: #fff;
  background: #FF5757;
  border-color: #FF5757;
}

.JM____pagination-page--active:hover {
  background: #d16a50;
  border-color: #d16a50;
  color: #fff;
}

.JM____pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 36px;
  font-size: 14px;
  color: #9ca3af;
  user-select: none;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .JM____grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .JM____hero {
    padding: 40px 16px 36px;
  }

  .JM____content {
    padding: 24px 16px 48px;
  }

  .JM____grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .JM____pagination-btn-text {
    display: none;
  }

  .JM____pagination-btn {
    padding: 8px 12px;
  }
}
