.rpd-recent-posts {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.rpd-post {
    flex: 1 1 calc(33.333% - 20px); /* Makes three posts fit per row with a gap */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;

    display: flex; /* Enable Flexbox for centering */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    text-align: center; /* Center text */
    padding: 20px; /* Add padding for spacing */
}

.rpd-post:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.rpd-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 16px 0;
}

.rpd-image {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.rpd-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 16px;
}

.rpd-excerpt {
    font-size: 1rem;
    color: #555;
    margin: 16px 0;
    line-height: 1.6;
}

.rpd-button {
    display: inline-block;
    margin: 16px 0;
    padding: 10px 20px;
    background-color: #176922;
    color: #fff!important; /* Ensures font color is white */
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.rpd-button:hover {
    background-color: #e4e4e4;
    color: #176922!important; /* Maintains white font color on hover */
}
