.related-posts-section {
    padding: 40px 0;
    text-align: center;
    background: #F2F2F2;
    margin-top: 50px;
    border-radius: 8px;
}

.related-posts-section h2 {
    text-align: left;
    color: #000000;
    margin-bottom: 40px;
    font-family: 'Plus Jakarta Sans';
    font-weight: 500;
    font-size: 32px;
    padding-left: 23px;
}

.related-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 columns, responsive */
    gap: 30px; /* Space between cards */
    max-width: 1402px;
    margin: 0 auto; /* Center the grid */
    padding: 0 20px;
}

.related-post-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Deeper shadow for cards */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.related-post-card:hover {
    transform: translateY(-8px); /* Lift card on hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); /* More intense shadow on hover */
}

.related-post-card .post-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height for consistent image size */
    overflow: hidden;
    background-color: #e6f2ff; /* Light blue background for placeholder/illustrations */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-post-card .post-thumbnail img {
    width: 440px;
    height: 300px !important;
    object-fit: cover;
}

/* Specific styling for the illustration from the screenshot */
.related-post-card .post-thumbnail .illustration {
    width: 90%; /* Adjust size as needed */
    height: auto;
    max-height: 180px; /* Limit height of illustration */
    display: block;
    margin: 0 auto;
}

.related-post-content {
    padding: 20px;
    flex-grow: 1; /* Allows content to push footer down */
    display: flex;
    flex-direction: column;
}

.related-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
}

.related-post-meta .category {
    background-color: #da2e29; /* Pink background for category */
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

.related-post-meta .post-date {
    color: #888;
}

.related-post-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 60px; /* Ensure consistent title height */
}

.related-post-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.related-post-title a:hover {
    color: #f05; /* Highlight color on hover */
}

.related-post-author {
    display: flex;
    align-items: center;
    margin-top: auto; /* Pushes author to the bottom */
    padding-top: 15px; /* Space from title/description */
    border-top: 1px solid #eee; /* Separator line */
    font-size: 14px;
    color: #555;
}

.related-post-author .author-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.see-all-button-container {
    margin-top: 50px;
}

.see-all-button {
    background-color: red; /* Pink button */
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block; /* For proper padding and margin */
    cursor: pointer;
}

.see-all-button:hover {
    background-color: #ffffff; /* Darker pink on hover */
    color: #010101;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .related-posts-container {
        grid-template-columns: 1fr; /* Stack cards on small screens */
        padding: 0 15px;
    }
    .related-posts-section h2 {
        font-size: 28px;
    }
}