/* ============================================================
   MJ Featured Grid — Saraya style
   ============================================================ */
.mjfg-wrap { width: 100%; box-sizing: border-box; font-family: inherit; }

/* Header */
.mjfg-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mjfg-section-title { margin: 0; font-size: 20px; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 8px; border-right: 4px solid #dc2626; padding-right: 12px; }
.mjfg-more { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #dc2626; text-decoration: none; }
.mjfg-more:hover { opacity: 0.8; }

/* ── TIER 1: big featured (left/right 50%) + 2×2 small grid ── */
.mjfg-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-bottom: 16px; }

/* Featured big card */
.mjfg-featured { border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.mjfg-featured-link { display: block; text-decoration: none; color: inherit; }
.mjfg-featured-image { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #eee; }
.mjfg-featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.mjfg-featured:hover .mjfg-featured-image img { transform: scale(1.04); }
.mjfg-featured-body { padding: 16px; }
.mjfg-featured-title {
    margin: 0 0 10px; font-size: 17px; font-weight: 700; color: #111827;
    line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color 0.2s;
}
.mjfg-featured:hover .mjfg-featured-title { color: #dc2626; }

/* 2×2 small grid (top right) */
.mjfg-top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── TIER 2: 4-column bottom row ── */
.mjfg-bottom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Shared small card */
.mjfg-small { border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.mjfg-small-link { display: block; text-decoration: none; color: inherit; }
.mjfg-small-image { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #eee; }
.mjfg-small-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.mjfg-small:hover .mjfg-small-image img { transform: scale(1.04); }
.mjfg-small-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%); }
.mjfg-small-body { padding: 10px; }
.mjfg-small-title {
    margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #111827;
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color 0.2s;
}
.mjfg-small:hover .mjfg-small-title { color: #dc2626; }

/* Badge */
.mjfg-badge {
    position: absolute; bottom: 8px; right: 8px;
    background-color: #dc2626; color: #fff;
    font-size: 11px; font-weight: 600;
    padding: 3px 9px; border-radius: 4px; z-index: 2;
}

/* Meta */
.mjfg-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #6b7280; flex-wrap: wrap; }
.mjfg-meta-item { display: flex; align-items: center; gap: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .mjfg-bottom { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .mjfg-top { grid-template-columns: 1fr; }
    .mjfg-top-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .mjfg-top { grid-template-columns: 1fr; }
    .mjfg-top-grid { grid-template-columns: repeat(2, 1fr); }
    .mjfg-bottom { grid-template-columns: repeat(2, 1fr); }
    .mjfg-featured-title { font-size: 14px; }
    .mjfg-small-title { font-size: 12px; }
    .mjfg-featured-body { padding: 10px; }
    .mjfg-small-body { padding: 6px; }
}
