/* Minimal CSS to avoid layout conflicts & performance overhead */
.seic-carousel { 
    width: 100%; 
    position: relative;
}

/* Core Swiper Layout - Support both .swiper and .swiper-container for compatibility */
.seic-carousel .swiper,
.seic-carousel .swiper-container {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
    display: block;
}

.seic-carousel .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: row;
    transition-property: transform;
    transition-timing-function: ease-out;
    box-sizing: content-box;
    will-change: transform;
}

.seic-carousel .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
    display: block;
    backface-visibility: hidden;
}

.seic-slide { 
    box-sizing: border-box;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seic-slide img { 
    display: block; 
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.seic-empty { 
    padding: 20px; 
    border: 2px dashed #ccc; 
    border-radius: 8px; 
    font-size: 14px; 
    text-align: center;
    color: #666;
    background: #f9f9f9;
}

/* Swiper Lazy Preloader */
.seic-carousel .swiper-lazy-preloader {
    width: 42px;
    height: 42px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -21px;
    margin-top: -21px;
    z-index: 10;
    transform-origin: 50%;
    animation: seic-spin 1s infinite linear;
    border: 4px solid rgba(0,0,0,0.1);
    border-top-color: #333;
    border-radius: 50%;
}

@keyframes seic-spin {
    100% { transform: rotate(360deg); }
}

/* Navigation Arrows - Perfect Circle Design with Centered Icons */
.seic-carousel .swiper-button-next,
.seic-carousel .swiper-button-prev {
    position: absolute !important;
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: rgba(0,0,0,0.5);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
}

.seic-carousel .swiper-button-prev {
    left: 10px !important;
    right: auto !important;
}

.seic-carousel .swiper-button-next {
    right: 10px !important;
    left: auto !important;
}

.seic-carousel .swiper-button-next:hover,
.seic-carousel .swiper-button-prev:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1) !important;
}

/* Hide default Swiper arrow content */
.seic-carousel .swiper-button-next::after,
.seic-carousel .swiper-button-prev::after {
    display: none !important;
}

/* Ensure icons are centered and visible */
.seic-carousel .swiper-button-next i,
.seic-carousel .swiper-button-next svg,
.seic-carousel .swiper-button-prev i,
.seic-carousel .swiper-button-prev svg {
    display: block;
    line-height: 1;
    width: auto;
    height: auto;
    pointer-events: none;
}

/* Pagination Dots */
.seic-carousel .seic-pagination,
.seic-carousel .swiper-pagination {
    z-index: 10 !important;
    pointer-events: auto !important;
    position: absolute !important;
    bottom: 10px !important;
    left: 0 !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.seic-carousel .swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.5 !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 4px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: inline-block !important;
}

.seic-carousel .swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: #fff !important;
    transform: scale(1.2);
}

/* Ensure container allows arrows to be visible */
.seic-carousel .swiper-container,
.seic-carousel .seic-swiper {
    position: relative;
    overflow: hidden;
}

/* Image Stretch Option */
.seic-carousel.seic-stretch .seic-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Caption Styling */
.seic-caption {
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: #666;
    background: #f9f9f9;
    margin-top: 8px;
    border-radius: 4px;
}

/* Lightbox Link Styling */
.seic-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.seic-link:hover img {
    opacity: 0.9;
}