.hero-slider-container {
    position: relative;
    width: 100vw; /* Use viewport width to ensure full page width */
    margin: 0; /* Remove horizontal margins */
    overflow: hidden;
    box-sizing: border-box;
}

.hero-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    position: relative;
    width: 100%; /* Full width of the page */
    height: 600px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.hero-slider .slide {
    min-width: 100%; /* Ensure each slide takes up the full width */
    height: 600px;
    display: none;
    position: relative;
    text-align: center;
    justify-content: center;
    align-items: center;
    background-color: none;
    color: #fff;
    transition: opacity 0.5s ease-in-out;
}

.hero-slider .slide.active {
    display: flex;
}

.hero-slider .slide img {
    width: 100%; /* Ensure the image spans the full width */
    height: 100%; /* Ensure the image fills the height of the slider */
    object-fit: cover; /* Cover the container while maintaining aspect ratio */
    max-width: 100%; /* Prevent horizontal overflow */
    max-height: 100%; /* Prevent vertical overflow */
    margin: 0;
    z-index: 1;
    box-sizing: border-box;
}

.hero-slider .slide-content {
    position: absolute;
    bottom: 15%;
    left: 10%; /* Adjusted for better alignment */
    transform: translateX(0); /* No horizontal centering */
    color: #fff;
    text-align: left;
    z-index: 2;
    padding: 1rem;
}

.hero-slider .slide-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-slider .slide-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.hero-slider .slide-content .btn {
    padding: 0.5rem 1rem;
    border: 1px solid #fff;
    background-color: none;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: small;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 3;
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

.slider-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-pagination .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-pagination .dot.active {
    background: #fff;
}

@media (max-width: 1024px) {
    .hero-slider {
        height: 400px; /* Adjust height for tablets */
    }

    .hero-slider .slide-content {
        bottom: 15%; /* Adjust position for smaller screens */
        left: 5%; /* Reduce left margin */
    }

    .hero-slider .slide-content h2 {
        font-size: 1.8rem; /* Reduce font size for headings */
    }

    .hero-slider .slide-content p {
        font-size: 0.9rem; /* Reduce font size for descriptions */
    }

    .hero-slider .slide-content .btn {
        font-size: 0.8rem; /* Reduce button font size */
        padding: 0.4rem 1rem; /* Adjust button padding */
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 300px; /* Adjust height for mobile */
    }

    .hero-slider .slide img {
        object-fit: cover; /* Ensure the entire image is visible on smaller screens */
        height: 300px;
    }

    .hero-slider .slide-content {
        top: 35%; /* Adjust position for smaller screens */
        left: 40%; /* Reduce left margin */
        width: 70%; /* Ensure content fits within the screen */
    }

    .hero-slider .slide-content h2 {
        font-size: 0.8rem;
    }

    .hero-slider .slide-content p {
        font-size: 0.5rem;
    }

    .slider-nav {
        font-size: 1rem; /* Reduce size of navigation arrows */
    }

    .slider-pagination .dot {
        width: 8px; /* Reduce size of pagination dots */
        height: 8px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 250px; /* Adjust height for very small screens */
    }

    .hero-slider .slide-content {
        bottom: 8%; /* Adjust position for very small screens */
        left: 5%; /* Reduce left margin */
    }

    .hero-slider .slide-content h2 {
        font-size: 1.2rem; /* Further reduce font size for headings */
    }

    .hero-slider .slide-content p {
        font-size: 0.7rem; /* Further reduce font size for descriptions */
    }

    .hero-slider .slide-content .btn {
        font-size: 0.6rem; /* Further reduce button font size */
        padding: 0.2rem 0.6rem; /* Adjust button padding */
    }
}
