.acf-related-posts-container {
display: grid;
grid-template-columns: repeat(3, 1fr); gap: 20px;
text-align: center; } @media (max-width: 1024px) {
.acf-related-posts-container {
grid-template-columns: repeat(2, 1fr); }
} @media (max-width: 768px) {
.acf-related-posts-container {
grid-template-columns: 1fr; }
} .acf-related-post-item {
background-color: #f5f5f5;
border-radius: 5px;
padding-bottom: 20px;
align-items: center; } .custom-featured-image {
width: 100%;
height: auto;
border-radius: 5px 5px 0px 0px;
margin-bottom: 10px;
} .acf-related-post-title {
font-size: 18px;
font-weight: bold;
color: #174996;
line-height: 1.2em;
margin: 0px 15px;
} .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;
} .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;
} .acf-related-post-button:hover {
background-color: #d3621d; }