
/**
 * 2024 WFT Agency
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 *
 * @author    WFT Agency <contact@wftagency.com>
 * @copyright 2024 WFT Agency
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

.wft-topbarousel {
    position: relative;
    display: block;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wft-topbarousel-container {
    position: relative;
    height: 40px;
    overflow: hidden;
    margin: 0 auto;
    padding: 0 40px;
    max-width: 1200px;
}

.wft-topbarousel-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
}

.wft-topbarousel-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wft-topbarousel-nav {
    position: absolute;
    top: 0;
    height: 100%;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #777;
    transition: color 0.2s ease;
}

.wft-topbarousel-nav:hover {
    color: #333;
}

.wft-topbarousel-prev {
    left: 5px;
}

.wft-topbarousel-next {
    right: 5px;
}

.wft-topbarousel-dots {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.wft-topbarousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wft-topbarousel-dot.active {
    background-color: rgba(0, 0, 0, 0.6);
    width: 10px;
    border-radius: 3px;
}

/* Mobile styles */
@media (max-width: 767px) {
    .wft-topbarousel-container {
        padding: 0 30px;
        height: 36px;
    }
    
    .wft-topbarousel-item {
        font-size: 12px;
    }
}
