/* ===== POSTS SLIDER STYLES ===== */

/* Main Container */
.posts-slider-section {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin: 1rem auto;
    width: 100%;
    max-width: 1200px;
    padding: 2px 0;
}

/* Slider Main Area */
.posts-slider-main {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}

.posts-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 400px;
    background: #f8f9fa;
}

/* Slider Track */
.posts-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 100%;
}

/* Individual Slides */
.posts-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.posts-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.posts-slide:hover .posts-slide-image {
    transform: scale(1.05);
}

/* Slide Overlay */
.posts-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1.5rem;
    color: white;
}

.posts-slide-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.posts-slide-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.posts-slide-link:hover {
    color: #e9ecef;
    text-decoration: underline;
}

/* Navigation Buttons */
.posts-slider-prev,
.posts-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.posts-slider-prev:hover,
.posts-slider-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.posts-slider-prev {
    left: 10px;
}

.posts-slider-next {
    right: 10px;
}

.posts-slider-arrow {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

/* Slider Indicators */
.posts-slider-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 0;
}

.posts-slider-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.posts-slider-dot:hover {
    background: #adb5bd;
    transform: scale(1.2);
}

.posts-slider-dot.active {
    background: #495057;
    transform: scale(1.2);
}

/* Popular Sidebar */
.posts-popular-sidebar {
    flex: 1 1 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.posts-popular-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.posts-popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.posts-popular-item {
    display: flex;
    align-items: flex-start; /* Back to flex-start for top alignment */
    gap: 0.75rem;
    padding: 0.5rem 0; /* Back to original padding */
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.posts-popular-item:hover {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
}

.posts-popular-item:last-child {
    border-bottom: none;
}

.posts-popular-thumb {
    width: 80px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.posts-popular-content {
    flex: 1;
    min-width: 0;
    display: flex; /* Keep flex for horizontal layout */
    align-items: flex-start; /* Align to top instead of center */
    justify-content: space-between; /* Space between title and stats */
    gap: 1rem; /* Gap between title and stats */
}

.posts-popular-link {
    font-weight: 600;
    color: #2b6cb0;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
    /* Removed display: block and margin-bottom */
}

.posts-popular-link:hover {
    color: #2c5282;
    text-decoration: underline;
}

/* Popular Stats */
.posts-popular-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    flex-shrink: 0; /* Prevent stats from shrinking */
    /* Removed margin-top */
}

.posts-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
}

.posts-stat-icon {
    font-size: 0.7rem;
}

.posts-stat-count {
    font-weight: 500;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .posts-slider-section {
        flex-direction: column;
        gap: 1rem;
        margin: 0.5rem auto;
    }
    
    .posts-slider-main {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .posts-slider-container {
        height: 300px;
    }
    
    .posts-slide-overlay {
        padding: 1rem;
    }
    
    .posts-slide-title {
        font-size: 1.25rem;
    }
    
    .posts-popular-sidebar {
        width: 100%;
        padding: 0.75rem;
    }
    
    .posts-popular-item {
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
    
    .posts-popular-thumb {
        width: 70px;
        height: 50px;
    }
    
    /* Mobile: revert to stacked layout */
    .posts-popular-content {
        display: flex;
        flex-direction: column; /* Stack title and stats vertically */
        gap: 0.25rem;
        align-items: flex-start; /* Align to start for mobile */
    }
    
    .posts-popular-link {
        display: block; /* Make title block-level in mobile */
        margin-bottom: 0.25rem;
    }
    
    .posts-popular-stats {
        margin-top: 0.25rem;
    }
    
    .posts-slider-prev,
    .posts-slider-next {
        width: 35px;
        height: 35px;
    }
    
    .posts-slider-indicators {
        margin-top: 8px;
    }
}