.mzng-grid,
.mzng-grid * {
    font-family: "Roboto", sans-serif !important;
    box-sizing: border-box;
}

/* ── Grid layout ── */
.mzng-inner {
    display: grid;
    grid-template-columns: repeat(var(--mzng-cols, 3), 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .mzng-inner {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .mzng-inner {
        grid-template-columns: repeat(min(var(--mzng-cols, 3), 2), 1fr);
    }
}

/* ── Card ── */
.mzng-card {
    position: relative;
    overflow: hidden;
    background: #111;
}

.mzng-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ── Image ── */
.mzng-image-wrap {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.mzng-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.mzng-card-link:hover .mzng-image-wrap img {
    transform: scale(1.04);
}

/* ── Overlay ── */
.mzng-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
}

/* ── Category badge ── */
.mzng-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #000;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    padding: 10px 10px;
    z-index: 2;
}

/* ── Author ── */
.mzng-author {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #d62828;
    padding: 10px 10px;
    min-width: 80px;
    max-width: 80px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1;
    gap: 5px;
    z-index: 2;
}

.mzng-author img,
.mzng-author .avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* ── Content on image ── */
.mzng-content {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    color: #fff;
}

.mzng-title {
    margin: 0 0 6px;
    font-size: 23px !important;
    font-weight: 900 !important;
    line-height: 1.2;
    color: #fff;
}

@media (max-width: 768px) {
    .mzng-title {
        font-size: 26px !important;
    }
}

.mzng-date {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #ff3040;
}

/* ── Fade-in animation on load-more ── */
@keyframes mzng-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mzng-card-animate {
    animation: mzng-fade-in 0.4s ease both;
}
