/* ================================================================
   Joy News Pro — widget.css v2.0
   Full magazine homepage, 5 block styles, ad slots, responsive
   Colors controlled entirely via CSS variables (set from PHP)
   ================================================================ */

/* ── Variables & Reset ──────────────────────────────────────────── */
:root {
  --jnp-accent:      #FD0000;
  --jnp-accent-dark: #cc0000;
  --jnp-secondary:   #222222;
  --jnp-surface:     #f5f5f5;
  --jnp-text:        #1a1a2e;
  --jnp-muted:       #777777;
  --jnp-bg-site:     #f7f7f7;
  --jnp-bg-card:     #ffffff;
  --jnp-font:        'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  --jnp-base-size:   16px;
  --jnp-radius:      8px;
  --jnp-radius-sm:   5px;
  --jnp-shadow:      0 2px 12px rgba(0,0,0,.07);
  --jnp-shadow-lg:   0 6px 28px rgba(0,0,0,.13);
  /* Spacing scale */
  --sp-xs:  8px;
  --sp-sm:  12px;
  --sp-md:  20px;
  --sp-lg:  32px;
  --sp-xl:  48px;
  /* Block gap (between category blocks) */
  --block-gap: 44px;
  /* Ad slot spacing */
  --ad-gap: 36px;

  /* ── Logo brand colors (Times Bulletin 24) ──────────────────────
     Black  #111111  — logo main text
     Red    #E8000D  — logo highlight ("বুলেটিন")
     Blue   #0057C8  — logo tagline ("সময়ের সঠিক উচ্চারণ")
     Cycle: 0=red, 1=black, 2=blue, 3=red, 4=black, 5=blue …
  ─────────────────────────────────────────────────────────────── */
  --logo-red:   #E8000D;
  --logo-black: #111111;
  --logo-blue:  #0057C8;
}

*, *::before, *::after { box-sizing: border-box; }

body { font-family: var(--jnp-font); }

/* ── Homepage outer wrapper ─────────────────────────────────────── */
.jnp-homepage-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--block-gap);
  padding: var(--sp-md) 0;
}

/* ── Category Block ─────────────────────────────────────────────── */
.jnp-cat-block { width: 100%; }

/* ── Block Header ───────────────────────────────────────────────── */
.jnp-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-md);
  padding-bottom: 10px;
  /* Underline color controlled per-block by data-idx cycling */
  border-bottom: none;
  gap: var(--sp-sm);
}

/* ── Per-block color cycling: Red → Black → Blue → repeat ──────── */
/* idx 0,3,6,9…  → Red   (logo highlight color)  */
/* idx 1,4,7,10… → Black (logo main text color)   */
/* idx 2,5,8,11… → Blue  (logo tagline color)      */

.jnp-cat-block[data-idx="0"]  { --block-color: var(--logo-red);   }
.jnp-cat-block[data-idx="1"]  { --block-color: var(--logo-black); }
.jnp-cat-block[data-idx="2"]  { --block-color: var(--logo-blue);  }
.jnp-cat-block[data-idx="3"]  { --block-color: var(--logo-red);   }
.jnp-cat-block[data-idx="4"]  { --block-color: var(--logo-black); }
.jnp-cat-block[data-idx="5"]  { --block-color: var(--logo-blue);  }
.jnp-cat-block[data-idx="6"]  { --block-color: var(--logo-red);   }
.jnp-cat-block[data-idx="7"]  { --block-color: var(--logo-black); }
.jnp-cat-block[data-idx="8"]  { --block-color: var(--logo-blue);  }
.jnp-cat-block[data-idx="9"]  { --block-color: var(--logo-red);   }
.jnp-cat-block[data-idx="10"] { --block-color: var(--logo-black); }
.jnp-cat-block[data-idx="11"] { --block-color: var(--logo-blue);  }
.jnp-cat-block[data-idx="12"] { --block-color: var(--logo-red);   }
.jnp-cat-block[data-idx="13"] { --block-color: var(--logo-black); }
.jnp-cat-block[data-idx="14"] { --block-color: var(--logo-blue);  }

