/* News frontend, new design — built from the new/index.html mockup. The classic design lives in site.css. */

/* ===== Brand colors (from logo) ===== */
:root {
  --red: #9e2224;
  --red-dark: #7f1a1c;
  --navy: #22245d;
  --navy-dark: #181a45;
  --ink: #1d1f33;
  --muted: #6b6f85;
  --line: #e4e5ee;
  --soft: #f4f5f9;
  --white: #fff;
}

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

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Header: logo bar ===== */
.brand-bar {
  background: var(--white);
  border-top: 4px solid var(--red);
}

.brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.logo img { height: 64px; width: auto; }

.brand-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.today {
  font-size: 14px;
  color: var(--muted);
  text-align: right;
}

.search-form { display: flex; }

.search-form input {
  width: 190px;
  padding: 6px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-right: none;
  border-radius: 4px 0 0 4px;
  background: var(--white);
}

.search-form input:focus { outline: none; border-color: var(--navy); }

.search-form button {
  padding: 0 12px;
  font-size: 16px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.search-form button:hover { background: var(--red); border-color: var(--red); }

/* ===== Header: nav bar ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  box-shadow: 0 2px 0 var(--red);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  min-height: 48px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 20px;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 4px;
}

.nav-icon:hover { background: rgba(255,255,255,.12); }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin-left: 6px;
  min-width: 0;
}

.nav-list a {
  display: block;
  padding: 12px 10px;
  font-size: 15px;
  font-weight: 500;
  color: #e8e9f5;
  border-bottom: 3px solid transparent;
}

.nav-list a:hover {
  color: var(--white);
  border-bottom-color: var(--red);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ===== Sections ===== */
.section { margin: 28px 0; }
main > .section:first-child { margin-top: 24px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 16px;
  position: relative;
}

.section-title::before {
  content: "";
  width: 5px;
  height: 22px;
  background: var(--red);
  border-radius: 2px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 80px;
  height: 2px;
  background: var(--navy);
}

.section-title a:hover { color: var(--red); }

/* ===== Grids ===== */
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.cols-2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }

.split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 16px;
}

.split > * { min-width: 0; }

.stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.lead-row { margin-top: 16px; }

/* ===== Card: image on top, headline below ===== */
.card-img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  transition: border-color .15s;
}

.card-img img,
.feature img,
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card:hover .card-img { border-color: var(--navy); }

.card-title {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.cols-5 .card-title { font-size: 15px; }

.card-title a:hover,
.list-title:hover { color: var(--red); }

.meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.teaser {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ===== Feature tile: image with the headline over it ===== */
.feature {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--navy-dark);
  color: var(--white);
}

.feature img {
  /*position: absolute;*/
  inset: 0;
  transition: transform .3s;
}

.feature:hover img { transform: scale(1.03); }

.feature-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 16px 14px;
  background: linear-gradient(transparent, rgba(12, 13, 38, .88));
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.feature-cap p {
  margin-top: 6px;
  font-size: 15px;
  color: #dcdef0;
  line-height: 1.5;
}

.lead { min-height: 380px; }
.lead .feature-cap { padding: 80px 24px 20px; }
.lead .feature-title { font-size: 30px; font-weight: 700; }
.big { min-height: 360px; }
.big .feature-title { font-size: 23px; }

/* ===== Thumbnail list ===== */
.list { margin-top: 12px; }

.list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.list li:last-child { border-bottom: none; }

.thumb {
  display: block;
  width: 80px;
  height: 56px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--soft);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.list-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.split > .list { margin-top: 0; }
.split > .list li:first-child { padding-top: 0; }

/* ===== Article page ===== */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin: 24px 0;
}

.article h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

/* Byline bar: author, publish date, read count, category */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.article-meta .label {
  margin-right: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.article-meta .label::after { content: ":"; }
.article-meta a { color: var(--red); font-weight: 600; }

/* Share buttons */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 18px;
}

