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

.related-posts-title {
    font-family: "Barlow Condensed", Sans-serif;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    color: #212121;
    text-align: center;
    margin-bottom: 30px;
}

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

.related-post-item {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.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 {
    text-decoration: none;
    font-family: "Barlow Condensed", Sans-serif;
    font-size: 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    color: #212121;
    text-align: left;
    line-height: 30px;
    margin-bottom: 0px;
}

.related-post-excerpt {
    margin-bottom: 15px;
    color: #050327;
    font-family: "mundial", Sans-serif;
    font-size: 15px;
    font-weight: 200;
    line-height: 26px;
    letter-spacing: 0.2px;
    text-align: left;
}

.related-post-readmore {
    color: #364440;
    background-color: #AFD9AD;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Barlow Condensed", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    border-radius: 15px;
    text-transform: uppercase;
    font-style: italic;
    padding: 8px 40px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.related-post-item:hover .related-post-readmore {
    background-color: #F2ACBF;
    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;
    }
}