/* ========================================================
   News Portal CSS
   ======================================================== */

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

:root {
    --primary: #c4161c;
    --primary-dark: #9e0f14;
    --primary-light: #fff1f2;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --heading-color: #0f172a;
    --bg-page: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --font-bn: 'Hind Siliguri', sans-serif;
    --font-en: 'Inter', sans-serif;
    --font-serif-bn: 'Noto Serif Bengali', serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: var(--font-bn), var(--font-en), -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body.lang-en {
    font-family: var(--font-en), sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========================================================
   Top Utility Bar
   ======================================================== */
.top-bar {
    background: #0f172a;
    color: #e2e8f0;
    font-size: 13.5px;
    border-bottom: 1px solid #1e293b;
    padding: 7px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.date-display, .live-clock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Date display: full text on desktop, compact text on mobile */
.date-display {
    position: relative;
}

.date-display[role="button"] {
    cursor: pointer;
}

.date-text-short {
    display: none;
}

/* Full-date popup (shown when tapping the date on mobile) */
.date-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #0f172a;
    color: #f8fafc;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    pointer-events: none;
    z-index: 900;
}

.date-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.live-clock {
    background: #1e293b;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    color: #f8fafc;
    border: 1px solid #334155;
    letter-spacing: 0.5px;
}

.live-clock-display {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.lang-bn .live-clock-time {
    font-family: var(--font-serif-bn), var(--font-bn), serif;
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 0;
}

.bn-numeral-one {
    font-family: var(--font-serif-bn), var(--font-bn), serif;
    font-size: 1.08em;
    font-weight: 700;
}

.clock-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Language Toggle Switcher */
.lang-switcher {
    display: inline-flex;
    background: #1e293b;
    border-radius: 20px;
    padding: 2px;
    border: 1px solid #334155;
}

.lang-btn {
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 16px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.lang-btn:hover:not(.active) {
    color: #fff;
}

.social-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-top a {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.social-top a:hover {
    color: #fff;
}

/* Admin Login Icon (top utility bar) */
.login-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}

.login-icon-link:hover {
    color: #fff;
    background: #1e293b;
}

/* ========================================================
   Main Header Branding
   ======================================================== */
.main-header {
    background: #fff;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

/* Name + tagline sit as a stacked block next to the logo */
.brand-text-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* A slightly smaller name when shown beside a logo */
.brand-logo.has-logo .brand-title {
    font-size: 30px;
}

.brand-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
    font-family: var(--font-bn), sans-serif;
}

.brand-title.en {
    font-family: var(--font-en), sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-tagline {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

.header-search-form {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 320px;
    width: 100%;
}

.header-search-form input {
    width: 100%;
    padding: 9px 40px 9px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    outline: none;
    background: #f8fafc;
    transition: all 0.2s;
}

.header-search-form input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(196, 22, 28, 0.1);
}

.search-submit-btn {
    position: absolute;
    right: 4px;
    background: var(--primary);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.search-submit-btn:hover {
    background: var(--primary-dark);
}

/* ========================================================
   Primary Navigation Menu
   ======================================================== */
.main-nav {
    background: #fff;
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

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

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

.nav-item {
    position: relative;
    white-space: nowrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 13px 14px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--heading-color);
    transition: all 0.2s;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--primary);
    background: #fff5f5;
}

.nav-link .home-icon {
    font-size: 16px;
}

/* Sub-category Dropdown */
.dropdown-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    min-width: 190px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--primary);
    list-style: none;
    z-index: 101;
    padding: 6px 0;
}

.nav-item:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@media (hover: hover) and (min-width: 769px) {
    .nav-item:focus-within > .dropdown-menu {
        display: block;
    }
}

/* Only enable the hover dropdown on pointer devices with real hover (desktop) */
@media (hover: none), (max-width: 768px) {
    .nav-item:hover .dropdown-menu {
        display: none;
    }
}

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

.dropdown-item a {
    display: block;
    padding: 8px 16px;
    font-size: 14.5px;
    color: var(--text-main);
    font-weight: 500;
}

.dropdown-item a:hover {
    background: #fff5f5;
    color: var(--primary);
    padding-left: 20px;
}

/* Mobile Nav & Search Toggles (visible on mobile only) */
.mobile-nav-toggle,
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--heading-color);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease;
}

.mobile-nav-toggle:hover,
.mobile-search-toggle:hover {
    color: var(--primary);
}

/* Drawer header brand (logo + name) - only rendered while the mobile drawer is open */
.drawer-brand {
    display: none;
}

.brand-logo-img {
    display: block;
    height: 40px;          /* fixed display height on desktop */
    width: auto;           /* keeps the original aspect ratio */
    max-width: 230px;      /* prevents an over-wide logo from breaking the header */
    object-fit: contain;
}

/* ========================================================
   Headline / Breaking News Bar
   ======================================================== */
.headline-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.headline-inner {
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 44px;
}

.headline-label {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.2s infinite;
}

.headline-ticker {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    padding-left: 16px;
    position: relative;
}

.ticker-content {
    display: inline-flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

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

.ticker-item {
    display: inline-flex;
    align-items: center;
    color: var(--heading-color);
    font-weight: 600;
    font-size: 14.5px;
    margin-right: 36px;
}

.ticker-item::before {
    content: "●";
    color: var(--primary);
    font-size: 10px;
    margin-right: 12px;
}

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

/* ========================================================
   Homepage Hero Layout (Prothom Alo / Kalbela Style)
   ======================================================== */
.hero-news-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 0.9fr;
    gap: 24px;
    margin-bottom: 32px;
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* Lead Article */
.lead-news-card {
    display: flex;
    flex-direction: column;
}

.lead-news-thumb {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1.38 / 1;
    background: #18212c;
}

.lead-news-image {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 0;
}

.lead-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.lead-news-card:hover .lead-news-thumb img {
    transform: scale(1.04);
}

.lead-news-thumb::after {
    content: "";
    position: absolute;
    inset: 20% 0 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(7, 14, 23, 0) 0%,
        rgba(7, 14, 23, 0.22) 24%,
        rgba(7, 14, 23, 0.88) 100%
    );
}

.badge-lead {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
}

.lead-news-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 18px 20px 12px;
    color: #fff;
}

