/* Split Carousel */
.split-carousel {
    position: relative;
    height: 600px;
    background: #ffffff;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
}

/* Split Content */
.split-content {
    display: flex;
    height: 100%;
}

.split-text {
    width: 40%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    position: relative;
    z-index: 2;
}

.split-image {
    width: 60%;
    position: relative;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.7s ease;
}

.carousel-item.active .split-image img {
    transform: scale(1);
}

/* Text Content */
.carousel-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ff6b6b;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.carousel-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1f2937;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.2s;
}

.carousel-description {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.3s;
}

.carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #ff6b6b;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    white-space: nowrap;
    width: fit-content; /* Ensure button width matches content */
    max-width: fit-content;
    min-width: auto;
    box-sizing: border-box;
}


.carousel-btn i {
    margin-left: 10px;
    transition: transform 0.3s;
}

.carousel-btn:hover {
    background: #1f2937;
    color: #ffffff;
}

.carousel-btn:hover i {
    transform: translateX(5px);
}

.carousel-item.active .carousel-subtitle,
.carousel-item.active .carousel-title,
.carousel-item.active .carousel-description,
.carousel-item.active .carousel-price,
.carousel-item.active .carousel-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    bottom: 60px;
    left: 60px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.carousel-control {
    width: 50px;
    height: 50px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    background: #ffffff;
    transition: all 0.3s;
    cursor: pointer;
}

.carousel-control:hover {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: #ffffff;
}

/* Progress Bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e5e7eb;
    z-index: 3;
}

.progress-bar {
    height: 100%;
    background: #ff6b6b;
    width: 0;
    transition: width 0.5s linear;
}

/* Responsive */
@media (max-width: 1199px) {
    .split-text {
        padding: 40px;
    }

    .carousel-title {
        font-size: 3rem;
    }

    .carousel-controls {
        bottom: 40px;
        left: 40px;
    }
}

@media (max-width: 991px) {
    .split-carousel {
        height: auto;
    }

    .split-content {
        flex-direction: column-reverse;
    }

    .split-text,
    .split-image {
        width: 100%;
    }

    .split-image {
        height: 400px;
    }

    .carousel-controls {
        bottom: auto;
        top: 40px;
        left: 40px;
    }
}

@media (max-width: 576px) {
    .split-text {
        padding: 30px;
    }

    .carousel-title {
        font-size: 2.5rem;
    }

    .carousel-description {
        font-size: 1rem;
    }

    .split-image {
        height: 300px;
    }

    .carousel-controls {
        top: 30px;
        left: 30px;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
    }
}