/* ================= SECTION ================= */

.related {
    padding: 80px 0;
    max-width: 1100px;
    margin: auto;
}

.related-title {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    margin-bottom: 40px;
}

/* ================= GRID ================= */

.related-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
}

/* ================= CARD ================= */

.related-card {
    width: 300px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 24px;
    text-align: center;

    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);

    transition: all 0.35s ease;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Hover */
.related-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* ================= IMAGE ================= */

.related-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 15px;
}

/* ================= TITLE ================= */

.related-card p {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #2f3b2f;

    display: -webkit-box;
    -webkit-box-orient: vertical;

    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 72px;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .related-grid {
        flex-wrap: wrap;
    }

    .related-card {
        width: 90%;
    }
}