/**
 * DT Image Loop Carousel Widget Styles
 */

.dt-image-carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
    z-index: 1;
}

.dt-image-carousel-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    width: 100%;
}

.dt-image-carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.dt-image-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.dt-image-carousel-item a {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.dt-image-carousel-item a:hover .dt-image-carousel-img {
    transform: scale(1.05);
}

/* Swiper Navigation */
.dt-image-carousel .swiper-button-next,
.dt-image-carousel .swiper-button-prev {
    background-image: none;
    color: #f9b100;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.dt-image-carousel:hover .swiper-button-next,
.dt-image-carousel:hover .swiper-button-prev {
    opacity: 1;
}

.dt-image-carousel .swiper-button-next:hover,
.dt-image-carousel .swiper-button-prev:hover {
    background-color: #ffffff;
    color: #f9b100;
    box-shadow: 0 4px 8px rgba(249, 177, 0, 0.2);
}

.dt-image-carousel .swiper-button-next:after,
.dt-image-carousel .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* Swiper Pagination */
.dt-image-carousel .swiper-pagination {
    position: relative;
    margin-top: 15px;
}

.dt-image-carousel .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #f9b100;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.dt-image-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    background: #f9b100;
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .dt-image-carousel .swiper-button-next,
    .dt-image-carousel .swiper-button-prev {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }
    
    .dt-image-carousel .swiper-button-next:after,
    .dt-image-carousel .swiper-button-prev:after {
        font-size: 14px;
    }
}

/* Add a smooth loader animation */
.dt-image-carousel-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dt-image-carousel-container.loading:before {
    opacity: 1;
}

.dt-image-carousel-container.loading:after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(249, 177, 0, 0.3);
    border-radius: 50%;
    border-top-color: #f9b100;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    z-index: 3;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
