/* Homepage news / announcement ticker with a CSS-only seamless TV headline loop. */
.egho-news-ticker {
    position: relative;
    z-index: 12;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(90deg, #082f5e 0%, #0b3d73 52%, #0d4b83 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(7, 31, 61, 0.14);
}

.egho-news-ticker::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,.025), transparent 32%, rgba(255,255,255,.035));
}

.egho-news-ticker-inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    gap: 16px;
}

.egho-news-ticker-label {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 14px 7px 15px;
    border: 1px solid rgba(255, 205, 75, .88);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffd24f 0%, #f59e0b 100%);
    color: #10254a;
    box-shadow: 0 7px 16px rgba(245, 158, 11, .25);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .085em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.egho-news-ticker-label::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    width: 11px;
    height: 11px;
    background: #f8aa11;
    transform: translateY(-50%) rotate(45deg);
}

.egho-news-ticker-viewport {
    position: relative;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 2.5%, #000 97.5%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 2.5%, #000 97.5%, transparent);
}

.egho-news-ticker-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: egho-news-marquee var(--egho-news-duration, 20s) linear infinite !important;
    animation-play-state: running !important;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.egho-news-ticker-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.egho-news-ticker-group span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-width: 320px;
    padding: 0 54px 0 0;
    box-sizing: border-box;
    color: rgba(255, 255, 255, .98);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.egho-news-ticker-group span::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    margin: 0 13px 0 2px;
    border-radius: 50%;
    background: #ffd24f;
    box-shadow: 0 0 0 4px rgba(255, 210, 79, .12), 0 0 10px rgba(255, 210, 79, .38);
}

.egho-news-ticker-link {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.egho-news-ticker-link::after {
    content: "→";
    transition: transform .2s ease;
}

.egho-news-ticker-link:hover,
.egho-news-ticker-link:focus-visible {
    transform: translateY(-2px) scale(1.02);
    border-color: #ffd24f;
    background: #ffd24f;
    color: #10254a;
    box-shadow: 0 9px 20px rgba(2, 24, 52, .22);
    outline: none;
}

.egho-news-ticker-link:active {
    transform: translateY(0) scale(.97);
}

.egho-news-ticker-link:hover::after,
.egho-news-ticker-link:focus-visible::after {
    transform: translateX(4px);
}

@keyframes egho-news-marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 640px) {
    .egho-news-ticker-inner {
        min-height: 42px;
        gap: 11px;
    }

    .egho-news-ticker-label {
        min-height: 27px;
        padding: 6px 9px 6px 10px;
        font-size: 10px;
    }

    .egho-news-ticker-group span {
        min-width: 255px;
        padding-right: 38px;
        font-size: 12.5px;
    }

    .egho-news-ticker-group span::before {
        margin-right: 10px;
    }

    .egho-news-ticker-link {
        display: none;
    }
}