/* Title bar (left accent stripe) also uses block color */
.jnp-title-bar {
  display: inline-block;
  width: 5px;
  height: 24px;
  background: var(--block-color, var(--logo-red));
  border-radius: 2px;
  flex-shrink: 0;
}

/* View-all button inherits block color */
.jnp-cat-block .jnp-view-all {
  color: var(--block-color, var(--logo-red));
  border-color: var(--block-color, var(--logo-red));
}
.jnp-cat-block .jnp-view-all:hover {
  background: var(--block-color, var(--logo-red));
  color: #fff;
}

/* Compact list number also uses block color */
.jnp-cat-block .jnp-compact-num {
  color: var(--block-color, var(--logo-red));
}

.jnp-block-title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  font-family: var(--jnp-font);
  color: var(--jnp-text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.jnp-block-title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.jnp-block-title a:hover { color: var(--block-color, var(--logo-red)); }

/* Default view-all (outside cat-block context) */
.jnp-view-all {
  font-size: 13px;
  color: var(--jnp-accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid var(--jnp-accent);
  padding: 5px 14px;
  border-radius: 20px;
  transition: background .2s, color .2s;
  font-family: var(--jnp-font);
  flex-shrink: 0;
}
.jnp-view-all:hover { background: var(--jnp-accent); color: #fff; }
.jnp-view-all span { display: inline-block; transition: transform .2s; }
.jnp-view-all:hover span { transform: translateX(3px); }

/* ── Generic card base ──────────────────────────────────────────── */
.jnp-card {
  background: var(--jnp-bg-card);
  border-radius: var(--jnp-radius);
  overflow: hidden;
  box-shadow: var(--jnp-shadow);
  transition: box-shadow .28s ease, transform .28s ease;
  display: flex;
  flex-direction: column;
}
.jnp-card:hover {
  box-shadow: var(--jnp-shadow-lg);
  transform: translateY(-3px);
}

.jnp-card-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--jnp-surface);
  flex-shrink: 0;
}
.jnp-card--standard .jnp-card-img-wrap,
.jnp-card--small    .jnp-card-img-wrap { aspect-ratio: 16/9; }
.jnp-card--featured .jnp-card-img-wrap { aspect-ratio: 16/9; }
.jnp-card--scroll   .jnp-card-img-wrap { aspect-ratio: 4/3; }

.jnp-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .45s ease;
}
.jnp-card:hover .jnp-thumb { transform: scale(1.05); }

