/* =========================================================================
   Newspaper — Main Stylesheet
   Font: Kalpurush (Bangla)
   Reference layout/spacing cues: prothomalo.com, dhakapost.com
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. FONT FACE
   Single Kalpurush family, three declared weight roles:
     700 (bold)     -> main headline / page title
     600 (semibold) -> section & card headings
     400 (regular)  -> body copy, meta, links
   ---------------------------------------------------------------------- */
@font-face {
  font-family: "Kalpurush";
  src: url("../fonts/Kalpurush.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------------------
   2. DESIGN TOKENS
   ---------------------------------------------------------------------- */
:root {
  /* Font */
  --font-bangla: "Kalpurush", "Nirmala UI", "SolaimanLipi", Arial, sans-serif;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Type scale (rem, 1rem = 16px) */
  --fs-headline-xl: 2rem;        /* 32px — lead/hero headline            */
  --fs-headline-lg: 1.5rem;      /* 24px — section lead headline          */
  --fs-headline-md: 1.25rem;     /* 20px — card headline                  */
  --fs-headline-sm: 1.0625rem;   /* 17px — small/list headline            */
  --fs-body: 1rem;               /* 16px — paragraph                      */
  --fs-meta: 0.8125rem;          /* 13px — time, author, tags             */
  --fs-eyebrow: 0.875rem;        /* 14px — category label                 */

  --lh-headline: 1.35;
  --lh-body: 1.7;
  --lh-tight: 1.25;

  /* Colors */
  --np-navy: #124b65;            /* header / footer / brand               */
  --np-navy-dark: #0c3446;       /* hover state on navy                   */
  --np-blue: #00209d;            /* category / subhead link                */
  --np-red: #d21f3c;             /* breaking / live / accent               */
  --np-text: #1a1a1a;            /* primary text                          */
  --np-text-muted: #6c757d;      /* meta / secondary text                 */
  --np-border: #e2e5e9;          /* dividers, card borders                */
  --np-bg: #ffffff;
  --np-bg-soft: #eef1f2;         /* alt section background                */
  --np-link-hover: #d21f3c;

  /* Layout */
  --container-max: 1300px;
  --section-spacing-y: 2rem;
  --card-radius: 4px;
}

/* -------------------------------------------------------------------------
   3. BASE / RESET LAYER
   ---------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-bangla);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--np-text);
  background-color: var(--np-bg);
  -webkit-font-smoothing: antialiased;
}

/* Main header (page-level title, hero headline) — bold */
h1,
.headline-main {
  font-family: var(--font-bangla);
  font-weight: var(--fw-bold);
  line-height: var(--lh-headline);
  color: var(--np-text);
  margin: 0;
}

/* All other headings (section titles, card titles) — semibold */
h2,
h3,
h4,
h5,
h6,
.headline-sub {
  font-family: var(--font-bangla);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-headline);
  color: var(--np-text);
  margin: 0;
}

/* Normal running text */
p {
  font-family: var(--font-bangla);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--np-text);
  margin: 0 0 0.75rem;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--np-text);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}
a:hover,
a:focus {
  color: var(--np-link-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--np-navy);
  color: #fff;
}

/* Reusable weight utility classes (explicit "three type" declaration) */
.fw-bn-bold {
  font-family: var(--font-bangla);
  font-weight: var(--fw-bold) !important;
}
.fw-bn-semibold {
  font-family: var(--font-bangla);
  font-weight: var(--fw-semibold) !important;
}
.fw-bn-regular {
  font-family: var(--font-bangla);
  font-weight: var(--fw-regular) !important;
}

/* -------------------------------------------------------------------------
   4. LAYOUT — container / section / main
   Semantics: main > section > .container (max-width 1300px)
   ---------------------------------------------------------------------- */
main {
  display: block;
  background-color: var(--np-bg);
}

section {
  padding-block: var(--section-spacing-y);
}

section + section {
  border-top: 1px solid var(--np-border);
}

section.bg-soft {
  background-color: transparent;
}

@media (min-width: 1300px) {
  .container {
    max-width: var(--container-max);
  }
}

