/* New Carousel Section Styles */
.carousel-new-section {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    padding: 0;
    margin: 1rem 0;
}

.carousel-new-container {
    width: 100%;
    position: relative;
}

.carousel-new-wrapper {
    position: relative;
    height: 90vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

/* Slides Container */
.carousel-new-slides {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
}

/* Individual Slide */
.carousel-new-slide {
    position: absolute;
    width: 60%;
    height: 100%;
    opacity: 0;
    transition: all 0.7s ease-in-out;
    z-index: 1;
    overflow: hidden;
    left: -100%; /* Start offscreen */
}

.carousel-new-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-new-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text Container */
.carousel-new-text-container {
    position: relative;
    width: 100%;
    padding: 2rem;
    z-index: 10;
}

.carousel-new-text-content {
    padding: 0;
}

.carousel-new-heading {
    font-family: 'Druk Wide Bold', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
}

/* Text overlay for non-first slides */
.carousel-new-text-overlay {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 60%;
    padding: 1rem;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-new-text-overlay .carousel-new-heading {
    color: #fff; /* White text for overlay */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Active Slide - First Position (right side) */
.carousel-new-slide-active[data-slide="0"] {
    left: 40%; /* Position on right side (40% from left) */
    opacity: 1;
    z-index: 3;
    width: 60%; /* First slide takes 60% width on right */
}

/* First slide moves to second position */
.carousel-new-slide-active:not([data-slide="0"]) {
    width: 70%; /* Full slide takes 70% */
    left: 0;
    opacity: 1;
    z-index: 3;
}

/* First slide shows text container */
.carousel-new-slide-active[data-slide="0"] .carousel-new-text-overlay {
    opacity: 0; /* Hide text overlay on first slide as we use the separate text container */
}

/* Non-first slides show text overlay when active */
.carousel-new-slide-active:not([data-slide="0"]) .carousel-new-text-overlay {
    opacity: 1;
}

/* Next Slide - Peek from right */
.carousel-new-slide-next {
    left: 71%; /* Position next to active slide with gap */
    width: 29%; /* Next slide takes 28% width (30% minus gap) */
    opacity: 1;
    z-index: 2;
}

/* Previous Slide - Off to the left */
.carousel-new-slide-previous {
    left: -30%;
    opacity: 0;
    z-index: 1;
}

/* Remove all indicator styles */
.carousel-new-indicators,
.carousel-new-indicator,
.carousel-new-indicator-active {
    display: none;
}

/* Adjust navigation styles to work without indicators */
.carousel-new-nav {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 15;
    display: flex;
    gap: 1rem;
}

.carousel-new-nav-button {
    width: 3rem;
    height: 3rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel-new-nav-button:hover {
    background-color: #fff;
}

.carousel-new-nav-button svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #333;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .carousel-new-heading {
        font-size: 2rem;
    }
    
    .carousel-new-text-container {
        width: 35%;
    }
}

@media (max-width: 992px) {
    .carousel-new-wrapper {
        height: 70vh;
    }
    
    .carousel-new-slide-active[data-slide="0"] {
        left: 30%; /* Adjust position on smaller screens */
        width: 70%;
    }
    
    .carousel-new-slide-active:not([data-slide="0"]) {
        width: 100%;
        left: 0;
    }
    
    .carousel-new-slide-next {
        left: 100%;
        width: 0;
    }
    
    .carousel-new-text-container {
        width: 30%;
    }
    
    .carousel-new-heading {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .carousel-new-wrapper {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: unset;
    }
    
    .carousel-new-slides {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
        order: 1;
    }

    .carousel-new-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .carousel-new-text-container {
        position: relative;
        width: 100%;
        transform: none;
        background: none;
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2rem 1rem;
    }
    
    .carousel-new-text-content {
        width: 100%;
        text-align: center;
    }
    
    .carousel-new-heading {
        font-size: 1.5rem;
        text-align: center;
        margin: 0 auto;
        width: 100%;
    }

    .carousel-new-nav {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 20;
        padding: 1.5rem;
        background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
        width: 100%;
        display: flex;
        justify-content: flex-end;
        gap: 1rem;
        pointer-events: none;
    }

    .carousel-new-nav-button {
        background-color: rgba(255, 255, 255, 0.9);
        pointer-events: auto;
        width: 2.5rem;
        height: 2.5rem;
    }

    .carousel-new-nav-button svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

@media (max-width: 576px) {
    .carousel-new-wrapper {
        min-height: unset;
    }
    
    .carousel-new-heading {
        font-size: 1.25rem;
    }
    
    .carousel-new-nav {
        padding: 1rem;
    }
    
    .carousel-new-nav-button {
        width: 2rem;
        height: 2rem;
    }
    
    .carousel-new-nav-button svg {
        width: 1rem;
        height: 1rem;
    }

    .carousel-new-text-container {
        padding: 1.5rem 1rem;
    }
}

@media (min-width: 769px) {
    .carousel-new-text-container {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 40%;
        z-index: 10;
        padding-left: 3rem;
        text-align: left;
    }

    .carousel-new-heading {
        color: #000;
    }
} 