/* Placeholder */
.jnp-ph {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: linear-gradient(135deg, var(--jnp-surface) 30%, #e5e5e5);
  position: relative;
}
.jnp-ph::after {
  content: '📰';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 36px; opacity: .2;
}

.jnp-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Category badge ─────────────────────────────────────────────── */
.jnp-cat-badge {
  display: inline-block;
  background: var(--jnp-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  padding: 3px 9px;
  border-radius: 3px;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity .2s;
  font-family: var(--jnp-font);
}
.jnp-cat-badge:hover { opacity: .82; color: #fff; }
/* Badge on image overlay */
.jnp-card-img-wrap .jnp-cat-badge {
  position: absolute;
  bottom: 10px; left: 10px;
  margin: 0; z-index: 2;
}
.jnp-cat-badge--xs { font-size: 9px; padding: 2px 7px; margin-bottom: 4px; display: inline-block; }

/* ── Post titles ────────────────────────────────────────────────── */
.jnp-post-title {
  margin: 0;
  font-family: var(--jnp-font);
  font-weight: 700;
  line-height: 1.42;
  color: var(--jnp-text);
}
.jnp-post-title a { color: inherit; text-decoration: none; transition: color .2s; }
.jnp-post-title a:hover { color: var(--jnp-accent); }
.jnp-card--featured .jnp-post-title { font-size: clamp(16px, 1.8vw, 22px); }
.jnp-card--standard .jnp-post-title { font-size: clamp(14px, 1.5vw, 17px); }
.jnp-post-title--sm  { font-size: 14px; }
.jnp-post-title--mini{ font-size: 14px; font-weight: 600; line-height: 1.4; }

/* ── Excerpt ────────────────────────────────────────────────────── */
.jnp-excerpt {
  font-size: 13px;
  line-height: 1.65;
  color: var(--jnp-muted);
  margin: 0;
  font-family: var(--jnp-font);
}
.jnp-excerpt--xs { font-size: 12px; }

/* ── Meta (date etc.) ───────────────────────────────────────────── */
.jnp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}
.jnp-date {
  font-size: 11px;
  color: var(--jnp-muted);
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--jnp-font);
}

/* ═══════════════════════════════════════════════
   STYLE A — Featured List
   Left: big featured card (60%)
   Right: stacked mini-cards (40%)
   ═══════════════════════════════════════════════ */
.jnp-bl-featured-list {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: var(--sp-md);
  align-items: start;
}
.jnp-bfl-main { height: 100%; }
.jnp-bfl-main .jnp-card--featured {
  height: 100%;
}
.jnp-bfl-main .jnp-card--featured .jnp-card-img-wrap {
  aspect-ratio: auto;
  flex: 1;
  min-height: 200px;
}
.jnp-bfl-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

/* Mini card (sidebar list item) */
.jnp-mini-card {
  display: flex;
  gap: var(--sp-sm);
  background: var(--jnp-bg-card);
  border-radius: var(--jnp-radius-sm);
  overflow: hidden;
  box-shadow: var(--jnp-shadow);
  padding: var(--sp-xs);
  transition: box-shadow .25s;
  align-items: flex-start;
}
.jnp-mini-card:hover { box-shadow: var(--jnp-shadow-lg); }
.jnp-mini-thumb {
  flex: 0 0 90px;
  height: 68px;
  overflow: hidden;
  border-radius: 5px;
  display: block;
}
.jnp-mini-thumb .jnp-thumb { height: 100%; }
.jnp-mini-body { flex: 1; min-width: 0; }

/* ═══════════════════════════════════════════════
   STYLE B — 3-column grid
   ═══════════════════════════════════════════════ */
.jnp-bl-grid {
  display: grid;
  gap: var(--sp-md);
}
.jnp-bl-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ═══════════════════════════════════════════════
   STYLE C — Featured + 4 small (2×2)
   ═══════════════════════════════════════════════ */
.jnp-bl-featured-four {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-md);
  align-items: start;
}
.jnp-bff-main .jnp-card--featured .jnp-card-img-wrap {
  aspect-ratio: auto;
  min-height: 220px;
}
.jnp-bff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
}
.jnp-card--small .jnp-card-body { padding: 10px 12px 12px; gap: 4px; }

/* ═══════════════════════════════════════════════
   STYLE D — Horizontal scroll
   ═══════════════════════════════════════════════ */
.jnp-bl-hscroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  margin: 0 calc(-1 * var(--sp-xs));
  padding-left: var(--sp-xs);
  padding-right: var(--sp-xs);
}
.jnp-bl-hscroll::-webkit-scrollbar { height: 4px; }
.jnp-bl-hscroll::-webkit-scrollbar-track { background: var(--jnp-surface); border-radius: 2px; }
.jnp-bl-hscroll::-webkit-scrollbar-thumb { background: var(--jnp-accent); border-radius: 2px; }
.jnp-bhs-track {
  display: flex;
  gap: var(--sp-md);
  width: max-content;
}
.jnp-card--scroll {
  width: 240px;
  flex-shrink: 0;
}
.jnp-card--scroll .jnp-card-img-wrap { aspect-ratio: 4/3; }