/* -------------------------------------------------------------------------
   5. SECTION TITLE (খেলা / আন্তর্জাতিক style bar)
   ---------------------------------------------------------------------- */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--np-navy);
}
.section-title h2 {
  font-size: var(--fs-headline-lg);
  font-weight: var(--fw-bold);
  color: var(--np-navy);
  padding-left: 0.75rem;
  border-left: 5px solid var(--np-red);
  line-height: 1;
}
.section-title .section-more {
  font-size: var(--fs-meta);
  font-weight: var(--fw-semibold);
  color: var(--np-navy);
  white-space: nowrap;
}
.section-title .section-more:hover {
  color: var(--np-red);
}

/* -------------------------------------------------------------------------
   6. HEADER / NAVIGATION
   ---------------------------------------------------------------------- */
.site-topbar {
  background-color: var(--np-navy);
  color: #fff;
  font-size: var(--fs-meta);
}
.site-topbar a {
  color: #dce8ee;
}
.site-topbar a:hover {
  color: #fff;
}

.site-header {
  background-color: var(--np-bg);
  border-bottom: 1px solid var(--np-border);
}
.site-header .logo {
  font-size: 1.9rem;
  font-weight: var(--fw-bold);
  color: var(--np-navy);
  letter-spacing: 0.5px;
}
.site-header .logo span {
  color: var(--np-red);
}
.site-header .logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.site-header .header-date {
  font-size: var(--fs-meta);
  color: var(--np-text-muted);
}

.site-nav {
  background-color: var(--np-navy);
}
.site-nav .navbar-nav .nav-link {
  color: #eef3f6;
  font-weight: var(--fw-semibold);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
}
.site-nav .navbar-nav .nav-link:hover,
.site-nav .navbar-nav .nav-link.active {
  color: #fff;
  background-color: var(--np-navy-dark);
}
.site-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}
.site-nav .search-toggle,
.site-nav .icon-btn {
  color: #eef3f6;
  border: none;
  background: transparent;
  font-size: 1.05rem;
}
.site-nav .search-toggle:hover,
.site-nav .icon-btn:hover {
  color: var(--np-red);
}

/* Trending bar */
.trending-bar {
  background-color: var(--np-bg-soft);
  border-bottom: 1px solid var(--np-border);
  font-size: var(--fs-meta);
}
.trending-bar .trending-label {
  background-color: var(--np-red);
  color: #fff;
  font-weight: var(--fw-semibold);
  padding: 0.35rem 0.85rem;
  white-space: nowrap;
}
.trending-bar .trending-items {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}
.trending-bar .trending-items a {
  color: var(--np-text);
  padding: 0.35rem 0.9rem;
  border-right: 1px solid var(--np-border);
  display: inline-block;
}
.trending-bar .trending-items a:hover {
  color: var(--np-red);
}

/* -------------------------------------------------------------------------
   7. NEWS CARDS
   ---------------------------------------------------------------------- */
.news-card {
  margin-bottom: 1.5rem;
}
.news-card .thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
  background-color: var(--np-bg-soft);
  margin-bottom: 0.75rem;
  aspect-ratio: 16 / 9;
}
.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.news-card:hover .thumb img {
  transform: scale(1.06);
}
.news-card .category-tag {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  color: var(--np-blue);
  margin-bottom: 0.35rem;
}
.news-card .category-tag:hover {
  color: var(--np-red);
}
.news-card .card-headline {
  font-size: var(--fs-headline-md);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-headline);
  margin-bottom: 0.4rem;
}
.news-card .card-headline a {
  color: var(--np-text);
}
.news-card .card-headline a:hover {
  color: var(--np-navy);
}
.news-card .card-excerpt {
  font-size: 0.9375rem;
  color: var(--np-text-muted);
  line-height: var(--lh-body);
  margin-bottom: 0.4rem;
}
.news-card .card-meta {
  font-size: var(--fs-meta);
  color: var(--np-text-muted);
}
.news-card .card-meta i {
  margin-right: 0.25rem;
}

/* Lead story (big) */
.news-card.lead .card-headline {
  font-size: var(--fs-headline-xl);
  font-weight: var(--fw-bold);
}

/* Small horizontal list item (sidebar / trending list) */
.news-list-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--np-border);
}
.news-list-item:first-child {
  padding-top: 0;
}
.news-list-item:last-child {
  border-bottom: none;
}
.news-list-item .thumb {
  flex: 0 0 128px;
  width: 128px;
  aspect-ratio: 16 / 9;
  align-self: flex-start;
  border-radius: var(--card-radius);
  overflow: hidden;
  background-color: var(--np-bg-soft);
}
.news-list-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-list-item .headline {
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
}
.news-list-item .index-num {
  flex: 0 0 28px;
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  color: var(--np-border);
  line-height: 1;
}