.share-label {
  margin-right: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.share-btn {
  padding: 5px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--white);
  background: var(--navy);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.share-btn:hover { opacity: .88; }
.share-btn.fb { background: #1877f2; }
.share-btn.x { background: #111; }
.share-btn.wa { background: #128c4b; }
.share-btn.copy { background: var(--red); }
.share-btn.print { color: var(--ink); background: var(--soft); border: 1px solid var(--line); }

.article-img {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.article-img img { width: 100%; height: auto; }

.article-body {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.9;
  overflow-wrap: break-word;
}

.article-body p { margin-bottom: 16px; }
.article-body h2, .article-body h3, .article-body h4 { margin: 22px 0 10px; color: var(--navy); line-height: 1.4; }
.article-body a { color: var(--red); text-decoration: underline; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body ul { list-style: disc; }
.article-body img { height: auto; margin: 12px 0; border-radius: 6px; }
.article-body figure { max-width: 100% !important; margin: 12px 0; }
.article-body figcaption { font-size: 14px; color: var(--muted); }
.article-body iframe, .article-body video { max-width: 100%; }
.article-body blockquote { margin: 0 0 16px; padding: 8px 16px; border-left: 4px solid var(--red); background: var(--soft); }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.article-tags span { padding: 4px 12px; font-size: 14px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 20px; }

.sidebar { position: sticky; top: 68px; }

/* Archive: pick a date, see that day's news */
.archive-widget { margin-bottom: 28px; }
.archive-form label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.archive-row { display: flex; gap: 8px; }

.archive-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.archive-row input:focus { outline: none; border-color: var(--navy); }

.archive-row button {
  padding: 8px 18px;
  font: inherit;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.archive-row button:hover { background: var(--red); }
.archive-list.cols-2 { gap: 24px 16px; }

.side-cats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.side-cats li:last-child { border-bottom: none; }
.side-cats a:hover { color: var(--red); }
.side-cats span { font-size: 13px; font-weight: 400; color: var(--muted); }

/* ===== Listing pages (category, search) ===== */
.listing { gap: 24px 16px; }

.empty-state {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* ===== Pagination ===== */
.pagination-wrap { margin-top: 28px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }

.pager-nav {
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.pager-nav:hover { color: var(--white); background: var(--navy); border-color: var(--navy); }
.pager-nav.is-disabled { color: var(--muted); opacity: .6; pointer-events: none; }
.pager-nums { display: inline-flex; align-items: center; gap: 4px; margin: 0 4px; }

.pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
}

.pager-num:hover { background: var(--soft); color: var(--red); }
.pager-num.is-current { background: var(--red); color: var(--white); }
.pager-dots { color: var(--muted); }

/* ===== Footer ===== */
.site-footer {
  margin-top: 48px;
  background: var(--soft);
  border-top: 4px solid var(--navy);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  padding: 36px 16px;
  align-items: start;
}

.footer-logo img { height: 70px; width: auto; }

.footer-reg {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.footer-links { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--navy); }
.footer-links a:hover { color: var(--red); }

.footer-info li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.footer-info li:last-child { border-bottom: none; }

.footer-info .label {
  color: var(--navy);
  font-weight: 600;
}

.footer-info .label::after {
  content: " ➤";
  color: var(--red);
  font-size: 12px;
}

.footer-info a:hover { color: var(--red); }

.copyright {
  background: var(--navy);
  color: #d9dbef;
  text-align: center;
  font-size: 14px;
  padding: 12px 16px;
  border-top: 3px solid var(--red);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .cols-5 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .lead .feature-title { font-size: 25px; }
}

@media (max-width: 768px) {
  .cols-2,
  .cols-3,
  .split { grid-template-columns: 1fr; }
  .cols-4,
  .cols-5 { grid-template-columns: repeat(2, 1fr); }
  .lead { min-height: 240px; }
  .lead .feature-cap { padding: 60px 14px 14px; }
  .lead .feature-title { font-size: 20px; }
  .lead .feature-cap p { display: none; }
  .big  { min-height: 240px; }
  .big .feature-title { font-size: 19px; }
  .nav-list { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .nav-list::-webkit-scrollbar { display: none; }
  .logo img { height: 48px; }
  .today { font-size: 13px; }
  .search-form input { width: 140px; }
  .article h1 { font-size: 24px; }
}

@media (max-width: 480px) {
  .cols-4,
  .cols-5 { grid-template-columns: 1fr; }
  .brand-inner { flex-direction: column; gap: 8px; }
  .brand-side { align-items: center; }
  .today { text-align: center; }
  .footer-info li { grid-template-columns: 1fr; gap: 2px; }
}

/* ===== Print: just the article ===== */
@media print {
  .brand-side, .site-header, .share, .sidebar, .site-footer, .article-tags { display: none; }
  .article-layout { display: block; margin: 0; }
  .brand-bar { border-top: none; }
}
