/* =========================================================
   Kalbela Clone — Design System & Theme Engine
   Includes Full Dark Mode (Night Mode) support with smooth toggling
   ========================================================= */
:root {
    --brand: #b72126;          /* theme-bg on kalbela */
    --brand-dark: #8f191d;
    --brand-alt: #dc191f;      /* accent red used in menus */
    --hover: #1a73e8;          /* link hover blue */
    --title: #2d3134;          /* headline color */
    --text: #333333;
    --text-muted: #666666;
    --muted: #878787;
    --time: #666666;
    --border: #e2e2e2;
    --border-subtle: #eeeeee;
    --soft-bg: #f9f9f9;
    --card-bg: #ffffff;
    --body-bg: #ffffff;
    --header-bg: #ffffff;
    --nav-bg: #ffffff;
    --nav-link: #111111;
    --link-color: #111111;
    --panel-bg: #ffffff;
    --icon-btn-bg: #ececec;
    --icon-btn-color: #111111;
    --ad-wrap-bg: #f3f3f3;
    --cream: #f6eedb;          /* opinion cards */
    --yellow: #ffcc00;
    --dark: #1b1b1b;
    --radius: 5px;
    --container: 1240px;
    --font: 'SolaimanLipi', 'Noto Serif Bengali', 'Hind Siliguri', sans-serif;
    --shadow: 0 3px 5px #eee;

    /* Theme Toggle Button (Light mode matching user's slate-blue moon icon) */
    --toggle-bg: #8fa2ab;
    --toggle-color: #ffffff;
    --toggle-hover-bg: #778b94;
}

/* ================= DARK MODE (Night Mode / ডার্ক মোড) ================= */
[data-theme="dark"], html[data-theme="dark"], body.dark-theme, html.dark-theme {
    --brand: #e03137;
    --brand-dark: #a81c21;
    --brand-alt: #ff3b42;
    --hover: #4da3ff;
    --title: #f1f3f5;
    --text: #cbd2d9;
    --text-muted: #9aa4af;
    --muted: #8893a0;
    --time: #9aa4af;
    --border: #2c323f;
    --border-subtle: #232832;
    --soft-bg: #1e222b;
    --card-bg: #181b22;
    --body-bg: #12141a;
    --header-bg: #161920;
    --nav-bg: #161920;
    --nav-link: #e4e6eb;
    --link-color: #e4e6eb;
    --panel-bg: #1a1e27;
    --icon-btn-bg: #262c37;
    --icon-btn-color: #e4e6eb;
    --ad-wrap-bg: #0d0f13;
    --cream: #222631;          /* subtle dark slate for opinion cards */
    --yellow: #ffd166;
    --dark: #0f1013;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);

    /* Theme Toggle Button (Dark mode - sun burst with warm amber/gold) */
    --toggle-bg: #252b36;
    --toggle-color: #fdb813;
    --toggle-hover-bg: #303746;
}

/* Smooth theme transitions */
body, .site-header, .main-nav, .sticky-header, .mega-panel, .k-box,
.epaper, .calendar, .site-footer, .breadcrumb-dtl, .related-box,
.article-lead-caption, .inline-more-card, .google-news-box, .poll-card {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* Images slight brightness adjustment in dark mode for eye comfort (exempt logos & ads) */
[data-theme="dark"] img:not(.logo-img):not(.sticky-logo-img):not(.footer-logo-img):not(.ad-banner-img):not(.ad-sidebar-img) {
    filter: brightness(0.92);
    transition: filter 0.3s ease;
}
[data-theme="dark"] img:not(.logo-img):not(.sticky-logo-img):not(.footer-logo-img):not(.ad-banner-img):not(.ad-sidebar-img):hover {
    filter: brightness(1);
}

/* ================= LOGO STYLING & DARK MODE CONTRAST ================= */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    color: var(--title);
    text-decoration: none;
    transition: transform 0.2s ease;
}
.logo:hover {
    color: var(--title);
    transform: scale(1.01);
}
.logo-img,
.footer-logo-img,
.sticky-logo-img {
    display: inline-block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    transition: filter 0.3s ease, transform 0.2s ease;
}
/* In Dark Mode: Invert black ink text to pure crisp white while keeping red accents (#e50914) vibrant red via 180deg hue rotation */
[data-theme="dark"] .logo-img,
[data-theme="dark"] .footer-logo-img,
[data-theme="dark"] .sticky-logo-img,
[data-theme="dark"] .logo img {
    filter: invert(1) hue-rotate(180deg) brightness(1.25) drop-shadow(0 0 1px rgba(255, 255, 255, 0.4));
}

/* ---------- Base ---------- */
html, body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.45;
    color: var(--text);
    background: var(--body-bg);
    overflow-x: hidden;
}
a { color: var(--link-color); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--hover); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: var(--font); }
.container-k { max-width: var(--container); margin: 0 auto; padding: 0 12px; }
.visually-hidden-h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ================= MODERN ADVERTISING DESIGN SYSTEM ================= */
.ad-wrap { 
    background: var(--ad-wrap-bg); 
    padding: 10px 0; 
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color .25s ease, border-color .25s ease; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}
.ad-wrap .container-k {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Modern Card Wrapper for Wide Banner Ads (Top, Middle, Bottom, Details) */
.ad-card-banner {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 14px;
    padding: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    max-width: 100%;
    overflow: hidden;
}
.ad-card-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(183, 33, 38, 0.35);
}
.ad-banner-link {
    display: block;
    line-height: 0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    max-width: 100%;
}
.ad-banner-img {
    max-height: 98px;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    transition: filter 0.25s ease, transform 0.25s ease;
}
.ad-card-banner:hover .ad-banner-img {
    filter: contrast(1.03) brightness(1.02);
}
.ad-badge-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 2px 8px 5px;
    font-size: 10.5px;
    color: var(--text-muted);
    letter-spacing: 0.4px;
}
.ad-badge-tag {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-muted);
    padding: 1px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 9.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .ad-badge-tag {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}