/* Compact list row without thumb (used in list/tag/author pages) */
.simple-list-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--np-border);
}
.simple-list-item:first-child {
  padding-top: 0;
}

/* -------------------------------------------------------------------------
   8. SIDEBAR WIDGETS
   ---------------------------------------------------------------------- */
.widget {
  margin-bottom: 1.75rem;
  border: 1px solid var(--np-border);
  border-radius: var(--card-radius);
  overflow: hidden;
}
.widget-header {
  background-color: var(--np-navy);
  color: #fff;
  font-size: var(--fs-headline-sm);
  font-weight: var(--fw-bold);
  padding: 0.7rem 1rem;
}
.widget-body {
  padding: 1rem;
  background-color: var(--np-bg);
}
.widget .nav-tabs {
  border-bottom: 1px solid var(--np-border);
}
.widget .nav-tabs .nav-link {
  font-weight: var(--fw-semibold);
  color: var(--np-text-muted);
  border: none;
  border-bottom: 2px solid transparent;
}
.widget .nav-tabs .nav-link.active {
  color: var(--np-navy);
  border-bottom-color: var(--np-red);
  background: none;
}

.ad-slot-top {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--np-bg-soft);
  border: 1px dashed var(--np-border);
  color: var(--np-text-muted);
  font-size: var(--fs-meta);
  min-height: 100px;
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--np-bg-soft);
  border: 1px dashed var(--np-border);
  color: var(--np-text-muted);
  font-size: var(--fs-meta);
  min-height: 100px;
  margin-bottom: 1.5rem;
  border-radius: var(--card-radius);
  overflow: hidden;
}


.ad-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Keeps aspect ratio, fills space, clips overflow */
}

/* Standard IAB ad-unit sizes — pick the class that matches the slot,
   the box itself carries the exact pixel dimensions via aspect-ratio. */

/* Leaderboard: 320x50 (mobile) -> 728x90 (tablet+) -> 1170x90 (desktop) */
.ad-leaderboard {
  width: 320px;
  aspect-ratio: 320 / 50;
  min-height: 0;
  max-width: 100%;
}
@media (min-width: 992px) {
  .ad-leaderboard {
    width: 728px;
    aspect-ratio: 728 / 90;
  }
}
@media (min-width: 1300px) {
  .ad-leaderboard {
    width: 1170px;
    aspect-ratio: 1170 / 90;
  }
}

/* Medium rectangle: 336x280 */
.ad-rectangle {
  width: 336px;
  aspect-ratio: 336 / 280;
  min-height: 0;
  max-width: 100%;
}

/* Half page / large skyscraper: 300x600 */
.ad-skyscraper {
  width: 300px;
  aspect-ratio: 300 / 600;
  min-height: 0;
  max-width: 100%;
}

/* Poll widget */
.poll-widget .form-check-label {
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------------
   9. BREADCRUMB / PAGE HEADER
   ---------------------------------------------------------------------- */
.page-breadcrumb {
  background-color: transparent;
  font-size: var(--fs-meta);
  padding-block: 0.65rem;
}
.page-breadcrumb a {
  color: var(--np-text-muted);
}
.page-breadcrumb a:hover {
  color: var(--np-navy);
}
.page-breadcrumb .active {
  color: var(--np-text);
  font-weight: var(--fw-semibold);
}

.archive-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--np-navy);
}
.archive-header .archive-eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  color: var(--np-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.archive-header h1 {
  font-size: var(--fs-headline-xl);
}
.archive-header .archive-desc {
  color: var(--np-text-muted);
  margin-top: 0.4rem;
}

/* -------------------------------------------------------------------------
   10. PAGINATION
   ---------------------------------------------------------------------- */
.np-pagination .page-link {
  color: var(--np-navy);
  font-weight: var(--fw-semibold);
  border-color: var(--np-border);
}
.np-pagination .page-item.active .page-link {
  background-color: var(--np-navy);
  border-color: var(--np-navy);
}
.np-pagination .page-link:hover {
  color: #fff;
  background-color: var(--np-navy);
  border-color: var(--np-navy);
}

/* -------------------------------------------------------------------------
   11. POST / ARTICLE PAGE
   ---------------------------------------------------------------------- */
.post-header .post-category {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  color: #fff;
  background-color: var(--np-red);
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}
.post-header h1 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}
.post-header .post-subtitle {
  font-size: 1.1rem;
  font-weight: var(--fw-regular);
  color: var(--np-text-muted);
  margin-bottom: 1rem;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-meta);
  color: var(--np-text-muted);
  padding-block: 0.9rem;
  border-top: 1px solid var(--np-border);
  border-bottom: 1px solid var(--np-border);
  margin-bottom: 1.5rem;
}
.post-meta .author-name {
  color: var(--np-text);
  font-weight: var(--fw-semibold);
}
.post-meta .share-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--np-bg-soft);
  color: var(--np-navy);
  margin-left: 0.35rem;
}
.post-meta .share-links a:hover {
  background-color: var(--np-navy);
  color: #fff;
}

