/* =====================================================
   Baler Kontho - Front-end Styles
   Kaler Kantho-style clean white design
   ===================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red: #ec1c24;
    --green: #1a8d3f;
    --cyan: #00b8c4;
    --ink: #1a1a1a;
    --muted: #6b7280;
    --muted-2: #8a8f98;
    --border: #e5e7eb;
    --border-2: #eef0f2;
    --bg: #ffffff;
    --bg-soft: #f6f7f8;
    --link: #1a1a1a;
    --maxw: 1280px;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700;800&display=swap');

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Noto Sans Bengali', 'Kalpurush', 'SolaimanLipi', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
}

a { color: var(--link); text-decoration: none; }
a:hover { color: inherit; }

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

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}

.ad-slot {
    text-align: center;
    color: #b9bdc3;
    font-size: 11px;
    letter-spacing: .5px;
    padding: 8px 0;
}
.ad-slot .ad-box {
    background: var(--bg-soft);
    border: 1px solid var(--border-2);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

/* ===================== Top Bar ===================== */
.topbar {
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    gap: 16px;
}
.topbar .date-bn {
    font-size: 14px;
    color: #4b5159;
    line-height: 1.55;
    min-width: 220px;
}
.topbar .date-bn span { display: block; }
.topbar .brand img { height: 58px; width: auto; }
.topbar .top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: flex-end;
}
.btn-epaper {
    border: 1px solid #cfd3d8;
    border-radius: 22px;
    padding: 7px 18px;
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
}
.btn-epaper:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #cfd3d8;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3a3f47;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

/* ===================== Main Nav ===================== */
.mainnav {
    border-bottom: 1px solid var(--border);
    background: #fff;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow .2s;
}
.mainnav.stuck { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.mainnav .container {
    display: flex;
    align-items: center;
}
.mainnav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.mainnav ul::-webkit-scrollbar { display: none; }
.mainnav li { position: relative; white-space: nowrap; }
.mainnav a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--ink);
    padding: 17px 14px;
    font-weight: 600;
    font-size: 17px;
    border-bottom: 3px solid transparent;
}
.mainnav a:hover { color: var(--green); }
.mainnav a.active { color: var(--green); border-bottom-color: var(--green); }
.mainnav a .caret { font-size: 9px; opacity: .7; }
.mainnav .home-icon a { padding: 14px 14px; color: #3a3f47; }
.mainnav .home-icon svg { width: 19px; height: 19px; }
.mainnav .nav-patrika a { color: var(--green); }
.mainnav .nav-video a { color: var(--cyan); }
.mainnav .nav-video a:hover { color: var(--cyan); }
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 6px 14px 14px;
    color: var(--ink);
    display: inline-flex;
}
.hamburger svg { width: 24px; height: 24px; }

/* ===================== Show/hide utilities ===================== */
.mobile-only { display: none !important; }
.desktop-only { display: inline-flex; }

/* ===================== Mobile drawer menu ===================== */
.menu-toggle {
    background: none; border: none; cursor: pointer; padding: 4px;
    color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 27px; height: 27px; }

.drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 200;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
    position: fixed; top: 0; left: 0; height: 100%; width: 86%; max-width: 390px;
    background: #fff; z-index: 210; transform: translateX(-100%);
    transition: transform .28s ease; overflow-y: auto;
    box-shadow: 0 0 30px rgba(0,0,0,.2);
    display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.drawer-logo img { height: 42px; width: auto; }
