/*
Theme Name: The Fourth BD
Theme URI: https://thefourthbd.com
Author: The Fourth BD
Author URI: https://thefourthbd.com
Description: A premium Bengali news portal theme for দ্য ফোর্থ — featuring breaking news ticker, hero layout, category sections, multimedia widgets, gallery, podcast, and full RTL-friendly Bengali typography.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thefourth
Tags: news, blog, bengali, rtl, bootstrap, responsive, multimedia
*/

/* ============================================================
   দ্য ফোর্থ — Premium News Portal Stylesheet
   ============================================================ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Noto+Serif+Bengali:wght@400;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    --primary: #060d42;
    --primary-light: #101e66;
    --primary-lighter: #223896;
    --accent: #c62632;
    --accent-soft: #d9454f;
    --gold: #f4a261;
    --gold-light: #e9c46a;
    --surface: #f5f7fa;
    --card-bg: #ffffff;
    --text: #2b2d42;
    --text-muted: #6c757d;
    --border-color: #e2e8f0;

    --gradient-nav: #ffffff;
    --gradient-footer: linear-gradient(135deg, #060d42 0%, #030722 100%);
    --gradient-accent: linear-gradient(135deg, #c62632 0%, #de444f 100%);
    --gradient-gold: linear-gradient(135deg, #f4a261 0%, #e9c46a 100%);
    --gradient-overlay: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);

    --shadow-xs: 0 1px 3px rgba(0,0,0,.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,.12);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.18);
    --shadow-card-hover: 0 12px 36px rgba(0,0,0,.15);

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;

    --transition: all .3s cubic-bezier(.4,0,.2,1);
    --transition-fast: all .2s cubic-bezier(.4,0,.2,1);
    --transition-slow: all .5s cubic-bezier(.4,0,.2,1);
}

/* ── Global Reset & Base ───────────────────────────────────── */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }

body {
    font-family: 'Hind Siliguri', 'Noto Serif Bengali', sans-serif;
    color: var(--text);
    background-color: var(--surface);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: fadeInBody .6s ease-out;
}

