/* Basic Body Styles */
/* Entertainment Section Styles */
.entertainment-section {
    /* max-width: 1300px; */
    padding: 30px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-title2 {
    color: #f39c12;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
}

.section-divider {
    border: none;
    height: 2px;
    background-color: #f39c12;
    margin: 0 0 20px 0;
}

/* Navigation Arrows */
.nav-buttons {
    display: flex;
}

.nav-arrow {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.prev-arrow {
    margin-right: 5px;
}

/* This styles the arrows when they are at the beginning or end of the carousel */
.nav-arrow:disabled {
    background-color: #6c757d; /* A muted, gray color */
    cursor: not-allowed;      /* Changes the mouse cursor to indicate it's not clickable */
    opacity: 0.6;             /* Makes it slightly transparent */
}

/* NEW: Disabled state for arrows */
.nav-arrow.disabled {
    background-color: #6c757d;
    /* Grey color when disabled */
    cursor: not-allowed;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    /* Needed for positioning slides */
    width: 100%;
    overflow: hidden;
    cursor: grab;
    /* Hides the other slides */
}

.carousel-container:active {
    cursor: grabbing;
}

/* NEW: Track to hold all slides */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /* Slide animation */
}

.carousel-slide {
    position: relative;
    width: 100%;
    height: 500px;
    /* Controls the visible height of the image */
    color: white;
    flex-shrink: 0;
    /* Prevents slides from shrinking */
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Dark tint over the image */
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* Ensures the image covers the area, cropping as needed */
    object-position: center 30%;
    /* Centers the image within the frame */
}

/* Content on top of the image */
.tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #007bff;
    color: white;
    padding: 5px 15px;
    font-size: 0.9rem;
    border-radius: 4px;
    z-index: 2;
    /* Ensures tag is above the tint */
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
    /* Ensures text is above the tint */
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 40%,
            transparent);
    /* Gradient for readability */
}

.overlay-content h3 {
    font-size: 2rem;
    margin: 10px 0;
    font-weight: bold;
}

.overlay-content p {
    font-size: 1rem;
    margin: 0;
    max-width: 600px;
}

/* Responsive Design */

@media (max-width: 768px) {
    .carousel-slide {
        height: 400px;
        /* Adjust height for tablets */
    }

    .overlay-content h3 {
        font-size: 1.5rem;
    }

    .overlay-content p {
        font-size: 0.9rem;
    }

    .overlay-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .section-title2 {
        font-size: 1.2rem;
    }

    .nav-arrow {
        padding: 6px 10px;
    }

    .carousel-slide {
        height: 300px;
        /* Adjust height for mobile */
    }

    .overlay-content h3 {
        font-size: 1.2rem;
    }

    .overlay-content p {
        display: none;
        /* Hides paragraph on small screens for clarity */
    }

    .tag {
        font-size: 0.8rem;
        padding: 4px 10px;
        top: 15px;
        left: 15px;
    }
}

@media (max-width: 426px) {
    .overlay-content h3 {
        font-size: 1rem;
    }
}

/*animation*/
/* --- Animations for the "Entertainment" Section --- */

/* 1. Hover Animation for Carousel Slides */

/* Add smooth transitions to the image and text overlay */
.entertainment-section .carousel-slide img,
.entertainment-section .carousel-slide .overlay-content {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* On hover, brighten the image and lift the text overlay */
.entertainment-section .carousel-slide:hover img {
    filter: brightness(1.1);
}

.entertainment-section .carousel-slide:hover .overlay-content {
    transform: translateY(-5px);
}


/* 2. Scroll-in Animation Keyframes */

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 3. Initial "Hidden" State for Animation Elements */
/* Before animating, the header and carousel are invisible and off-screen */
.entertainment-section .section-header,
.entertainment-section .carousel-container {
    opacity: 0;
}

/* 4. Animation Trigger */
/* When the '.in-view' class is added, run the appropriate animation */
.entertainment-section.in-view .section-header {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.entertainment-section.in-view .carousel-container {
    animation: slideInFromRight 0.8s ease-out forwards;
    animation-delay: 0.2s; /* Stagger the carousel animation slightly */
}