
:root{
  --jmh-surface:#fff;
  --jmh-text:#0b1220;
  --jmh-muted:rgba(11,18,32,.72);
  --jmh-line:rgba(11,18,32,.10);
  --jmh-blue:#2563eb;
  --jmh-red:#ef4444;
  --jmh-shadow:0 14px 38px rgba(11,18,32,.10);
  --jmh-radius:18px;
  --jmh-pad-x:clamp(14px,2.6vw,72px);
  --jmh-gap:clamp(10px,1.0vw,16px);
}
.jmh-page{ background:#f6f7fb; }
.jmh-container{ width:100%; max-width:100%; margin:0; padding-left:var(--jmh-pad-x); padding-right:var(--jmh-pad-x); }

.jmh-top{
  padding: clamp(12px, 1.6vw, 18px) 0;
  border-bottom:1px solid rgba(11,18,32,.06);
  background:
    radial-gradient(900px 240px at 20% 0%, rgba(37,99,235,.14), transparent 60%),
    radial-gradient(900px 240px at 90% 30%, rgba(239,68,68,.10), transparent 60%),
    #ffffff;
}
.jmh-h1{ margin:0; font-size:clamp(22px,2.0vw,34px); letter-spacing:-.02em; color:var(--jmh-text); }
.jmh-subtitle{ margin:8px 0 0; font-size:clamp(13px,1.05vw,16px); color:var(--jmh-muted); max-width:1100px; }

.jmh-section{ padding: clamp(14px, 1.8vw, 24px) 0; }
.jmh-section__head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:10px; }
.jmh-section__title{ margin:0; font-size:clamp(18px,1.25vw,22px); color:var(--jmh-text); position:relative; padding-left:12px; }
.jmh-section__title:before{
  content:""; position:absolute; left:0; top:.25em; width:4px; height:1.15em;
  border-radius:999px; background:linear-gradient(180deg,var(--jmh-blue),var(--jmh-red));
}
.jmh-section__more{ font-size:14px; color:var(--jmh-blue); text-decoration:none; font-weight:800; }
.jmh-section__more:hover{ text-decoration:underline; }
.jmh-section__hint{ font-size:12px; color:rgba(11,18,32,.55); }

.jmh-grid{ display:grid; gap:var(--jmh-gap); }
.jmh-grid--cols-1{ grid-template-columns:1fr; }
.jmh-grid--cols-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.jmh-grid--cols-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.jmh-grid--cols-4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.jmh-grid--cols-5{ grid-template-columns:repeat(5,minmax(0,1fr)); }
.jmh-grid--cols-6{ grid-template-columns:repeat(6,minmax(0,1fr)); }
.jmh-grid__item--featured{ grid-column:span 2; grid-row:span 2; }

