/**
 * Manex Parallax Carousel CSS
 */

/* Main carousel container */
.manex-parallax-carousel {
    position: relative;
    width: 100vw;
    height: 90vh !important;
    max-height: 100vh;
    overflow: visible;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    z-index: 1;
    background-color: transparent;
}

/* Slides container */
.manex-parallax-carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* Slick specific overrides */
.manex-parallax-carousel .slick-list,
.manex-parallax-carousel .slick-track {
    height: 100%;
}

.manex-parallax-carousel .slick-slide {
    position: relative;
    height: 100%;
}

.manex-parallax-carousel .slick-dots {
    bottom: 25px;
    z-index: 10;
}

.manex-parallax-carousel .slick-dots li button:before {
    font-size: 12px;
    color: white;
    opacity: 0.8;
}

.manex-parallax-carousel .slick-dots li.slick-active button:before {
    color: white;
    opacity: 1;
}

.manex-parallax-carousel .slick-prev,
.manex-parallax-carousel .slick-next {
    z-index: 10;
    width: 40px;
    height: 40px;
}

.manex-parallax-carousel .slick-prev {
    left: 25px;
}

.manex-parallax-carousel .slick-next {
    right: 25px;
}

/* Individual slide */
.manex-parallax-carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.manex-parallax-carousel-slide[data-index="0"] {
    opacity: 1;
    z-index: 2;
}

/* Parallax background */
.manex-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Ensure all images are responsive */
.manex-parallax-carousel img {
    max-width: 100%;
    height: auto;
}

/* Content area */
.manex-parallax-content {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
}

.manex-parallax-content h2 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 0.2s;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.manex-parallax-content p {
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 0.4s;
    line-height: 1.6;
    font-weight: 300;
}

.manex-parallax-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease, background-color 0.3s ease;
    transition-delay: 0.6s;
}

.manex-parallax-btn:hover {
    background-color: #0056b3;
}

/* Active slide animations */
.manex-parallax-carousel-slide[data-index="0"] .manex-parallax-content h2,
.manex-parallax-carousel-slide[data-index="0"] .manex-parallax-content p,
.manex-parallax-carousel-slide[data-index="0"] .manex-parallax-content .manex-parallax-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.manex-parallax-carousel-nav {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.manex-parallax-prev,
.manex-parallax-next {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    cursor: pointer;
    margin: 0 1rem;
    transition: background-color 0.3s ease;
}

.manex-parallax-prev:hover,
.manex-parallax-next:hover {
    background: rgba(0,0,0,0.8);
}

/* Dots navigation */
.manex-parallax-dots {
    display: flex;
    gap: 0.5rem;
}

.manex-parallax-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0;
}

.manex-parallax-dot.active {
    background: #fff;
}

/* Responsive styles */
@media (max-width: 768px) {
    .manex-parallax-content h2 {
        font-size: 2rem;
    }
    
    .manex-parallax-content p {
        font-size: 1rem;
    }
    
    .manex-parallax-prev,
    .manex-parallax-next {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* Overlay for better text readability */
.manex-parallax-carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}
