/* Horizontal Card Carousel Styles */
.carousel {
    height: auto;
    min-height: 720px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 4rem 0;
}

/* Interactive zone for scroll control - reduced to center area only */
.carousel-interactive-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 650px; /* Slightly larger than card width (550px) to provide good interaction area */
    z-index: 15;
    pointer-events: auto;
}

.carousel-sticky {
    position: relative;
    width: 100%;
    height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.card {
    position: absolute;
    width: 550px;
    height: 600px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Video container within cards */
.card-video {
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    margin: 1rem 0;
    position: relative;
    background: transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

/* Custom styling for no-code card - no rounded corners */
.card-video.no-rounded-corners,
.card-video.no-rounded-corners iframe {
    border-radius: 0;
    box-shadow: none;
}

/* Custom styling for equipment agnostic card - no container styling */
.card-video.custom-shape,
.card-video.custom-shape iframe {
    border-radius: 0;
    box-shadow: none;
}

.card.active {
    opacity: 1;
    transform: translateX(0) translateZ(0) scale(1);
    z-index: 10;
}

.card.prev {
    opacity: 0.6;
    transform: translateX(-200px) translateZ(-100px) scale(0.85);
    z-index: 5;
}

.card.next {
    opacity: 0.6;
    transform: translateX(200px) translateZ(-100px) scale(0.85);
    z-index: 5;
}

.card.hidden {
    opacity: 0;
    transform: translateX(-400px) translateZ(-200px) scale(0.7);
    z-index: 1;
}

.card.hidden.right {
    transform: translateX(400px) translateZ(-200px) scale(0.7);
}

.card h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    line-height: 1.2;
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #666;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
}

.key-message {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e67e22;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

/* Hover effects */
.card:hover {
    transform: translateY(-5px) scale(1.05);
}

.card.active:hover {
    transform: translateX(0) translateZ(0) translateY(-5px) scale(1.05);
}

.card.prev:hover {
    transform: translateX(-200px) translateZ(-100px) translateY(-5px) scale(0.9);
}

.card.next:hover {
    transform: translateX(200px) translateZ(-100px) translateY(-5px) scale(0.9);
}

/* Navigation indicators */
.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.carousel-nav .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(44, 62, 80, 0.2);
}

.carousel-nav .dot.active {
    background: #e67e22;
    border-color: #e67e22;
    transform: scale(1.2);
}
