.animex-gsap-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0; /* Full width by default, controlled via style tab */
    box-sizing: border-box;
}

.animex-gsap-carousel-container.swiper,
.animex-gsap-carousel-container.swiper-container {
    width: 100%;
    height: auto;
    overflow: hidden;
    padding: 30px 0 80px;
}

/* NATURAL VISIBILITY REINFORCEMENT */
.animex-gsap-carousel-container {
    min-height: 200px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.elementor-editor-active .animex-gsap-carousel-container {
    min-height: 400px;
    background: transparent;
}

/* NATURAL VISIBILITY */
.animex-gsap-carousel-wrapper .swiper,
.animex-gsap-carousel-wrapper .swiper-container,
.animex-gsap-carousel-wrapper .swiper-wrapper,
.animex-gsap-carousel-wrapper .swiper-slide {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hide only if motion handler is active and waiting - only targets the wrapper/slides if they HAVE the class */
.animex-motion-hidden.swiper-wrapper,
.animex-motion-hidden.swiper-slide,
.animex-motion-hidden .swiper-wrapper,
.animex-motion-hidden .swiper-slide {
    visibility: hidden !important;
    opacity: 0 !important;
}


.animex-gsap-carousel-track.swiper-wrapper {
    display: flex;
    will-change: transform;
}

.animex-gsap-carousel-item.swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1 !important;
    position: relative;
}

.animex-nested-slide {
    min-height: 200px;
}

.animex-nested-slide > .elementor-element {
    height: 100%;
    width: 100%;
}

.animex-gsap-carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
}

.animex-gsap-carousel-item .item-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.animex-gsap-carousel-item:hover .item-inner {
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.animex-gsap-carousel-item .item-image-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    border-radius: 12px;
    aspect-ratio: 16/10;
    background: #fdfdfd;
    z-index: 1;
}

.animex-gsap-carousel-item .item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.animex-gsap-carousel-item:hover .item-image-wrapper img:first-child {
    transform: scale(1.08);
}

.animex-gsap-carousel-item .item-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 3;
}

.animex-gsap-carousel-item .item-title {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
    letter-spacing: -0.02em;
}

.animex-gsap-carousel-item .item-text {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
    font-size: 1rem;
    flex-grow: 1;
}

/* Designer Pill Button */
.animex-gsap-carousel-item .item-button .animex-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: fit-content;
}

.animex-gsap-carousel-item .item-button .animex-button:hover {
    background: #222;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* HIGH-END MINIMALIST FLOATING ARROWS */
.animex-gsap-carousel-wrapper .swiper-button-prev,
.animex-gsap-carousel-wrapper .swiper-button-next {
    background: #ffffff !important;
    color: #000000 !important;
    width: 50px !important;
    height: 50px !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 50% !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    top: 45% !important; /* Move up slightly to avoid pagination overlap if they are tall */
    margin: 0 !important;
    transform: translateY(-50%);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10;
}

.animex-gsap-carousel-wrapper .swiper-button-prev { left: 5px !important; }
.animex-gsap-carousel-wrapper .swiper-button-next { right: 5px !important; }

/* Remove default swiper arrow icons */
.animex-gsap-carousel-wrapper .swiper-button-prev::after,
.animex-gsap-carousel-wrapper .swiper-button-next::after {
    display: none !important;
}

.animex-gsap-carousel-wrapper .swiper-button-prev i,
.animex-gsap-carousel-wrapper .swiper-button-prev svg,
.animex-gsap-carousel-wrapper .swiper-button-next i,
.animex-gsap-carousel-wrapper .swiper-button-next svg {
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.animex-gsap-carousel-wrapper .swiper-button-prev:hover,
.animex-gsap-carousel-wrapper .swiper-button-next:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Professional Bullets */
.swiper-pagination.animex-gsap-carousel-bullets {
    bottom: 15px !important;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.animex-gsap-carousel-wrapper .swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
    background: #ddd !important;
    opacity: 1 !important;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.animex-gsap-carousel-wrapper .swiper-pagination-bullet-active {
    background: #111 !important;
    width: 28px !important;
    border-radius: 6px !important;
}
