@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Tiro+Bangla:ital@0;1&display=swap');

:root {
    --bpnews-primary: #E60000;
    --bpnews-primary-hover: #b80000;
    --bpnews-secondary: #1e293b;
    --bpnews-accent: #2563eb;
    --bpnews-text: #1f2937;
    --bpnews-text-light: #64748b;
    --bpnews-bg: #f8fafc;
    --bpnews-card-bg: #ffffff;
    --bpnews-border: #e2e8f0;
    --bpnews-font: 'Hind Siliguri', 'Tiro Bangla', sans-serif;
}

/* Base Portal Styles */
.bpnews-site {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.bpnews-desktop-container {
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(15px, 3vw, 50px);
    padding-right: clamp(15px, 3vw, 50px);
    box-sizing: border-box;
}
.bpnews-home-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(500px, 2.5fr) minmax(260px, 1.2fr);
    gap: 20px;
    width: 100%;
}
.bpnews-desktop-portal,
.bpnews-article-container,
.bpnews-category-page {
    font-family: var(--bpnews-font);
    color: var(--bpnews-text);
    background: var(--bpnews-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

/* 1. Top Bar */
.bpnews-topbar {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 2px solid var(--bpnews-primary);
    width: 100%;
}
.bpnews-topbar-inner {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 50px);
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.bpnews-date {
    font-weight: 500;
    color: #fff;
}
.bpnews-weather-widget {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}
.topbar-app-link, .topbar-reporter-btn {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.topbar-app-link:hover, .topbar-reporter-btn:hover {
    color: #fca5a5;
}
.topbar-reporter-btn {
    background: var(--bpnews-primary);
    padding: 3px 10px;
    border-radius: 4px;
}
.bpnews-lang-switcher a {
    color: #94a3b8;
    text-decoration: none;
    margin: 0 3px;
}
.bpnews-lang-switcher a.active-lang {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

/* 2. Header Branding */
.bpnews-main-header {
    background: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.bpnews-header-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 50px);
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.bpnews-official-logo {
    max-height: 72px;
    width: auto;
    object-fit: contain;
}
.bpnews-header-ad {
    flex: 1;
    max-width: 728px;
}
.bpnews-ad-placeholder {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
    border-radius: 6px;
}

/* 3. Primary Navigation Bar */
.bpnews-category-nav {
    background: #1e293b;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 100%;
}
.bpnews-nav-inner {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 50px);
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bpnews-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.bpnews-nav-menu li a {
    display: block;
    color: #f8fafc;
    text-decoration: none;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease;
}
.bpnews-nav-menu li a:hover,
.bpnews-nav-menu li.active a {
    background: var(--bpnews-primary);
}
.bpnews-search-box form {
    display: flex;
    align-items: center;
    background: #334155;
    border-radius: 20px;
    padding: 2px 12px;
}
.bpnews-search-box input {
    border: none;
    background: transparent;
    color: #fff;
    padding: 6px 4px;
    outline: none;
    font-size: 14px;
}
.bpnews-search-box button {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
}

/* 4. Breaking Ticker */
.bpnews-ticker-bar {
    max-width: 1600px;
    width: 100%;
    margin: 16px auto;
    padding: 0 clamp(15px, 3vw, 50px);
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid var(--bpnews-border);
    border-left: 5px solid var(--bpnews-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.ticker-badge {
    background: var(--bpnews-primary);
    color: #fff;
    padding: 10px 16px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ticker-marquee {
    padding: 10px 16px;
    white-space: nowrap;
    overflow: hidden;
    color: var(--bpnews-text);
    font-weight: 500;
}
.ticker-marquee a {
    color: var(--bpnews-text);
    text-decoration: none;
    margin-right: 15px;
}
.ticker-marquee a:hover {
    color: var(--bpnews-primary);
}

/* 5. News Grid Blocks */
.bpnews-homepage-main {
    max-width: 1600px;
    width: 100%;
    margin: 24px auto;
    padding: 0 clamp(15px, 3vw, 50px);
    box-sizing: border-box;
}
.bpnews-section-block {
    margin-bottom: 40px;
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--bpnews-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--bpnews-primary);
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.section-heading h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--bpnews-secondary);
}
.view-all-link {
    color: var(--bpnews-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.bpnews-news-grid {
    display: grid;
    gap: 20px;
}
.bpnews-news-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.bpnews-news-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}
.bpnews-news-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
    .bpnews-news-grid.cols-3,
    .bpnews-news-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .bpnews-news-grid.cols-3,
    .bpnews-news-grid.cols-4,
    .bpnews-news-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Card Items */
.bpnews-card-item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bpnews-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.card-img-link {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.bpnews-card-item:hover .card-img {
    transform: scale(1.05);
}
.card-content {
    padding: 14px 4px;
}
.card-district {
    display: inline-block;
    color: var(--bpnews-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.card-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}
.card-title a {
    color: var(--bpnews-text);
    text-decoration: none;
}
.card-title a:hover {
    color: var(--bpnews-primary);
}
.card-meta {
    font-size: 13px;
    color: var(--bpnews-text-light);
}

/* 6. Single Article Viewer */
.bpnews-article-container {
    max-width: 900px;
    margin: 24px auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.article-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bpnews-border);
    padding-bottom: 16px;
    margin-bottom: 24px;
}
.back-home-link {
    color: var(--bpnews-primary);
    text-decoration: none;
    font-weight: 600;
}
.article-brand-logo {
    max-height: 48px;
}
.article-top-tools {
    display: flex;
    gap: 10px;
    align-items: center;
}
.article-tool-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--bpnews-text);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.article-tool-btn:hover {
    background: #e2e8f0;
}
.article-tool-btn.tts-active {
    background: var(--bpnews-primary);
    color: #fff;
    border-color: var(--bpnews-primary);
}
.bpnews-font-adjust {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}

/* Headline & Attribution */
.article-headline-header {
    margin-bottom: 24px;
}
.article-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.badge-district {
    background: var(--bpnews-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}
.badge-breaking {
    background: #dc2626;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}
.article-main-title {
    font-size: 34px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--bpnews-secondary);
    margin: 12px 0;
}
.article-subheadline {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--bpnews-text-light);
    margin-bottom: 20px;
}
.article-attribution-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--bpnews-border);
    border-bottom: 1px solid var(--bpnews-border);
}
.reporter-avatar {
    font-size: 42px;
    color: #94a3b8;
}
.attribution-info strong {
    font-size: 16px;
    display: block;
}
.date-read {
    font-size: 13px;
    color: var(--bpnews-text-light);
}

/* Media & Share Bar */
.article-media-showcase {
    margin: 24px 0;
}
.article-image-wrap img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.image-caption {
    font-size: 13px;
    color: var(--bpnews-text-light);
    margin-top: 8px;
    text-align: center;
}
.article-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 24px 0;
    font-weight: 600;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    border: none;
    cursor: pointer;
}
.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }
.share-twitter  { background: #1DA1F2; }
.share-copy     { background: #64748b; }

/* Article Body Typography */
.article-body-content {
    font-size: 19px;
    line-height: 1.85;
    color: #1f2937;
    margin: 30px 0;
}
.article-body-content p {
    margin-bottom: 20px;
}

/* Reading Mode Override */
body.bpnews-reading-mode-enabled .bpnews-topbar,
body.bpnews-reading-mode-enabled .bpnews-main-header,
body.bpnews-reading-mode-enabled .bpnews-category-nav,
body.bpnews-reading-mode-enabled .bpnews-footer,
body.bpnews-reading-mode-enabled .article-related-news {
    display: none !important;
}
body.bpnews-reading-mode-enabled {
    background: #fdfbf7 !important;
}
body.bpnews-reading-mode-enabled .bpnews-article-container {
    box-shadow: none;
    max-width: 780px;
    background: transparent;
}

/* 7. Footer */
.bpnews-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 50px 0 20px 0;
    margin-top: 60px;
}
.bpnews-footer-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 50px);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-logo {
    max-height: 55px;
    margin-bottom: 16px;
}
.bpnews-footer h4 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 16px 0;
    border-bottom: 2px solid var(--bpnews-primary);
    padding-bottom: 8px;
}
.bpnews-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bpnews-footer ul li {
    margin-bottom: 10px;
}
.bpnews-footer ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}
.bpnews-footer ul li a:hover {
    color: #fca5a5;
}
.social-icons {
    display: flex;
    gap: 12px;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
}
.social-icons a:hover {
    background: var(--bpnews-primary);
}
.bpnews-footer-bottom {
    max-width: 1600px;
    width: 100%;
    margin: 40px auto 0 auto;
    padding: 20px clamp(15px, 3vw, 50px) 0 clamp(15px, 3vw, 50px);
    box-sizing: border-box;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

@media (min-width: 1025px) {
    .bpnews-site {
        width: 100%;
        max-width: none;
    }
    .bpnews-desktop-container {
        width: 100%;
        max-width: 1600px;
    }
    .bpnews-mobile-header,
    .bpnews-mobile-bottom-nav,
    .bpnews-bottom-nav {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .bpnews-desktop-container {
        width: 100%;
        max-width: none;
        padding-left: 20px;
        padding-right: 20px;
    }
    .bpnews-footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .bpnews-site {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    .bpnews-desktop-header,
    .bpnews-desktop-portal {
        display: none !important;
    }
    .bpnews-mobile-header {
        display: flex;
    }
    .bpnews-mobile-bottom-nav,
    .bpnews-bottom-nav {
        display: flex;
    }
    .bpnews-desktop-container {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }
    .bpnews-footer-container {
        grid-template-columns: 1fr;
    }
}
