#toggle-icon {
    padding-right: 0.5rem;
    font-size: 1.2rem;
}

#filter-sections {
    padding-top: 1.5rem;
}

.custom-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.custom-carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.custom-carousel-item {
    min-width: 100%;
    position: relative;
}

    .custom-carousel-item.active {
        display: block;
    }

.custom-carousel-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.custom-carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
}

.custom-carousel-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 0.25rem;
}

    .custom-carousel-btn:hover {
        background-color: #0056b3;
    }

/* Indicators */
.custom-carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

    .custom-carousel-indicators button {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        border: none;
        cursor: pointer;
    }

        .custom-carousel-indicators button.active {
            background-color: white;
        }

/* Controls */
.custom-carousel-control-prev,
.custom-carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1;
}

.custom-carousel-control-prev {
    left: 10px;
}

.custom-carousel-control-next {
    right: 10px;
}

.custom-carousel-icon {
    font-size: 2rem;
}






.banner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

    .banner-container a {
        display: block;
        width: 100%;
        max-width: 1200px; /* Maximum width for large screens */
    }

    .banner-container img {
        width: 100%;
        height: auto;
        display: block;
        max-height: 150px; /* Optional: Limit height for large images */
        padding-bottom: 15px;
    }

.carousel-indicators button {
    width: 1rem !important; /* Adjust size */
    height: 1rem !important; /* Adjust size */
    border-radius: 50%; /* Make round */
    background-color: #000; /* Default color */
}

.pointer {
    cursor: pointer;
}

.carousel-indicators {
    margin-bottom: 0rem !important;
}
/* Carousel styling */
.carousel-inner {
    height: 26rem; /* Set fixed height for the carousel */
}

.carousel-item {
    height: 100%; /* Ensure the item covers the full height */
}

    .carousel-item img {
        height: 100%; /* Ensures the image height matches the container */
        width: 100%; /* Full width */
   
    }

/* Make carousel indicator list items round */
.carousel-indicators li {
    width: 15px; /* Adjust size */
    height: 15px; /* Adjust size */
    border-radius: 50%; /* Make round */
    background-color: #000; /* Color of the dots */
}

.carousel-indicators .active {
    background-color: #fff; /* Color for the active dot */
}

/* Optional: Styling the caption for better readability */
.carousel-caption h1, .carousel-caption p {
    color: #fff; /* White text for contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Add shadow for readability */
}

.carousel-caption button {
    background-color: rgba(0, 123, 255, 0.8); /* Semi-transparent button */
    border: none;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none; /* Hide default icons */
}

.carousel-control-prev::before,
.carousel-control-next::before {
    content: ''; /* Remove default content */
}

.carousel-control-prev,
.carousel-control-next {
    font-size: 2rem; /* Adjust font size */
    font-weight: bold; /* Make symbols bold */
    color: black; /* Adjust color */
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8); /* Optional shadow */
}

.carousel-control-prev {
    left: 10px; /* Adjust position */
}

.carousel-control-next {
    right: 10px; /* Adjust position */
}

.custom-movie-container, .custom-tv-container, .filter-container {
    padding: 20px;
    max-width: 1200px; /* Set max-width */
    margin: 0 auto; /* Center align */
}

.custom-category {
    margin-bottom: 30px;
}

.custom-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.custom-category-title {
    font-size: 1rem;
    text-transform: uppercase;
}

.custom-movie-item {
    width: 180px;
    height: 270px;
    overflow: hidden;    
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */    
}

    .custom-movie-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;        
    }

/* Grid Layout */
.custom-movie-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 items per row for desktop */
    gap: 15px;
}

/*.custom-movie-item:hover {
                transform: scale(1.05);*/ /* Slight zoom effect on hover */
/*}*/
.custom-movie-item:hover {
    /*transform: translateY(-5px);*/ /* Slightly lift the item */
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

.custom-see-more {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

    .custom-see-more:hover {
        text-decoration: underline;
    }

.custom-category-header h5, .custom-category-header a, .filter-container {
    color: #c6c7c9;
}

.btnPointer {
    cursor: pointer;
}

@media (max-width: 480px) {
    .banner-container img {
        max-height: 200px; /* Adjust height for mobile devices */
        padding-bottom: 20px;
    }

    .subscribe-header {
        font-size: 1.5rem;
        margin-bottom: 0px; 
        padding: 0.8rem;
    }

    .carousel-caption h1 {
        font-size: 1.3rem; /* Larger size for medium screens */
    }

    .carousel-caption p {
        font-size: 0.8rem; /* Larger size for medium screens */
    }

    /*.carousel-inner {
        height: 80vh;
    }*/

    .custom-movie-item {
        width: calc(33.33% - 10px); /* 3 items in a row with some margin */
        height: 160px;
        margin-bottom: 5px;
    }

        .custom-movie-item img {
            height: 160px;
        }

    /* Remove right margin on the last item of each row */
    .custom-movie-row {
        display: flex;
        flex-wrap: wrap;
    }
}


@media (max-width: 1004px) {
    .custom-movie-row {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* At 820px - show 4 items */
@media (max-width: 820px) {
    .custom-movie-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 700px) {
    .custom-movie-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .carousel-inner {
        height: 31rem; /* Set fixed height for the carousel */
    }

    .banner-container img {
        max-height: 300px; /* Adjust height for smaller screens */
        padding-bottom: 20px;
    }

    .custom-movie-item:hover {
        transform: none; /* Disable lift effect */
        box-shadow: none; /* Disable shadow effect */
    }
}

.custom-category {
    transition: opacity 0.5s ease-in-out;
}



.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure the loader is on top */
}

.loader {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-image {
    bottom: 100px;
    width: 50px;
    height: auto;
    animation: scaleAnimation 2s infinite ease-in-out;
}

@keyframes scaleAnimation {
    0% {
        transform: scale(0.9); /* Scale down */
    }

    50% {
        transform: scale(1.1); /* Scale up */
    }

    100% {
        transform: scale(0.9); /* Scale back down */
    }
}

/* Spinner styles */
.spinner {
    border: 8px solid #f3f3f3; /* Light grey background */
    border-top: 8px solid #3498db; /* Blue color for the spinner */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
    margin-top: -65px; /* Move the spinner up to overlap the image */
}

/* Animation for the spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#scrollTopButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #007bff; /* Bootstrap Primary Color */
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

    #scrollTopButton:hover {
        background-color: #0056b3; /* Darker shade of blue */
    }

    #scrollTopButton i {
        font-size: 20px;
    }