.post-figure {
  margin-bottom: 1.5rem;
}
.post-figure img {
  width: 100%;
  border-radius: var(--card-radius);
}
.post-figure figcaption {
  font-size: var(--fs-meta);
  color: var(--np-text-muted);
  padding-top: 0.5rem;
  text-align: center;
}

.post-body {
  font-size: 1.0625rem;
  line-height: var(--lh-body);
}
.post-body p {
  margin-bottom: 1.1rem;
}
.post-body h2,
.post-body h3 {
  margin: 1.75rem 0 0.9rem;
}
.post-body blockquote {
  border-left: 4px solid var(--np-red);
  background-color: var(--np-bg-soft);
  padding: 1rem 1.25rem;
  font-weight: var(--fw-semibold);
  font-size: 1.15rem;
  margin: 1.5rem 0;
}

.post-tags .badge {
  font-weight: var(--fw-regular);
  background-color: var(--np-bg-soft) !important;
  color: var(--np-text) !important;
  border: 1px solid var(--np-border);
  padding: 0.5rem 0.9rem;
  margin: 0 0.4rem 0.4rem 0;
}
.post-tags .badge:hover {
  background-color: var(--np-navy) !important;
  color: #fff !important;
}

.author-box {
  display: flex;
  gap: 1rem;
  background-color: var(--np-bg-soft);
  border-radius: var(--card-radius);
  padding: 1.25rem;
  margin-top: 2rem;
}
.author-box img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.author-box .author-name {
  font-weight: var(--fw-bold);
  margin-bottom: 0.25rem;
}
.author-box p {
  color: var(--np-text-muted);
  font-size: 0.9375rem;
}

.comment-form label {
  font-weight: var(--fw-semibold);
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
   12. VIDEO PAGE
   ---------------------------------------------------------------------- */
.video-player {
  position: relative;
  background-color: #000;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 1rem;
}
.video-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.video-player .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: rgba(210, 31, 60, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.video-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--np-border);
}
.video-card:first-child {
  padding-top: 0;
}
.video-card .thumb {
  position: relative;
  flex: 0 0 140px;
  width: 140px;
  aspect-ratio: 16/9;
  border-radius: var(--card-radius);
  overflow: hidden;
  background-color: var(--np-bg-soft);
}
.video-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card .thumb .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  background: rgba(18, 75, 101, 0.25);
}
.video-card .headline {
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
}
.video-card .duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

.video-grid-card .thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 0.65rem;
  background-color: var(--np-bg-soft);
}
.video-grid-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-grid-card .thumb .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  background: rgba(18, 75, 101, 0.25);
}

/* -------------------------------------------------------------------------
   13. PHOTO GALLERY
   ---------------------------------------------------------------------- */
.photo-grid-item {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 4/3;
  background-color: var(--np-bg-soft);
}
.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.photo-grid-item:hover img {
  transform: scale(1.06);
}
.photo-grid-item .photo-count {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: var(--fs-meta);
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
}
.photo-grid-item .photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 0.9rem 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #fff;
  font-weight: var(--fw-semibold);
  font-size: 0.95rem;
}

/* Photo gallery — 1 big image (2 columns) + 4 small images (other 2 columns, 2x2), all in two rows */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.photo-gallery-grid > .photo-grid-item {
  margin-bottom: 0;
}
.photo-gallery-grid > :first-child {
  grid-column: 1 / -1;
}
@media (min-width: 768px) {
  .photo-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1.5rem;
  }
  .photo-gallery-grid > .photo-grid-item {
    height: 100%;
    aspect-ratio: auto;
  }
  .photo-gallery-grid > :first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
}

