/* Related Posts Styles */
.desktop-related-posts-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.desktop-related-posts-container a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.desktop-related-posts-container a:hover {
    color: #ff5100 !important;
}

.desktop-related-post-item {
    padding-bottom: 25px;
    width: calc(25% - 20px);
}

.desktop-related-post-item > a > img {
    width: 300px;
    height: 175px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 5px;
}

.desktop-related-post-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 5px 0;
    margin-top: 0px !important;
}

.desktop-related-post-item .date {
    font-size: 14px;
    color: #595959;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.desktop-related-post-item .excerpt {
    font-size: 14px;
    font-weight: 500;
    margin: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* Mobile Version */
.mobile-related-posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 5px 0;
}

.mobile-related-post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.mobile-related-post-item:last-child {
    border-bottom: none;
}

.mobile-related-post-item > a > img {
    width: 130px;
    height: 76px;
    object-fit: cover;
    border-radius: 5px;
}

.mobile-related-post-item h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.mobile-related-post-item h3 a {
    color: inherit;
    text-decoration: none;
}

.mobile-related-post-item p {
    margin: 5px 0;
    font-size: 14px;
    color: #575757;
}