@keyframes fadeInBody {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

h1,h2,h3,h4,h5,h6,.logo-text {
    font-family: 'Noto Serif Bengali', serif;
    font-weight: 700;
    color: var(--text);
}

a { transition: var(--transition-fast); }
p { line-height: 1.85; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
::selection { background: var(--primary); color: #fff; }

/* ── Breaking News ─────────────────────────────────────────── */

.breaking-news-container .badge {
    font-family: 'Noto Serif Bengali', serif;
    letter-spacing: 0.5px;
}

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid transparent;
}
.section-header .section-title {
    font-family: 'Noto Serif Bengali', serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0;
    position: relative;
    padding-left: 14px;
}
.section-header .section-title::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: 4px;
}
.section-header .view-all-btn {
    font-size: 0.8rem; font-weight: 600;
    padding: 4px 14px; border-radius: 50px;
    text-decoration: none; transition: all 0.2s;
    white-space: nowrap;
}
.sh-primary  { border-color: var(--primary); }
.sh-primary  .section-title::before { background: var(--primary); }
.sh-primary  .section-title { color: var(--primary); }
.sh-primary  .view-all-btn  { border: 1px solid var(--primary); color: var(--primary); }
.sh-primary  .view-all-btn:hover { background: var(--primary); color: #fff; }
.sh-danger   { border-color: var(--accent); }
.sh-danger   .section-title::before { background: var(--accent); }
.sh-danger   .section-title { color: var(--accent); }
.sh-danger   .view-all-btn  { border: 1px solid var(--accent); color: var(--accent); }
.sh-danger   .view-all-btn:hover { background: var(--accent); color: #fff; }
.sh-info     { border-color: #0dcaf0; }
.sh-info     .section-title::before { background: #0dcaf0; }
.sh-info     .section-title { color: #0085a1; }
.sh-info     .view-all-btn  { border: 1px solid #0dcaf0; color: #0085a1; }
.sh-info     .view-all-btn:hover { background: #0dcaf0; color: #fff; }
.sh-success  { border-color: #198754; }
.sh-success  .section-title::before { background: #198754; }
.sh-success  .section-title { color: #198754; }
.sh-success  .view-all-btn  { border: 1px solid #198754; color: #198754; }
.sh-success  .view-all-btn:hover { background: #198754; color: #fff; }
.sh-orange   { border-color: #f4a261; }
.sh-orange   .section-title::before { background: #f4a261; }
.sh-orange   .section-title { color: #d4692b; }
.sh-orange   .view-all-btn  { border: 1px solid #f4a261; color: #d4692b; }
.sh-orange   .view-all-btn:hover { background: #f4a261; color: #fff; }
.sh-purple   { border-color: #7c3aed; }
.sh-purple   .section-title::before { background: #7c3aed; }
.sh-purple   .section-title { color: #7c3aed; }
.sh-purple   .view-all-btn  { border: 1px solid #7c3aed; color: #7c3aed; }
.sh-purple   .view-all-btn:hover { background: #7c3aed; color: #fff; }
.sh-teal     { border-color: #14b8a6; }
.sh-teal     .section-title::before { background: #14b8a6; }
.sh-teal     .section-title { color: #147d74; }
.sh-teal     .view-all-btn  { border: 1px solid #14b8a6; color: #147d74; }
.sh-teal     .view-all-btn:hover { background: #14b8a6; color: #fff; }

/* ── News Cards ────────────────────────────────────────────── */
.news-card-4 {
    display: flex; flex-direction: column; height: 100%;
    background: #fff; border-radius: 12px; overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #eaecf0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-decoration: none; /* card is now a single <a> wrapping the whole thing */
    color: inherit;
}
.news-card-4:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,0.13); }
.news-card-4 .card-thumb { width:100%; aspect-ratio:16/10; overflow:hidden; position:relative; }
.news-card-4 .card-thumb img { width:100%; height:100%; object-fit:cover; transition: transform 0.5s ease; }
.news-card-4:hover .card-thumb img { transform: scale(1.07); }
.news-card-4 .card-meta { display:flex; align-items:center; gap:8px; padding: 0.9rem 1rem 0.3rem; flex-wrap: wrap; }
.news-card-4 .card-cat { font-size: 0.68rem; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; padding: 3px 10px; border-radius:50px; color:#fff; max-width: 100%; white-space: normal; text-align: center; }
.news-card-4 .card-time { font-size:0.75rem; color: #888; font-weight: 500; }
.news-card-4 .card-headline { font-family:'Noto Serif Bengali',serif; font-size:1rem; font-weight:700; line-height:1.45; padding: 0.3rem 1rem 0.5rem; color: var(--text); text-decoration: none !important; display:block; transition: color 0.2s; }
.news-card-4 .card-headline:hover { color: var(--primary); }
.news-card-4 .card-excerpt { font-size:0.82rem; color: var(--text-muted); padding: 0 1rem; line-height:1.6; flex-grow: 1; }
.news-card-4 .card-footer-meta { padding:0.6rem 1rem 0.9rem; display:flex; align-items:center; gap:6px; margin-top:auto; }
.news-card-4 .read-more-link { font-size:0.75rem; font-weight:700; text-decoration:none; margin-left:auto; }

/* Lead Story */
.lead-story-card { cursor: pointer; }
.lead-story-text-box { transition: var(--transition); }
.lead-story-card:hover .lead-story-text-box { box-shadow: var(--shadow-lg) !important; }
.lead-story-title { transition: color 0.2s; }
.lead-story-title:hover { color: var(--primary) !important; }

/* Sub Cards */
.sub-card { transition: var(--transition); }
.sub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md) !important; }
.sub-card-title { transition: color 0.2s; }
.sub-card-title:hover { color: var(--primary) !important; }
.hover-elevate { transition: var(--transition); }
.hover-elevate:hover { transform: translateY(-4px); box-shadow: var(--shadow-md) !important; }

/* ── Sidebar Widgets ───────────────────────────────────────── */
.sidebar-top-news { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); margin-bottom: 1.5rem; }
.stn-header { display:flex; align-items:center; gap:10px; padding: 1rem 1.25rem; background: var(--primary); color:#fff; }
.stn-header i { color: var(--gold); font-size:1.1rem; }
.stn-header h5 { margin:0; font-size:1rem; font-weight:700; color:#fff; }
.stn-item { display:flex; align-items:flex-start; gap:12px; padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--border-color); text-decoration:none; transition: background 0.2s; }
.stn-item:last-child { border-bottom: none; }
.stn-item:hover { background: var(--surface); }
.stn-num { font-size: 1.4rem; font-weight:800; color: var(--border-color); line-height:1; min-width:32px; font-family:'Noto Serif Bengali',serif; }
.stn-item:hover .stn-num { color: var(--accent); }
.stn-text h6 { font-size:0.88rem; font-weight:600; color: var(--text); margin:0 0 4px; line-height:1.4; font-family:'Noto Serif Bengali',serif; }
.stn-text small { font-size:0.75rem; color: var(--text-muted); }

/* Sidebar Tabs Widget */
.sidebar-tabs-widget { background:#fff; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); margin-bottom:1.5rem; }
.stw-tabs { display:flex; border-bottom: 2px solid var(--border-color); }
.stw-tab-btn { flex:1; padding: 0.75rem; border:none; background:transparent; font-size:0.85rem; font-weight:700; color: var(--text-muted); cursor:pointer; transition: var(--transition-fast); font-family:'Hind Siliguri',sans-serif; }
.stw-tab-btn.active { color: var(--primary); border-bottom: 2px solid var(--primary); margin-bottom:-2px; }
.stw-tab-btn:hover { color: var(--primary); background: var(--surface); }
.stw-pane { display:none; }
.stw-pane.active { display:block; }
.stw-item { display:flex; align-items:center; gap:10px; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color); text-decoration:none; transition: background 0.2s; }
.stw-item:last-child { border-bottom:none; }
.stw-item:hover { background: var(--surface); }
.stw-thumb { width:64px; height:52px; border-radius:8px; overflow:hidden; flex-shrink:0; }
.stw-thumb img { width:100%; height:100%; object-fit:cover; }
.stw-text h6 { font-size:0.83rem; font-weight:600; color: var(--text); margin:0 0 4px; line-height:1.35; font-family:'Noto Serif Bengali',serif; }
.stw-text small { font-size:0.72rem; color: var(--text-muted); }

/* Photo Widget */
.sidebar-photo-widget { background:#fff; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); margin-bottom:1.5rem; }
.sph-header { display:flex; align-items:center; gap:10px; padding:0.9rem 1.25rem; border-bottom:1px solid var(--border-color); }
.sph-header i { color: var(--accent); }
.sph-header h5 { margin:0; font-size:1rem; font-weight:700; color: var(--text); }
.sph-img-wrap { position:relative; display:block; overflow:hidden; }
.sph-img-wrap img { width:100%; height:180px; object-fit:cover; transition: transform 0.5s; }
.sph-img-wrap:hover img { transform: scale(1.05); }
.sph-overlay { position:absolute; bottom:0; left:0; right:0; background: linear-gradient(to top, rgba(0,0,0,0.75),transparent); padding:1rem 0.9rem 0.6rem; color:#fff; font-size:0.82rem; font-weight:500; line-height:1.4; }

/* ── Featured Card ─────────────────────────────────────────── */
.featured-card { position:relative; border-radius: var(--radius-lg); overflow:hidden; display: block; text-decoration: none; color: inherit; }
.featured-card img { width:100%; height:100%; object-fit:cover; transition: transform 0.5s; }
.featured-card:hover img { transform: scale(1.04); }
.featured-card .overlay { position:absolute; inset:0; background: var(--gradient-overlay); }
.featured-card .card-body { position:absolute; bottom:0; left:0; right:0; padding:1.5rem; }
.featured-card .card-headline { font-family:'Noto Serif Bengali',serif; font-size:1.4rem; font-weight:800; padding:0 1.5rem 1.5rem; line-height:1.4; color: var(--text); text-decoration: none !important; }

/* ── Multimedia Section ────────────────────────────────────── */
.multimedia-section {
    background: var(--gradient-footer);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    color: #fff;
    overflow: hidden;
    position: relative;
    margin-top: 3rem;
}
.multimedia-section::before {
    content:'';
    position:absolute; inset:0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="60" fill="rgba(255,255,255,0.03)"/><circle cx="10" cy="80" r="40" fill="rgba(255,255,255,0.02)"/></svg>') no-repeat center/cover;
    pointer-events:none;
}
.mm-badge { display:inline-flex; align-items:center; gap:8px; background: rgba(198,38,50,0.3); border:1px solid rgba(198,38,50,0.5); color:#fff; padding:6px 16px; border-radius:50px; font-size:0.85rem; font-weight:600; width:fit-content; }
.mm-btn { display:inline-flex; align-items:center; gap:10px; background: var(--accent); color:#fff; padding:12px 28px; border-radius:50px; text-decoration:none; font-weight:700; font-size:0.95rem; transition: var(--transition); }
.mm-btn:hover { background: var(--accent-soft); color:#fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(198,38,50,0.4); }
.mm-content { flex:1; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
    background: var(--gradient-footer);
    color: rgba(255,255,255,0.85);
}
footer h5 { color:#fff; font-size:1rem; margin-bottom:1rem; }
footer a { color: rgba(255,255,255,0.7); text-decoration:none; transition: var(--transition-fast); display:block; margin-bottom:0.4rem; }
footer a:hover { color:#fff; padding-left:4px; }
.footer-logo { font-family:'Noto Serif Bengali',serif; font-size:1.6rem; font-weight:800; color:#fff; }

/* ── Scroll to Top ─────────────────────────────────────────── */
.scroll-top-btn {
    position:fixed; bottom:25px; right:25px;
    width:44px; height:44px;
    background: var(--accent);
    color:#fff; border:none; border-radius:50%;
    font-size:1rem; cursor:pointer;
    box-shadow: var(--shadow-md);
    opacity:0; transform: translateY(20px);
    transition: var(--transition);
    z-index:999;
    display:flex; align-items:center; justify-content:center;
}
.scroll-top-btn.visible { opacity:1; transform:translateY(0); }
.scroll-top-btn:hover { background: var(--primary); transform: translateY(-3px); }

/* ── Icon Circle ───────────────────────────────────────────── */
.icon-circle {
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
}

/* ── Article / Single Post ─────────────────────────────────── */
.article-content { font-size:1.08rem; line-height:2; color: var(--text); }
.article-content p { margin-bottom:1.4rem; }
.article-content h2,.article-content h3 { font-family:'Noto Serif Bengali',serif; margin: 2rem 0 1rem; color: var(--primary); }
.article-content blockquote { border-left:4px solid var(--accent); padding-left:1.25rem; color: var(--text-muted); font-style:italic; margin: 1.5rem 0; }
.article-content img { border-radius: var(--radius); max-width:100%; margin:1rem 0; }
.article-tag { display:inline-block; padding:4px 12px; border-radius:50px; font-size:0.78rem; font-weight:700; background: var(--surface); color: var(--primary); text-decoration:none; border:1px solid var(--border-color); transition: var(--transition-fast); margin:2px; }
.article-tag:hover { background: var(--primary); color:#fff; }
.author-box { background:#fff; border-radius: var(--radius); padding:1.5rem; border:1px solid var(--border-color); box-shadow: var(--shadow-xs); }

/* ── Category Page ─────────────────────────────────────────── */
.category-hero { background: var(--primary); color:#fff; padding:2rem 0; margin-bottom:2rem; }
.category-hero h1 { font-size:2rem; margin:0; }
.cat-filter-btn { border:1px solid var(--border-color); background:#fff; color: var(--text-muted); padding:6px 16px; border-radius:50px; font-size:0.83rem; font-weight:600; cursor:pointer; transition: var(--transition-fast); }
.cat-filter-btn.active,.cat-filter-btn:hover { background: var(--primary); color:#fff; border-color: var(--primary); }

/* ── Gallery ───────────────────────────────────────────────── */
.gallery-item { position:relative; border-radius: var(--radius); overflow:hidden; cursor:pointer; }
.gallery-item img { width:100%; height:220px; object-fit:cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.5); opacity:0; display:flex; align-items:center; justify-content:center; transition: opacity 0.3s; color:#fff; font-size:2rem; }
.gallery-item:hover .gallery-overlay { opacity:1; }

/* ── Podcast / Audio Player ────────────────────────────────── */
.custom-audio-player { background:#fff; border-radius: var(--radius); padding:1rem 1.25rem; border:1px solid var(--border-color); box-shadow: var(--shadow-xs); }
.audio-progress-track { height:4px; background: var(--border-color); border-radius:10px; cursor:pointer; position:relative; }
.audio-progress-bar { height:4px; background: var(--accent); border-radius:10px; transition: width 0.1s; }
.play-pause-btn { width:40px; height:40px; border-radius:50%; background: var(--primary); color:#fff; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; transition: var(--transition-fast); flex-shrink:0; }
.play-pause-btn:hover { background: var(--accent); }

/* ── Contact ───────────────────────────────────────────────── */
.contact-card { border-radius: var(--radius) !important; transition: var(--transition); }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md) !important; }

/* ── Utility ───────────────────────────────────────────────── */
.rounded-4 { border-radius: var(--radius) !important; }
.rounded-5 { border-radius: var(--radius-lg) !important; }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.wp-post-image { max-width:100%; height:auto; }

/* ── WP Admin Bar offset ───────────────────────────────────── */
.admin-bar .navbar.sticky-top { top: 32px; }
@media (max-width:782px) { .admin-bar .navbar.sticky-top { top: 46px; } }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width:991px) {
    .multimedia-section { flex-direction:column; padding:2rem; }
    .mm-showcase-img { display:none !important; }
}
@media (max-width:767px) {
    .section-header .section-title { font-size:1.1rem; }
    .lead-story-text-box { margin-top:-30px !important; }
    .multimedia-section { padding:1.5rem; }
}


/* ── Additional UI Components (auto-appended) ──────────────── */

/* ── list-card (politics/economy sidebar list style) ──────── */
.list-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition-fast);
}
.list-card:last-child { margin-bottom: 0; border-bottom: none; }
.list-card:hover { transform: translateX(-4px); border-color: var(--primary); }
.list-card .card-thumb { width: 100px; height: 80px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.list-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.list-card:hover .card-thumb img { transform: scale(1.08); }
.list-card .card-headline { font-family: 'Noto Serif Bengali', serif; font-size: 0.9rem; font-weight: 700; color: var(--text); line-height: 1.4; transition: color 0.2s; }
.list-card:hover .card-headline { color: var(--primary); }
.list-card .card-time { font-size: 0.75rem; color: var(--text-muted); }

/* ── nat-pol-divider ───────────────────────────────────────── */
.nat-pol-divider {
    display: flex; align-items: center; gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted); font-size: 0.85rem; font-weight: 600;
}
.nat-pol-divider::before, .nat-pol-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border-color);
}

/* ── Category badge ────────────────────────────────────────── */
.category-badge {
    display: inline-block; padding: 4px 14px; border-radius: var(--radius-pill);
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    background: var(--gradient-accent); color: #fff;
}
.category-badge.gold { background: var(--gradient-gold); color: var(--primary); }

/* ── Pagination ────────────────────────────────────────────── */
.page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border-color); font-size: 0.88rem;
    color: var(--text); text-decoration: none; transition: var(--transition-fast);
    margin: 0 3px;
}
.page-numbers:hover, .page-numbers.current {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.page-numbers.dots { border: none; width: auto; }
.page-numbers.prev, .page-numbers.next {
    width: auto; padding: 0 14px; border-radius: var(--radius-pill);
    font-weight: 600; font-size: 0.82rem; gap: 6px;
}

/* ── Social Share ──────────────────────────────────────────── */
.social-share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.social-share a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: var(--radius-pill);
    font-size: 0.8rem; font-weight: 600; text-decoration: none; transition: var(--transition-fast);
}
.social-share a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ── Podcast cards ─────────────────────────────────────────── */
.podcast-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
    transition: var(--transition); display: flex; flex-direction: column;
}
.podcast-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.podcast-thumb { position: relative; overflow: hidden; }
.podcast-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.5s; }
.podcast-card:hover .podcast-thumb img { transform: scale(1.06); }
.podcast-title { font-family: 'Noto Serif Bengali', serif; font-size: 0.95rem; font-weight: 700; line-height: 1.4; color: var(--text); }
.podcast-meta { font-size: 0.78rem; color: var(--text-muted); }
.duration-badge {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.75); color: #fff; padding: 2px 8px;
    border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 600;
}
.episode-badge {
    display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill);
    background: var(--gradient-accent); color: #fff;
    font-size: 0.7rem; font-weight: 700;
}
.live-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--gradient-accent); color: #fff;
    padding: 3px 10px; border-radius: var(--radius-pill);
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
}
.now-playing-dot {
    width: 6px; height: 6px; background: #fff; border-radius: 50%;
    animation: pulseDot 1s infinite;
}

/* ── Audio player (light theme variant) ───────────────────── */
.custom-audio-player-light {
    background: var(--surface); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 0.85rem 1rem;
}
.audio-progress-container {
    flex: 1; height: 5px; background: var(--border-color);
    border-radius: 10px; cursor: pointer; overflow: hidden; position: relative;
}
.custom-audio-player-light .audio-progress-container { background: rgba(0,0,0,0.08); }
.audio-time { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); min-width: 36px; }

/* ── Article quote / body extras ───────────────────────────── */
.article-quote {
    border-left: 4px solid var(--accent); padding: 1rem 1.5rem;
    margin: 1.5rem 0; background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic; color: var(--text-muted); font-size: 1.05rem; line-height: 1.8;
}
.article-body img { border-radius: var(--radius); max-width: 100%; margin: 1rem 0; }

/* ── Hover primary ─────────────────────────────────────────── */
.hover-primary:hover { color: var(--primary) !important; }

/* ── Logo text link ────────────────────────────────────────── */
.logo-text a { color: var(--primary) !important; text-decoration: none !important; }
.logo-text:hover { color: var(--primary-light) !important; }

/* ── Ad placeholder ────────────────────────────────────────── */
.ad-placeholder {
    background: var(--surface); border: 2px dashed var(--border-color);
    border-radius: var(--radius); display: flex; align-items: center;
    justify-content: center; color: var(--text-muted);
    font-size: 0.85rem; font-weight: 500; min-height: 90px;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb { font-size: 0.82rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--text-muted); }

/* ── stw-num (numbered sidebar items) ──────────────────────── */
.stw-num {
    font-size: 1.2rem; font-weight: 800; color: var(--border-color);
    line-height: 1; min-width: 28px; font-family: 'Noto Serif Bengali', serif;
}
.stw-item:hover .stw-num { color: var(--accent); }

/* ── WP comment form ───────────────────────────────────────── */
.comment-form input, .comment-form textarea {
    border-radius: var(--radius-sm); border: 1px solid var(--border-color);
    padding: 0.6rem 0.9rem; width: 100%; font-family: 'Hind Siliguri', sans-serif;
}
.comment-form input:focus, .comment-form textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6,13,66,0.1);
}
#submit {
    background: var(--primary); color: #fff; border: none;
    padding: 0.6rem 1.5rem; border-radius: var(--radius-pill);
    font-weight: 700; cursor: pointer; transition: var(--transition-fast);
}
#submit:hover { background: var(--accent); }
/* ═══════════════════════════════════════════════════════════
   TOP BAR  (exact match to original)
   ═══════════════════════════════════════════════════════════ */
.top-bar {
    background: #0a1128 !important;
    border-bottom: none !important;
    font-size: 0.85rem;
}
.top-bar .text-muted { color: rgba(255,255,255,0.7) !important; }
.top-links a {
    position: relative; padding-bottom: 2px;
    color: rgba(255,255,255,0.8) !important; font-weight: 500;
}
.top-links a::after {
    content:''; position:absolute; bottom:0; left:0;
    width:0; height:2px; background:var(--accent);
    transition:var(--transition-fast);
}
.top-links a:hover::after { width:100%; }
.top-links a:hover { color:#fff !important; }
.social-icons a {
    display:inline-flex; align-items:center; justify-content:center;
    width:30px; height:30px; border-radius:50%;
    background:rgba(255,255,255,0.1);
    color:rgba(255,255,255,0.8) !important;
    font-size:0.8rem; transition:var(--transition);
}
.social-icons a:hover { transform:translateY(-3px) scale(1.1); box-shadow:var(--shadow-sm); }
.social-icons a:nth-child(1):hover { background:#1877f2; color:#fff !important; }
.social-icons a:nth-child(2):hover { background:#1da1f2; color:#fff !important; }
.social-icons a:nth-child(3):hover { background:#ff0000; color:#fff !important; }
.social-icons a:nth-child(4):hover { background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color:#fff !important; }

/* ═══════════════════════════════════════════════════════════
   SITE HEADER / LOGO  — bigger logo, exact original style
   ═══════════════════════════════════════════════════════════ */
.site-header {
    background:#fff !important;
    position:relative; overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,0.05) !important;
    border-bottom:2px solid var(--accent) !important;
    padding: 0.5rem 0;
}
.site-header::before {
    content:''; position:absolute; top:-50%; right:-20%;
    width:300px; height:300px;
    background:radial-gradient(circle,rgba(198,38,50,0.05) 0%,transparent 70%);
    border-radius:50%;
}
/* Logo link + image — display:block + line-height:0 removes any invisible
   inline-text spacing that can appear above/below an image sitting in a
   text-aligned container, independent of the image's own height. */
.logo-link {
    display: block;
    line-height: 0;
}
.site-header img {
    height: 90px !important;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s;
}
.site-header img:hover { transform: scale(1.02); }

/* ═══════════════════════════════════════════════════════════
   NAVBAR  — exact original: white bg, dark text, red bottom
   ═══════════════════════════════════════════════════════════ */
.main-nav-wrap {
    background: #fff;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.admin-bar .main-nav-wrap { top:32px; }
@media (max-width:782px) { .admin-bar .main-nav-wrap { top:46px; } }

.main-nav-inner {
    max-width:1320px; margin:0 auto; padding:0 1rem;
    display:flex; align-items:stretch; gap:0;
}

/* nav list */
.main-nav-list {
    display:flex; align-items:stretch; list-style:none;
    margin:0; padding:0; flex:1;
}
.main-nav-list .mn-item { position:relative; display:flex; align-items:stretch; }

/* exact original nav-link style */
.main-nav-list .mn-link {
    display:flex; align-items:center; gap:3px;
    color: var(--text);
    font-family: 'Hind Siliguri', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;          /* original value */
    white-space: nowrap;
    padding: 0.85rem 0.8rem;     /* original padding */
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    cursor: pointer;
}
.main-nav-list .mn-link:hover,
.main-nav-list .mn-link.active {
    color: var(--primary) !important;
    background-color: var(--surface);
    border-bottom-color: var(--primary);
}

/* dropdown caret — restore Bootstrap style */
.main-nav-list .mn-item.has-dd > .mn-link::after {
    content:'';
    display:inline-block;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity:0.6; margin-left:3px; flex-shrink:0;
}

/* dropdown panel */
.mn-dropdown {
    display:none;
    position:absolute;
    top:calc(100% + 3px); left:0;
    min-width:155px;
    background:#fff;
    border:none;
    border-top:3px solid var(--accent);
    border-radius:0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    padding:0.5rem;
    z-index:99999;
    animation: mnDrop 0.2s ease-out;
}
@keyframes mnDrop {
    from { opacity:0; transform:translateY(-8px); }
    to   { opacity:1; transform:translateY(0); }
}
.main-nav-list .mn-item.has-dd:hover > .mn-dropdown,
.main-nav-list .mn-item.has-dd:focus-within > .mn-dropdown { display:block; }

.mn-dropdown a {
    display:block;
    padding:0.5rem 0.75rem;
    font-size:0.9rem; font-weight:500;
    color:var(--text); text-decoration:none;
    border-radius:var(--radius-sm);
    font-family:'Hind Siliguri',sans-serif;
    transition:background 0.15s, color 0.15s, padding-left 0.15s;
}
.mn-dropdown a:hover {
    background:var(--surface);
    color:var(--primary);
    padding-left:1rem;
}

/* search */
.main-nav-search {
    display:flex; align-items:center;
    padding:0.45rem 0 0.45rem 0.75rem;
    flex-shrink:0;
    border-left:1px solid var(--border-color);
    margin-left:0.5rem;
}
.main-nav-search input {
    border:1px solid var(--border-color); border-right:none;
    border-radius:var(--radius-pill) 0 0 var(--radius-pill);
    padding:0.32rem 0.85rem;
    font-size:0.85rem; width:175px; outline:none;
    background:var(--surface); color:var(--text);
    font-family:'Hind Siliguri',sans-serif;
    transition:border-color 0.2s, background 0.2s;
}
.main-nav-search input:focus { border-color:var(--primary); background:#fff; }
.main-nav-search button {
    background:var(--primary); border:none; color:#fff;
    border-radius:0 var(--radius-pill) var(--radius-pill) 0;
    padding:0.32rem 0.78rem; cursor:pointer; font-size:0.82rem;
    border-color:var(--primary); transition:background 0.2s;
}
.main-nav-search button:hover { background:var(--accent); }

/* hamburger */
.main-nav-toggle {
    display:none; align-items:center; justify-content:center;
    background:none; border:1px solid var(--border-color); border-radius:5px;
    color:var(--text); padding:0.35rem 0.55rem; font-size:1.05rem;
    cursor:pointer; margin-left:auto; align-self:center;
    transition:background 0.15s;
}
.main-nav-toggle:hover { background:var(--surface); }

/* ═══════════════════════════════════════════════════════════
   MOBILE  ≤ 991px
   ═══════════════════════════════════════════════════════════ */
@media (max-width:991px) {
    .main-nav-toggle { display:flex; }
    .main-nav-inner { flex-wrap:wrap; padding:0.4rem 1rem; }

    .main-nav-list {
        display:none; flex-direction:column; width:100%;
        border-top:1px solid var(--border-color);
        padding:0.25rem 0 0.5rem; gap:0;
        max-height:70vh; overflow-y:auto;
    }
    .main-nav-list.is-open { display:flex; }
    .main-nav-list .mn-item { flex-direction:column; align-items:stretch; }
    .main-nav-list .mn-link {
        padding:0.6rem 0.75rem;
        border-bottom:1px solid var(--border-color);
        border-left:none; border-right:none; border-top:none;
        margin-bottom:0; font-size:0.95rem;
        justify-content:space-between;
    }
    .main-nav-list .mn-link:hover,
    .main-nav-list .mn-link.active {
        background:var(--surface);
        border-bottom-color:var(--border-color);
    }
    .main-nav-list .mn-item.has-dd { position:static; }
    .main-nav-list .mn-item.has-dd > .mn-dropdown {
        position:static; display:none; box-shadow:none;
        border-top:none; border-left:3px solid var(--accent);
        border-radius:0; padding:0.2rem 0; animation:none; margin-left:1rem;
    }
    .main-nav-list .mn-item.has-dd.dd-open > .mn-dropdown { display:block; }
    .mn-dropdown a { font-size:0.85rem; padding:0.4rem 1rem; }

    .main-nav-search {
        width:100%; border-left:none;
        border-top:1px solid var(--border-color);
        padding:0.4rem 0 0.2rem; margin-left:0;
    }
    .main-nav-search input { flex:1; width:auto; }

    /* Logo smaller on mobile */
    .site-header img { height:100px !important; }
}
/* ═══════════════════════════════════════════════════════════
   BREAKING NEWS TICKER
   Aligned with .container — same gutters as page content
   ═══════════════════════════════════════════════════════════ */
.tf-ticker-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}
.tf-ticker-inner {
    display: flex;
    align-items: center;
    height: 38px;
    gap: 0;
    overflow: hidden;
}

/* Red badge */
.tf-ticker-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--accent);
    color: #fff;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 16px;
    height: 100%;
    white-space: nowrap;
    flex-shrink: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
    padding-right: 22px;
}

/* Pulse dot */
.tf-pulse {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: tfPulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes tfPulse {
    0%, 100% { opacity: 1;  transform: scale(1); }
    50%       { opacity: .3; transform: scale(.5); }
}

/* Scrolling track */
.tf-ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    /* soft fade edges */
    mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.tf-ticker-reel {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
}
.tf-tick-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-right: 48px;
    font-family: 'Noto Serif Bengali', serif;
    font-size: 0.88rem;
    color: var(--text);
}
.tf-tick-item a {
    color: var(--text);
    text-decoration: none;
    transition: color .15s;
}
.tf-tick-item a:hover { color: var(--accent); }
.tf-tick-dot {
    color: var(--accent);
    font-size: 6px;
    flex-shrink: 0;
}

/* Mobile */
@media (max-width: 575px) {
    .tf-ticker-badge { font-size: 0.7rem; padding: 0 10px 0 10px; padding-right: 18px; }
    .tf-tick-item { font-size: 0.82rem; margin-right: 32px; }
}

/* ── Default WordPress sidebar widgets (Archives, Categories, etc.) ──
   These come from Appearance → Widgets, not from theme markup, so
   they need their own styling to match the custom sidebar sections. */
.widget {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
}
.widget .widget-title {
    font-family: 'Noto Serif Bengali', serif;
    color: var(--primary);
    font-size: 1.05rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border-color);
}
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget ul li {
    border-bottom: 1px solid var(--border-color);
}
.widget ul li:last-child {
    border-bottom: none;
}
.widget ul li a {
    display: block;
    padding: 0.7rem 0.1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s, padding-left 0.2s;
}
.widget ul li a:hover {
    color: var(--primary);
    padding-left: 6px;
}
.widget select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text);
    background: #fff;
}

/* ── Category "featured + list" row (Politics / Economy) ─────
   The image card and the 3-item text list must share one exact
   height, or the taller side visibly overflows past the other
   (the alignment bug). Both sides get the same fixed height;
   justify-content:space-between spreads the 3 list items evenly
   to fill it with no leftover gap or overflow. */
.cat-featured-row .featured-card,
.cat-featured-row .cat-featured-list {
    height: 320px;
}
@media (max-width: 767px) {
    .cat-featured-row .featured-card { height: 220px; }
    .cat-featured-row .cat-featured-list { height: auto; gap: 0.75rem; }
}

/* Numbered badge on each list item, tinted to the section's accent color
   (passed in via --cat-accent), echoing the ranked-number style already
   used in the sidebar's "Top News" widget elsewhere on the site. */
.list-card-numbered {
    position: relative;
    padding-left: 2.6rem;
}
.list-card-numbered .list-card-num {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Noto Serif Bengali', serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--cat-accent, var(--primary));
    opacity: 0.35;
    line-height: 1;
    transition: opacity 0.2s;
    min-width: 2rem;
}
.list-card-numbered:hover .list-card-num {
    opacity: 1;
}
.list-card-numbered:hover {
    border-color: var(--cat-accent, var(--primary));
}
.list-card-numbered:hover .card-headline {
    color: var(--cat-accent, var(--primary));
}

/* Makes the whole hero lead card clickable (image included), not just the
   text box. Bootstrap's .stretched-link only reaches its nearest positioned
   ancestor — that's .card-body here (needed for the overlap/z-index effect),
   so a dedicated full-card link is added instead, raised above both the
   image (z-index:1) and the text box (z-index:2). */
.lead-card-full-link::after {
    z-index: 4 !important;
}

