/**
 * NewsEverest: Interactive Banner Widget - Clean Grid Design
 */
/* Widget Title - Normal placement above banner */
.banner-widget-title {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}
/* Main Banner Container */
.newseverest-slider-banner {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}
/* Background Images */
.banner-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.banner-bg.active {
    opacity: 1;
}
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.8) 100%
    );
}
/* Content Overlay */
.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    color: #ffffff;
}
/* Posts Grid - Responsive based on post count */
.banner-posts {
    display: grid;
    position: relative;
    overflow: hidden;
    height: 100%;
    gap: 0;
}

/* Grid layout based on post count */
.newseverest-slider-banner[data-post-count="2"] .banner-posts {
    grid-template-columns: repeat(2, 1fr);
}

.newseverest-slider-banner[data-post-count="3"] .banner-posts {
    grid-template-columns: repeat(3, 1fr);
}

.newseverest-slider-banner[data-post-count="4"] .banner-posts {
    grid-template-columns: repeat(4, 1fr);
}

.newseverest-slider-banner[data-post-count="5"] .banner-posts {
    grid-template-columns: repeat(5, 1fr);
}

.banner-post-item{
    --united-text-color: #fff;
    --united-link-color: #f1f1f1;
}
.banner-post-item {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}
.banner-post-item:hover {
    transform: scale(1.02);
}
/* Active post highlighting */
.banner-post-item.active {
    background: rgba(255, 255, 255, 0.1);
}
/* No Posts State */
.banner-no-posts {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 16px;
}
/* Responsive Design */
@media (max-width: 768px) {
    .newseverest-slider-banner {
        height: 300px;
    }
    
    /* Tablet: Max 3 columns for any post count */
    .newseverest-slider-banner[data-post-count="4"] .banner-posts,
    .newseverest-slider-banner[data-post-count="5"] .banner-posts {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .banner-post-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .newseverest-slider-banner {
        height: 250px;
        border-radius: 8px;
    }
    
    /* Mobile: Max 2 columns for any post count */
    .newseverest-slider-banner[data-post-count="3"] .banner-posts,
    .newseverest-slider-banner[data-post-count="4"] .banner-posts,
    .newseverest-slider-banner[data-post-count="5"] .banner-posts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-post-item {
        padding: 12px;
    }
}
/* Accessibility */
.banner-post-item:focus {
    outline: 2px solid #ff4757;
    outline-offset: 2px;
}
/* Performance Optimizations */
.banner-bg {
    will-change: opacity;
}
.banner-post-item {
    will-change: transform;
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .banner-bg,
    .banner-post-item {
        transition: none;
    }
}
