/* Carousel Widget Styles */
.tp-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.tp-carousel-container {
    position: relative;
    width: 100%;
}

.tp-carousel-slider {
    width: 100%;
    height: auto;
}

.tp-carousel-item {
    position: relative;
    height: auto;
    transition: all 0.3s ease;
}

.tp-carousel-content {
    padding: 20px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tp-carousel-image {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 6px;
}

.tp-carousel-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.tp-carousel-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #333;
    transition: all 0.3s ease;
}

.tp-carousel-item:hover .tp-carousel-icon {
    transform: scale(1.1);
}

.tp-carousel-svg {
    margin-bottom: 15px;
    max-width: 100px;
    height: auto;
}

.tp-carousel-video {
    margin-bottom: 15px;
    width: 100%;
    max-width: 300px;
}

.tp-carousel-video video {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.tp-carousel-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.tp-carousel-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.tp-carousel-button {
    margin-top: auto;
}

.tp-carousel-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.tp-carousel-btn:hover {
    background: #005a87;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Navigation Arrows */
.tp-carousel-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
    z-index: 10;
}

.tp-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tp-carousel-arrow:hover {
    background: #fff;
    color: #007cba;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.tp-carousel-prev {
    left: 10px;
}

.tp-carousel-next {
    right: 10px;
}

/* Dots */
.tp-carousel-dots {
    text-align: center;
    margin-top: 20px;
}

.tp-carousel-dots .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.tp-carousel-dots .swiper-pagination-bullet:hover {
    background: #999;
    opacity: 1;
}

.tp-carousel-dots .swiper-pagination-bullet-active {
    background: #007cba;
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tp-carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .tp-carousel-prev {
        left: 5px;
    }
    
    .tp-carousel-next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .tp-carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .tp-carousel-prev {
        left: 2px;
    }
    
    .tp-carousel-next {
        right: 2px;
    }
}

/* Swiper specific styles */
.swiper-slide {
    height: auto;
}

.swiper-wrapper {
    align-items: stretch;
}

/* Center mode adjustments */
.tp-carousel-wrapper.center-mode .tp-carousel-item {
    opacity: 0.7;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.tp-carousel-wrapper.center-mode .tp-carousel-item.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

/* Animation classes */
.tp-carousel-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar for webkit browsers */
.tp-carousel-slider::-webkit-scrollbar {
    height: 6px;
}

.tp-carousel-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tp-carousel-slider::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.tp-carousel-slider::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Focus states for accessibility */
.tp-carousel-arrow:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.tp-carousel-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Loading state */
.tp-carousel-wrapper.loading {
    opacity: 0.7;
}

.tp-carousel-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

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