/* Lightbox prev/next navigation arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover {
  background: var(--np-red);
  color: #fff;
}
.lightbox-nav.lightbox-prev {
  left: 0.75rem;
}
.lightbox-nav.lightbox-next {
  right: 0.75rem;
}
@media (max-width: 575.98px) {
  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

/* -------------------------------------------------------------------------
   14. SEARCH PAGE
   ---------------------------------------------------------------------- */
.search-hero {
  background-color: var(--np-bg-soft);
  padding-block: 2.5rem;
}
.search-hero .form-control {
  height: 54px;
  font-size: 1.1rem;
  border-color: var(--np-border);
}
.search-hero .btn-search {
  height: 54px;
  background-color: var(--np-navy);
  color: #fff;
  border-color: var(--np-navy);
  padding-inline: 1.5rem;
}
.search-hero .btn-search:hover {
  background-color: var(--np-navy-dark);
}
.search-filters .btn {
  font-size: 0.85rem;
  border-color: var(--np-border);
  color: var(--np-text-muted);
}
.search-filters .btn.active,
.search-filters .btn:hover {
  background-color: var(--np-navy);
  color: #fff;
  border-color: var(--np-navy);
}
.search-result-count {
  font-size: 0.9rem;
  color: var(--np-text-muted);
  margin-bottom: 1.25rem;
}
.search-result-count strong {
  color: var(--np-text);
}
mark {
  background-color: #fff2ac;
  padding: 0 0.1rem;
}

/* -------------------------------------------------------------------------
   15. GENERAL / STATIC CONTENT PAGES (About, Terms, Contact...)
   ---------------------------------------------------------------------- */
.page-hero {
  background-color: var(--np-navy);
  color: #fff;
  padding-block: 2.5rem;
  text-align: center;
}
.page-hero h1 {
  color: #fff;
  font-size: var(--fs-headline-xl);
}
.page-hero p {
  color: #d7e4ea;
  margin-top: 0.5rem;
}

.static-content h2 {
  font-size: 1.25rem;
  color: var(--np-navy);
  margin: 1.75rem 0 0.85rem;
}
.static-content h2:first-child {
  margin-top: 0;
}
.static-content p,
.static-content li {
  color: var(--np-text);
  line-height: var(--lh-body);
}
.static-content ul,
.static-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.static-content li {
  margin-bottom: 0.4rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-info-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--np-bg-soft);
  color: var(--np-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  font-size: 1.1rem;
}
.contact-info-item h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.contact-info-item p {
  color: var(--np-text-muted);
  font-size: 0.9375rem;
}

.team-card {
  text-align: center;
  margin-bottom: 1.5rem;
}
.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.85rem;
}
.team-card h3 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}
.team-card .role {
  font-size: 0.85rem;
  color: var(--np-text-muted);
}

/* -------------------------------------------------------------------------
   16. 404 PAGE
   ---------------------------------------------------------------------- */
.error-page {
  text-align: center;
  padding-block: 4rem;
}
.error-page .error-code {
  font-size: 7rem;
  font-weight: var(--fw-bold);
  color: var(--np-navy);
  line-height: 1;
}
.error-page .error-code span {
  color: var(--np-red);
}
.error-page h1 {
  font-size: var(--fs-headline-lg);
  margin: 1rem 0 0.6rem;
}
.error-page p {
  color: var(--np-text-muted);
  max-width: 480px;
  margin-inline: auto;
}
.error-page .btn-home {
  background-color: var(--np-navy);
  color: #fff;
  border: none;
  padding: 0.65rem 1.75rem;
  border-radius: 3px;
  font-weight: var(--fw-semibold);
  margin-top: 1.5rem;
  display: inline-block;
}
.error-page .btn-home:hover {
  background-color: var(--np-navy-dark);
  color: #fff;
}

/* -------------------------------------------------------------------------
   17. FOOTER
   ---------------------------------------------------------------------- */