.ad-badge-right {
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.75;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Modern Card Wrapper for Sidebar Ads (300x250) */
.ad-card-sidebar {
    position: relative;
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    padding: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    margin-top: 14px;
}
.ad-card-sidebar:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
    border-color: rgba(183, 33, 38, 0.35);
}
.ad-sidebar-link {
    display: block;
    line-height: 0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
}
.ad-sidebar-img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}
.ad-card-sidebar:hover .ad-sidebar-img {
    transform: scale(1.015);
}

/* Fallback CSS Ad Banners (Rich Aesthetics) */
.ad-banner {
    max-width: 970px;
    width: 100%;
    min-height: 82px;
    margin: 0 auto;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    color: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}
.ad-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: #fff;
}
.ad-banner small, .ad-banner .ad-tag {
    position: absolute;
    top: 6px;
    right: 12px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    padding: 2px 8px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Premium Bank Ad */
.ad-bank {
    background: linear-gradient(135deg, #022c22 0%, #065f46 40%, #047857 75%, #0f766e 100%);
    border: 1px solid rgba(52, 211, 153, 0.3);
}
.ad-bank .ad-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -0.2px;
}
.ad-bank .ad-sub {
    font-size: 15px;
    color: #a7f3d0;
    font-weight: 600;
}
.ad-bank .ad-logo {
    text-align: right;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.25;
    color: #ffffff;
}
.ad-bank .ad-house {
    font-size: 44px;
    color: #fde047;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* Premium Mall Ad */
.ad-mall {
    background: linear-gradient(135deg, #090d16 0%, #1e1b4b 40%, #312e81 80%, #431407 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    margin: 12px auto;
}
.ad-mall .ad-brand {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}
.ad-mall .ad-brand span {
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}
.ad-mall .ad-sub {
    font-size: 12px;
    color: #cbd5e1;
    opacity: .9;
}
.ad-mall .ad-title {
    font-size: 24px;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: .3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Modern Square Sidebar Fallback Ads */
.ad-square {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    color: #fff;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    background: radial-gradient(circle at 85% 15%, rgba(244, 63, 94, 0.35), transparent 50%),
                linear-gradient(145deg, #090d16 0%, #1e1b4b 60%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
}
.ad-square:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.ad-square small {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 8px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.ad-square .ad-badge-top {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.5);
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
}
.ad-square .ad-big {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 6px;
}
.ad-square .ad-mid {
    font-size: 14px;
    color: #38bdf8;
    margin-bottom: 16px;
    font-weight: 600;
}
.ad-square .ad-btn {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    padding: 8px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ad-square:hover .ad-btn {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}
.ad-square.alt {
    background: radial-gradient(circle at 15% 85%, rgba(14, 165, 233, 0.3), transparent 50%),
                linear-gradient(145deg, #042f2e 0%, #0f766e 60%, #134e4a 100%);
    border: 1px solid rgba(45, 212, 191, 0.25);
}
.ad-square.alt .ad-badge-top {
    background: rgba(245, 158, 11, 0.25);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.5);
}
.ad-square.alt .ad-mid {
    color: #5eead4;
}
.ad-square.alt .ad-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* ---------- Logo Fallback (Typography Clock) ---------- */
.logo .logo-daily { font-size: 11px; margin-left: 4px; margin-bottom: -4px; font-weight: 700; color: var(--time); }
.logo .logo-main { display: flex; align-items: center; font-size: 44px; font-weight: 700; letter-spacing: -1px; color: var(--title); }
.logo .logo-clock {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin: 0 1px; border-radius: 50%;
    border: 4px solid var(--brand); border-right-color: transparent; transform: rotate(-20deg);
}
.logo .logo-clock span { transform: rotate(20deg); font-size: 40px; color: var(--title); }
.logo .logo-clock::after {
    content: ''; position: absolute; width: 3px; height: 16px; background: var(--brand);
    top: 8px; left: 50%; transform-origin: bottom; border-radius: 2px;
}
.logo .logo-tag { align-self: flex-end; font-size: 11px; color: var(--time); margin-top: -2px; font-style: italic; }
.logo.sm .logo-main { font-size: 26px; }
.logo.sm .logo-clock { width: 28px; height: 28px; border-width: 3px; }
.logo.sm .logo-clock span { font-size: 24px; }
.logo.sm .logo-clock::after { height: 9px; top: 4px; width: 2px; }
.logo.sm .logo-daily, .logo.sm .logo-tag { display: none; }

/* ---------- Header ---------- */
.site-header { background: var(--header-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.site-header .container-k { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 20px; }
.site-date-text { font-size: 12px; color: var(--text-muted); border-left: 1px solid var(--border); padding-left: 10px; line-height: 1.4; }
.top-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.top-links a { font-size: 15px; font-weight: 700; color: var(--nav-link); display: inline-flex; align-items: center; gap: 6px; }
.top-links a i { font-size: 13px; color: var(--text-muted); }
.top-links a:hover, .top-links a:hover i { color: var(--brand); }
.top-links .dropdown-k { position: relative; }
.top-links .dropdown-k .drop-panel {
    position: absolute; top: 130%; left: 0; background: var(--panel-bg); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); min-width: 170px;
    padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; z-index: 50;
}
.top-links .dropdown-k:hover .drop-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.drop-panel a { display: block; padding: 7px 16px; font-weight: 400; color: var(--text); }
.drop-panel a:hover { background: var(--soft-bg); color: var(--brand); }

.header-icons { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--icon-btn-bg); color: var(--icon-btn-color);
    display: inline-flex; align-items: center; justify-content: center; position: relative; cursor: pointer; transition: .2s;
}
.icon-btn:hover { background: var(--brand); color: #fff; }
.menu-toggle-mobile { display: inline-flex; }

/* ---------- Theme Toggle Button (Moon / Sun Mode Switcher) ---------- */
.theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: var(--toggle-bg);
    color: var(--toggle-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
    padding: 0;
}
.theme-toggle-btn:hover {
    background: var(--toggle-hover-bg);
    transform: scale(1.08) rotate(-10deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}
.theme-toggle-btn i {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.theme-toggle-btn:active i {
    transform: rotate(180deg) scale(0.8);
}
[data-theme="dark"] .theme-toggle-btn {
    border: 1px solid #3d4657;
    box-shadow: 0 2px 10px rgba(253, 184, 19, 0.25);
}
[data-theme="dark"] .theme-toggle-btn:hover {
    transform: scale(1.08) rotate(45deg);
    box-shadow: 0 4px 16px rgba(253, 184, 19, 0.4);
}
.theme-toggle-btn.btn-spin {
    animation: themeToggleSpin 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes themeToggleSpin {
    0% { transform: scale(0.7) rotate(0deg); }
    50% { transform: scale(1.18) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

/* ---------- Main nav ---------- */
.main-nav { background: var(--nav-bg); box-shadow: var(--shadow); position: relative; z-index: 40; }
.main-nav ul { display: flex; justify-content: center; align-items: center; gap: 0; }
.main-nav li a, .main-nav li button {
    display: block; padding: 11px 17px; font-size: 16px; font-weight: 700; color: var(--nav-link);
    background: none; border: 0; position: relative; white-space: nowrap;
}
.main-nav li a::after {
    content: ''; position: absolute; left: 50%; bottom: 4px; width: 0; height: 2px;
    background: var(--brand); transition: .25s; transform: translateX(-50%);
}
.main-nav li a:hover { color: var(--brand); }
.main-nav li a:hover::after, .main-nav li a.active::after { width: 60%; }
.main-nav li a.active { color: var(--brand); }

/* Sticky header (appears after scroll) */
.sticky-header {
    position: fixed; top: 0; left: 0; right: 0; background: var(--header-bg); z-index: 1000;
    box-shadow: 0 3px 10px rgba(0,0,0,.15); transform: translateY(-100%); transition: transform .3s ease, background-color .25s ease;
    border-bottom: 1px solid var(--border);
}
.sticky-header.show { transform: translateY(0); }
.sticky-header .container-k { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sticky-header .sticky-date { display: flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; color: var(--text); }
.sticky-header .sticky-date .mini-clock {
    width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--brand); border-right-color: transparent;
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.sticky-header .main-nav { box-shadow: none; flex: 1; overflow-x: auto; scrollbar-width: none; background: transparent; }
.sticky-header .main-nav li a { padding: 10px 13px; font-size: 15px; }
#stickyNav .js-mega-open,
#stickyNav #btnMegaMenu { display: none !important; }

/* Mega menu */
.mega-menu {
    position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.6);
    opacity: 0; visibility: hidden; transition: .25s;
}
.mega-menu.open { opacity: 1; visibility: visible; }
.mega-panel {
    background: var(--panel-bg); color: var(--text); max-height: 100vh; overflow-y: auto; padding: 18px 0 26px;
    transform: translateY(-20px); transition: .3s;
}
.mega-menu.open .mega-panel { transform: translateY(0); }
.mega-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 16px; }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 24px; }
.mega-grid h4 { font-size: 17px; font-weight: 700; border-bottom: 2px solid var(--brand); padding-bottom: 5px; margin-bottom: 8px; color: var(--title); }
.mega-grid li a { display: block; padding: 3px 0; font-size: 15px; color: var(--text-muted); }
.mega-grid li a:hover { color: var(--brand); padding-left: 4px; }

/* Search overlay */
.search-overlay {
    position: fixed; inset: 0; z-index: 2100; background: rgba(12,14,18,.95);
    display: flex; align-items: flex-start; justify-content: center; padding-top: 18vh;
    opacity: 0; visibility: hidden; transition: .25s;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box { width: min(680px, 92%); display: flex; border-bottom: 2px solid #fff; }
.search-box input { flex: 1; background: transparent; border: 0; color: #fff; font-size: 26px; padding: 10px 4px; outline: none; font-family: var(--font); }
.search-box button { background: none; border: 0; color: #fff; font-size: 22px; padding: 0 10px; cursor: pointer; }
.search-close { position: absolute; top: 24px; right: 30px; color: #fff; font-size: 30px; background: none; border: 0; cursor: pointer; }

/* ---------- Generic boxes & cards ---------- */
.k-box { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.sep-v { border-right: 1px solid var(--border); }
.sep-h { border-top: 1px solid var(--border); margin: 10px 0; }
.section { margin-top: 22px; }

.thumb { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; background: var(--soft-bg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.news-card:hover .thumb img, .h-card:hover .thumb img { transform: scale(1.06); }
.news-card { display: block; position: relative; }
.news-card .title, .h-card .title, .text-item .title {
    color: var(--title); font-weight: 700; font-size: 18px; line-height: 1.38; padding: 6px 0 3px; transition: color .2s;
}
.news-card:hover .title, .h-card:hover .title, .text-item:hover .title { color: var(--hover); }
.title.lg { font-size: 26px; line-height: 1.3; }
.title.md { font-size: 22px; line-height: 1.32; }
.summary { color: var(--text-muted); font-size: 15.5px; line-height: 1.5; margin: 2px 0 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-align: justify; }
.summary.c2 { -webkit-line-clamp: 2; }
.time { font-size: 14px; color: var(--time); display: inline-flex; align-items: center; gap: 5px; }
.cat-tag { color: var(--brand); }
.play-badge {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%;
    background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px;
    border: 2px solid #fff; transition: .25s; z-index: 2;
}
.news-card:hover .play-badge { background: var(--brand); transform: translate(-50%, -50%) scale(1.1); }

/* horizontal card */
.h-card { display: flex; gap: 10px; align-items: flex-start; }
.h-card .thumb { flex: 0 0 100px; width: 100px; }
.h-card .title { font-size: 17px; padding-top: 0; }
.h-card.right { flex-direction: row-reverse; }
.h-card.big .thumb { flex-basis: 52%; width: 52%; }
.h-card.big .title { font-size: 22px; }
.h-card + .h-card { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }

/* text-only list item */
.text-item { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); }
.text-item:last-child { border-bottom: 0; }
.text-item .title { font-size: 17px; padding: 0 0 4px; }
.text-item .title::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 6px; color: var(--text-muted); }

/* ---------- Section headings ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--title); padding-bottom: 6px; margin-bottom: 12px; }
.sec-head h2 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--title); }
.sec-head h2 a { color: var(--title); }
.sec-head h2 a:hover { color: var(--brand); }
.sec-icon {
    width: 20px; height: 20px; background: var(--brand); border-radius: 4px; position: relative; display: inline-block; flex: 0 0 20px;
}
.sec-icon::before {
    content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 2px solid #fff; border-right-color: transparent;
}
.sec-icon::after { content: ''; position: absolute; width: 2px; height: 5px; background: #fff; top: 5px; left: 9px; }
.sec-more {
    width: 24px; height: 24px; border-radius: 50%; border: 1.6px solid var(--title); color: var(--title); font-size: 12px;
    display: inline-flex; align-items: center; justify-content: center; transition: .2s;
}
.sec-more:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.sec-head.thin { border-bottom: 1px solid var(--brand); }
.sec-head .more-text { font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Lead section ---------- */
.lead-main { display: flex; gap: 12px; }
.lead-main .thumb { flex: 0 0 56%; aspect-ratio: auto; height: 218px; }
.lead-main .title { font-size: 30px; line-height: 1.25; padding-top: 0; }
.lead-main .summary { -webkit-line-clamp: 5; }
.lead-subs .news-card .title { font-size: 17px; }
.lead-subs .col-4 + .col-4 { border-left: 1px solid var(--border); }
.mid-lead .title { font-size: 20px; }

/* Story widget */
.story-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.story-tabs button {
    background: none; border: 0; padding: 4px 4px 6px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px;
    border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--title); cursor: pointer; transition: color .2s, border-color .2s;
}
.story-tabs button.active { border-color: var(--brand); color: var(--brand); }
.story-tabs .ico-vid { color: #e1306c; }
.story-tabs .ico-pho { color: #1e88e5; }
.story-viewport { position: relative; overflow: hidden; border-radius: 8px; }
.story-track { display: flex; gap: 8px; transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1); width: max-content; }
.story-card {
    flex: 0 0 135px;
    width: 135px;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    color: #fff;
    display: block;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.14);
    background: #1e1e1e;
    flex-shrink: 0;
}
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(0.2, 0.8, 0.2, 1); display: block; }
.story-card:hover img { transform: scale(1.08); }
.story-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.85) 85%, rgba(0,0,0,0.95) 100%);
    pointer-events: none;
}
.story-card .s-title {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    z-index: 2;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}
.story-card .s-views {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    font-size: 11px;
    padding: 1px 7px;
    color: #fff;
}
.story-card .s-play {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 2;
    font-size: 32px;
    color: rgba(255,255,255,0.95);
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.6));
    transition: transform .25s ease, color .25s ease;
    pointer-events: none;
}
.story-card .s-play.s-photo { font-size: 26px; }
.story-card:hover .s-play {
    transform: translate(-50%,-50%) scale(1.18);
    color: var(--brand);
}
.slide-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 5;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    transition: all .2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
[data-theme="dark"] .slide-arrow,
body.dark-theme .slide-arrow {
    background: rgba(30, 34, 43, 0.95);
    color: #fff;
    border-color: rgba(255,255,255,0.12);
}
.slide-arrow:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-50%) scale(1.12);
}
.slide-arrow.prev { left: 4px; }
.slide-arrow.next { right: 4px; }

/* ---------- Video section ---------- */
.video-viewport { position: relative; overflow: hidden; }
.video-track { display: flex; gap: 14px; transition: transform .45s ease; }
.video-track .news-card { flex: 0 0 calc((100% - 56px) / 5); }
.v-thumb-label {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 8px 6px; text-align: center;
    background: linear-gradient(180deg, transparent, rgba(160,10,15,.92)); color: var(--yellow); font-weight: 700; font-size: 17px; line-height: 1.2;
}
.v-thumb-logo { position: absolute; top: 6px; right: 6px; z-index: 1; background: #fff; color: #111; font-weight: 700; font-size: 11px; padding: 0 6px; border-radius: 3px; }
.video-track .title { font-size: 16px; }

/* ---------- Opinion ---------- */
.opinion-card {
    background: var(--cream); border-bottom: 2px solid var(--brand); border-radius: 4px; padding: 14px 12px;
    display: flex; gap: 12px; margin-bottom: 12px; transition: box-shadow .25s, transform .25s, background-color .25s;
}
.opinion-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.12); transform: translateY(-2px); }
.opinion-card .author { flex: 0 0 104px; text-align: center; }
.opinion-card .author .ava {
    width: 66px; height: 66px; border-radius: 50%; border: 2px solid var(--brand); overflow: hidden; margin: 0 auto 6px; background: var(--card-bg);
}
.opinion-card .author .ava img { width: 100%; height: 100%; object-fit: cover; }
.opinion-card .author b { display: block; font-size: 15px; color: var(--title); }
.opinion-card .author small { font-size: 12px; color: var(--time); }
.opinion-card .title { font-size: 18px; font-weight: 700; color: var(--title); line-height: 1.35; margin-bottom: 6px; }
.opinion-card:hover .title { color: var(--hover); }
.opinion-card .summary { font-size: 15px; }
.opinion-page { display: none; }
.opinion-page.active { display: block; animation: fadeIn .4s ease; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: #bbb; padding: 0; transition: .2s; cursor: pointer; }
.dots button.active { background: var(--title); width: 22px; border-radius: 6px; }

/* ---------- Poll ---------- */
.poll-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; background: var(--card-bg); }
.poll-date { display: flex; justify-content: space-between; font-size: 14px; color: var(--time); margin-bottom: 8px; }
.poll-q { font-weight: 700; font-size: 18px; color: var(--title); line-height: 1.4; margin: 8px 0 10px; }
.poll-opt { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; cursor: pointer; color: var(--text); }
.poll-opt input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.poll-bar { flex: 1; border: 1px solid var(--border); border-radius: 4px; height: 24px; position: relative; overflow: hidden; font-size: 13px; background: var(--soft-bg); }
.poll-bar .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: #f4c7c9; transition: width .8s ease; }
[data-theme="dark"] .poll-bar .fill { background: rgba(224, 49, 55, 0.45); }
.poll-bar span { position: relative; z-index: 1; padding: 0 8px; line-height: 22px; display: flex; justify-content: space-between; color: var(--text); }
.poll-total { text-align: center; font-size: 14px; margin: 8px 0; color: var(--time); }
.share-row { display: flex; justify-content: center; gap: 8px; }
.share-row a {
    width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px; transition: transform .2s;
}
.share-row a:hover { transform: translateY(-3px); color: #fff; }
.bg-fb { background: #3b5998; } .bg-ms { background: #448aff; } .bg-wa { background: #25d366; }
.bg-x { background: #000; } .bg-in { background: #0e76a8; } .bg-cp { background: #1c6b3a; }
.bg-yt { background: #ff0000; } .bg-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

/* ---------- Latest / Popular tabs ---------- */
.tab-head { display: flex; gap: 6px; border-bottom: 1px solid var(--border); }
.tab-head button { background: none; border: 0; padding: 6px 16px; font-size: 16px; font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--text-muted); cursor: pointer; }
.tab-head button.active { border-color: var(--brand); color: var(--title); }
.num-list { max-height: 405px; overflow-y: auto; padding-right: 4px; display: none; }
.num-list.active { display: block; animation: fadeIn .35s ease; }
.num-list::-webkit-scrollbar { width: 5px; }
.num-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 5px; }
[data-theme="dark"] .num-list::-webkit-scrollbar-thumb { background: #444d5c; }
.num-list a { display: flex; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--border); }
.num-list .n {
    flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--soft-bg); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.num-list a:hover .n { background: var(--brand); color: #fff; }
.num-list .t { font-weight: 700; font-size: 15.5px; color: var(--title); line-height: 1.4; }
.num-list a:hover .t { color: var(--hover); }
.btn-all {
    display: block; text-align: center; margin-top: 10px; padding: 7px; border: 1px solid #9cc3ef; background: #e8f1fd;
    border-radius: 4px; font-weight: 700; color: #1d4e8a;
}
.btn-all:hover { background: var(--hover); color: #fff; }
[data-theme="dark"] .btn-all { background: #1c2738; border-color: #2c3f5c; color: #7cb5ec; }
[data-theme="dark"] .btn-all:hover { background: var(--hover); color: #fff; }

/* ---------- Selected (featured dark card) ---------- */
.dark-card { background: #000; border-radius: var(--radius); overflow: hidden; height: 100%; border: 1px solid rgba(255,255,255,0.08); }
.dark-card .thumb { border-radius: 0; }
.dark-card .title { color: var(--yellow); font-size: 20px; padding: 8px 10px 2px; }
.dark-card:hover .title { color: #fff; }
.dark-card .summary { color: #eee; padding: 0 10px 10px; }

/* ---------- Promo banners (social follow) ---------- */
.promo {
    max-width: 590px; height: 72px; margin: 22px auto 4px; border-radius: 3px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 18px; background: linear-gradient(90deg, #e7eef8, #dbe7f6); position: relative; overflow: hidden;
}
.promo::after { content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.4); right: -40px; top: -60px; }
.promo .p-mid { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; color: var(--title); }
.promo .p-mid i { font-size: 34px; }
.promo .p-mid small { display: block; font-size: 12px; font-weight: 400; color: var(--time); margin-top: -3px; }
.promo .p-btn { background: #25d366; color: #fff; font-weight: 700; padding: 4px 12px; border-radius: 3px; font-size: 14px; position: relative; z-index: 1; }
.promo .p-btn.red { background: #ff0000; }
.promo .p-btn.blue { background: #1a73e8; }
.promo .qr {
    width: 50px; height: 50px; position: relative; z-index: 1;
    background:
        linear-gradient(90deg, #111 50%, transparent 0) 0 0 / 10px 10px,
        linear-gradient(#111 50%, transparent 0) 0 0 / 10px 10px, #fff;
    border: 4px solid #fff; outline: 1px solid #111;
}
[data-theme="dark"] .promo {
    background: linear-gradient(90deg, #18202d, #21293a); border: 1px solid #283346;
}
[data-theme="dark"] .promo::after { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .promo .qr { border-color: #232d3d; outline-color: #444; }

/* ---------- Business / Country / World ---------- */
.world-lead { display: flex; border-radius: var(--radius); overflow: hidden; background: var(--brand-dark); height: 100%; }
.world-lead .wl-text { flex: 0 0 46%; padding: 14px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.world-lead .wl-text .title { color: var(--yellow); font-size: 24px; line-height: 1.3; font-weight: 700; }
.world-lead .wl-text .summary { color: #f3dede; }
.world-lead .thumb { flex: 1; border-radius: 0; aspect-ratio: auto; }
.world-lead:hover .thumb img { transform: scale(1.05); }
.world-lead:hover .title { color: #fff; }

.area-widget select {
    width: 100%; border: 1px solid var(--border); border-radius: 4px; padding: 8px 10px; margin-bottom: 10px; font-family: var(--font); font-size: 15px; background: var(--card-bg); color: var(--text); transition: border-color .2s, box-shadow .2s; cursor: pointer;
}
.area-widget select:focus {
    outline: none; border-color: #f59324; box-shadow: 0 0 0 2px rgba(245, 147, 36, 0.25);
}
.area-widget select:disabled {
    opacity: 0.6; cursor: not-allowed; background: rgba(125, 125, 125, 0.08);
}
.area-widget .btn-search {
    width: 100%; border: 0; border-radius: 4px; padding: 9px; background: #f59324; color: #fff; font-weight: 700; font-size: 16px; transition: .2s; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.area-widget .btn-search:hover { background: #d97a0e; }
.area-widget .btn-search:active { transform: scale(0.98); }
.widget-title { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--title); }
.widget-title i { color: var(--brand); }

/* e-paper mock */
.epaper { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; background: var(--card-bg); }
.epaper-head { text-align: center; font-weight: 700; font-size: 17px; color: var(--brand); border-bottom: 2px solid var(--brand); padding-bottom: 6px; margin-bottom: 8px; }
.epaper-sheet { border: 1px solid #ddd; padding: 8px; background: #fdfcf8; box-shadow: 0 4px 10px rgba(0,0,0,.08); transition: transform .3s; }
.epaper-sheet:hover { transform: scale(1.02) rotate(-.5deg); }
.epaper-sheet .es-mast { text-align: center; font-weight: 700; font-size: 26px; border-bottom: 3px double #333; line-height: 1.1; padding-bottom: 2px; color: #111; }
.epaper-sheet .es-date { font-size: 9px; text-align: center; color: #555; border-bottom: 1px solid #333; margin-bottom: 6px; }
.epaper-sheet .es-head { font-size: 14px; font-weight: 700; color: var(--brand); line-height: 1.25; margin-bottom: 5px; }
.epaper-sheet img { width: 100%; height: 80px; object-fit: cover; margin-bottom: 5px; }
.es-lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.es-lines div { height: 64px; background: repeating-linear-gradient(#bbb 0 2px, transparent 2px 6px); }

[data-theme="dark"] .epaper-sheet { background: #1f232d; border-color: #313847; }
[data-theme="dark"] .epaper-sheet .es-mast { color: var(--title); border-color: #555; }
[data-theme="dark"] .epaper-sheet .es-date { color: var(--time); border-color: #444; }
[data-theme="dark"] .es-lines div { background: repeating-linear-gradient(#3a4252 0 2px, transparent 2px 6px); }

/* archive calendar */
.calendar { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; background: var(--card-bg); }
.cal-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.cal-controls select { border: 1px solid var(--border); border-radius: 4px; padding: 5px; font-family: var(--font); background: var(--card-bg); color: var(--text); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-grid .dn { font-size: 13px; font-weight: 700; color: #fff; background: var(--brand); padding: 4px 0; border-radius: 3px; }
.cal-grid .d { font-size: 14px; padding: 5px 0; border-radius: 3px; background: var(--soft-bg); color: var(--text); cursor: pointer; transition: .15s; }
.cal-grid .d:hover { background: var(--brand); color: #fff; }
.cal-grid .d.today { background: var(--hover); color: #fff; font-weight: 700; }
.cal-grid .d.empty { background: transparent; cursor: default; }
.cal-grid .d.future { color: var(--time); opacity: 0.5; cursor: not-allowed; }
.cal-grid .d.future:hover { background: var(--soft-bg); color: var(--time); }
[data-theme="dark"] .cal-grid .d.future { background: #161820; color: #4e5564; }

/* ---------- Photo gallery (dark) ---------- */
.gallery-sec { background: #181a20; padding: 18px 0 26px; margin-top: 30px; color: #fff; border-top: 1px solid var(--border); }
.gallery-sec .sec-head { border-color: #fff; }
.gallery-sec .sec-head h2, .gallery-sec .sec-head h2 a { color: #fff; }
.gallery-sec .sec-more { border-color: #fff; color: #fff; }
.g-main { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9.4; }
.g-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.g-slide.active { opacity: 1; }
.g-slide img { width: 100%; height: 100%; object-fit: cover; }
.g-slide .g-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; font-size: 20px; font-weight: 700;
    background: linear-gradient(transparent, rgba(0,0,0,.85)); text-align: center;
}
.g-count { position: absolute; top: 10px; left: 10px; z-index: 3; background: rgba(0,0,0,.6); font-size: 13px; padding: 2px 10px; border-radius: 12px; }
.g-thumbs { display: flex; gap: 6px; margin-top: 8px; justify-content: center; }
.g-thumbs button { width: 70px; height: 42px; border: 2px solid transparent; padding: 0; border-radius: 3px; overflow: hidden; opacity: .55; transition: .2s; cursor: pointer; }
.g-thumbs button.active, .g-thumbs button:hover { opacity: 1; border-color: var(--yellow); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.g-side .news-card { margin-bottom: 12px; }
.g-side .news-card .title { color: #fff; font-size: 16px; text-align: center; }
.g-side .news-card:hover .title { color: var(--yellow); }
.g-share { text-align: center; margin-top: 10px; font-size: 14px; opacity: .85; }

/* ---------- Details Page Design Integration ---------- */
.breadcrumb-dtl {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-muted);
}
.breadcrumb-dtl a { color: var(--text); }
.breadcrumb-dtl a:hover, .breadcrumb-dtl a.active { color: var(--hover); }
.breadcrumb-dtl .sep { color: var(--time); font-weight: 400; }

.rpt-info {
    padding: 10px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    font-size: 14.5px;
    color: var(--text-muted);
}
.rpt-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--title);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.rpt-time {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: var(--time);
    font-size: 13.5px;
}
.rpt-edition {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-weight: 600;
    color: var(--text);
}

.font-resizers {
    display: flex;
    gap: 8px;
    align-items: center;
}
.btn-zoom {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--icon-btn-bg);
    color: var(--icon-btn-color);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}
.btn-zoom:hover {
    background: var(--brand);
    color: #fff;
    transform: scale(1.08);
}

.related-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    margin-top: 16px;
}
.related-title {
    font-size: 17px;
    font-weight: 700;
    border-left: 4px solid var(--brand);
    padding-left: 8px;
    margin-bottom: 10px;
    color: var(--title);
}

.article-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--title);
    margin-bottom: 14px;
}
.article-share-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.share-icons-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.share-icons-row a, .btn-print {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    border: 0;
    transition: .2s;
}
.share-icons-row a:hover, .btn-print:hover {
    transform: translateY(-2px);
    color: #fff;
}
.btn-print {
    background: var(--icon-btn-bg);
    color: var(--icon-btn-color);
    border: 1px solid var(--border);
    cursor: pointer;
}
.btn-print:hover {
    background: var(--brand);
    color: #fff;
}

.article-lead-img {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--soft-bg);
    margin-bottom: 16px;
}
.article-lead-img img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
}
.article-lead-caption {
    background: var(--soft-bg);
    padding: 8px 14px;
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    border-bottom: 1px solid var(--border);
    line-height: 1.4;
}

.article-body {
    font-size: 18.5px;
    line-height: 1.8;
    color: var(--text);
    text-align: justify;
}
.article-body p {
    margin-bottom: 18px;
}

.inline-more-card {
    background: var(--soft-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin: 20px 0;
    display: flex;
    gap: 14px;
    align-items: center;
}
.inline-more-card .thumb {
    flex: 0 0 110px;
    width: 110px;
    aspect-ratio: 16/10;
}
.inline-more-card .title {
    font-size: 20px;
    font-weight: 700;
    color: var(--title);
    line-height: 1.35;
}
.inline-more-card:hover .title {
    color: var(--hover);
}

.source-credit {
    font-size: 17px;
    font-weight: 600;
    color: var(--title);
    margin: 18px 0 12px;
}
.reporter-initials {
    font-size: 15.5px;
    color: var(--time);
    font-weight: 700;
    margin-bottom: 18px;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 16px 0;
}
.tag-pill {
    background: var(--soft-bg);
    color: var(--text);
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    transition: .2s;
    border: 1px solid var(--border);
}
.tag-pill:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.google-news-box {
    background: var(--soft-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 18px;
    text-align: center;
    font-size: 17px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text);
}
.google-news-box a {
    color: var(--hover);
    font-weight: 700;
    text-decoration: underline !important;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--card-bg); border-top: 1px solid var(--border); margin-top: 0; padding-top: 22px; font-size: 14.5px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; max-width: 720px; }
.footer-links a { color: var(--text); font-weight: 700; }
.footer-links a:hover { color: var(--brand); }
.footer-info { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); line-height: 1.7; color: var(--text-muted); }
.footer-info b { color: var(--title); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 14px 0; }
.social-row { display: flex; gap: 8px; align-items: center; }
.social-row span { font-weight: 700; margin-right: 4px; color: var(--title); }
.social-row a { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: transform .2s; }
.social-row a:hover { transform: translateY(-3px) scale(1.05); color: #fff; }
.app-badges { display: flex; gap: 8px; }
.app-badges a {
    display: flex; align-items: center; gap: 8px; background: #111; color: #fff; border-radius: 6px; padding: 5px 12px; line-height: 1.1; transition: .2s;
}
.app-badges a:hover { background: var(--brand); color: #fff; }
.app-badges i { font-size: 22px; }
.app-badges small { display: block; font-size: 10px; opacity: .8; }
[data-theme="dark"] .app-badges a { background: #262c37; border: 1px solid #363e4e; }
.copyright { background: var(--ad-wrap-bg); padding: 10px 0; font-size: 13.5px; color: var(--time); }
.copyright .container-k { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* back to top */
#backTop {
    position: fixed; right: 26px; bottom: 26px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border);
    background: var(--card-bg); color: var(--title); font-size: 16px; z-index: 900; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s;
}
#backTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backTop:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Animations ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive Media Queries ---------- */
@media (max-width: 1199px) {
    .top-links { gap: 16px; }
    .top-links a { font-size: 14px; }
    .main-nav li a { padding: 11px 11px; }
}

@media (max-width: 991px) {
    .top-links { display: none; }
    .menu-toggle-mobile { display: inline-flex; }
    .main-nav ul {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 0 4px;
    }
    .main-nav ul::-webkit-scrollbar { display: none; }
    .main-nav li { flex-shrink: 0; }
    .main-nav li a, .main-nav li button { padding: 10px 12px; font-size: 15px; }
    .sticky-header .sticky-date { display: none; }
    .sticky-header .main-nav {
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .sep-v { border-right: 0; }
    .lead-main { flex-direction: column; }
    .lead-main .thumb { height: auto; aspect-ratio: 16/9; flex-basis: auto; }
    .lead-main .title { font-size: 24px; }
    .video-track .news-card { flex-basis: calc((100% - 28px) / 3); }
    .mega-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-top, .footer-info { flex-direction: column; display: flex; }
    .footer-links { justify-content: flex-start; }
    .world-lead { flex-direction: column-reverse; }
}

@media (max-width: 767px) {
    .article-title { font-size: 25px; line-height: 1.3; margin-bottom: 12px; }
    .article-body { font-size: 17.5px; line-height: 1.75; }
    .article-lead-caption { font-size: 14px; padding: 6px 10px; }
    .inline-more-card { flex-direction: column; padding: 10px; }
    .inline-more-card .thumb { width: 100%; flex-basis: auto; }
    .inline-more-card .title { font-size: 17px; }
    .article-share-bar { gap: 8px; padding-bottom: 10px; }
    .share-icons-row a, .btn-print { width: 34px; height: 34px; font-size: 14px; }
    .google-news-box { font-size: 15px; padding: 10px 12px; }
    .poll-q { font-size: 16.5px; }
    .num-list { max-height: 360px; }
    .num-list .t { font-size: 14.5px; }
    .calendar { margin-top: 14px; }
}

@media (max-width: 575px) {
    /* Header & Logo */
    .site-header .container-k { min-height: 52px; padding: 0 10px; gap: 8px; }
    .logo { flex-shrink: 0; }
    .logo .logo-daily { font-size: 10px; margin-bottom: -2px; }
    .logo .logo-main { font-size: 28px; letter-spacing: -0.5px; }
    .logo .logo-clock { width: 30px; height: 30px; border-width: 3px; }
    .logo .logo-clock span { font-size: 24px; }
    .logo .logo-clock::after { height: 10px; top: 3px; width: 2px; }
    .logo .logo-tag { display: none; }
    .header-icons { gap: 6px; flex-shrink: 0; }
    .theme-toggle-btn { width: 33px; height: 33px; font-size: 14px; }
    .icon-btn { width: 33px; height: 33px; font-size: 14px; }

    /* Sticky Header */
    .sticky-header .container-k { padding: 0 10px; min-height: 46px; gap: 6px; }
    .sticky-header .main-nav li a { padding: 8px 10px; font-size: 14px; }

    /* Ads */
    .ad-banner { height: 54px; padding: 0 10px; }
    .ad-bank .ad-title, .ad-mall .ad-title { font-size: 16px; }
    .ad-bank .ad-sub, .ad-mall .ad-brand { font-size: 12px; }
    .ad-bank .ad-house { font-size: 26px; }
    .ad-bank .ad-logo, .ad-mall .ad-sub { display: none; }

    /* Lead & Content */
    .lead-main .thumb { height: auto; aspect-ratio: 16/9; }
    .lead-main .title { font-size: 22px; line-height: 1.25; }
    .lead-main .summary { font-size: 14.5px; -webkit-line-clamp: 3; }
    .lead-subs .news-card .title { font-size: 13.5px; line-height: 1.32; padding: 4px 0 2px; }
    .lead-subs .row.g-2 { margin-left: -4px; margin-right: -4px; }
    .lead-subs .row.g-2 > * { padding-left: 4px; padding-right: 4px; }
    .lead-subs .col-4 + .col-4 { border-left: 0; }

    /* Cards & Typography */
    .title.lg { font-size: 21px; }
    .sec-head h2 { font-size: 19px; }
    .h-card.big { flex-direction: column; }
    .h-card.big .thumb { width: 100%; }
    .h-card .thumb { flex: 0 0 85px; width: 85px; }
    .h-card .title { font-size: 15px; }

    /* Carousels & Sliders */
    .story-card { flex: 0 0 150px; height: 215px; }
    .story-card .s-title { font-size: 14px; }
    .video-track .news-card { flex-basis: calc((100% - 14px) / 1.5); }
    .g-thumbs button { width: 56px; height: 34px; }

    /* Opinion */
    .opinion-card { padding: 10px 8px; gap: 8px; }
    .opinion-card .author { flex: 0 0 76px; }
    .opinion-card .author .ava { width: 50px; height: 50px; }
    .opinion-card .author b { font-size: 13.5px; }
    .opinion-card .title { font-size: 16px; }
    .opinion-card .summary { font-size: 14px; }

    /* E-Paper & Calendar */
    .epaper-sheet .es-mast { font-size: 20px; }
    .epaper-sheet .es-head { font-size: 13px; }
    .promo { height: auto; padding: 10px; flex-wrap: wrap; gap: 8px; justify-content: center; }
    .promo .p-mid { font-size: 18px; }
    .promo .qr { display: none; }
    .mega-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    /* Footer & Float */
    .copyright .container-k { justify-content: center; text-align: center; font-size: 12px; gap: 4px; }
    #backTop { right: 14px; bottom: 18px; width: 36px; height: 36px; font-size: 14px; }
}

@media (max-width: 375px) {
    .site-header .container-k { padding: 0 8px; }
    .logo .logo-main { font-size: 24px; }
    .logo .logo-clock { width: 26px; height: 26px; }
    .logo .logo-clock span { font-size: 20px; }
    .header-icons { gap: 4px; }
    .theme-toggle-btn { width: 30px; height: 30px; font-size: 13px; }
    .icon-btn { width: 30px; height: 30px; font-size: 13px; }
    .lead-main .title { font-size: 20px; }
    .article-title { font-size: 22px; }
    .article-body { font-size: 16.5px; }
}

/* ================= BREAKING NEWS TICKER & LIVE INDICATOR ================= */
.live-blink-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: liveBlink 1.4s infinite;
    vertical-align: middle;
    margin-right: 4px;
}
@keyframes liveBlink {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.breaking-news-wrapper {
    background: var(--bg-card, #ffffff);
    border-bottom: 1px solid var(--border, #e2e8f0);
    padding: 6px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.breaking-news-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.breaking-badge {
    background: linear-gradient(135deg, #b62427, #e11d48);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(182, 36, 39, 0.25);
    flex-shrink: 0;
}

.breaking-ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.breaking-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    animation: breakingTickerScroll 45s linear infinite;
}

.breaking-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes breakingTickerScroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.breaking-ticker-item {
    color: var(--text-main, #1e293b);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.breaking-ticker-item:hover {
    color: var(--brand, #b62427);
}

.breaking-bullet {
    color: var(--brand, #b62427);
    margin-right: 8px;
    font-size: 16px;
    font-weight: bold;
}

