/* News homepage (index.php): ticker, lead block, live card, latest list, top news grid. */
.news-home {
    --nh-red: #d7141e;
    --nh-red-dark: #b30f18;
    --nh-navy: #0d2152;
    --nh-ink: #111827;
    --nh-text: #374151;
    --nh-muted: #6b7280;
    --nh-line: #e5e7eb;
    --nh-font: Roboto, 'Noto Sans Bengali', 'Nirmala UI', Arial, sans-serif;
    margin: 0;
    background: #fff;
    color: var(--nh-ink);
    font-family: var(--nh-font);
}
.news-home *, .news-home *::before, .news-home *::after { box-sizing: border-box; }
.news-home a { color: inherit; text-decoration: none; }
.nh-wrap { width: 100%; max-width: 1192px; margin: 0 auto; padding: 0 16px; }
.nh-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Breaking ticker */
.nh-ticker { background: #fdeced; border-bottom: 1px solid #f7d4d6; }
.nh-ticker-inner { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.nh-ticker-label { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 10px 20px; border-radius: 6px; background: var(--nh-red); color: #fff; font-size: 17px; font-weight: 700; box-shadow: 0 4px 10px #d7141e33; }
.nh-ticker-label svg { width: 18px; height: 18px; fill: #fff; }
.nh-ticker-track { display: flex; flex: 1; min-width: 0; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.nh-ticker-track::-webkit-scrollbar { display: none; }
.nh-ticker-track a { flex: none; scroll-snap-align: start; padding: 0 18px; border-left: 1px solid #c9c9cf; color: #1f2937; font-size: 14.5px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.nh-ticker-track a:first-child { padding-left: 0; border-left: 0; }
.nh-ticker-track a:hover { color: var(--nh-red); }
.nh-ticker-nav { display: flex; gap: 6px; flex: none; }
.nh-ticker-nav button { width: 30px; height: 30px; border: 1px solid #f0c9cc; border-radius: 6px; background: #fff; color: #1f2937; font-size: 20px; line-height: 1; cursor: pointer; }
.nh-ticker-nav button:hover { background: var(--nh-red); border-color: var(--nh-red); color: #fff; }

.nh-main { padding-top: 20px; padding-bottom: 40px; }
.nh-empty { margin: 40px 0; padding: 40px 20px; border: 1px dashed var(--nh-line); border-radius: 10px; color: var(--nh-muted); text-align: center; font-size: 17px; }

/* Shared story pieces */
.nh-chip { display: inline-block; padding: 3px 12px; border-radius: 99px; background: var(--nh-red); color: #fff !important; font-size: 13px; font-weight: 600; line-height: 1.5; }
.nh-chip:hover { background: var(--nh-red-dark); }
.nh-summary { margin: 0; color: var(--nh-text); font-size: 15px; line-height: 1.65; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.nh-meta { display: flex; flex-wrap: wrap; align-items: center; margin: 10px 0 0; color: var(--nh-muted); font-size: 13.5px; }
.nh-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.nh-meta > span + span::before { content: ''; width: 1px; height: 13px; margin: 0 12px; background: currentColor; opacity: 0.5; }
.nh-meta .site-icon { width: 15px; height: 15px; vertical-align: 0; }
.nh-card h3 a:hover, .nh-lead h2 a:hover, .nh-latest a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Lead block: lead story, two stories, live + latest rail */
.nh-top { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr) minmax(0, 0.95fr); gap: 16px; align-items: stretch; }
.nh-lead { position: relative; display: flex; min-height: 540px; overflow: hidden; border-radius: 6px; background: #1f2937; }
.nh-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nh-lead::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, #0b1220d9 72%, #0b1220f2); }
.nh-lead-body { position: relative; z-index: 1; align-self: flex-end; padding: 24px 24px 22px; color: #fff; }
.nh-lead h2 { margin: 12px 0 10px; font-size: 38px; font-weight: 800; line-height: 1.3; letter-spacing: 0; }
.nh-lead .nh-summary { color: #e5e7eb; font-size: 16px; -webkit-line-clamp: 2; }
.nh-lead .nh-meta { color: #d1d5db; }

.nh-side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.nh-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--nh-line); border-radius: 6px; background: #fff; }
.nh-card-media { position: relative; display: block; aspect-ratio: 16 / 7; overflow: hidden; background: #f3f4f6; }
.nh-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.nh-card:hover .nh-card-media img { transform: scale(1.04); }
.nh-card-body { display: flex; flex-direction: column; flex: 1; padding: 0 14px 14px; }
.nh-card-body .nh-chip { align-self: flex-start; margin: -14px 0 8px; position: relative; z-index: 1; }
.nh-card h3 { margin: 0 0 6px; color: #0d1b3e; font-size: 19px; font-weight: 700; line-height: 1.4; }
.nh-card .nh-meta { margin-top: auto; padding-top: 10px; }

.nh-rail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.nh-live { padding: 14px; border-radius: 6px; background: var(--nh-navy); color: #fff; }
.nh-live-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.nh-live-head h2 { margin: 0; font-size: 19px; font-weight: 700; }
.nh-live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 5px; background: var(--nh-red); font-size: 13px; font-weight: 600; }
.nh-live-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: nh-blink 1.4s infinite; }
@keyframes nh-blink { 50% { opacity: 0.25; } }
.nh-live-player { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 0; border-radius: 4px; background: #1e3a8a; cursor: pointer; }
.nh-live-player img, .nh-live-player iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.nh-live-ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, #1e3a8a, #0200fc); color: #ffffff40; font-size: 46px; font-weight: 800; letter-spacing: 4px; }
.nh-play { position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border: 3px solid #fff; border-radius: 50%; background: #0009; transition: transform 0.2s; }
.nh-play::after { content: ''; position: absolute; top: 50%; left: 50%; margin: -11px 0 0 -6px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.nh-live-player:hover .nh-play { transform: scale(1.08); }
.nh-live h3 { margin: 12px 0 4px; font-size: 17px; font-weight: 700; }
.nh-live h3 span { margin-left: 4px; font-family: Roboto, Arial, sans-serif; letter-spacing: 0.5px; }
.nh-live p { margin: 0; color: #dbe3f5; font-size: 14.5px; line-height: 1.6; }

.nh-latest { flex: 1; padding: 14px 16px 6px; border: 1px solid var(--nh-line); border-radius: 6px; }
.nh-latest-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--nh-line); }
.nh-latest-head h2 { margin: 0; color: #0d1b3e; font-size: 20px; font-weight: 700; }
.nh-latest-head a, .nh-section-head a { flex: none; color: var(--nh-red) !important; font-size: 13.5px; font-weight: 600; }
.nh-latest ol { margin: 0; padding: 0; list-style: none; }
.nh-latest li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid #eef0f3; font-size: 14.5px; line-height: 1.55; }
.nh-latest li:last-child { border-bottom: 0; }
.nh-latest time { min-width: 46px; color: var(--nh-red); font-weight: 600; }
.nh-latest li a { color: #1f2937; }

/* Top news grid */
.nh-section { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--nh-line); }
.nh-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.nh-section-head h2 { margin: 0; padding-left: 14px; border-left: 4px solid var(--nh-red); color: #0d1b3e; font-size: 28px; font-weight: 800; line-height: 1.2; }
.nh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.nh-grid .nh-card { border: 0; border-radius: 0; }
.nh-grid .nh-card-media { aspect-ratio: 16 / 7.5; border-radius: 6px; }
.nh-grid .nh-card-body { padding: 0 2px; }
.nh-grid .nh-card-body .nh-chip { margin-left: 10px; }
.nh-grid .nh-card h3 { font-size: 17px; }
.nh-grid .nh-summary { font-size: 14.5px; -webkit-line-clamp: 2; }

.nh-main .ad-slot { margin: 24px auto 0; }

@media (max-width: 1080px) {
    .nh-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nh-lead { grid-column: 1 / -1; min-height: 440px; }
    .nh-side { grid-template-rows: none; }
    .nh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .nh-ticker-inner { gap: 10px; min-height: 50px; }
    .nh-ticker-label { padding: 8px 12px; font-size: 14px; }
    .nh-ticker-label svg { display: none; }
    .nh-ticker-nav { display: none; }
    .nh-top { grid-template-columns: minmax(0, 1fr); }
    .nh-lead { min-height: 380px; }
    .nh-lead-body { padding: 18px 16px; }
    .nh-lead h2 { font-size: 26px; }
    .nh-section-head h2 { font-size: 22px; }
    .nh-grid { grid-template-columns: minmax(0, 1fr); }
}
