/* Base Styles */
.related-post-wrapper {
    margin: 20px 0;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-post-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.related-post-cta {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background-color: #eef;
    color: #333;
}

.related-post-inline {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.related-post-thumbnail {
    flex: 0 0 20%; /* Fixed 30% width */
    padding-right: 20px; /* Gap between image and divider */
    border-right: 1px solid #ddd; /* Vertical divider */
}

.related-post-thumbnail img {
    width: 100%; /* Full width of parent container */
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.related-post-content {
    flex: 0 0 80%; /* Fixed 70% width */
    padding-left: 20px; /* Gap between divider and title */
}

.related-post-title {
    font-size: 18px;
    color: #04aa6d;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-thumbnail:hover img {
    transform: scale(1.05);
}

.related-post-title:hover {
    color: #007bff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .related-post-inline {
        flex-direction: column;
        text-align: center;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .related-post-thumbnail {
        flex: none;
        width: 200px; /* Mobile image width */
        padding-right: 0;
        border-right: none;
        margin-bottom: 10px;
    }

    .related-post-content {
        padding-left: 0;
    }

    .related-post-thumbnail img {
        width: 100%; /* Full width on mobile */
    }

    .related-post-title {
        font-size: 16px;
    }
}