.lead-news-title {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin: 0;
    font-family: var(--font-serif-bn), var(--font-bn), sans-serif;
}

.lead-news-title a {
    color: inherit;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.lead-news-title a:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.lead-news-accent {
    display: block;
    width: 128px;
    max-width: 32%;
    height: 3px;
    margin: 11px 0 0;
    background: var(--primary);
}

.lead-news-details {
    padding-top: 12px;
}

.lead-news-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 12px;
}

.lead-news-details .meta-info {
    flex-wrap: wrap;
    font-size: 12.5px;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.meta-info .reporter {
    color: var(--text-muted);
    font-weight: 600;
}

/* Sub-Lead Stories Column */
.sublead-news-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.sublead-card {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.sublead-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sublead-thumb {
    width: 125px;
    height: 85px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f1f5f9;
}

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

.sublead-card:hover .sublead-thumb img {
    transform: scale(1.05);
}

.sublead-title {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--heading-color);
    margin-bottom: 6px;
}

.sublead-card:hover .sublead-title {
    color: var(--primary);
}

/* Tabbed Sidebar: Latest & Most Read */
.tabbed-widget {
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 16px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    text-align: center;
    position: relative;
    font-family: inherit;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.ranked-news-list {
    list-style: none;
}

.ranked-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.ranked-item:last-child {
    border-bottom: none;
}

.ranked-thumb {
    position: relative;
    flex-shrink: 0;
    width: 96px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--border-light);
}

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

.ranked-item:hover .ranked-thumb img {
    transform: scale(1.05);
}

.ranked-content {
    flex: 1;
    min-width: 0;
}

.rank-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    min-width: 24px;
}

