.custom-slider {
    position: relative;
    width: 100%;
    height: 650px; 
    margin: 0 auto;
    overflow: hidden;
}

.slider-item {
    position: relative;
    display: none; 
    text-align: center;
    height: 100%;
}

.slider-item.active {
    display: block; /* Show the active slide */
}

.slider-image {
    width: 100%;
    height: 100%; /* Ensure the image fills the slider height */
    object-fit: cover; /* Make sure the image covers the container */
    
    background-size: cover;
}

/*#C72929*/
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 45, 66, 0.5); /* Semi-transparent white overlay */
    color: #fff; /* Change text color to black for contrast */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    
}

.slider-overlay h2 {
    margin: 0 ;
    font-family: "Alata", Sans-serif;
    font-size: 70px;
    line-height:70px;
    font-weight: bold;
    color:#fff;
}

.slider-overlay p {
    margin: 25px 450px 0;
    font-family:"Red Hat Display", Sans-serif;
    font-size: 20px;
    font-weight:600;
   
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-nav button {
    background: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 20px;
    cursor: pointer;
    font-size: 18px;
    margin: 0 70px;
    font-weight:600;
    border-radius: 100px;
}

.slider-nav button:hover {
    background: rgba(255, 255, 255, 0.8);
    color:#FF0000;
}
.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.slider-dot {
    width: 40px;
    height: 6px;
    margin-bottom:35px;
    border-radius: 0;
    background: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: rgba(43, 45, 66, 0.8);
}
/* Mobile Styling */
@media (max-width: 768px) { 
    .elementor img {
        height:100%;
    }
    .custom-slider {
  position: relative;
  width: 100%;
  height: 100vh; /* Set height to 100% of viewport height */
  margin: 0 auto;
  
}

/* Hide arrow navigation */
.slider-nav {
  display: none;
}
.slider-item {
    position: relative;
    display: none; 
    text-align: center;
    height: 100vh;
}

.slider-item.active {
    display: block; /* Show the active slide */
}


    .slider-overlay p {
    margin: 20px 0px 0;
   
   
}

   

    .slider-dots {
        bottom: 10px; /* Adjust dot position */
    }

    .slider-dot {
        width: 30px;
        height: 4px;
        margin-bottom: 20px;
    }
}

.m-slider {
    display: flex;
    overflow: hidden;
    position: relative;
    gap:15px;
    width: 100%;
}

.m-slide {
    flex: 0 0 49.5%; /* Show two items at a time */
   
    box-sizing: border-box;
}

.m-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.m-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s ease; /* Smooth scaling effect */
}

.m-card:hover .movie-image {
    transform: scale(1.1); /* Slightly grow the image on hover */
}


.m-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height:100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.m-title {
    margin-top: 25px;
    margin-left: 20px;
    border-left:8px solid red;
    padding-left:10px;
    font-size: 42px!important;
    position: relative;
    display: inline-block; /* Ensure the pseudo-element is properly positioned */
    color: #fff!important;
    transition: color 0.3s ease; /* Optional: Add color change on hover */
}

.m-title::before {
    content: '';
    position: absolute;
    height: 2.5px;
    width: 0;
    background: red;
    bottom: 0;
    left: 0; /* Line starts from the left */
    transition: width 0.3s ease;
}



.m-title:hover::before {
    width: 100%; /* Expand the line fully on hover */
}


.movie-prev,
.movie-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: red;
    color: white;
    border: none;
    padding:10px;
    border-radius: none!important;
    cursor: pointer;
    z-index: 10;
}

.movie-prev {
    left: -50px;
}

.movie-next {
    right: -50px;
}

.movie-prev:hover,
.movie-next:hover {
    background: darkred;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .m-slider {
        display: flex;
        flex-direction: column; /* Stack slides vertically */
        position: relative;
        width: 100%;
    }

    .m-slide {
        flex: 0 0 100%; /* Show one item at a time */
        padding: 10px; /* Adjust spacing for mobile */
        box-sizing: border-box;
    }

    .m-card {
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        width: 100%; /* Full width for mobile */
    }

    .m-image {
        width: 100%;
        height: 250px; /* Fixed height for mobile screens */
        object-fit: cover; /* Ensures the image covers the container */
        border-radius: 10px;
        display: block;
        transition: transform 0.5s ease; /* Smooth scaling effect */
    }

    .m-card:hover .m-image {
        transform: scale(1.1); /* Slightly grow the image on hover */
    }

    .m-overlay {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 100%; /* Full overlay */
        background: rgba(0, 0, 0, 0.5);
        color: white;
        display: flex;
        align-items: flex-end; /* Align content at the bottom */
        padding: 10px;
        box-sizing: border-box;
        text-align: center;
    }

    .m-title {
        font-size: 18px !important; /* Adjust font size for mobile */
        margin: 0; /* Center the title */
        color: white !important;
        position: relative;
        display: block; /* Ensure correct positioning */
        transition: color 0.3s ease;
    }

    .m-title::before {
        content: '';
        position: absolute;
        height: 2px;
        width: 0;
        background: red;
        bottom: -2px;
        left: 0;
        transition: width 0.3s ease;
    }

    .m-title:hover {
        color: #FFD700; /* Change color on hover */
    }

    .m-title:hover::before {
        width: 100%; /* Expand line fully on hover */
    }

    .movie-prev,
    .movie-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 0, 0, 0.8); /* Semi-transparent for better mobile appearance */
        color: white;
        border: none;
        padding: 8px;
        cursor: pointer;
        z-index: 10;
    }

    .movie-prev {
        left: 10px; /* Adjust position for mobile */
    }

    .movie-next {
        right: 10px; /* Adjust position for mobile */
    }

    .movie-prev:hover,
    .movie-next:hover {
        background: darkred;
    }
}




