/* Homepage news ticker */
.news-ticker {
    font-family: var(--bn-font-body, 'SolaimanLipi', 'Kalpurush', sans-serif);
}

.news-ticker__bar {
    display: flex;
    align-items: stretch;
    min-height: 44px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(90deg, #b80000 0%, #c20000 45%, #a50000 100%);
    box-shadow: 0 3px 12px rgba(194, 0, 0, 0.2);
}

.news-ticker__label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0 1.25rem;
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    font-family: var(--bn-font-heading, 'Kalpurush', 'SolaimanLipi', serif);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.2s;
}

.news-ticker__label:hover {
    background: rgba(0, 0, 0, 0.32);
    color: #fff;
}

.news-ticker__track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0.35rem 0;
}

.news-ticker__track::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 16px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to right, rgba(165, 0, 0, 0.95), transparent);
}

.news-ticker__list {
    list-style: none;
    margin: 0;
    padding: 0 0.75rem 0 0.5rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
}

.news-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.news-ticker__link {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.45;
    padding: 0 0.15rem;
    transition: opacity 0.2s;
}

.news-ticker__link:hover {
    color: #fff;
    opacity: 0.9;
    text-decoration: underline;
}

.news-ticker__sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0 1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    overflow: hidden;
}

.news-ticker__logo {
    height: 14px;
    width: 14px;
    object-fit: contain;
    display: block;
}

.news-ticker__empty {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    padding: 0.65rem 1rem;
}

.news-ticker__placeholder {
    height: 0;
    overflow: hidden;
}

/* Fixed to bottom while scrolling */
.news-ticker--bottom-fixed {
    position: fixed;
    bottom: 0;
    left: 50%;
    right: auto;
    z-index: 1020;
    width: min(100%, 1400px);
    transform: translateX(-50%);
    margin-bottom: 0 !important;
    padding: 0 0.75rem max(0.5rem, env(safe-area-inset-bottom));
    pointer-events: none;
    box-sizing: border-box;
}

.news-ticker--bottom-fixed .news-ticker__bar {
    pointer-events: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 16px rgba(194, 0, 0, 0.25);
}

body.has-news-ticker-bottom #techtaranga_backToTop {
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
}

/* Minimal variant */
.news-ticker__bar--minimal {
    min-height: 38px;
    border-radius: 999px;
    background: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.news-ticker__label--minimal {
    background: var(--tt_primary_color, #c20000);
    border-right-color: rgba(255, 255, 255, 0.12);
    font-size: 0.95rem;
    padding: 0 1rem;
}

.news-ticker__track--minimal::before {
    background: linear-gradient(to right, #1a1a1a, transparent);
}

.news-ticker--minimal .news-ticker__link {
    font-size: 0.92rem;
    font-weight: 500;
}

.news-ticker__dot {
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0.85rem;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.news-ticker--bottom-fixed.news-ticker--minimal .news-ticker__bar {
    border-radius: 10px 10px 0 0;
}

@media (max-width: 575.98px) {
    .news-ticker__bar {
        border-radius: 12px;
    }

    .news-ticker__label {
        padding: 0 0.85rem;
        font-size: 0.95rem;
    }

    .news-ticker__link {
        font-size: 0.9rem;
    }

    .news-ticker__sep {
        width: 20px;
        height: 20px;
        margin: 0 0.75rem;
    }

    .news-ticker__logo {
        height: 12px;
        width: 12px;
    }

    .news-ticker--bottom-fixed {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    body.has-news-ticker-bottom #techtaranga_backToTop {
        bottom: calc(52px + env(safe-area-inset-bottom, 0px));
    }
}