.ranked-thumb .rank-number {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: var(--primary);
    border-bottom-right-radius: 6px;
}

.ranked-title {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--heading-color);
}

.ranked-item:hover .ranked-title {
    color: var(--primary);
}

.ranked-time {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ========================================================
   Priority Special Reports Strip
   ======================================================== */
.special-reports-strip {
    margin-bottom: 32px;
}

/* Special Report carousel (desktop: horizontal, 4 per view) */
.special-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.special-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--heading-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.special-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.special-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.special-viewport {
    overflow: hidden;
}

.special-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

/* Mobile-only loop copies are hidden on desktop */
.special-track > .news-card-v[data-clone] {
    display: none;
}

.special-track .news-card-v {
    flex: 0 0 calc((100% - 60px) / 4);
    max-width: calc((100% - 60px) / 4);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--heading-color);
    margin-bottom: 20px;
    padding-bottom: 8px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading-color);
    position: relative;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.section-view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.section-view-all:hover {
    text-decoration: underline;
}

.grid-4-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card-v {
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card-v:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.news-card-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card-v:hover .news-card-thumb img {
    transform: scale(1.05);
}

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

.category-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    display: inline-block;
}

.news-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--heading-color);
    margin-bottom: 8px;
    flex: 1;
}

.news-card-v:hover .news-card-title {
    color: var(--primary);
}

/* ========================================================
   Category Split Sections (Politics & Economy / Two Column)
   ======================================================== */
.category-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.cat-block {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.cat-news-lead {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.cat-news-lead-thumb {
    width: 160px;
    height: 110px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cat-news-lead-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-news-lead-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--heading-color);
    margin-bottom: 6px;
}

.cat-news-lead:hover .cat-news-lead-title {
    color: var(--primary);
}

.cat-sub-list {
    list-style: none;
}

.cat-sub-item {
    padding: 9px 0;
    border-bottom: 1px solid var(--border-light);
}

.cat-sub-item:last-child {
    border-bottom: none;
}

.cat-sub-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--heading-color);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cat-sub-title::before {
    content: "▪";
    color: var(--primary);
}

.cat-sub-item:hover .cat-sub-title {
    color: var(--primary);
}

/* ========================================================
   Homepage Category Sections (all main categories)
   Desktop: two category blocks per row; inside each block the
   first story keeps the lead design and the rest are compact
   horizontal rows with a small photo.
   ======================================================== */
.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
    align-items: start;
}

.cat-more-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-mini-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: box-shadow 0.2s;
}

.cat-mini-card:hover {
    box-shadow: var(--shadow-sm);
}

.cat-mini-thumb {
    display: block;
    flex: 0 0 104px;
    width: 104px;
    min-height: 72px;
    overflow: hidden;
    background: #f1f5f9;
}

.cat-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.cat-mini-card:hover .cat-mini-thumb img {
    transform: scale(1.05);
}

.cat-mini-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--heading-color);
    padding: 8px 12px;
    flex: 1;
    display: flex;
    align-items: center;
}

.cat-mini-title a {
    color: inherit;
}

.cat-mini-card:hover .cat-mini-title {
    color: var(--primary);
}

/* ========================================================
   Video News Section (Dark Mode Feature)
   ======================================================== */
.video-news-section {
    background: #0f172a;
    color: #fff;
    padding: 36px 0;
    margin-bottom: 36px;
    border-radius: var(--radius-md);
}

.video-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #334155;
    margin-bottom: 24px;
    padding-bottom: 10px;
}

.video-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.video-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #475569;
    background: #1e293b;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.video-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.video-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.video-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-icon-badge {
    background: var(--primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.video-viewport {
    overflow: hidden;
}

.video-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.video-grid > .video-card[data-clone] {
    display: none;
}

.video-card {
    flex: 0 0 calc((100% - 60px) / 4);
    max-width: calc((100% - 60px) / 4);
    background: #1e293b;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid #334155;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-3px);
}

.video-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

/* Whole image links to the article, the play button overlays it */
.video-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(196, 22, 28, 0.9);
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--primary);
}

