/* General grid container styling */
.acf-related-posts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 20px;
    text-align: center; /* Center content inside each grid item */
}

/* Responsive grid for tablets */
@media (max-width: 1024px) {
    .acf-related-posts-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

/* Responsive grid for mobile */
@media (max-width: 768px) {
    .acf-related-posts-container {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

/* Individual grid item styling */
.acf-related-post-item {
    background-color: #f5f5f5;
    border-radius: 5px;
    padding-bottom: 20px;
    align-items: center; /* Center content vertically */
}

/* Thumbnail image styling */
.custom-featured-image {
    width: 100%;
    height: auto;
    border-radius: 5px 5px 0px 0px;
    margin-bottom: 10px;
}

/* Title styling */
.acf-related-post-title {
    font-size: 18px;
    font-weight: bold;
    color: #174996;
    line-height: 1.2em;
    margin: 0px 15px;
    }

/* Taxonomy styling */
.acf-related-post-taxonomy,
.acf-related-post-date,
.acf-related-post-category {
    font-size: 16px;
    color: #313131;
    font-weight: 500;
    margin-bottom: 10px;
    margin: 0px 15px 10px 15px;
}

/* Button styling */
.acf-related-post-button {
    display: block;
    padding: 8px;
    font-family: Outfit;
    font-size: 16px;
    font-weight: 600;
    background-color: #174996;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
    margin: 0px 15px;
}

/* Button hover effect */
.acf-related-post-button:hover {
    background-color: #d3621d; /* Hover color */
}
