/* NewsNirikh bilingual UI fixes — safe overrides loaded after the main styles. */

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-weight: 800;
}

.language-switcher a {
    text-decoration: none;
}

.language-switcher a.active {
    color: #ef123e;
}

/* Prevent category names such as Technology and Entertainment from colliding. */
.nav .nav-scroll {
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.nav .nav-scroll::-webkit-scrollbar {
    display: none;
}

.nav .home-link,
.nav .nav-item {
    flex: 0 0 auto !important;
    min-width: max-content !important;
}

.nav .nav-item > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    white-space: nowrap !important;
    padding-inline: 18px !important;
}

.locale-en .nav .nav-item > a {
    font-size: 16px !important;
    letter-spacing: -0.01em;
}

.locale-bn .nav .nav-item > a {
    padding-inline: 20px !important;
}

/* Stable homepage H1 for SEO; article headline remains the visual hero as H2. */
.site-topic-intro {
    margin: 0 0 18px;
    padding: 13px 17px;
    border-left: 4px solid #ef123e;
    border-radius: 8px;
    background: var(--surface, #fff);
    box-shadow: 0 8px 28px rgba(7, 31, 67, 0.05);
}

.site-topic-intro h1 {
    margin: 0 0 4px;
    font-size: clamp(21px, 2.2vw, 31px);
    line-height: 1.25;
}

.site-topic-intro p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.lead-content .lead-headline {
    margin: 14px 0 12px;
    font-size: clamp(38px, 4.2vw, 68px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.lead-content .lead-headline a {
    color: inherit;
    text-decoration: none;
}

/* Keep the top bar readable in both languages. */
.topline-inner,
.top-links {
    min-width: 0;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.last-update {
    white-space: nowrap;
}

@media (max-width: 1400px) {
    .nav .nav-item > a {
        padding-inline: 14px !important;
    }

    .locale-en .nav .nav-item > a {
        font-size: 15px !important;
    }
}

@media (max-width: 900px) {
    .site-topic-intro {
        padding: 11px 13px;
    }

    .site-topic-intro p {
        font-size: 14px;
    }

    .lead-content .lead-headline {
        font-size: clamp(32px, 9vw, 48px);
    }

    .top-links {
        gap: 7px;
    }
}
