.related-posts-widget,
.related-services-widget {
    background: #fff;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.widget-bg-logo {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%) rotate(90deg);
    width: 200px;
    height: 200px;
    background-size: contain;
    opacity: 0.08;
    pointer-events: none;
    filter: brightness(1.2) contrast(1.2);
}

.related-posts-widget .widget-title,
.related-services-widget .widget-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a2332;
    margin-bottom: 24px;
    padding-bottom: 16px;
    background: linear-gradient(135deg, #00A651 0%, #0075C9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    border-bottom: 1px solid #00c3c9;
    position: relative;
    z-index: 1;
}

.related-posts-list,
.related-services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.related-post-item,
.related-service-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.related-post-item:last-child,
.related-service-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post-item:hover,
.related-service-item:hover {
    transform: translateX(4px);
}

.related-post-image,
.related-service-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    display: block;
}

.related-post-image img,
.related-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-image img,
.related-service-item:hover .related-service-image img {
    transform: scale(1.1);
}

.related-post-content,
.related-service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-service-content {
    gap: 8px;
}

.related-post-title,
.related-service-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.related-post-title {
    margin-bottom: 8px;
}

.related-post-title a,
.related-service-title a {
    color: #1a2332;
    text-decoration: none;
    transition: color 0.3s ease;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-post-title a:hover {
    color: #00A651;
}

.related-service-title a:hover {
    color: #0075C9;
}

.related-post-date {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
}

.related-service-link {
    font-size: 13px;
    color: #0075C9;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-service-link:hover {
    color: #00A651;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .related-posts-widget,
    .related-services-widget {
        margin-top: 0px;
    }
}