/* Premium Bengali News Magazine & WebView-Ready Portal Stylesheet */
@import url('./typography.css');

:root {
    --primary-red: #e11d48;
    --primary-dark: #0f172a;
    --nav-bg: #0b132b;
    --bg-light: #f8fafc;
    --card-border: #e2e8f0;
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-bangla);
    background-color: var(--bg-light);
    color: var(--text-body);
    line-height: 1.6;
    padding-bottom: 70px; /* Space for mobile bottom nav */
}

/* ========================================================
   TOP TICKER & HEADER
======================================================== */
.top-ticker-bar {
    background: #070d1e;
    color: #cbd5e1;
    font-size: 0.84rem;
    padding: 7px 0;
    border-bottom: 1px solid #1e293b;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ticker-tag {
    background: var(--primary-red);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Breaking ticker: fixed one-line track keeps the strip compact. */
.top-ticker-bar .ticker-inner { gap: 14px; }
.top-ticker-bar .breaking-ticker { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.top-ticker-bar .ticker-viewport { position: relative; flex: 1; min-width: 0; height: 24px; overflow: hidden; }
.top-ticker-bar .ticker-headline,
.top-ticker-bar .ticker-empty { display: block; position: absolute; inset: 0; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-ticker-bar .ticker-headline { color: #e2e8f0; text-decoration: none; font-weight: 500; transition: color 180ms ease; }
.top-ticker-bar .ticker-headline:hover { color: #fff; }
.top-ticker-bar [hidden] { display: none !important; }
.top-ticker-bar .ticker-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #ef607b; animation: ticker-pulse 3s ease-in-out infinite; }
@keyframes ticker-pulse { 50% { opacity: .55; } }
.top-ticker-bar .ticker-controls { display: flex; gap: 2px; flex-shrink: 0; }
.top-ticker-bar .ticker-controls button { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #8e9fb7; font-size: 10px; cursor: pointer; transition: color 180ms ease, background 180ms ease; }
.top-ticker-bar .ticker-controls button:hover { color: #fff; background: rgba(255,255,255,.07); }
.top-ticker-bar .ticker-controls button[aria-pressed="true"] { color: #fff; }
.top-ticker-bar .ticker-headline:focus-visible { outline: 1px solid #89a9cd; outline-offset: -1px; border-radius: 2px; color: #fff; }
.top-ticker-bar button:focus-visible { outline: 1px solid #89a9cd; outline-offset: 1px; }
.top-ticker-bar .ticker-date { font-size: .78rem; color: #94a3b8; flex-shrink: 0; white-space: nowrap; }
@media (max-width: 1024px) {
    .top-ticker-bar .ticker-inner { gap: 8px; }
    .top-ticker-bar .breaking-ticker { gap: 7px; }
}
@media (max-width: 768px) {
    .top-ticker-bar .ticker-date { display: none; }
    .top-ticker-bar .ticker-tag { padding: 4px 8px; }
    .top-ticker-bar .ticker-controls { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .top-ticker-bar .ticker-dot { animation: none; }
    .top-ticker-bar .ticker-headline,
    .top-ticker-bar .ticker-controls button { transition: none; }
}

/* Main Site Header */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid var(--card-border);
    padding: 8px 0;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.site-logo .logo-main {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.site-logo .logo-sub {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
}

.header-ad-box {
    max-width: 600px;
    flex: 1;
    text-align: right;
}

/* Main-row account utility; kept separate from public navigation. */
.main-header { position: relative; z-index: 1000; }
.main-header .header-account { position: relative; }
.main-header .account-trigger { display: flex; align-items: center; gap: 8px; height: 38px; padding: 3px 11px 3px 4px; border: 1px solid transparent; border-radius: 20px; background: #f1f5f9; color: #334155; font: 500 14px var(--font-bangla); cursor: pointer; }
.main-header .account-trigger img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.main-header .account-first-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-header .account-chevron { font-size: 10px; transition: transform 160ms ease; }
.main-header .account-trigger[aria-expanded="true"] .account-chevron { transform: rotate(180deg); }
.main-header .account-trigger:hover { background: #e9eff5; }
.main-header .account-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 196px; padding: 5px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.09); animation: account-reveal 160ms ease-out; }
.main-header .account-menu[hidden] { display: none; }
.main-header .account-menu a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 5px; font-size: 13px; color: #475569; text-decoration: none; line-height: 1.5; }
.main-header .account-menu a:hover, .main-header .account-menu a:focus-visible { background: #f1f5f9; color: #0f172a; }
.main-header .account-menu i { color: #7a8a9e; }
.main-header .account-menu .account-logout:hover { color: var(--primary-red); background: #fff1f3; }
.main-header .account-menu-divider { height: 1px; background: #edf0f4; margin: 4px 5px; }
.main-header .account-trigger:focus-visible, .main-header .account-menu a:focus-visible { outline: 2px solid #6a91b8; outline-offset: 2px; }
@keyframes account-reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.header-ad-strip { padding: 16px 0 18px; background: var(--bg-light); }
.between-ad-strip { margin: 28px 0; }
.header-ad-strip .header-ad-label,
.between-ad-strip .header-ad-label { text-align: center; color: #8792a2; font-size: 10px; line-height: 14px; margin-bottom: 5px; }
.header-ad-strip .header-ad-stage,
.between-ad-strip .header-ad-stage,
.header-ad-stage { width: min(var(--ad-width), 100%); aspect-ratio: var(--ad-ratio); margin: 0 auto; position: relative; overflow: hidden; background: #edf1f5; border-radius: 6px; contain: layout paint; }
.header-ad-strip .header-ad-creative,
.header-ad-strip .custom-ad-container,
.header-ad-strip .header-ad-creative a,
.between-ad-strip .header-ad-creative,
.between-ad-strip .custom-ad-container,
.between-ad-strip .header-ad-creative a,
.header-ad-stage .header-ad-creative,
.header-ad-stage .custom-ad-container,
.header-ad-stage .header-ad-creative a { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; overflow: hidden; }
.header-ad-strip .header-ad-creative img,
.between-ad-strip .header-ad-creative img,
.header-ad-stage .header-ad-creative img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: none !important; object-fit: cover !important; margin: 0; box-shadow: none; }
.header-ad-strip .header-ad-code .header-ad-creative,
.between-ad-strip .header-ad-code .header-ad-creative,
.header-ad-stage.header-ad-code .header-ad-creative { width: var(--ad-width); height: 100%; transform-origin: top left; }
@media (max-width: 768px) {
    .header-ad-strip .header-ad-stage,
    .between-ad-strip .header-ad-stage,
    .header-ad-stage { width: min(var(--ad-mobile-width), 100%); aspect-ratio: var(--ad-mobile-ratio); }
}
/* The ad owns the gap before content; avoid adding the homepage's old top gap. */
.header-ad-strip + script + main > :first-child { margin-top: 0; }
@media (max-width: 420px) {
    .main-header .account-first-name { display: none; }
    .main-header .header-flex { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .main-header .account-menu { animation: none; }
    .main-header .account-chevron { transition: none; }
}

/* Navigation Bar */
.main-nav {
    background: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-dropdown-icon {
    font-size: 0.68rem;
    opacity: 0.75;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-item.has-dropdown:hover > a .nav-dropdown-icon,
.nav-item.has-dropdown:focus-within > a .nav-dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    background: #0b1329;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid var(--primary-red);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1050;
    display: block;
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-dropdown li a {
    display: flex;
    align-items: center;
    padding: 9px 18px;
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.18s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.nav-dropdown li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--primary-red);
    padding-left: 22px;
}

@media (min-width: 992px) {
    .nav-container,
    .nav-list {
        overflow: visible;
    }
}

.nav-item a:hover, .nav-item.active a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-admin-link {
    color: #38bdf8 !important;
    font-size: 0.84rem !important;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px !important;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* ========================================================
   HOMEPAGE MAGAZINE LAYOUT
======================================================== */
.magazine-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

/* Lead Big Story */
.lead-story-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.lead-story-card:hover {
    transform: translateY(-2px);
}

.lead-thumb-wrap {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #000;
}

.lead-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lead-story-card:hover img {
    transform: scale(1.03);
}

.lead-content {
    padding: 22px;
}

.category-tag {
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.lead-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.3;
    margin-bottom: 10px;
}

.lead-excerpt {
    font-size: 0.96rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* Sub-lead List on Right */
.side-stories-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-story-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.side-story-card:hover {
    background: #f1f5f9;
}

.side-story-thumb {
    width: 110px;
    height: 85px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.side-story-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.35;
    margin-bottom: 4px;
}

.side-story-info span {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* Hero editorial hierarchy — deliberately scoped away from all other cards. */
.magazine-grid.hero-editorial { grid-template-columns: minmax(0,66fr) minmax(0,34fr); gap: 20px; align-items: stretch; }
.hero-editorial .lead-story-card { display: flex; flex-direction: column; min-width: 0; box-shadow: none; transition: border-color 200ms ease; }
.hero-editorial .lead-story-card:hover { transform: none; border-color: #bdc8d5; }
.hero-editorial .lead-thumb-wrap { flex: 1; min-height: 0; height: auto; aspect-ratio: 16 / 8.5; border-radius: 11px 11px 0 0; }
.hero-editorial .lead-thumb-wrap img { position: absolute; inset: 0; display: block; transition: transform 280ms ease; }
.hero-editorial .lead-story-card:hover img { transform: scale(1.018); }
.hero-editorial .lead-content { position: relative; padding: 18px 20px 20px; }
.hero-editorial .lead-content::before { content: ""; position: absolute; top: 0; left: 20px; width: 32px; height: 2px; background: var(--primary-red); }
.hero-editorial .category-tag { padding: 2px 7px; margin-bottom: 6px; border-radius: 4px; color: var(--primary-red); background: #fff0f2; font-size: 11px; line-height: 1.5; font-weight: 600; }
.hero-editorial .lead-title { font-size: 28px; line-height: 1.32; margin-bottom: 8px; transition: color 200ms ease; }
.hero-editorial .lead-excerpt { font-size: 15.5px; line-height: 1.65; }
.hero-editorial :is(.lead-title,.lead-excerpt,.side-story-info h4) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hero-editorial .side-stories-list { min-width: 0; gap: 8px; }
.hero-editorial .side-story-card { min-width: 0; padding: 7px 9px; gap: 11px; box-shadow: none; transition: border-color 200ms ease; }
.hero-editorial .side-story-card:hover { background: #fff; border-color: #bdc8d5; }
.hero-editorial .side-story-image { overflow: hidden; border-radius: 5px; flex: 0 0 100px; width: 100px; aspect-ratio: 4 / 3; align-self: center; }
.hero-editorial .side-story-thumb { display: block; width: 100%; height: 100%; border-radius: 0; object-fit: cover; transition: transform 280ms ease; }
.hero-editorial .side-story-card:hover .side-story-thumb { transform: scale(1.018); }
.hero-editorial .side-story-info { line-height: 1; min-width: 0; align-self: center; }
.hero-editorial .side-story-info .category-tag { display: block; width: fit-content; font-size: 10px; margin-bottom: 3px; padding: 1px 6px; }
.hero-editorial .side-story-info h4 { font-size: 15px; line-height: 1.38; margin-bottom: 3px; transition: color 200ms ease; }
.hero-editorial .side-story-info .story-meta { display: block; font-size: 11px; line-height: 1.45; color: #718196; }
.hero-editorial .side-story-featured { flex: 1; flex-direction: column; padding: 0; gap: 0; overflow: hidden; }
.hero-editorial .side-story-featured .side-story-image { flex: 1 0 auto; width: 100%; aspect-ratio: 16 / 7.5; min-height: 130px; border-radius: 9px 9px 0 0; position: relative; }
.hero-editorial .side-story-featured .side-story-thumb { position: absolute; inset: 0; }
.hero-editorial .side-story-featured .side-story-info { align-self: stretch; padding: 10px 12px 11px; }
.hero-editorial .side-story-featured h4 { font-size: 18px; line-height: 1.35; margin-bottom: 5px; }
.hero-editorial :is(.lead-story-card:hover .lead-title,.side-story-card:hover h4) { color: var(--primary-red); }
.hero-editorial a:focus-visible { outline: 2px solid #6a91b8; outline-offset: 3px; }
@media (min-width: 769px) and (max-width: 1100px) {
    .magazine-grid.hero-editorial { grid-template-columns: minmax(0,60fr) minmax(0,40fr); gap: 18px; }
    .hero-editorial .lead-thumb-wrap { aspect-ratio: auto; height: auto; flex: 1; min-height: 300px; }
    .hero-editorial .lead-story-card { display: flex; flex-direction: column; }
    .hero-editorial .lead-thumb-wrap img { position: absolute; inset: 0; }
    .hero-editorial .lead-title { font-size: 27px; }
    .hero-editorial .side-story-image { width: 95px; flex-basis: 95px; }
    .hero-editorial .side-story-featured .side-story-image { width: 100%; flex-basis: auto; }
}
@media (max-width: 768px) {
    .magazine-grid.hero-editorial { grid-template-columns: minmax(0,1fr); gap: 14px; }
    .hero-editorial .lead-title { font-size: 25px; }
    .hero-editorial .side-story-featured .side-story-image { flex: none; aspect-ratio: 16 / 8; }
}
@media (max-width: 480px) {
    .hero-editorial .lead-content { padding: 16px; }
    .hero-editorial .lead-content::before { left: 16px; }
    .hero-editorial .lead-title { font-size: 23px; line-height: 1.38; }
    .hero-editorial .side-story-info h4 { line-height: 1.45; }
    .hero-editorial .side-story-featured h4 { font-size: 18px; }
    .hero-editorial .side-story-image { width: 95px; flex-basis: 95px; }
    .hero-editorial .side-story-featured .side-story-image { width: 100%; flex-basis: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-editorial a, .hero-editorial img, .hero-editorial h1, .hero-editorial h4 { transition: none; }
    .hero-editorial .lead-story-card:hover img, .hero-editorial .side-story-card:hover img { transform: none; }
}

/* Section Header */
.section-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--primary-red);
    margin: 32px 0 18px 0;
    padding-bottom: 6px;
}

.section-title-bar h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-heading);
    position: relative;
}

.section-title-bar a {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
}

/* Subcategory Filter Pills */
.category-subnav-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0 24px 0;
    padding: 10px 16px;
    background: #f8fafc;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
}

.category-subnav-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #64748b;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.subnav-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    transition: all 0.18s ease;
}

.subnav-pill:hover {
    color: #0f172a;
    border-color: #94a3b8;
    background: #f1f5f9;
}

.subnav-pill.active {
    color: #ffffff !important;
    background: var(--primary-red, #dc2626) !important;
    border-color: var(--primary-red, #dc2626) !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

/* 4-Column News Cards Grid */
.cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.news-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.news-card-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card-body h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-card-meta {
    font-family: 'SolaimanLipi', var(--font-body);
    font-size: 0.86rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.5;
}

/* Video Section (Dark Themed) */
.video-section-box {
    background: #070d1e;
    color: #ffffff;
    border-radius: 14px;
    padding: 24px;
    margin: 36px 0;
}

.video-section-box .section-title-bar {
    border-bottom-color: #38bdf8;
}

.video-section-box .section-title-bar h3 {
    color: #ffffff;
}

.video-thumb-container {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
}

.video-thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-badge {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    transition: transform 0.2s ease;
}

.video-thumb-container:hover .video-play-badge {
    transform: scale(1.1);
    color: #ef4444;
}

/* ========================================================
   ARTICLE DETAIL PAGE (SINGLE)
======================================================== */
.article-wrapper {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
    margin: 28px 0;
}

.article-main {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    min-width: 0;
    overflow: hidden;
}

.article-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.35;
    margin-bottom: 16px;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
    font-family: 'SolaimanLipi', var(--font-body);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.article-lead-text {
    font-size: 1.15rem;
    font-weight: 400;
    color: #1e293b;
    line-height: 1.6;
    margin-bottom: 20px;
    background: #f8fafc;
    border-left: 4px solid var(--primary-red);
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
}

.article-featured-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 24px;
}

.article-body-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #1e293b;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-body-content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.article-body-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 24px auto;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    object-fit: contain;
}

.article-body-content p {
    margin-bottom: 18px;
}

.article-body-content p img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 16px auto;
}

.article-body-content figure {
    max-width: 100% !important;
    margin: 24px auto;
    text-align: center;
}

.article-body-content figure img {
    margin: 0 auto;
}

.article-body-content figure figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.article-body-content iframe,
.article-body-content video,
.article-body-content embed,
.article-body-content object {
    max-width: 100% !important;
    border-radius: 8px;
}

.article-body-content table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
    display: block;
}

/* Social Share Bar */
.social-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.btn-share {
    padding: 7px 14px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-share.facebook { background: #1877f2; }
.btn-share.whatsapp { background: #25d366; }
.btn-share.copy { background: #475569; }

/* In-Article Custom Ad Slot */
.ad-in-article {
    margin: 28px 0;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

/* ========================================================
   WEBVIEW MOBILE BOTTOM NAVIGATION BAR
======================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #0f172a;
    border-top: 1px solid #1e293b;
    z-index: 1040;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    gap: 3px;
    flex: 1;
}

.bottom-nav-item.active, .bottom-nav-item:hover {
    color: #38bdf8;
}

.bottom-nav-item i {
    font-size: 1.15rem;
}

/* ========================================================
   RESPONSIVENESS & WEBVIEW OPTIMIZATION
======================================================== */
@media (max-width: 992px) {
    .magazine-grid {
        grid-template-columns: 1fr;
    }
    .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    .lead-thumb-wrap {
        height: 240px;
    }
    .lead-title {
        font-size: 1.25rem;
    }
    .cards-grid-4 {
        grid-template-columns: 1fr;
    }
    .header-ad-box {
        display: none;
    }
    .article-main {
        padding: 18px 14px;
    }
    .article-title {
        font-size: 1.5rem;
    }
    .article-body-content {
        font-size: 1.02rem;
    }
}

/* ========================================================
   EDITORIAL FOOTER
======================================================== */
/* Remove desktop end-of-page clearance; retain only the fixed mobile
   navigation's 60px footprint. Scoped to pages with this footer. */
body:has(> .site-footer) { padding-bottom: 0; }

.site-footer {
    background:
        radial-gradient(ellipse at 88% 25%, rgba(225,29,72,.13) 0%, rgba(225,29,72,.035) 28%, transparent 48%),
        radial-gradient(ellipse at 10% 80%, rgba(14,165,233,.075), transparent 38%),
        linear-gradient(120deg, #06101f, #080d1a 42%, #0c0913 72%, #100811);
    color: #9aaabd;
    margin-top: 50px;
    position: relative;
    font-family: var(--font-bangla);
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(225,29,72,.55) 25%, rgba(14,165,233,.35) 70%, transparent);
}
.site-footer .footer-compact-inner { padding: 32px 24px 18px; }
.site-footer .footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(166,187,211,.12);
}
.site-footer .footer-brand-box {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}
.site-footer .footer-brand-logo { display: block; flex: 0 0 74px; }
.site-footer .footer-logo-img { display: block; width: 74px; height: auto; }
.site-footer .footer-brand-summary {
    max-width: 440px;
    font-size: .9rem;
    line-height: 1.7;
    margin: 0;
    color: #9aaabd;
}
.site-footer .footer-brand-summary strong { color: #dce4ed; font-weight: 500; }
.site-footer .footer-brand-meta {
    flex: 0 1 315px;
    text-align: right;
}
.site-footer .footer-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 9px;
    border: 1px solid rgba(166,187,211,.14);
    border-radius: 20px;
    background: rgba(166,187,211,.035);
    font-size: .76rem;
    color: #d1dae6;
    font-weight: 500;
}
.site-footer .meta-dot { width: 5px; height: 5px; border-radius: 50%; background: #e45b71; }
.site-footer .footer-meta-tagline { margin: 7px 0 0; font-size: .85rem; color: #95a0b2; line-height: 1.6; }
.site-footer .footer-mid-row {
    display: grid;
    grid-template-columns: minmax(0,22fr) minmax(0,22fr) minmax(0,23fr) minmax(0,33fr);
    gap: 28px;
    padding: 22px 0 20px;
    border-bottom: 1px solid rgba(166,187,211,.12);
}
.site-footer .footer-column { min-width: 0; }
.site-footer .col-heading { font-size: 16px; font-weight: 700; color: #f0f4fa; line-height: 1.4; margin: 0 0 12px; }
.site-footer .col-heading::after {
    content: "";
    display: block;
    width: 26px;
    height: 2px;
    margin-top: 7px;
    background: linear-gradient(90deg, #c43c54, rgba(196,60,84,.15));
}
.site-footer .col-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer .col-links li { line-height: 1.35; }
.site-footer .col-links a { display: inline-block; color: #9aaabd; font-size: .9rem; text-decoration: none; transition: color 180ms ease, transform 180ms ease; }
.site-footer .col-links a:hover { color: #f5f7fb; transform: translateX(3px); }
.site-footer a:focus-visible, .site-footer button:focus-visible { outline: 2px solid #6cacc8; outline-offset: 4px; border-radius: 3px; }
.site-footer .footer-social-strip { display: flex; gap: 8px; margin-bottom: 10px; }
.site-footer .social-circle-btn {
    width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(166,187,211,.22);
    background: rgba(166,187,211,.035);
    box-shadow: inset 0 1px rgba(255,255,255,.035);
    color: #a9b6c8; font-size: .82rem; text-decoration: none;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}
.site-footer .social-circle-btn:hover { color: #fff; background: rgba(166,187,211,.12); border-color: rgba(166,187,211,.45); }
.site-footer .footer-mini-contact { display: flex; flex-direction: column; gap: 5px; }
.site-footer .contact-line { display: flex; align-items: center; gap: 8px; font-size: .82rem; line-height: 1.5; margin: 0; }
.site-footer .contact-line i { color: #689ab6; font-size: .8rem; flex-shrink: 0; }
.site-footer .contact-line + .contact-line i { color: #c57889; }
.site-footer .contact-line a { color: #bcc8d7; overflow-wrap: anywhere; text-decoration: none; transition: color 180ms ease; }
.site-footer .contact-line a:hover { color: #fff; }
.site-footer .footer-compact-newsletter { margin-top: 12px; }
.site-footer .compact-news-label { display: block; font-size: .78rem; font-weight: 600; color: #f08094; margin-bottom: 2px; }
.site-footer .compact-news-desc { font-size: .8rem; color: #9aaabd; margin: 0 0 7px; line-height: 1.35; }
.site-footer .compact-news-group { display: flex; gap: 6px; width: 100%; }
.site-footer .compact-news-input {
    flex: 1; min-width: 0; width: 100%; height: 34px;
    background: rgba(16,29,47,.65); border: 1px solid rgba(136,164,194,.25);
    box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
    color: #fff; padding: 0 11px; border-radius: 4px; font-size: .82rem; font-family: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
.site-footer .compact-news-input::placeholder { color: #8d9db1; }
.site-footer .compact-news-input:focus { outline: none; border-color: #b96a80; box-shadow: 0 0 0 2px rgba(225,29,72,.12); }
.site-footer .compact-news-btn {
    width: 34px; height: 34px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-red); border: 1px solid rgba(255,255,255,.1); border-radius: 4px;
    box-shadow: inset 0 1px rgba(255,255,255,.1);
    color: #fff; font-size: .9rem; cursor: pointer;
    transition: background 180ms ease;
}
.site-footer .compact-news-btn:hover { background: #be123c; }
.site-footer .footer-bottom-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; padding-top: 14px; font-size: .84rem; line-height: 1.4; }
.site-footer .footer-copy-text { color: #8d9aae; }
.site-footer .footer-editor-info { display: inline-flex; align-items: center; gap: 6px; color: #cbd5e1; font-size: .88rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); padding: 4px 12px; border-radius: 6px; }
.site-footer .footer-editor-info .editor-label { color: #94a3b8; font-weight: 500; }
.site-footer .footer-editor-info .editor-name { color: #ffffff; font-weight: 700; }
@media (max-width: 1100px) {
    .site-footer .footer-mid-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 40px; }
    .site-footer .footer-brand-box { flex: 1; }
    .site-footer .footer-brand-meta { flex-basis: 260px; }
}
@media (max-width: 768px) {
    body:has(> .site-footer) { padding-bottom: 60px; }
    .site-footer .footer-top-row { flex-direction: column; align-items: flex-start; gap: 16px; }
    .site-footer .footer-brand-meta { flex-basis: auto; max-width: 440px; text-align: left; }
}
@media (max-width: 600px) {
    .site-footer .footer-compact-inner { padding: 30px 24px 18px; }
    .site-footer .footer-brand-box { align-items: flex-start; gap: 16px; }
    .site-footer .footer-brand-logo { flex-basis: 68px; }
    .site-footer .footer-logo-img { width: 68px; }
    .site-footer .footer-brand-summary { font-size: .86rem; }
    .site-footer .footer-mid-row { grid-template-columns: minmax(0,1fr); gap: 24px; }
    .site-footer .footer-bottom-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .site-footer .footer-editor-info { flex-wrap: wrap; gap: 6px; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
    .site-footer *, .site-footer *::after { transition: none; }
    .site-footer .col-links a:hover { transform: none; }
}
