/**
 * Homepage Slider CSS - Professional Edition
 */
.homepage-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 300px; /* Reduced height */
}

/* Left-side slider specific styles */
.left-side-slider {
    height: 250px;
    margin-bottom: 30px; /* Add more space below slider */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.left-side-slider .homepage-slider {
    height: 100%;
    margin-bottom: 0;
}

.slider-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.slider-slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

/* Ensure all slides have their content visible */
.slider-slide.content-loaded .slider-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Force all slide content visible */
.slider-slide .slider-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
    z-index: 2 !important;
}

.slider-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* behind overlay and content */
    display: block;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 0;
}

.slider-content {
    position: absolute;
    bottom: 50px;   /* lift title into view */
    left: 20px;
    right: 20px;
    padding: 10px 15px;
    background: none; /* removed background */
    border-radius: 4px;
    max-width: calc(100% - 40px);
    z-index: 2;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1; /* Ensure content is visible */
    visibility: visible; /* Ensure content is visible */
    z-index: 2;
}

.slider-content .slider-rating {
    margin-top: 6px;
    background: rgba(245, 197, 24, 0.9);
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.slider-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.slider-title a {
    color: #fff;
    text-decoration: none;
}

.slider-title a:hover {
    color: #f5c518;
}

.slider-meta {
    display: flex;
    align-items: center;
    font-size: 13px; /* Reduced font size */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.slider-genres {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-right: 15px;
    margin-bottom: 10px; /* Increased bottom margin for better spacing when wrapped */
    max-height: none; /* Ensure no height restriction */
    width: 100%; /* Ensure full width is used */
}

.slider-genre {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 15px;
    color: #fff;
    text-decoration: none;
    font-size: 11px; /* Reduced font size */
    transition: background-color 0.3s ease;
    margin-bottom: 4px; /* Add space between wrapped lines */
    white-space: nowrap; /* Prevent text wrapping within the genre pill */
}

.slider-genre:hover {
    background: rgba(245, 197, 24, 0.8);
    color: #000;
}

.slider-rating {
    display: flex;
    align-items: center;
    background: rgba(245, 197, 24, 0.8);
    color: #000;
    padding: 3px 8px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 11px; /* Reduced font size */
}

.star {
    color: #000;
    margin-right: 3px;
}

.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px; /* Reduced size */
    height: 35px; /* Reduced size */
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px; /* Reduced font size */
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
}

.homepage-slider:hover .slider-arrow {
    opacity: 0.8;
}

.slider-arrow:hover {
    background-color: rgba(245, 197, 24, 0.8);
    color: #000;
    opacity: 1;
}

.slider-arrow-prev {
    left: 10px;
}

.slider-arrow-next {
    right: 10px;
}

/* Add overlay to enhance text readability */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* dark semi-transparent overlay */
    z-index: 1;
    pointer-events: none;
}

/* New homepage layout styles */
.home-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 992px) {
    .home-content-wrapper {
        grid-template-columns: 2fr 1fr;
    }
    
    .home-sidebar {
        padding-left: 15px;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
    }
}

/* Add sticky sidebar effect */
.home-sidebar {
    position: relative;
}

.sidebar-inner {
    position: sticky;
    top: 30px;
}

/* Widget styling for sidebar */
.home-sidebar .widget {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.home-sidebar .widget-title {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    font-size: 1.2rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

/* Enhanced styling for main content column */
.main-content-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-content-column section {
    margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .slider-title {
        font-size: 18px;
    }
    .slider-content {
        padding: 30px 15px 20px;
    }
}

@media (max-width: 768px) {
    .slider-title {
        font-size: 16px;
    }
    .slider-meta {
        font-size: 12px;
    }
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    .slider-content {
        padding: 25px 12px 15px;
    }
}

@media (max-width: 576px) {
    .slider-title {
        font-size: 15px;
        margin-bottom: 5px;
    }
    .slider-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .slider-genres {
        margin-right: 0;
        margin-bottom: 15px; /* Increased bottom margin on mobile */
        width: 100%; /* Ensure full width is used */
        display: flex;
        flex-wrap: wrap;
        max-height: none; /* Remove any height restriction */
    }
    .slider-genre {
        padding: 2px 6px;
        font-size: 10px;
        margin-bottom: 5px; /* Increased space between rows when wrapped */
        white-space: nowrap; /* Prevent text wrapping within the genre pill */
    }
    .slider-content {
        padding-bottom: 55px; /* Increased padding at the bottom for more space */
    }
}