/* ═══════════════════════════════════════════════
   STYLE E — Compact numbered list
   ═══════════════════════════════════════════════ */
.jnp-bl-compact {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
}
.jnp-compact-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 12px 0;
  border-bottom: 1px solid var(--jnp-surface);
  transition: background .15s;
}
.jnp-compact-item:last-child { border-bottom: none; }
.jnp-compact-item:hover { background: var(--jnp-surface); margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.jnp-compact-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--jnp-accent);
  min-width: 36px;
  line-height: 1;
  font-family: var(--jnp-font);
  opacity: .7;
}
.jnp-compact-thumb {
  flex: 0 0 80px;
  height: 60px;
  overflow: hidden;
  border-radius: 5px;
  display: block;
}
.jnp-compact-thumb .jnp-thumb { height: 100%; }
.jnp-compact-text { flex: 1; min-width: 0; }
.jnp-compact-text .jnp-post-title { font-size: 14px; margin-bottom: 4px; }
.jnp-compact-text .jnp-meta { padding-top: 0; gap: 6px; }

/* ═══════════════════════════════════════════════
   AD SLOTS — precision spacing
   ═══════════════════════════════════════════════ */
.jnp-ad-between-blocks {
  /* Clear space above and below every ad strip */
  margin: calc(var(--ad-gap) / 2) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.jnp-ad-slot {
  width: 100%;
  text-align: center;
  overflow: hidden;
  border-radius: var(--jnp-radius-sm);
  padding: 6px 0;
}
.jnp-ad-slot img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.jnp-ad-slot--header_banner  { max-width: 970px; margin: 0 auto var(--sp-md); }
.jnp-ad-slot--footer_banner  { max-width: 970px; margin: var(--sp-md) auto 0; }
.jnp-ad-slot--after_cat_1,
.jnp-ad-slot--after_cat_3    { max-width: 728px; }
.jnp-ad-slot--infeed         { max-width: 320px; }

/* Device visibility */
.jnp-ad--desktop { display: block; }
.jnp-ad--mobile  { display: none; }

/* Decorative "Ad" label */
.jnp-ad-slot::before {
  content: 'বিজ্ঞাপন';
  display: block;
  font-size: 10px;
  color: #bbb;
  letter-spacing: .5px;
  margin-bottom: 4px;
  font-family: var(--jnp-font);
}

/* Mobile sticky bottom */
.jnp-mobile-sticky {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  text-align: center;
  background: var(--jnp-bg-card);
  box-shadow: 0 -2px 16px rgba(0,0,0,.18);
  padding: 4px 0;
}

/* ═══════════════════════════════════════════════
   SINGLE-WIDGET (News Posts Widget) STYLES
   ═══════════════════════════════════════════════ */
.jnp-news-wrapper { width: 100%; }

/* Grid layout */
.jnp-style-grid .jnp-posts-grid { display: grid; gap: var(--sp-md); }
.jnp-cols-1 { grid-template-columns: 1fr; }
.jnp-cols-2 { grid-template-columns: repeat(2,1fr); }
.jnp-cols-3 { grid-template-columns: repeat(3,1fr); }
.jnp-cols-4 { grid-template-columns: repeat(4,1fr); }

.jnp-style-grid .jnp-post-item,
.jnp-style-card .jnp-post-item {
  background: var(--jnp-bg-card);
  border-radius: var(--jnp-radius);
  overflow: hidden;
  box-shadow: var(--jnp-shadow);
  transition: box-shadow .28s, transform .28s;
}
.jnp-style-grid .jnp-post-item:hover,
.jnp-style-card .jnp-post-item:hover {
  box-shadow: var(--jnp-shadow-lg);
  transform: translateY(-3px);
}
.jnp-style-grid .jnp-image-wrap,
.jnp-style-card .jnp-image-wrap { aspect-ratio: 16/9; overflow: hidden; background: var(--jnp-surface); }

/* List layout */
.jnp-style-list .jnp-posts-grid { display: flex; flex-direction: column; gap: var(--sp-sm); }
.jnp-style-list .jnp-post-item { background: var(--jnp-bg-card); border-radius: var(--jnp-radius); overflow: hidden; box-shadow: var(--jnp-shadow); }
.jnp-list-inner { display: flex; gap: var(--sp-md); padding: var(--sp-sm); }
.jnp-list-image { flex: 0 0 150px; height: 105px; overflow: hidden; border-radius: 6px; }
.jnp-list-image .jnp-thumb { height: 100%; object-fit: cover; }
.jnp-list-content { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }

/* Magazine layout */
.jnp-magazine-layout {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--sp-md);
}
.jnp-magazine-layout .jnp-post-item:first-child {
  grid-column: 1/3; grid-row: 1/3;
  position: relative;
}
.jnp-magazine-layout .jnp-post-item {
  background: var(--jnp-bg-card);
  border-radius: var(--jnp-radius);
  overflow: hidden;
  box-shadow: var(--jnp-shadow);
}
.jnp-magazine-layout .jnp-featured .jnp-image-wrap { height: 100%; min-height: 280px; }
.jnp-magazine-layout .jnp-featured .jnp-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  padding: 28px 18px 18px;
}
.jnp-magazine-layout .jnp-featured .jnp-post-title a { color: #fff; font-size: 20px; }
.jnp-magazine-layout .jnp-featured .jnp-excerpt { color: rgba(255,255,255,.8); font-size: 13px; }
.jnp-magazine-layout .jnp-post-item:not(.jnp-featured) .jnp-image-wrap { aspect-ratio: 16/9; }

.jnp-image-wrap { position: relative; }
.jnp-image-wrap .jnp-cat-badge { position: absolute; bottom: 10px; left: 10px; margin: 0; z-index: 2; }
.jnp-content { padding: 14px; }

/* ── Shared post-item title/meta (single widget) */
.jnp-post-item .jnp-post-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; font-family: var(--jnp-font); }
.jnp-post-item .jnp-post-title a { color: var(--jnp-text); text-decoration: none; transition: color .2s; }
.jnp-post-item .jnp-post-title a:hover { color: var(--jnp-accent); }
.jnp-post-item .jnp-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--jnp-muted); margin-bottom: 6px; }
.jnp-post-item .jnp-excerpt { font-size: 13px; color: var(--jnp-muted); margin: 0; line-height: 1.6; font-family: var(--jnp-font); }

