/* Newsroom theme — loaded after style.css; dense, flat layout in the style of major Hindi news sites */
:root {
  --ub-red: #c4161c;
  --ub-red-dark: #9e1015;
  --ub-ink: #111;
  --ub-text: #222;
  --ub-muted: #6b6b6b;
  --ub-line: #e3e3e3;
  --ub-soft: #f5f5f5;
  --ub-font: 'Mukta', 'Noto Sans Devanagari', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --secondary-color: var(--ub-red);
}

body { font-family: var(--ub-font); color: var(--ub-text); background: #fff; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ub-font); }
a:hover { color: var(--ub-red); }

/* ---------- Top strip ---------- */
.ub-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.ub-topbar { background: var(--ub-ink); color: #ddd; font-size: 13px; }
.ub-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.ub-topbar-right { display: flex; align-items: center; gap: 14px; }
.ub-topbar .sm-icons { gap: 4px; }
.ub-topbar .sm-icons a { width: 28px; height: 28px; background: transparent; color: #ccc; }
.ub-topbar .sm-icons a:hover { background: var(--ub-red); color: #fff; transform: none; }
.ub-topbar .reddit svg { fill: currentColor; }
.ub-topbar .auth-btn, .ub-topbar .auth-dashboard-link, .ub-topbar .auth-logout-btn {
  padding: 2px 10px; font-size: 12px; border-radius: 3px; border-width: 1px; box-shadow: none; transform: none;
}
.ub-topbar .auth-btn-login, .ub-topbar .auth-logout-btn, .ub-topbar .auth-dashboard-link { color: #eee; border-color: #555; background: transparent; }
.ub-topbar .auth-btn-register { background: var(--ub-red); border-color: var(--ub-red); }
.ub-topbar .auth-btn i, .ub-topbar .auth-dashboard-link i, .ub-topbar .auth-logout-btn i { display: none; }

/* ---------- Masthead ---------- */
body > header { position: static; box-shadow: none; border-bottom: 0; }
.header-container { max-width: 1240px; padding: 14px 16px; }
.logo img { height: 60px; border-radius: 4px; }
.logo-text { font-family: var(--ub-font); font-size: 2rem; font-weight: 800; color: var(--ub-red); line-height: 1; margin-left: 12px; display: flex; flex-direction: column; }
.logo-text small { font-size: .85rem; font-weight: 600; color: var(--ub-muted); letter-spacing: .5px; margin-top: 4px; }
.search-form { border-radius: 4px; padding: 0; background: #fff; border: 1px solid #ccc; overflow: hidden; }
.search-form:focus-within { border-color: var(--ub-red); box-shadow: none; }
.search-form input { width: 240px; padding: 9px 12px; font-family: var(--ub-font); font-size: 15px; }
.search-form button { border-radius: 0; padding: 10px 14px; background: var(--ub-red); display: flex; }
.search-form button:hover { background: var(--ub-red-dark); transform: none; }

/* ---------- Category bar (sticky) ---------- */
.navbar { position: sticky; top: 0; z-index: 9999; background: var(--ub-red); border: 0; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.nav-container { max-width: 1240px; padding: 0 16px; }
.nav-menu { gap: 0; padding: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu li a { display: block; color: #fff; font-weight: 600; font-size: 16px; padding: 10px 14px; border-radius: 0; }
.nav-menu li a:hover, .nav-menu li a.active { background: var(--ub-red-dark); color: #fff; }

/* ---------- Homepage ---------- */
.ub-home { max-width: 1240px; padding: 20px 16px; }
.ub-kicker { display: inline-block; color: var(--ub-red); font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.ub-meta { color: var(--ub-muted); font-size: 13px; margin-top: 4px; }
.ub-home h1, .ub-home h2, .ub-home h3 { margin: 0; font-weight: 700; color: var(--ub-ink); }
.ub-home h1 a, .ub-home h2 a, .ub-home h3 a { color: inherit; }
.ub-home h1 a:hover, .ub-home h2 a:hover, .ub-home h3 a:hover { color: var(--ub-red); }
.ub-home img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ub-soft); }

.ub-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ub-ink); margin-bottom: 12px; }
.ub-head h2 { font-size: 20px; line-height: 1.2; padding: 0 0 6px; position: relative; }
.ub-head h2::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ub-red); }
.ub-head > a { color: var(--ub-red); font-size: 14px; font-weight: 600; }

.ub-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--ub-line); margin-bottom: 24px; }
.ub-lead-img { display: block; aspect-ratio: 16/9; overflow: hidden; margin-bottom: 10px; }
.ub-lead-title { font-size: 28px; line-height: 1.3; }
.ub-lead-desc { color: #444; font-size: 16px; line-height: 1.55; margin: 8px 0 0; }

.ub-secondary { display: flex; flex-direction: column; }
.ub-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ub-line); align-items: start; }
.ub-secondary .ub-row:first-child { padding-top: 0; }
.ub-row:last-child { border-bottom: 0; }
.ub-row-img { display: block; aspect-ratio: 16/10; overflow: hidden; }
.ub-row-title { font-size: 16px !important; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ub-row-sm { grid-template-columns: 96px minmax(0, 1fr); padding: 10px 0; }
.ub-row-sm .ub-row-title { font-size: 15px !important; }

.ub-latest { background: var(--ub-soft); padding: 12px 14px; align-self: start; }
.ub-timeline { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; }
.ub-timeline li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px dashed #d4d4d4; font-size: 15px; line-height: 1.4; }
.ub-timeline li:last-child { border-bottom: 0; }
.ub-timeline time { color: var(--ub-red); font-weight: 700; font-size: 13px; padding-top: 1px; }
.ub-timeline a { color: var(--ub-ink); font-weight: 500; }

.ub-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
.ub-section { margin-bottom: 32px; }
.ub-section-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.ub-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; margin-bottom: 8px; }
.ub-card h3 { font-size: 20px; line-height: 1.35; }
.ub-card p { color: #444; font-size: 15px; line-height: 1.5; margin: 6px 0 0; }
.ub-section-list .ub-row-sm:first-child { padding-top: 0; }

.ub-rail { display: flex; flex-direction: column; gap: 28px; }
.ub-ranked { list-style: none; counter-reset: rank; margin: 0; padding: 0; }
.ub-ranked li { counter-increment: rank; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--ub-line); font-size: 16px; line-height: 1.4; font-weight: 600; }
.ub-ranked li:last-child { border-bottom: 0; }
.ub-ranked li::before { content: counter(rank); font-size: 28px; font-weight: 800; color: #c9c9c9; line-height: 1; }
.ub-ranked a { color: var(--ub-ink); }
.ub-follow a { display: block; padding: 10px 12px; margin-bottom: 8px; color: #fff; font-weight: 600; border-radius: 3px; }
.ub-follow a:hover { color: #fff; opacity: .9; }
.ub-follow-yt { background: #e00; }
.ub-follow-fb { background: #1877f2; }
.ub-follow-x { background: #111; }

/* ---------- Flatter cards on listing pages ---------- */
.news-card { border-radius: 0; box-shadow: none; border: 0; border-bottom: 1px solid var(--ub-line); }
.news-card:hover { transform: none; box-shadow: none; }
.news-card:hover .news-card-image img { transform: none; }
.news-card-content { padding: 10px 0 14px; }
.news-card-category { background: none; color: var(--ub-red); padding: 0; border-radius: 0; font-size: 13px; text-transform: none; margin-bottom: 4px; }
.news-card-title { font-size: 18px; line-height: 1.4; }
.section-title { font-family: var(--ub-font); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .ub-top { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .ub-latest { grid-column: 1 / -1; }
  .ub-timeline { max-height: none; columns: 2; column-gap: 24px; }
  .ub-timeline li { break-inside: avoid; }
  .ub-body { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ub-date { display: none; }
  .ub-topbar .sm-icons { display: none; }
  .ub-topbar-inner { justify-content: flex-end; min-height: 32px; }
  .header-container { padding: 10px 16px; }
  .logo img { height: 44px; }
  .logo-text { display: flex; font-size: 1.5rem; margin-left: 10px; }
  .logo-text small { font-size: .75rem; }
  .navbar { display: block; }
  .nav-menu { display: flex; }
  .nav-menu li a { font-size: 15px; padding: 9px 12px; }
  .ub-home { padding: 12px 16px; }
  .ub-top { grid-template-columns: 1fr; gap: 16px; }
  .ub-lead-img { margin: 0 -16px 10px; }
  .ub-lead-title { font-size: 22px; }
  .ub-lead-desc { font-size: 15px; }
  .ub-timeline { columns: 1; }
  .ub-section-grid { grid-template-columns: 1fr; gap: 8px; }
  .ub-row { grid-template-columns: 108px minmax(0, 1fr); }
}

/* ---------- Category pages ---------- */
.ub-crumb { font-size: 14px; color: var(--ub-muted); margin-bottom: 8px; }
.ub-crumb a { color: var(--ub-red); }
.ub-page-head { margin-bottom: 20px; }
.ub-page-head h1 { font-size: 30px; padding-bottom: 6px; position: relative; }
.ub-page-head h1::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ub-red); }
.ub-page-head h1 span { font-size: 15px; font-weight: 500; color: var(--ub-muted); margin-left: 6px; }
.ub-cat-lead { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--ub-line); margin-bottom: 8px; }
.ub-row-wide { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
.ub-row-wide .ub-row-title { font-size: 19px !important; -webkit-line-clamp: 2; }
.ub-row-desc { color: #444; font-size: 15px; line-height: 1.5; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ub-empty { padding: 40px 0; font-size: 17px; }
@media (max-width: 768px) {
  .ub-page-head h1 { font-size: 24px; }
  .ub-cat-lead { grid-template-columns: 1fr; gap: 10px; }
  .ub-row-wide { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
  .ub-row-wide .ub-row-title { font-size: 16px !important; -webkit-line-clamp: 3; }
  .ub-row-desc { display: none; }
}

/* ---------- Article page ---------- */
.ub-article { max-width: 1240px; padding: 16px 16px 32px; }
.ub-article .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin-top: 0; }
.ub-article .article-main { background: none; box-shadow: none; border: 0; padding: 0; border-radius: 0; }
.ub-article .article-content { max-width: 760px; }
.ub-article .article-header { margin: 0 0 16px; padding: 0; border: 0; }
.ub-article .article-title { font-size: 34px; line-height: 1.3; font-weight: 800; color: var(--ub-ink); margin: 0 0 12px; }
.ub-article .article-excerpt { font-size: 19px; line-height: 1.55; color: #333; font-weight: 500; margin: 0 0 14px; font-style: normal; border: 0; padding: 0; background: none; }
.ub-article .article-author { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 14px; color: var(--ub-muted); padding: 10px 0; border-top: 1px solid var(--ub-line); border-bottom: 1px solid var(--ub-line); }
.ub-article .author-name { color: var(--ub-ink); font-weight: 700; }
.ub-article .article-image { margin: 0 0 16px; border-radius: 0; box-shadow: none; height: auto; }
.ub-article .article-image img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 0; display: block; }
.ub-article .article-image figcaption { font-size: 13px; color: var(--ub-muted); padding: 6px 0; border-bottom: 1px solid var(--ub-line); }

.ub-article .share-section { margin: 0 0 20px; padding: 0; background: none; border-radius: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ub-article .share-section h4 { font-size: 15px; margin: 0; color: var(--ub-muted); }
.ub-article .share-buttons { gap: 6px; flex-wrap: wrap; margin: 0; }
.ub-article .share-btn { padding: 6px 12px; font-size: 13px; border-radius: 3px; box-shadow: none; transform: none; }
.ub-article .share-stats { display: none; }

.ub-article .article-body { font-size: 19px; line-height: 1.85; color: #1d1d1d; margin: 0 0 24px; }
.ub-article .article-body p { margin-bottom: 1.1em; }
.ub-article .article-body h2, .ub-article .article-body h3 { font-weight: 700; color: var(--ub-ink); margin: 1.4em 0 .5em; line-height: 1.35; }
.ub-article .article-body figure { border-radius: 0; box-shadow: none; margin: 1.5em 0; }
.ub-article .article-body a { color: var(--ub-red); text-decoration: underline; }
.ub-article .article-body blockquote { border-left: 4px solid var(--ub-red); padding: 4px 0 4px 16px; margin: 1.5em 0; font-size: 20px; font-weight: 600; color: var(--ub-ink); }

.ub-article .related-articles-section { background: none; border: 0; padding: 0; margin-top: 32px; box-shadow: none; border-radius: 0; }
.ub-article .related-articles-title { font-size: 20px; font-weight: 700; border-bottom: 2px solid var(--ub-ink); box-shadow: inset 0 -2px 0 var(--ub-red); padding-bottom: 6px; margin-bottom: 12px; display: block; }
.ub-article .related-articles-grid { gap: 16px; }
.ub-article .related-article-card { border-radius: 0; box-shadow: none; border: 0; }
.ub-article .related-article-card:hover { transform: none; box-shadow: none; }
.ub-article .related-article-content { padding: 8px 0 0; }
.ub-article .related-article-title { font-size: 16px; line-height: 1.4; }
.ub-article .related-article-excerpt { display: none; }
.ub-article .related-article-category { border-radius: 0; }

.ub-article .article-sidebar { gap: 28px; }
.ub-article .ub-head h2 { font-size: 20px; font-weight: 700; margin: 0; color: var(--ub-ink); }
.ub-article .ub-timeline { max-height: none; }
.ub-article .ub-ranked a, .ub-article .ub-timeline a { color: var(--ub-ink); }

@media (max-width: 1080px) {
  .ub-article .article-layout { grid-template-columns: 1fr; }
  .ub-article .article-content { max-width: none; }
}
@media (max-width: 768px) {
  .ub-article { padding: 12px 16px 24px; }
  .ub-article .article-title { font-size: 24px; }
  .ub-article .article-excerpt { font-size: 17px; }
  .ub-article .article-image { margin-left: -16px; margin-right: -16px; }
  .ub-article .article-image figcaption { padding: 6px 16px; }
  .ub-article .article-body { font-size: 18px; line-height: 1.8; }
  .ub-article .share-btn { padding: 6px 10px; }
}
