.df-carousel-container {
    width: 100%;
    /* max-width: 1200px; */
    height: 450px;
    /* margin: 0 auto 80px; */
    position: relative;
    perspective: 1200px;
    display: block;
    /* Critical for mobile swipe: allows vertical scroll but captures horizontal */
    touch-action: pan-y;
    user-select: none;
    -webkit-user-drag: none;
}

/* .df-carousel-container::before {
    content: '';
    display: block;
    padding-top: 33.33%;
} */

.df-carousel-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.df-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.df-carousel-item {
    position: absolute;
    width: 1000px;
    height: 500px;
    left: 50%;
    top: 50%;
    /* Transition is managed via JS for drag vs click */
    will-change: transform, opacity;
}

.df-carousel-item:not(.df-active) {
    opacity: 1;
}

.df-carousel-card {
    width: 100%;
    height: 100%;
    position: relative;
    pointer-events: none;
    /* Prevents image dragging ghost */
    position: relative;
}

.df-carousel-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--xl-radius);
    overflow: hidden;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); */
    pointer-events: auto;
}

.df-carousel-front {
    background: unset;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.df-carousel-bg,
.df-carousel-front-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    left: 0;
    top: 0;
}

.df-carousel-front-img {
    scale: 1.01;
}

.df-carousel-home-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #00000000 60%, #000000dc 100%);
    opacity: 0.8;
    transition: all 0.3s ease-in-out;
}

.df-carousel-front:hover .df-carousel-bg::after {
    opacity: 1;
}

.df-carousel-front-ttl {
    z-index: 2;
    font-size: var(--font-l);
    color: white !important;
    padding-bottom: var(--l-space);
    transition: all 0.3s ease-in-out;
}

.df-carousel-front-ttl:hover {
    color: var(--m3-color) !important;
}

.df-carousel-front:hover .df-carousel-front-ttl {
    padding-bottom: calc(var(--l-space) + 20px);
}

/* Navigation Arrows */
.df-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    /* Increased Z-index */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.df-carousel-arrow.df-inactive {
    display: none;
}

.df-carousel-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.df-carousel-arrow.df-prev {
    left: 20px;
}

.df-carousel-arrow.df-next {
    right: 20px;
}

.df-carousel-arrow::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 3px solid #667eea;
    border-right: 3px solid #667eea;
}

.df-carousel-arrow.df-prev::before {
    transform: rotate(-135deg);
    margin-left: 5px;
}

.df-carousel-arrow.df-next::before {
    transform: rotate(45deg);
    margin-right: 5px;
}

/* Indicators */
.df-carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.df-carousel-indicators.df-inactive {
    display: none;
}

.df-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9b357b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.df-carousel-indicator.df-active {
    background: #ee3e80;
    width: 30px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {

    .df-carousel-container {
        height: 300px;
    }

    .df-carousel-item {
        width: 450px;
        height: 300px;
    }

    .df-carousel-arrow {
        width: 40px;
        height: 40px;
    }
}