.jmh-card{
  overflow:hidden;
  border-radius:var(--jmh-radius);
  background:var(--jmh-surface);
  border:1px solid var(--jmh-line);
  box-shadow:var(--jmh-shadow);
  display:flex;
  flex-direction:column;
  height:100%;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.jmh-card:hover{
  transform:translateY(-4px);
  border-color:rgba(37,99,235,.28);
  box-shadow:0 18px 48px rgba(37,99,235,.14), 0 0 0 1px rgba(37,99,235,.20), 0 8px 28px rgba(11,18,32,.08);
}
.jmh-card__media{ display:block; aspect-ratio:16/9; background:#eaeef7; overflow:hidden; }
.jmh-card__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.jmh-card__placeholder{ width:100%; height:100%; background:linear-gradient(135deg, rgba(37,99,235,.18), rgba(239,68,68,.10)); }
.jmh-card__body{ padding:14px 14px 16px; display:flex; flex-direction:column; gap:10px; flex:1; }
.jmh-card__meta{ display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--jmh-muted); font-size:12px; }
.jmh-pill{ display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; background:rgba(37,99,235,.10); color:#1e40af; font-weight:900; letter-spacing:.02em; }
.jmh-date{ opacity:.9; }
.jmh-card__title{ margin:0; font-size:16px; line-height:1.2; }
.jmh-card__title a{ color:var(--jmh-text); text-decoration:none; }
.jmh-card__title a:hover{ text-decoration:underline; }
.jmh-card__excerpt{ margin:0; color:var(--jmh-muted); font-size:14px; line-height:1.5; }
.jmh-card--featured .jmh-card__title{ font-size:clamp(18px,1.4vw,22px); }
.jmh-card--featured .jmh-card__excerpt{ font-size:15px; }
.jmh-card__ad{ margin-top:auto; }

.jmh-ad{
  width:100%;
  border-radius:16px;
  overflow:hidden;
  border:1px dashed rgba(37,99,235,.25);
  background:rgba(37,99,235,.04);
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.jmh-ad--placeholder{ color:rgba(11,18,32,.60); font-weight:800; }
.jmh-ad--leaderboard{ min-height:90px; }
.jmh-ad--square{ aspect-ratio:1/1; min-height:250px; }

.jmh-ads-grid{ display:grid; gap:var(--jmh-gap); }
.jmh-ads-grid--2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.jmh-ads-grid--1{ grid-template-columns:1fr; }

.jmh-empty{
  padding:18px;
  border-radius:var(--jmh-radius);
  background:rgba(11,18,32,.04);
  border:1px dashed rgba(11,18,32,.18);
  color:rgba(11,18,32,.75);
}

/* Filters */
.jmh-filters{ margin:8px 0 14px; }
.jmh-filters__row{ display:flex; flex-wrap:wrap; gap:12px; align-items:end; }
.jmh-field{ display:flex; flex-direction:column; gap:6px; min-width:220px; flex:1 1 220px; }
.jmh-field__label{ font-size:12px; color:rgba(11,18,32,.75); }
.jmh-input{
  border-radius:14px;
  border:1px solid rgba(11,18,32,.14);
  padding:12px 12px;
  background:#fff;
  outline:none;
}
.jmh-input:focus{ border-color:rgba(37,99,235,.55); box-shadow:0 0 0 4px rgba(37,99,235,.12); }
.jmh-btn{
  border:0;
  border-radius:14px;
  padding:12px 16px;
  background:linear-gradient(135deg,var(--jmh-blue),var(--jmh-red));
  color:#fff;
  font-weight:900;
  cursor:pointer;
  min-height:44px;
  letter-spacing:.02em;
}
.jmh-btn:hover{ filter:brightness(1.02); }

.jmh-pagination ul{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  list-style:none;
  padding:0;
  margin:16px 0 0;
}
.jmh-pagination a, .jmh-pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  height:44px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(11,18,32,.14);
  background:#fff;
  text-decoration:none;
  color:rgba(11,18,32,.85);
  font-weight:900;
}
.jmh-pagination .current{
  background:rgba(37,99,235,.10);
  border-color:rgba(37,99,235,.25);
  color:#1e40af;
}

/* Responsive */
@media (max-width:1400px){
  .jmh-grid--cols-6{ grid-template-columns:repeat(4,minmax(0,1fr)); }
  .jmh-grid--cols-5{ grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:1200px){
  .jmh-grid--cols-4{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .jmh-grid--cols-5{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .jmh-grid--cols-6{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .jmh-grid__item--featured{ grid-column:span 3; grid-row:span 1; }
}
@media (max-width:920px){
  .jmh-grid--cols-3, .jmh-grid--cols-4, .jmh-grid--cols-5, .jmh-grid--cols-6{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .jmh-grid__item--featured{ grid-column:span 2; }
  .jmh-ads-grid--2{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .jmh-grid--cols-2, .jmh-grid--cols-3, .jmh-grid--cols-4, .jmh-grid--cols-5, .jmh-grid--cols-6{
    grid-template-columns:1fr;
  }
  .jmh-grid__item--featured{ grid-column:span 1; }
  .jmh-field{ min-width:100%; }
}
