﻿.ghm {
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
}

.ghm-track {
    display: flex;
    width: max-content;
    animation: ghm-scroll 45s linear infinite; /* عدد بزرگ‌تر = کندتر */
}

.ghm:hover .ghm-track {
    animation-play-state: paused; /* با موس ایستا می‌شود */
}

.ghm-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 100vw; /* اگر خبرها کم بودند، فاصله خالی نیفتد */
    justify-content: space-around;
}

.ghm-item {
    font-size: 16px; /* قبلاً fs-32 بود */
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    unicode-bidi: plaintext;
}

    .ghm-item:hover {
        text-decoration: underline;
    }

.ghm-sep {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 24px;
    border-radius: 50%;
    background: currentColor;
    opacity: .4;
}

@keyframes ghm-scroll {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .ghm-item {
        font-size: 14px;
    }

    .ghm-track {
        animation-duration: 35s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ghm-track {
        animation: none;
    }
}