.site-footer {
  background-color: var(--np-navy);
  color: #cfe0e7;
  padding-block: 3rem 1.25rem;
  font-size: 0.9rem;
}
.site-footer p {
  color: #b6b5b5;
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.site-footer a {
  color: #cfe0e7;
}
.site-footer a:hover {
  color: #fff;
}
.site-footer .footer-logo {
  font-size: 1.6rem;
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: 0.75rem;
}
.site-footer .footer-logo span {
  color: var(--np-red);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer ul li {
  margin-bottom: 0.6rem;
}
.site-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-right: 0.5rem;
}
.site-footer .social-links a:hover {
  background-color: var(--np-red);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.825rem;
  color: #9db9c4;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--np-navy);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 1030;
}
.back-to-top.show {
  display: flex;
}
.back-to-top:hover {
  background-color: var(--np-red);
}

/* -------------------------------------------------------------------------
   17b. সারাদেশ — division map / district finder (like dhakapost.com/country-map)
   ---------------------------------------------------------------------- */
.division-map-panel {
  background-color: transparent;
  padding: 0;
}
.bd-map-wrap {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--np-border);
  border-radius: var(--card-radius);
  background-color: #fff;
}
.bd-map-svg {
  cursor: grab;
  width: 100%;
  height: auto;
  display: block;
}
.bd-map-svg.is-panning {
  cursor: grabbing;
}
.bd-map-zoom-controls {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.bd-map-zoom-controls button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--np-border);
  background-color: #fff;
  color: var(--np-navy);
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.bd-map-zoom-controls button:hover {
  background-color: var(--np-navy);
  color: #fff;
}
.bd-map-zoom-controls button[data-zoom-action="reset"] {
  font-size: 0.95rem;
}
.bd-district-group path {
  stroke: #fff;
  stroke-width: 1.25;
  transition: filter 0.15s ease, opacity 0.15s ease;
}
.bd-district-group {
  cursor: pointer;
}
.bd-district-group:hover path {
  filter: brightness(1.18);
}
.bd-district-group:focus-visible path {
  outline: 2px solid var(--np-navy);
}
.bd-map-wrap.has-active .bd-district-group {
  opacity: 0.3;
}
.bd-map-wrap.has-active .bd-district-group.active {
  opacity: 1;
}
.bd-map-wrap.has-active .bd-district-group.active path {
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.35));
}
.bd-district-label {
  font-family: var(--font-bangla);
  font-weight: var(--fw-semibold);
  font-size: 13px;
  fill: #16324a;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2.5px;
}
.division-districts-hint {
  color: var(--np-text-muted);
  font-size: var(--fs-meta);
}

/* Upazila-level map */
.bd-upazila-group path {
  stroke: #fff;
  stroke-width: 0.75;
  transition: filter 0.15s ease, opacity 0.15s ease;
}
.bd-upazila-group {
  cursor: pointer;
}
.bd-upazila-group:hover path {
  filter: brightness(1.2);
}
.bd-map-wrap.has-active .bd-upazila-group {
  opacity: 0.3;
}
.bd-map-wrap.has-active .bd-upazila-group.active {
  opacity: 1;
}
.bd-map-wrap.has-active .bd-upazila-group.active path {
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.35));
}
.bd-upazila-label {
  font-family: var(--font-bangla);
  font-size: 5.5px;
  fill: #16324a;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1.5px;
}

/* Map-level toggle (জেলা / উপজেলা) */
.bd-map-toggle {
  display: inline-flex;
  gap: 0.4rem;
  background-color: var(--np-bg);
  border: 1px solid var(--np-border);
  border-radius: 999px;
  padding: 0.25rem;
  margin-bottom: 1rem;
}
.bd-map-toggle button {
  border: none;
  background: none;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-bangla);
  font-weight: var(--fw-semibold);
  font-size: 0.9rem;
  color: var(--np-text-muted);
  cursor: pointer;
}
.bd-map-toggle button.active {
  background-color: var(--np-navy);
  color: #fff;
}

/* -------------------------------------------------------------------------
   18. RESPONSIVE ADJUSTMENTS
   ---------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .site-header .logo {
    font-size: 1.5rem;
  }
  .site-header .logo-img {
    height: 32px;
  }
  .news-card.lead .card-headline {
    font-size: 1.5rem;
  }
  .post-header h1 {
    font-size: 1.4rem;
  }
}

@media (max-width: 575.98px) {
  :root {
    --section-spacing-y: 1.5rem;
  }
  .news-list-item .thumb {
    flex-basis: 76px;
    width: 76px;
  }
  .error-page .error-code {
    font-size: 4.5rem;
  }
}
