/* Rate Ticker Styles */
.rate-ticker-section {
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid var(--secondary-color);
    font-family: var(--font-heading);
    position: relative;
    z-index: 999;
}

.ticker-label {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.ticker-wrapper {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-move 35s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.rate-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 1rem;
    font-weight: 500;
}

.rate-item i {
    margin-right: 5px;
}

@keyframes ticker-move {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* ===== Ticker Responsive ===== */
@media (max-width: 900px) {
    .rate-ticker-section {
        flex-direction: column;
        align-items: stretch;
    }

    .ticker-label {
        text-align: center;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .ticker-wrapper {
        width: 100%;
    }

    .rate-item {
        font-size: 0.85rem;
        padding: 0 1.2rem;
    }
}

@media (max-width: 480px) {
    .ticker-label {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .rate-item {
        font-size: 0.78rem;
        padding: 0 1rem;
    }

    .ticker-content {
        animation-duration: 25s;
    }
}