/* Carousel Styles */
.hero-section {
    padding: 2rem 0;
    margin: 0;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.carousel {
    border: none;
    background-color: #fff;
    position: relative;
    perspective: 2000px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-inner {
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #fff;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: none;
    width: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
    align-items: center;
    background-color: transparent;
    padding: 40px 0;
    box-sizing: border-box;
    opacity: 0;
    will-change: transform, opacity;
    transform: translateX(0);
    pointer-events: none;
}

.carousel-item.active {
    display: flex;
    opacity: 1;
    transform: translateX(0) scale(1);
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.carousel-item-next,
.carousel-item-prev {
    display: flex;
    position: absolute;
    top: 0;
    width: 100%;
}

.carousel-item-next.carousel-item-start,
.carousel-item-prev.carousel-item-end,
.active.carousel-item-start,
.active.carousel-item-end {
    transform: translateX(0);
    opacity: 1;
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end.carousel-item-next:not(.carousel-item-start) {
    transform: translateX(100%);
    opacity: 0;
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start.carousel-item-prev:not(.carousel-item-end) {
    transform: translateX(-100%);
    opacity: 0;
}

.carousel-item .image-container {
    display: flex;
    width: 100%;
    gap: 15px;
    padding: 0;
    box-sizing: border-box;
    justify-content: center;
    background: transparent;
}

.carousel-item img {
    width: 48%;
    max-width: 800px;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Navigation Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.9;
    color: #333;
    background: rgba(255,255,255,0.8);
    height: 60px;
    top: 50%;
    border-radius: 4px;
    transition: all 0.3s ease;
    transform: translateY(-50%);
    border-radius: 4px;
    z-index: 1;
    cursor: pointer;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: transparent;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .carousel-item .image-container {
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-item img {
        width: 90%;
        margin-bottom: 10px;
    }
    
    .carousel-item img:last-child {
        margin-bottom: 0;
    }
}