.video-card-body {
    padding: 14px;
}

.video-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.4;
}

.video-card:hover .video-card-title {
    color: #fca5a5;
}

/* ---------- Inline YouTube Video Lightbox ---------- */
body.video-open {
    overflow: hidden;
}

.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-lightbox.open {
    display: flex;
}

.video-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.92);
}

.video-lightbox-inner {
    position: relative;
    width: 100%;
    max-width: 900px;
    z-index: 1;
    animation: videoFadeIn 0.22s ease;
}

@keyframes videoFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

.video-lightbox-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.video-lightbox-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.video-lightbox-close:hover {
    background: var(--primary);
}

/* ========================================================
   Single News Details Page
   ======================================================== */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 30px;
    margin-top: 24px;
    margin-bottom: 40px;
    min-width: 0;
    width: 100%;
}

.article-main {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .sep {
    color: var(--text-light);
}

.article-headline {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--heading-color);
    margin-bottom: 18px;
    font-family: var(--font-serif-bn), var(--font-bn), sans-serif;
}

.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.author-date {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
}

.author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-name {
    font-weight: 700;
    color: var(--heading-color);
}

.publish-time {
    color: var(--text-muted);
}

.update-badge {
    background: #ecfdf5;
    color: #065f46;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Social Share Bar */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    transition: transform 0.2s, opacity 0.2s;
    cursor: pointer;
    border: none;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }
.share-tw { background: #000000; }
.share-in { background: #0a66c2; }
.share-copy { background: #475569; }

.article-lead-image {
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f1f5f9;
}

.article-lead-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.image-caption {
    font-size: 13.5px;
    color: var(--text-muted);
    padding: 8px 12px;
    background: #f8fafc;
    border-left: 3px solid var(--primary);
    font-style: italic;
}

.video-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-content {
    font-size: 18.5px;
    line-height: 1.85;
    color: #1f2937;
    margin-bottom: 30px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.article-content img,
.article-content iframe,
.article-content video,
.article-content embed,
.article-content object {
    max-width: 100%;
}

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

.article-content h2, .article-content h3, .article-content h4 {
    color: var(--heading-color);
    margin: 28px 0 14px;
    line-height: 1.35;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 14px 20px;
    background: #fff5f5;
    font-style: italic;
    color: #374151;
    margin: 24px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content img {
    border-radius: var(--radius-sm);
    margin: 20px auto;
}

@media (max-width: 768px) {
    html.article-page,
    body.article-page {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .article-layout,
    .article-main,
    .article-content {
        min-width: 0;
        max-width: 100%;
    }

    .article-main,
    .article-content {
        width: 100%;
    }

    .article-content {
        overflow-x: hidden;
    }

    .article-content,
    .article-content * {
        max-width: 100% !important;
        overflow-wrap: anywhere;
        white-space: normal !important;
    }

    .article-content iframe,
    .article-content video,
    .article-content embed,
    .article-content object {
        width: 100% !important;
    }

    .article-content table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
    }

    .article-content pre {
        max-width: 100%;
        overflow-x: auto;
        overflow-wrap: anywhere;
        white-space: pre-wrap !important;
    }

    .article-content pre * {
        white-space: pre-wrap !important;
    }
}

.article-share-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.not-available-notice {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 16px;
    margin: 30px 0;
}

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-box {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.sidebar-box-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
    border-left: 3px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 16px;
}

/* ========================================================
   Archive / Category Page
   ======================================================== */
.category-page-header {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-top: 20px;
    margin-bottom: 24px;
}

.category-page-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 14px;
}

.subcat-filter-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.subcat-pill {
    padding: 5px 14px;
    background: #f1f5f9;
    color: var(--text-main);
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.subcat-pill:hover, .subcat-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.page-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-link:hover:not(.active) {
    background: #f8fafc;
    border-color: var(--primary);
    color: var(--primary);
}

/* ========================================================
   Website Footer
   ======================================================== */
.main-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding-top: 48px;
    border-top: 3px solid var(--primary);
    margin-top: 60px;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    font-family: var(--font-bn), sans-serif;
}

.footer-tagline {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 14px;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 6px;
}

.footer-contact-info p {
    font-size: 13.5px;
    color: #cbd5e1;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact-info strong {
    color: #e2e8f0;
}

.footer-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 15px;
    transition: all 0.2s;
}

.footer-social-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    background: #020617;
    padding: 18px 0;
    border-top: 1px solid #1e293b;
    font-size: 13px;
    color: #fff;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Developer credit */
.dev-credit a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.dev-credit a:hover {
    opacity: 0.7;
}

/* Toast Message */
.toast-notice {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: none;
    animation: slideUp 0.3s ease;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--heading-color);
}

/* ========================================================
   READER POLL / SURVEY SECTION (Homepage last section)
   ======================================================== */
.poll-section {
    margin-bottom: 36px;
}

.poll-card {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 26px 28px 28px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.poll-card::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 170px;
    height: 170px;
    background: radial-gradient(circle, rgba(196, 22, 28, 0.08), transparent 70%);
    pointer-events: none;
}

.poll-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.poll-question {
    font-family: var(--font-serif-bn), var(--font-bn), sans-serif;
    font-size: 21px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

body.lang-en .poll-question {
    font-family: var(--font-en), sans-serif;
}

/* Options */
.poll-options {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.poll-option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
    position: relative;
    z-index: 1;
}

.poll-option-label:hover {
    border-color: var(--primary);
    background: #fffafa;
    transform: translateY(-1px);
}

.poll-option-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.poll-radio-mark {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-light);
    border-radius: 50%;
    position: relative;
    transition: border-color 0.18s ease;
}

.poll-radio-mark::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--primary);
    transform: scale(0);
    transition: transform 0.18s ease;
}

