/**
 * Auto-rotation CSS Enhancements
 * Smooth transitions and animations for auto-rotating elements
 */

/* Slider Transitions */
.jqImageRotator {
    position: relative;
    overflow: hidden;
}

.jqImageRotator .jqImageList {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.jqImageRotator .jqImageList li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.jqImageRotator .jqImageList li:first-child {
    position: relative;
}

/* Active slide */
.jqImageRotator .jqImageList li.active {
    opacity: 1;
    z-index: 2;
}

/* Slider navigation dots */
.jqImageLinks {
    text-align: center;
    padding: 10px 0;
    margin: 0;
    list-style: none;
}

.jqImageLinks li {
    display: inline-block;
    margin: 0 5px;
}

.jqImageLinks a {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #e0e0e0;
    color: #666;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.jqImageLinks a:hover {
    background: #00ab67;
    color: #fff;
    transform: scale(1.1);
}

.jqImageLinks a.ctl00_ContentPlaceHolder1_Rotator_selected {
    background: #00ab67;
    color: #fff;
    font-weight: bold;
}

/* News Ticker Transitions */
.news-ticker {
    position: relative;
    overflow: hidden;
}

.news-ticker li {
    transition: opacity 0.6s ease-in-out;
}

/* Events Box Transitions */
.news-list.events_box .events_box_body {
    transition: opacity 0.6s ease-in-out;
}

/* Smooth fade effect */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

/* Loading animation for images */
.jqImageRotator img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.jqImageRotator img.loaded {
    opacity: 1;
}

/* Pause indicator (optional) */
.auto-rotate-paused::after {
    content: '⏸';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 100;
}

/* Controls hover effect */
.controls a {
    transition: all 0.3s ease;
}

.controls a:hover {
    transform: scale(1.2);
    color: #00ab67;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .jqImageLinks a {
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 12px;
    }

    .jqImageLinks li {
        margin: 0 3px;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .jqImageRotator .jqImageList li,
    .news-ticker li,
    .news-list.events_box .events_box_body {
        transition: none;
    }

    .jqImageLinks a,
    .controls a {
        transition: none;
    }
}

/* Print styles - show all content */
@media print {
    .jqImageRotator .jqImageList li {
        position: relative !important;
        opacity: 1 !important;
        display: block !important;
        page-break-inside: avoid;
    }

    .jqImageLinks,
    .controls {
        display: none !important;
    }
}