/* Related Blog Widget Styles - Horizontal Layout with Swiper */
.aelab-recently-title-wrapper {
    margin-bottom: 32px;
    position: relative;
}

.aelab-recently-title {
    color: #333333;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Container */
.aelab-related-blog-container {
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Swiper Container */
.aelab-related-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.aelab-related-swiper .swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
}

/* Swiper Slides */
.aelab-related-swiper .swiper-slide {
    flex-shrink: 0;
    width: auto;
    height: auto;
    box-sizing: border-box;
}

/* Horizontal Card Layout - Image Left, Title Right */
.aelab-recent-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    width: 100%;
    height: 100%;
    transition: box-shadow 0.2s ease;
    box-sizing: border-box;
}

.aelab-recent-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

/* Thumbnail - Left Side */
.aelab-recent-thumb {
    flex: 0 0 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.aelab-recent-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Info Section - Right Side */
.aelab-recent-info {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
}

.aelab-recent-title {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    color: #111827;
    text-align: left;
    word-break: break-word;
}

.aelab-recent-card:hover .aelab-recent-title {
    color: #111827;
}

/* Navigation Buttons */
.aelab-rel-nav {
    position: absolute;
    top: -38px;
    right: 18px;
    display: flex;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aelab-rel-nav.positioned {
    opacity: 1;
}

.aelab-rel-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: transparent;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #111;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.aelab-rel-btn:hover {
    background: #d1d5db;
}

.aelab-rel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.aelab-rel-icon {
    font-size: 16px;
    line-height: 1;
}

/* Links */
.aelab-related-blog-container a {
    text-decoration: none !important;
    color: inherit !important;
}

/* Prevent body horizontal scroll */
body {
    overflow-x: hidden !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .aelab-recently-title-wrapper {
        margin-bottom: 20px;
    }
    
    .aelab-recently-title {
        font-size: 1.5rem;
    }
    
    .aelab-recent-card {
        padding: 10px;
        gap: 10px;
    }
    
    .aelab-recent-thumb {
        flex: 0 0 60px;
        height: 60px;
    }
    
    .aelab-recent-title {
        font-size: 13px;
    }
    
    .aelab-rel-nav {
        top: -7px;
    }
}