/* ── Pagination ─────────────────────────────────────────────────── */
.jnp-pagination {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: var(--sp-xs); margin-top: var(--sp-lg);
}
.jnp-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: var(--jnp-radius-sm);
  background: var(--jnp-bg-card); color: var(--jnp-text);
  text-decoration: none; font-weight: 600; font-size: 14px;
  transition: background .2s, color .2s; border: 1px solid #ddd;
  font-family: var(--jnp-font);
}
.jnp-pagination .page-numbers.current,
.jnp-pagination .page-numbers:hover { background: var(--jnp-accent); color: #fff; border-color: var(--jnp-accent); }

.jnp-load-more-wrap { text-align: center; margin-top: var(--sp-lg); }
.jnp-load-more {
  background: var(--jnp-accent); color: #fff;
  border: none; padding: 12px 40px; border-radius: var(--jnp-radius-sm);
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: opacity .2s, transform .2s; font-family: var(--jnp-font);
}
.jnp-load-more:hover  { opacity: .87; transform: translateY(-1px); }
.jnp-load-more:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.jnp-infinite-sentinel { text-align: center; padding: var(--sp-md); }
.jnp-loading-spinner {
  display: inline-block; width: 28px; height: 28px;
  border: 3px solid var(--jnp-surface); border-top-color: var(--jnp-accent);
  border-radius: 50%; animation: jnp-spin .7s linear infinite; opacity: 0;
}
.jnp-loading-spinner.active { opacity: 1; }
@keyframes jnp-spin { to { transform: rotate(360deg); } }

.jnp-no-posts { text-align: center; color: var(--jnp-muted); padding: var(--sp-lg); font-family: var(--jnp-font); }

/* ── Comment section ────────────────────────────────────────────── */
.comment-respond,
.comment-respond label,
.comment-respond textarea,
.comment-respond input,
.comment-respond h3,
.comment-respond .form-submit input { font-family: var(--jnp-font) !important; }
.comment-respond h3#reply-title {
  font-size: 20px; font-weight: 700; color: var(--jnp-text);
  border-bottom: 3px solid var(--jnp-accent);
  padding-bottom: 10px; margin-bottom: 16px;
}
.comment-respond .form-submit input[type="submit"] {
  background: var(--jnp-accent) !important; color: #fff;
  border: none; padding: 10px 28px; border-radius: var(--jnp-radius-sm);
  font-size: 15px; cursor: pointer; transition: opacity .2s;
}
.comment-respond .form-submit input[type="submit"]:hover { opacity: .85; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — Tablet (≤1024px)
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .jnp-bl-grid-3       { grid-template-columns: repeat(2,1fr); }
  .jnp-bl-featured-list { grid-template-columns: 1fr 1fr; }
  .jnp-bl-featured-four { grid-template-columns: 1fr 1fr; }
  .jnp-bff-main .jnp-card--featured .jnp-card-img-wrap { min-height: 180px; }
  .jnp-magazine-layout { grid-template-columns: repeat(2,1fr); }
  .jnp-magazine-layout .jnp-post-item:first-child { grid-column: 1/3; grid-row: auto; }
  .jnp-cols-4 { grid-template-columns: repeat(3,1fr); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Mobile (≤768px)
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --block-gap: 32px;
    --ad-gap:    24px;
    --sp-md:     16px;
    --sp-lg:     24px;
  }

  /* Ad device switch */
  .jnp-ad--desktop { display: none !important; }
  .jnp-ad--mobile  { display: block !important; }

  /* Blocks go single column */
  .jnp-bl-featured-list  { grid-template-columns: 1fr; }
  .jnp-bfl-main .jnp-card--featured .jnp-card-img-wrap { aspect-ratio: 16/9; flex: none; }
  .jnp-bl-grid-3         { grid-template-columns: repeat(2,1fr); }
  .jnp-bl-featured-four  { grid-template-columns: 1fr; }
  .jnp-bff-grid          { grid-template-columns: repeat(2,1fr); }
  .jnp-card--scroll      { width: 200px; }

  /* Mini thumb smaller */
  .jnp-mini-thumb { flex: 0 0 75px; height: 58px; }

  /* Magazine */
  .jnp-magazine-layout { grid-template-columns: 1fr; }
  .jnp-magazine-layout .jnp-post-item:first-child { grid-column: auto; }

  /* Single widget */
  .jnp-cols-3, .jnp-cols-4 { grid-template-columns: repeat(2,1fr); }
  .jnp-list-image { flex: 0 0 110px; height: 82px; }

  /* Block title smaller */
  .jnp-block-title { font-size: 17px; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Small mobile (≤480px)
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  :root { --block-gap: 26px; }

  .jnp-bl-grid-3       { grid-template-columns: 1fr; }
  .jnp-bff-grid        { grid-template-columns: 1fr; }
  .jnp-cols-2, .jnp-cols-3, .jnp-cols-4 { grid-template-columns: 1fr; }
  .jnp-list-inner      { flex-direction: column; }
  .jnp-list-image      { flex: none; height: 180px; width: 100%; }

  .jnp-compact-num { font-size: 18px; min-width: 28px; }
  .jnp-compact-thumb { flex: 0 0 65px; height: 50px; }
}