.poll-option-text {
    font-size: 15.5px;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.4;
}

/* Selected state (class added by JS) */
.poll-option-label.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(196, 22, 28, 0.08);
}

.poll-option-label.selected .poll-radio-mark {
    border-color: var(--primary);
}

.poll-option-label.selected .poll-radio-mark::after {
    transform: scale(1);
}

.poll-option-label.selected .poll-option-text {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Selected state (native fallback where :has() is supported) */
.poll-option-label:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(196, 22, 28, 0.08);
}

.poll-option-label:has(input[type="radio"]:checked) .poll-radio-mark {
    border-color: var(--primary);
}

.poll-option-label:has(input[type="radio"]:checked) .poll-radio-mark::after {
    transform: scale(1);
}

.poll-option-label:has(input[type="radio"]:checked) .poll-option-text {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Actions row */
.poll-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.poll-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 30px;
    font-size: 15.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(196, 22, 28, 0.25);
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.poll-vote-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(196, 22, 28, 0.32);
}

.poll-vote-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.poll-total-note {
    font-size: 13.5px;
    color: var(--text-muted);
}

.poll-total-note .poll-total-count {
    color: var(--heading-color);
}

/* Results */
.poll-result-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
}

.poll-result-item {
    position: relative;
    z-index: 1;
}

.poll-result-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 7px;
}

.poll-result-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.poll-result-pct {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.poll-result-bar {
    height: 11px;
    background: var(--border-light);
    border-radius: 999px;
    overflow: hidden;
}

.poll-result-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), #ef4444);
    width: 0;
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.poll-result-votes {
    font-size: 12.5px;
    color: var(--text-light);
    margin-top: 5px;
}

.poll-message {
    font-size: 14px;
    font-weight: 600;
    margin-top: 14px;
    min-height: 0;
}

.poll-message:empty {
    margin-top: 0;
}

.poll-message.success {
    color: #059669;
}

.poll-message.error {
    color: #dc2626;
}

