/* Related Posts Styles */
.related-posts-section {
    margin: 40px 0;
    padding: 20px 0;
}

.related-posts-title {
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
    font-family: "Poppins", Sans-serif;
    font-size: 31px;
    font-weight: 700;
    line-height: 48px;
    letter-spacing: 1px;
    color: #242424;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
}

.related-post-item {
    display: flex;
    flex-direction: column;
    padding: 14px;
    text-align: center;
    background-color: #ffffff;
    transition: box-shadow 0.3s ease;
}

.related-post-image img {
    height: 300px !important;
    width: 100% !important;
    object-fit: cover;
    border-radius: 4px !important;
}

.related-post-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.related-post-title {
    margin-bottom: 10px;
    text-align: left;
}

.related-post-title a {
    color: #333;
    text-decoration: none;
    font-size: 17px;
    font-style: normal;
    font-weight: 600;
    line-height: 21px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1px;
    letter-spacing: -0.3px;
}

.related-post-excerpt {
    color: #3B3B3B;
    font-family: "Poppins", Sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 28px;
    letter-spacing: 0px;
    text-align: left;
}

.related-post-readmore {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    margin-top: 15px;
    color: #000000;
    background-color: #faf6f4;
    padding: 8px 40px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    font-family: "Poppins", Sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.related-post-item:hover .related-post-readmore {
    background-color: #100803;
    color: #ffffff;
}

/* Tablet és mobil nézet */
@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 767px) {
    .related-posts-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
    }

    .related-posts-title {
        font-size: 26px;
    }

    .related-post-title a {
        font-size: 22px;
        line-height: 26px;
    }

    .related-post-excerpt {
        font-size: 14px;
        line-height: 24px;
    }

    .related-post-readmore {
        font-size: 16px;
        padding: 6px 30px;
    }
}