/* ============================
   Related Posts Wrapper
=============================== */

.jb-related-posts {
    margin-top: 40px;
    padding: 24px 24px 26px;
    border-radius: 18px;
    border: 1px solid #dbe4f3;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jb-related-title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

/* ============================
   Grid Layout
=============================== */

.jb-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

/* ============================
   Each Card
=============================== */

.jb-related-card {
    background: #f9fbff;
    border-radius: 14px;
    padding: 10px;
    text-decoration: none;
    display: block;
    border: 1px solid #e3ebfa;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.jb-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
    border-color: #4f8dfc;
}

/* Thumbnail */

.jb-related-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
}

/* Thumbnail না থাকলে টাইটেল বক্স */

.jb-related-no-thumb {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e5edff, #f5f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    color: #475569;
}

/* Title */

.jb-related-post-title {
    margin: 10px 4px 4px;
    font-size: 15px;
    line-height: 1.4;
    color: #111827;
    font-weight: 600;
}

/* ============================
   Responsive
=============================== */

@media (max-width: 768px) {
    .jb-related-posts {
        padding: 18px 16px 20px;
        border-radius: 16px;
    }

    .jb-related-title {
        font-size: 20px;
    }

    .jb-related-thumb img,
    .jb-related-no-thumb {
        height: 130px;
    }
}

@media (max-width: 480px) {
    .jb-related-grid {
        grid-template-columns: 1fr;
    }

    .jb-related-thumb img,
    .jb-related-no-thumb {
        height: 125px;
    }
}