.drawer-close { background: none; border: none; cursor: pointer; color: #3a3f47; padding: 4px; display: inline-flex; }
.drawer-close svg { width: 27px; height: 27px; }
.drawer-quick {
    display: flex; flex-wrap: wrap; gap: 14px 26px;
    padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.drawer-quick a { color: var(--ink); font-weight: 600; font-size: 16px; }
.drawer-quick a:hover { color: var(--green); }
.drawer-acc { border-bottom: 1px solid var(--border); }
.acc-head {
    width: 100%; background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    padding: 17px 22px; font-size: 18px; font-weight: 700; color: var(--ink);
    font-family: inherit;
}
.acc-head svg { width: 20px; height: 20px; transition: transform .2s; color: var(--muted); flex: 0 0 auto; }
.drawer-acc.open .acc-head svg { transform: rotate(180deg); }
.acc-head.as-link:hover { color: var(--green); }
.acc-body { display: none; padding: 0 22px 14px; }
.drawer-acc.open .acc-body { display: block; }
.acc-body a { display: block; padding: 10px 0; font-size: 16px; color: #3a3f47; border-top: 1px solid var(--border-2); }
.acc-body a:first-child { border-top: none; }
.acc-body a:hover { color: var(--red); }

body.no-scroll { overflow: hidden; }

/* ===================== Breadcrumb ===================== */
.breadcrumb {
    padding: 28px 0 6px;
    font-size: 15px;
    color: var(--muted);
}
.breadcrumb .container { display: flex; align-items: center; gap: 9px; }
.breadcrumb a { color: var(--muted); display: inline-flex; align-items: center; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb svg { width: 17px; height: 17px; }
.breadcrumb .sep { color: #c2c6cc; }

/* ===================== Main grid ===================== */
.main-wrap { padding: 22px 0 56px; }
.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 50px;
}
.main-grid.no-sidebar { grid-template-columns: 1fr; }

/* ===================== Article Detail ===================== */
.article-head { margin-bottom: 8px; }
.article-title {
    font-size: 43px;
    line-height: 1.28;
    font-weight: 800;
    color: var(--ink);
    margin: 8px 0 22px;
    letter-spacing: -.3px;
}
.article-summary {
    font-size: 23px;
    color: #3a3f47;
    margin-bottom: 22px;
    line-height: 1.6;
    font-weight: 500;
}

/* meta: author + date */
.article-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.byline-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-2);
    flex: 0 0 46px;
}
.byline-avatar svg { width: 25px; height: 25px; }
.byline-name { font-size: 17px; font-weight: 600; color: var(--ink); }
.article-date {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 18px;
}
.article-date svg { width: 16px; height: 16px; }

/* share bar */
.share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    margin-bottom: 28px;
}
.share-bar .print { margin-left: auto; }
.share-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.share-btn svg { width: 18px; height: 18px; }
.share-btn.facebook  { background: #1877f2; }
.share-btn.messenger { background: #0084ff; }
.share-btn.whatsapp  { background: #25d366; }
.share-btn.x         { background: #000; }
.share-btn.linkedin  { background: #0a66c2; }
.share-btn:hover { opacity: .88; color: #fff; }
.share-btn.print {
    background: #fff;
    color: #3a3f47;
    border: 1px solid #cfd3d8;
}
.share-btn.print:hover { border-color: var(--ink); color: var(--ink); opacity: 1; }

/* hero image + caption */
.article-hero { margin: 0 0 28px; }
.article-hero img { width: 100%; border-radius: 4px; }
.article-hero .caption {
    border-left: 4px solid var(--green);
    padding: 6px 0 6px 14px;
    margin-top: 12px;
    font-size: 15px;
    color: #4b5159;
}

/* Article body */
.article-body {
    font-size: 21px;
    line-height: 2.05;
    color: #222;
}
.article-body p { margin-bottom: 26px; }
.article-body a { color: var(--red); }
.article-body a:hover { text-decoration: underline; }
.article-body h2 { font-size: 26px; margin: 28px 0 12px; }
.article-body h3 { font-size: 22px; margin: 22px 0 10px; }
.article-body img { margin: 22px 0; border-radius: 4px; }
.article-body blockquote {
    border-left: 4px solid var(--green);
    padding: 8px 18px;
    margin: 22px 0;
    background: var(--bg-soft);
    color: #333;
}
.article-body ul, .article-body ol { margin: 0 0 22px 24px; }
.article-body li { margin-bottom: 8px; }

/* read more button (visual, mirrors reference) */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #cfd3d8;
    border-radius: 4px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin: 6px 0 10px;
}
.read-more:hover { border-color: var(--ink); color: var(--ink); }

.tags { margin: 26px 0; font-size: 14px; }
.tags strong { color: #333; }
.tags a {
    display: inline-block;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: #4b5159;
    padding: 4px 12px;
    border-radius: 3px;
    margin: 0 6px 6px 0;
}
.tags a:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ===================== Sidebar ===================== */
.widget { margin-bottom: 36px; }
.widget-title {
    font-size: 23px;
    font-weight: 800;
    color: var(--ink);
    border-left: 5px solid var(--red);
    padding-left: 14px;
    margin-bottom: 16px;
    line-height: 1.2;
}
.side-list { list-style: none; }
.side-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.side-list li:first-child { padding-top: 4px; }
.side-list li:last-child { border-bottom: none; }
.side-list h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}
.side-list h4 a { color: var(--ink); }
.side-list h4 a:hover { color: var(--red); }
.side-list .cat { font-size: 13px; color: var(--red); font-weight: 600; display: block; margin-bottom: 5px; }

/* ===================== Related news ===================== */
.related-news { margin: 40px 0 0; }
.related-news h2 {
    font-size: 25px;
    font-weight: 800;
    border-left: 5px solid var(--red);
    padding-left: 14px;
    margin-bottom: 22px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.related-card { display: block; }
.related-card .card-thumb {
    width: 100%; aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-soft);
    margin-bottom: 10px;
}
.related-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
}
.related-card:hover h3 { color: var(--red); }
.related-card .card-cat { font-size: 13px; color: var(--red); font-weight: 600; display: block; margin-bottom: 5px; }

/* ===================== Home lead ===================== */
.lead-section { margin-bottom: 38px; }
.lead-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}
.lead-main .lead-img { display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; background: var(--bg-soft); }
.lead-main .lead-img img { width: 100%; height: 100%; object-fit: cover; }
.lead-cat { display: inline-block; color: var(--red); font-weight: 700; font-size: 14px; margin-top: 14px; }
.lead-main h2 {
    font-size: 34px;
    margin-top: 10px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.3px;
}
.lead-main h2 a { color: var(--ink); }
.lead-main h2 a:hover { color: var(--red); }
.lead-main .lead-summary { font-size: 19px; color: #4b5159; margin-top: 12px; line-height: 1.6; }

.lead-side { display: flex; flex-direction: column; }
.lead-side .item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.lead-side .item:first-child { padding-top: 0; }
.lead-side .item:last-child { border-bottom: none; }
.lead-side .item img { width: 120px; height: 80px; object-fit: cover; border-radius: 3px; flex: 0 0 120px; background: var(--bg-soft); }
.lead-side .item h3 { font-size: 17px; font-weight: 600; line-height: 1.45; }
.lead-side .item h3 a { color: var(--ink); }
.lead-side .item h3 a:hover { color: var(--red); }

/* News list (home / category) */
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
.news-card { display: block; }
.news-card .card-thumb { display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; background: var(--bg-soft); }
.news-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .card-body { padding: 14px 0 0; }
.news-card .card-cat { font-size: 13px; color: var(--red); font-weight: 700; display: block; margin-bottom: 7px; }
.news-card h3 { font-size: 21px; font-weight: 700; line-height: 1.42; margin-bottom: 8px; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--red); }
.news-card .card-meta { font-size: 13px; color: var(--muted); }

/* Section title */
.section-title {
    font-size: 25px;
    font-weight: 800;
    border-left: 5px solid var(--red);
    padding-left: 14px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title .all-link { font-size: 15px; color: var(--green); font-weight: 600; }

/* Pagination */
.pagination { text-align: center; margin: 36px 0 10px; }
.pagination a, .pagination span {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    margin: 0 3px;
    border-radius: 4px;
    color: var(--ink);
    font-size: 14px;
}
.pagination a:hover { background: var(--green); color: #fff; border-color: var(--green); }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }

/* ===================== Footer ===================== */
.footer {
    border-top: 1px solid var(--border);
    background: #fff;
    margin-top: 40px;
    padding: 52px 0 0;
}
.footer .footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.7fr 1.7fr 1fr;
    gap: 36px;
    padding-bottom: 44px;
}
.footer .link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.footer h4 {
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    display: inline-block;
    border-bottom: 2px solid var(--red);
    padding-bottom: 7px;
}
.footer .col a { color: #3a3f47; display: block; padding: 8px 0; font-size: 16px; }
.footer .col a:hover { color: var(--red); }
.app-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.app-badges img { height: 46px; width: auto; }
.social-row { display: flex; gap: 14px; align-items: center; flex-wrap: nowrap; }
.social-row a {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.social-row a svg { width: 30px; height: 30px; display: block; }
.social-row a:hover { opacity: .78; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 22px 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 15px;
    color: #4b5159;
}
.footer-bottom .fb-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-bottom .fb-links a { color: #4b5159; }
.footer-bottom .fb-links a:hover { color: var(--red); }
.footer-copy { text-align: center; font-size: 14px; color: var(--muted); padding-bottom: 26px; }

/* back to top */
.to-top {
    position: fixed;
    right: 18px;
    bottom: 26px;
    width: 42px; height: 42px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--red);
    cursor: pointer;
    z-index: 60;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.to-top.show { display: inline-flex; }
.to-top svg { width: 20px; height: 20px; }

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer .footer-grid { grid-template-columns: 1.2fr 1.6fr 1.6fr; }
    .footer .col:last-child { grid-column: 1 / -1; }
    .article-title { font-size: 34px; }
}

/* ----- Tablet / mobile: compact header + drawer ----- */
@media (max-width: 860px) {
    html, body { overflow-x: hidden; }
    .mobile-only { display: inline-flex !important; }
    .desktop-only { display: none !important; }

    /* Compact single-row header: logo left, actions right */
    .topbar .container { padding: 12px 14px; gap: 9px; }
    .topbar .date-bn { display: none; }
    .topbar .brand { margin-right: auto; min-width: 0; }
    .topbar .brand img { height: 34px; }
    .topbar .top-actions { min-width: 0; gap: 9px; flex: 0 0 auto; }
    .btn-epaper { border: none; color: var(--green); padding: 2px 2px; font-size: 15px; font-weight: 600; white-space: nowrap; }
    .top-actions .icon-btn { border: none; width: auto; height: auto; color: #2a2f37; }
    .top-actions .icon-btn svg { width: 22px; height: 22px; }
    .menu-toggle svg { width: 25px; height: 25px; }

    /* Replace horizontal nav with the drawer */
    .mainnav { display: none; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .news-list { grid-template-columns: 1fr; }
    .lead-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }

    .article-title { font-size: 27px; line-height: 1.32; }
    .article-summary { font-size: 19px; }
    .article-body { font-size: 19px; line-height: 1.9; }
    .article-body p { margin-bottom: 22px; }
    .lead-main h2 { font-size: 26px; }
    .section-title, .widget-title, .related-news h2 { font-size: 22px; }

    /* Share buttons spread across the row */
    .share-bar { gap: 8px; justify-content: space-between; }
    .share-bar .print { margin-left: 0; }
    .share-btn { width: 46px; height: 46px; }
    .share-btn svg { width: 20px; height: 20px; }

    /* Footer: stack sections, keep link lists in two columns */
    .footer .footer-grid { grid-template-columns: 1fr; gap: 12px 30px; }
    .footer .col { padding-top: 14px; }
    .footer .col:first-child { padding-top: 0; }
    .footer .col:last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
    .related-grid { grid-template-columns: 1fr; }
    .footer .link-grid { gap: 0 18px; }
}

/* ===================== No color change on link hover ===================== */
.mainnav a:hover { color: var(--ink); }
.mainnav .nav-patrika a:hover { color: var(--green); }
.mainnav .nav-video a:hover { color: var(--cyan); }
.drawer-quick a:hover { color: var(--ink); }
.acc-head.as-link:hover { color: var(--ink); }
.acc-body a:hover { color: #3a3f47; }
.breadcrumb a:hover { color: var(--muted); }
.side-list h4 a:hover { color: var(--ink); }
.related-card:hover h3 { color: var(--ink); }
.lead-main h2 a:hover { color: var(--ink); }
.lead-side .item h3 a:hover { color: var(--ink); }
.news-card h3 a:hover { color: var(--ink); }
.section-title .all-link:hover { color: var(--green); }
.footer .col a:hover { color: #3a3f47; }
.footer-bottom .fb-links a:hover { color: #4b5159; }
