/* ================================================================
   Anas Bangla — newspaper portal presentation layer
   Built for the dynamic PHP templates; no third-party theme assets.
   ================================================================ */

@font-face {
  font-family: 'SolaimanLipiNormal';
  src: url('../fonts/solaiman-lipi.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --news-red: #d33b35;
  --news-red-dark: #9a1515;
  --news-red-deep: #7d0909;
  --news-navy: #00192f;
  --news-teal: #003d43;
  --news-mint: #5bc4ad;
  --news-blue-pale: #e7f0f7;
  --news-gray-pale: #f5f5f5;
  --news-card-gray: #f1f1f1;
  --news-border: #dedede;
  --news-footer: #3b3b3b;
  --news-text: #090909;
  --news-muted: #656565;
  --news-shell: 1324px;
  --news-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

.news-body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--news-text);
  font-family: 'SolaimanLipiNormal', 'SolaimanLipi', Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.42;
}

.news-body :where(h1,h2,h3,h4,h5,h6,p,a,span,strong,small,label,button,input,textarea,select,li,figcaption,time) {
  font-family: 'SolaimanLipiNormal', 'SolaimanLipi', Arial, sans-serif;
}

.news-body *,
.news-body *::before,
.news-body *::after {
  box-sizing: border-box;
}

.news-body a {
  color: inherit;
  text-decoration: none;
}

.news-body img {
  display: block;
  max-width: 100%;
}

.news-body button,
.news-body input {
  font: inherit;
}

.news-body .hidden {
  display: none !important;
}

.news-shell {
  width: calc(100% - 24px);
  max-width: var(--news-shell);
  margin-inline: auto;
}

.news-body .rounded-xl,
.news-body .rounded-lg {
  border-radius: 3px !important;
}

/* ------------------------------ Header ------------------------------ */

.news-header {
  display: contents;
}

.news-header__brand {
  padding: 20px 0;
  background: #fff;
}

.news-header__grid {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(230px, 313px) minmax(360px, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.news-logo {
  display: block;
  width: 100%;
  max-width: 313px;
}

.news-logo img {
  width: 100%;
  height: 88px;
  object-fit: contain;
}

.news-header__date {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.news-header__date-line {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}

.news-header__date-line svg {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  flex: 0 0 auto;
  fill: var(--news-red-dark);
}

.news-header__social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.social {
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff !important;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s ease, filter .25s ease;
}

.social:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.social--inactive {
  cursor: default;
}

.social--inactive:hover {
  transform: none;
  filter: none;
}

.social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social--facebook { background: #3b5998; }
.social--twitter { background: #ce3434; }
.social--instagram { background: #25b8d7; }
.social--linkedin { background: #19769a; font-size: 13px; }
.social--youtube { background: linear-gradient(135deg, #db263d, #c72193, #7852c7); }
.social--rss { background: #c7c7c7; }
.social--theme { background: #a6a6a6; }

.news-header__mobile-actions {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mobile-epaper {
  color: var(--news-red-dark) !important;
  font-weight: 700;
  white-space: nowrap;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--news-red-dark);
  padding: 7px;
  cursor: pointer;
}

.icon-button svg,
.nav-more svg,
.nav-search svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.news-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 85;
  background: var(--news-red);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .3);
}

.news-nav {
  min-height: 52px;
  display: flex;
  align-items: stretch;
}

.news-menu {
  min-width: 0;
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-menu > li {
  position: relative;
  display: flex;
}

.news-menu > li > a {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 12px;
  border-right: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
  white-space: nowrap;
  transition: background .2s ease;
}

.news-menu > li:first-child > a {
  border-left: 1px solid rgba(255, 255, 255, .18);
}

.news-menu > li:hover > a,
.news-menu > li:focus-within > a {
  background: var(--news-red-dark);
}

.menu-caret {
  font-size: 10px;
  opacity: .85;
}

.news-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  display: none;
  min-width: 210px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

.has-submenu:hover .news-submenu,
.has-submenu:focus-within .news-submenu {
  display: block;
}

.news-submenu a {
  display: block;
  padding: 9px 14px;
  color: #111;
  font-size: 16px;
  white-space: nowrap;
}

.news-submenu a:hover {
  background: #f2f2f2;
  color: var(--news-red-dark);
}

.news-nav__tools {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.nav-more,
.nav-search {
  width: 58px;
  min-height: 52px;
  border: 0;
  background: rgba(133, 0, 0, .24);
  color: #fff;
  padding: 14px 17px;
  cursor: pointer;
}

.nav-search {
  width: 42px;
  padding: 15px 9px;
  background: #fff;
  color: var(--news-red-dark);
}

.epaper-link {
  min-width: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  background: #fff;
  color: #191919 !important;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.news-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: min(72vh, 560px);
  overflow-y: auto;
  background: var(--news-navy);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .28);
}

.news-drawer.hidden {
  display: none;
}

.news-drawer__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 12px 0;
}

.news-drawer a {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 16px;
}

.news-drawer a:hover {
  background: rgba(255, 255, 255, .08);
}

.news-drawer__sub {
  color: #cbd5e1 !important;
  font-size: 14px !important;
}

.news-search {
  background: var(--news-navy);
  padding: 10px 0;
}

.news-search.hidden {
  display: none;
}

.news-search__inner {
  display: flex;
  gap: 8px;
}

.news-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff;
  padding: 9px 14px !important;
  color: #111;
  outline: none;
}

.news-search button {
  min-width: 94px;
  border: 0;
  border-radius: 0 !important;
  background: var(--news-red-dark);
  color: #fff;
  padding: 8px 18px;
  cursor: pointer;
}

.headline-strip {
  padding: 10px 0;
  background: #fff;
  box-shadow: none;
}

.headline-strip__inner {
  min-height: 42px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #f0f0f0;
}

.headline-strip__label {
  min-width: 145px;
  display: flex;
  align-items: center;
  padding: 9px 20px 9px 10px;
  background: #a82626;
  color: #fff;
  font-size: 17px;
  line-height: 24px;
  white-space: nowrap;
}

.headline-strip__viewport {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.headline-strip__track {
  width: max-content;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding-left: 16px;
  font-size: 17px;
  white-space: nowrap;
  animation: reference-headline 56s linear infinite;
}

.headline-strip__track:hover {
  animation-play-state: paused;
}

.headline-strip__track a:hover {
  color: var(--news-red-dark);
}

.headline-strip__track a span {
  color: var(--news-red-dark);
}

@keyframes reference-headline {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------- Homepage lead ---------------------------- */

.newspaper-home {
  background: #fff;
}

.lead-section {
  margin: 0 0 10px;
  padding: 20px 0;
  background: var(--news-gray-pale);
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 24px;
}

.lead-content {
  min-width: 0;
}

.lead-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
  gap: 24px;
}

.lead-stack {
  display: grid;
  align-content: start;
  gap: 10px;
}

.lead-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 0 2px #cfcfcf;
}

.lead-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e7e7e7;
}

.lead-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}

.lead-card:hover .lead-card__image img:not(.image-fallback) {
  transform: scale(1.07);
}

.image-fallback {
  object-fit: contain !important;
  padding: 12px;
  background: #fff;
}

.lead-card--main .lead-card__image {
  height: 325px;
}

.lead-card--main .lead-card__body {
  min-height: 99px;
  padding: 7px 8px 0;
}

.lead-card--main h1 {
  margin: 0 0 5px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.22;
}

.lead-card--main p {
  margin: 0;
  color: #111;
  font-size: 18px;
  line-height: 1.35;
  text-align: justify;
}

.read-more {
  color: #1c5c9f !important;
}

.lead-card--stacked .lead-card__image,
.lead-card--small .lead-card__image {
  height: 155px;
}

.lead-card--stacked .lead-card__body,
.lead-card--small .lead-card__body {
  padding: 5px 8px 2px;
}

.lead-card--stacked h2,
.lead-card--small h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.28;
}

.lead-card--stacked .lead-card__body {
  min-height: 70px;
}

.lead-card--small .lead-card__body {
  min-height: 62px;
}

.news-date {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2px 7px 8px;
  color: #383838;
  font-size: 14px;
}

.news-date span {
  border-right: 3px solid var(--news-red-dark);
  padding-right: 6px;
}

.lead-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 24px;
  margin-top: 10px;
}

.lead-sidebar {
  min-width: 0;
}

.spotlight-box {
  overflow: hidden;
  background: var(--news-mint);
}

.spotlight-box > h2 {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 7px 12px;
  background: var(--news-red-dark);
  color: #fff;
  font-family: 'SolaimanLipiNormal', 'SolaimanLipi', Arial, sans-serif;
  font-size: 28px;
  font-weight: 500;
}

.spotlight-box__list {
  padding: 10px;
}

.spotlight-item {
  min-height: 80px;
  display: grid;
  grid-template-columns: 32% minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .8);
  color: #fff !important;
  font-size: 18px;
  line-height: 1.2;
}

.spotlight-item:last-child {
  border-bottom: 0;
}

.spotlight-item img {
  width: 100%;
  height: 75px;
  object-fit: cover;
}

.spotlight-more {
  display: block;
  padding: 8px 13px 13px;
  color: #fff !important;
  text-align: right;
}

.home-tabs {
  margin-top: 10px;
  background: #fff;
}

.home-tabs__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.home-tab-btn {
  min-height: 49px;
  border: 0;
  border-radius: 0 !important;
  background: #202020;
  color: #fff;
  padding: 10px 7px;
  font-size: 20px;
  cursor: pointer;
}

.home-tab-btn.is-active {
  background: var(--news-red-dark);
}

.home-tab-panel {
  max-height: 500px;
  overflow-y: auto;
  padding: 2px 8px 4px;
  scrollbar-width: thin;
  scrollbar-color: #aaa #eee;
}

.home-tab-panel[hidden] {
  display: none;
}

.home-tab-item {
  position: relative;
  min-height: 88px;
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 6px 0 8px 16px;
  border-bottom: 1px dotted #8a8888;
  font-size: 17px;
  line-height: 1.2;
}

.home-tab-item img {
  width: 100%;
  height: 75px;
  object-fit: cover;
}

.home-tab-item__number {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 2;
  width: 29px;
  height: 29px;
  transform: translate(-3px, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.archive-widget {
  margin-top: 10px;
}

.archive-widget h2 {
  margin: 0 0 9px;
  border-left: 5px solid var(--news-teal);
  background: #e8edf1;
  padding: 7px 8px;
  font-size: 22px;
  font-weight: 500;
}

.archive-widget form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
}

.archive-widget input {
  min-width: 0;
  height: 41px;
  margin: 0 !important;
  border: 1px solid #ddd !important;
  border-radius: 0 !important;
  padding: 6px 9px !important;
}

.archive-widget button {
  border: 0;
  border-radius: 0 !important;
  background: var(--news-teal);
  color: #fff;
  padding: 6px 14px;
  cursor: pointer;
}

.advertisement {
  margin: 10px 0;
  overflow: hidden;
  background: #f3f3f3;
  text-align: center;
}

.advertisement img {
  width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.home-ad-slot:has(.advertisement) {
  padding: 10px 0 20px;
}

.home-ad-slot > .advertisement {
  max-height: 265px;
}

.home-ad-slot > .advertisement img {
  max-height: 245px;
}

/* -------------------------- Category showcases ------------------------- */

.category-showcases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 24px;
  padding: 20px 0 42px;
}

.category-showcase {
  min-width: 0;
}

.category-showcase--wide {
  grid-column: 1 / -1;
}

.category-ribbon {
  position: relative;
  min-height: 42px;
  margin-bottom: 7px;
  overflow: hidden;
  background: var(--news-blue-pale);
}

.category-ribbon a {
  position: relative;
  z-index: 1;
  min-width: 104px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 7px 20px 7px 12px;
  background: #073452;
  color: #fff !important;
  font-size: 20px;
  white-space: nowrap;
}

.category-ribbon a::after {
  content: '';
  position: absolute;
  top: 0;
  right: -18px;
  width: 36px;
  height: 100%;
  background: #073452;
  transform: skewX(-20deg);
  transform-origin: top;
  z-index: -1;
}

.category-wide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.category-card,
.category-feature {
  overflow: hidden;
  background: var(--news-card-gray);
}

.category-card__image,
.category-feature__image {
  display: block;
  overflow: hidden;
  background: #ddd;
}

.category-card__image {
  height: 177px;
}

.category-card__image img,
.category-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s ease;
}

.category-card:hover img:not(.image-fallback),
.category-feature:hover img:not(.image-fallback) {
  transform: scale(1.06);
}

.category-card h2,
.category-feature h2 {
  margin: 0;
  padding: 7px 8px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
}

.category-card h2 {
  min-height: 83px;
}

.category-card__date {
  min-height: 35px;
  border-top: 1px solid #ddd;
  padding: 7px 8px;
  color: #4c4c4c;
  font-size: 14px;
}

.category-module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.category-feature__image {
  height: 240px;
}

.category-feature h2 {
  min-height: 70px;
}

.category-compact-list {
  min-width: 0;
}

.category-compact-item {
  min-height: 77px;
  display: grid;
  grid-template-columns: 31% minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 0 0 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid #eee;
}

.category-compact-item img {
  width: 100%;
  height: 75px;
  border: 1px solid #ddd;
  object-fit: cover;
}

.category-compact-item > span {
  min-width: 0;
}

.category-compact-item strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.18;
}

.category-compact-item small {
  display: block;
  margin-top: 4px;
  color: var(--news-muted);
  font-size: 12px;
}

.category-more {
  display: block;
  margin-top: 6px;
  padding: 7px 10px;
  border: 1px solid #e0e0e0;
  color: #4d8a3f !important;
  font-size: 15px;
  text-align: right;
}

.home-empty-state {
  grid-column: 1 / -1;
  background: var(--news-gray-pale);
  padding: 30px;
  text-align: center;
}

.home-utilities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 0 0 46px;
}

.utility-box {
  min-width: 0;
  border: 1px solid #ddd;
  background: #fff;
  padding: 12px;
}

.utility-box h2 {
  margin: -12px -12px 12px;
  border-left: 5px solid var(--news-teal);
  background: #e8edf1;
  padding: 8px 9px;
  font-size: 20px;
  font-weight: 500;
}

.utility-box p {
  margin: 0 0 14px;
  font-size: 16px;
}

.utility-list a {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 7px;
  padding: 7px 0;
  border-bottom: 1px dotted #aaa;
  font-size: 15px;
  line-height: 1.25;
}

.utility-list b {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--news-red-dark);
  color: #fff;
  font-size: 12px;
}

.utility-action {
  display: inline-block;
  background: var(--news-red-dark);
  color: #fff !important;
  padding: 7px 14px;
  font-size: 14px;
}

.utility-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.utility-tags a {
  border: 1px solid #d8d8d8;
  padding: 4px 8px;
  font-size: 13px;
}

/* ------------------------ Other public page polish ----------------------- */

.news-body:not(.page-index) > .max-w-7xl,
.news-body:not(.page-index) main.max-w-7xl {
  max-width: var(--news-shell) !important;
}

.page-category > .max-w-7xl,
.page-archive > .max-w-7xl,
.page-search > .max-w-7xl,
.page-news > .max-w-7xl,
.page-trending > .max-w-7xl,
.page-tag > .max-w-7xl,
.page-author > .max-w-7xl {
  background: #fff;
}

.page-category .grid > a,
.page-archive .grid > a,
.page-search .grid > a,
.page-news .grid > a,
.page-trending .grid > a,
.page-tag .grid > a {
  border-radius: 0 !important;
  background: var(--news-card-gray) !important;
}

.page-single main > article {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.page-single main > article > h1 {
  color: #111;
  font-family: 'SolaimanLipiNormal', 'SolaimanLipi', Arial, sans-serif;
}

.page-single .prose-article {
  color: #171717;
  font-family: 'SolaimanLipiNormal', 'SolaimanLipi', Arial, sans-serif;
}

.page-single > .max-w-7xl {
  background: #eef3f4;
  max-width: var(--news-shell) !important;
  padding-top: 18px !important;
}

.article-breadcrumb {
  min-height: 46px;
  align-items: center;
  margin-bottom: 20px !important;
  background: #fff;
  padding: 10px 12px;
  color: #202020 !important;
  font-size: 17px !important;
}

.article-reference-grid {
  display: grid !important;
  grid-template-columns: 200px minmax(0, 3fr) minmax(280px, 1.2fr) !important;
  align-items: start;
  gap: 24px !important;
}

.article-left-sidebar {
  min-width: 0;
  background: #fff;
  padding: 10px;
}

.article-left-sidebar > h2 {
  margin: 0 0 10px;
  border-bottom: 1px solid #e7e7e7;
  padding-bottom: 7px;
  font-size: 18px;
  font-weight: 500;
}

.article-left-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.article-left-tags a {
  max-width: 100%;
  border: 1px solid #e54d55;
  border-radius: 20px;
  padding: 3px 10px;
  color: #d83e48 !important;
  font-size: 14px;
  line-height: 1.2;
}

.article-left-sidebar .advertisement {
  margin-top: 14px;
}

.article-right-sidebar {
  min-width: 0;
}

.page-single .article-right-sidebar > div {
  border-radius: 0 !important;
}

.page-single .article-right-sidebar .tab-btn {
  min-height: 48px;
  border-radius: 0 !important;
  background: #dedede !important;
  color: #00192f !important;
  font-size: 17px !important;
}

.page-single .article-right-sidebar .tab-btn.bg-slate-900 {
  border-top: 3px solid var(--news-navy);
  background: #fff !important;
  color: #111 !important;
}

.page-single .article-right-sidebar .tab-panel {
  max-height: 425px;
  overflow-y: auto;
  padding: 2px 10px !important;
}

.page-single .article-right-sidebar .tab-panel > div {
  min-height: 88px;
  align-items: center;
  gap: 7px !important;
}

.page-single .article-right-sidebar .tab-panel img {
  width: 38% !important;
  height: 75px !important;
  border-radius: 0 !important;
  object-fit: cover;
}

.page-single .article-right-sidebar .tab-panel h4 {
  font-size: 16px !important;
  font-weight: 500 !important;
}

.page-single .article-right-sidebar .tab-panel > div > span:first-child {
  display: none !important;
}

/* ------------------------------ Footer ------------------------------ */

.newspaper-footer {
  margin-top: 58px;
  background: var(--news-footer);
  color: #ededed;
}

.footer-gateway {
  min-height: 135px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #292929;
  padding: 28px 0 14px;
}

.footer-gateway__brand > .footer-gateway__logo {
  width: 100%;
  max-width: 420px;
  height: 82px;
  object-fit: contain;
  background: #fff;
}

.footer-gateway > a {
  color: #f3f3f3 !important;
  font-size: 19px;
  text-align: center;
}

.footer-gateway > a:hover {
  color: #ffb4ae !important;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 18px 0 25px;
}

.footer-column h2 {
  position: relative;
  margin: 0 0 20px;
  border-bottom: 1px solid #232323;
  padding: 0 0 11px;
  font-size: 21px;
  font-weight: 500;
}

.footer-column h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 45px;
  height: 3px;
  background: #b40000;
}

.footer-column p {
  margin: 0 0 3px;
  color: #f2f2f2;
  font-size: 16px;
  line-height: 1.34;
}

.footer-column strong {
  font-weight: 600;
}

.footer-link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.footer-link-chips a {
  border: 1px solid #262626;
  padding: 6px 7px;
  color: #eee !important;
  font-size: 16px;
  transition: border-color .2s ease, color .2s ease;
}

.footer-link-chips a:hover {
  border-color: #777;
  color: #fff !important;
}

.footer-bottom {
  border-top: 1px solid #242424;
  background: #353535;
  padding: 0;
  color: inherit;
  font-size: inherit;
  text-align: initial;
}

.footer-bottom__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
}

.footer-bottom p {
  margin: 0;
  color: #eee;
  font-size: 14px;
}

#backToTop.reference-back-top {
  position: fixed;
  right: 26px;
  bottom: 48px;
  z-index: 95;
  width: 60px;
  height: 60px;
  border: 3px solid #a20909;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  background: #d30d0d;
  color: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .32);
  transition: opacity .2s ease;
}

#backToTop.reference-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

#backToTop.reference-back-top svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-home-quick-add {
  position: fixed;
  right: 98px;
  bottom: 48px;
  z-index: 96;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  border-radius: 50% !important;
  background: #d30d0d;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(137, 9, 9, .36);
  text-decoration: none !important;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.admin-home-quick-add:hover,
.admin-home-quick-add:focus-visible {
  background: #a20909;
  box-shadow: 0 11px 28px rgba(137, 9, 9, .44);
  transform: translateY(-2px);
}

.admin-home-quick-add:focus-visible {
  outline: 3px solid rgba(211, 13, 13, .3);
  outline-offset: 3px;
}

.admin-home-quick-add svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.reference-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--notice-bottom, 0);
  z-index: 90;
  min-height: 34px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: rgba(46, 46, 46, .94);
  color: #fff;
  font-size: 16px;
}

.reference-notice__label {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  background: #a40000;
  padding: 5px 10px;
}

.reference-notice__viewport {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.reference-notice__track {
  width: max-content;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding-left: 100%;
  white-space: nowrap;
  animation: reference-notice 35s linear infinite;
}

@keyframes reference-notice {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.reference-mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 92;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #ddd;
  background: #fff;
  padding-bottom: var(--news-safe-bottom);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, .08);
}

.reference-mobile-nav a,
.reference-mobile-nav button {
  min-height: 58px;
  border: 0;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: #fff;
  color: #666;
  font-size: 10px;
}

.reference-mobile-nav .is-active {
  color: var(--news-red-dark);
}

.reference-mobile-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: #111827;
  color: #f1f5f9;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, .25);
}

.cookie-consent.hidden {
  display: none;
}

.cookie-consent__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}

.cookie-consent p {
  flex: 1;
  margin: 0;
  font-size: 15px;
}

.cookie-consent p a {
  color: #ff8c85;
  text-decoration: underline;
}

.cookie-consent button {
  border: 0;
  border-radius: 0 !important;
  background: var(--news-red-dark);
  color: #fff;
  padding: 9px 18px;
  white-space: nowrap;
}

/* ------------------------------ Dark mode ------------------------------ */

html.dark .news-body,
html.dark .newspaper-home,
html.dark .news-header,
html.dark .news-header__brand,
html.dark .headline-strip {
  background: #111827;
  color: #e5e7eb;
}

html.dark .lead-section {
  background: #172033;
}

html.dark .lead-card,
html.dark .home-tabs,
html.dark .utility-box,
html.dark .news-submenu {
  background: #1f2937;
  color: #f3f4f6;
}

html.dark .headline-strip__inner,
html.dark .category-ribbon,
html.dark .archive-widget h2,
html.dark .utility-box h2 {
  background: #243247;
}

html.dark .category-card,
html.dark .category-feature {
  background: #1f2937;
}

html.dark .news-body .text-slate-800,
html.dark .news-body .text-slate-700,
html.dark .news-body .text-slate-600,
html.dark .page-single .prose-article,
html.dark .page-single main > article > h1 {
  color: #e5e7eb !important;
}

/* ------------------------------- Tablet ------------------------------- */

@media (max-width: 1180px) {
  .news-header__grid {
    grid-template-columns: 260px minmax(300px, 1fr) auto;
    gap: 18px;
  }

  .news-logo img {
    height: 76px;
  }

  .news-header__date-line,
  .news-menu > li > a {
    font-size: 15px;
  }

  .news-menu > li > a {
    padding-inline: 8px;
  }

  .social {
    width: 34px;
    height: 34px;
  }

  .lead-layout {
    grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
  }

  .lead-top-grid,
  .lead-secondary-grid,
  .lead-layout,
  .category-wide-grid,
  .category-module-grid,
  .category-showcases,
  .home-utilities {
    column-gap: 16px;
  }

  .lead-card--main .lead-card__image { height: 280px; }
  .lead-card--stacked .lead-card__image,
  .lead-card--small .lead-card__image { height: 130px; }
  .category-card__image { height: 150px; }
  .category-feature__image { height: 210px; }
  .category-compact-item img { height: 68px; }

  .article-reference-grid {
    grid-template-columns: 170px minmax(0, 3fr) minmax(250px, 1.1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 991px) {
  .news-header__brand {
    padding: 10px 0 6px;
    border-bottom: 1px solid #eee;
  }

  .news-header__grid {
    min-height: 72px;
    grid-template-columns: minmax(160px, 1fr) auto;
    gap: 8px 14px;
  }

  .news-logo {
    max-width: 250px;
  }

  .news-logo img {
    height: 64px;
    object-position: left center;
  }

  .news-header__social {
    display: none;
  }

  .news-header__mobile-actions {
    display: flex;
  }

  .news-header__date {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid #eee;
    padding: 5px 0 2px;
  }

  .news-header__date-line {
    font-size: 14px;
  }

  .news-nav-wrap {
    position: relative;
    background: transparent;
    box-shadow: none;
  }

  .news-nav {
    display: none;
  }

  .news-drawer {
    position: relative;
    top: auto;
  }

  .news-drawer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .headline-strip {
    padding: 6px 0 8px;
  }

  .lead-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 14px;
  }

  .home-tabs {
    margin-top: 0;
  }

  .archive-widget,
  .lead-sidebar > .advertisement {
    grid-column: 1 / -1;
  }

  .category-showcases {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-showcase--wide {
    grid-column: auto;
  }

  .category-wide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }

  .home-utilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-gateway {
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 12px;
  }

  .footer-gateway > a {
    font-size: 16px;
  }

  .article-reference-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .article-left-sidebar {
    display: none;
  }
}

/* ------------------------------- Mobile ------------------------------- */

@media (max-width: 767px) {
  .news-body {
    font-size: 16px;
    padding-bottom: 92px;
  }

  .news-shell {
    width: calc(100% - 20px);
  }

  .news-header__grid {
    min-height: 58px;
  }

  .news-logo {
    max-width: 210px;
  }

  .news-logo img {
    height: 56px;
  }

  .news-header__date-line svg:first-child,
  .news-header__date-line > span:first-of-type {
    display: none;
  }

  .news-header__date-line {
    line-height: 1.25;
  }

  .news-drawer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .headline-strip__label {
    min-width: 108px;
    padding: 7px 8px;
    font-size: 15px;
  }

  .headline-strip__inner,
  .headline-strip__track {
    min-height: 38px;
  }

  .headline-strip__track {
    gap: 26px;
    font-size: 15px;
  }

  .lead-section {
    padding: 10px 0;
  }

  .lead-top-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .lead-card--main .lead-card__image {
    height: 185px;
  }

  .lead-card--main .lead-card__body {
    min-height: 0;
  }

  .lead-card--main h1 {
    font-size: 20px;
    line-height: 1.2;
  }

  .lead-card--main p {
    display: none;
  }

  .lead-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .lead-card--stacked .lead-card__image,
  .lead-card--small .lead-card__image {
    height: 100px;
  }

  .lead-card--stacked .lead-card__body,
  .lead-card--small .lead-card__body {
    min-height: 58px;
    padding: 5px 5px 2px;
  }

  .lead-card--stacked h2,
  .lead-card--small h2 {
    font-size: 16px;
    line-height: 1.15;
  }

  .news-date {
    min-height: 29px;
    padding: 3px 5px 6px;
    font-size: 11px;
  }

  .lead-secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .lead-sidebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .archive-widget,
  .lead-sidebar > .advertisement {
    grid-column: auto;
  }

  .spotlight-box > h2 {
    min-height: 46px;
    font-size: 23px;
  }

  .spotlight-item {
    grid-template-columns: 34% minmax(0, 1fr);
    font-size: 16px;
  }

  .home-tab-btn {
    min-height: 43px;
    font-size: 17px;
  }

  .home-tab-panel {
    max-height: 490px;
  }

  .home-tab-item {
    grid-template-columns: 35% minmax(0, 1fr);
    min-height: 78px;
    font-size: 15px;
  }

  .home-tab-item img {
    height: 64px;
  }

  .category-showcases {
    gap: 28px;
    padding-top: 12px;
  }

  .category-ribbon a {
    font-size: 18px;
  }

  .category-wide-grid {
    gap: 10px;
  }

  .category-card__image {
    height: 100px;
  }

  .category-card h2 {
    min-height: 58px;
    padding: 5px;
    font-size: 16px;
    line-height: 1.18;
  }

  .category-card__date {
    min-height: 28px;
    padding: 5px;
    font-size: 11px;
  }

  .category-module-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .category-feature__image {
    height: 185px;
  }

  .category-feature h2 {
    min-height: 0;
    font-size: 19px;
  }

  .category-compact-item {
    grid-template-columns: 33% minmax(0, 1fr);
  }

  .category-compact-item img {
    height: 64px;
  }

  .category-compact-item strong {
    font-size: 15px;
  }

  .home-utilities {
    grid-template-columns: minmax(0, 1fr);
  }

  .newspaper-footer {
    margin-top: 34px;
  }

  .footer-gateway {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 20px 0;
  }

  .footer-gateway__brand {
    grid-column: 1 / -1;
  }

  .footer-gateway__brand > .footer-gateway__logo {
    max-width: 100%;
    height: 70px;
  }

  .footer-gateway > a {
    border: 1px solid #2b2b2b;
    padding: 8px 5px;
    font-size: 14px;
  }

  .footer-gateway > a:last-child {
    grid-column: 1 / -1;
  }

  .footer-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom__inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  #backToTop.reference-back-top {
    right: 14px;
    bottom: 100px;
    width: 50px;
    height: 50px;
  }

  .admin-home-quick-add {
    right: 76px;
    bottom: 100px;
    width: 50px;
    height: 50px;
  }

  .admin-home-quick-add svg {
    width: 26px;
    height: 26px;
  }

  .reference-notice {
    bottom: calc(58px + var(--news-safe-bottom));
    font-size: 13px;
  }

  .reference-mobile-nav {
    display: grid;
  }

  .cookie-consent__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding: 12px 0;
  }

  .cookie-consent button {
    align-self: flex-start;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .lead-card--main .lead-card__image,
  .category-feature__image {
    height: 260px;
  }

  .lead-card--stacked .lead-card__image,
  .lead-card--small .lead-card__image,
  .category-card__image {
    height: 130px;
  }

  .home-tab-item img,
  .spotlight-item img,
  .category-compact-item img {
    height: 78px;
  }
}

@media (max-width: 479px) {
  .news-header__brand {
    padding-top: 6px;
  }

  .news-logo {
    max-width: 46vw;
  }

  .news-logo img {
    height: 50px;
  }

  .news-header__mobile-actions {
    gap: 3px;
  }

  .mobile-epaper {
    font-size: 14px;
  }

  .icon-button {
    width: 32px;
    height: 32px;
    padding: 6px;
  }

  .news-header__date-line {
    font-size: 12px;
  }

  .news-drawer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .headline-strip__label {
    min-width: 98px;
    font-size: 13px;
  }

  .headline-strip__track {
    font-size: 14px;
  }

  .category-wide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =====================================================================
   Reference inner pages — category, archive, search, media and editorial
   ===================================================================== */

.reference-page {
  padding-block: 14px 38px;
}

.reference-breadcrumb {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  border-bottom: 2px solid #9f1b20;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, .10);
  color: #1f1f1f;
  font-size: 18px;
}

.reference-breadcrumb svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: #c83c42;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.reference-breadcrumb b {
  color: #606b70;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.reference-breadcrumb a:hover {
  color: var(--news-red-dark) !important;
}

.reference-section-heading {
  position: relative;
  margin: 0 0 18px;
  border-bottom: 1px solid #cfcfcf;
  padding: 0 0 10px 14px;
  color: #242424;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.25;
}

.reference-section-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 10px;
  width: 4px;
  background: #a51d20;
}

.reference-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(320px, 1fr);
  align-items: start;
  gap: 24px;
}

.reference-listing-main {
  min-width: 0;
}

.reference-empty {
  margin: 18px 0;
  border-left: 4px solid var(--news-red);
  padding: 14px 16px;
  background: #f3f3f3;
  color: #555;
  font-size: 16px;
}

.reference-category-pills,
.reference-archive-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -5px 0 18px;
}

.reference-category-pills a,
.reference-archive-days a {
  border: 1px solid #dadada;
  border-radius: 20px;
  padding: 6px 13px;
  background: #fff;
  color: #333 !important;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.reference-category-pills a:hover,
.reference-archive-days a:hover,
.reference-category-pills a.is-active,
.reference-archive-days a.is-active {
  border-color: var(--news-red-dark);
  background: var(--news-red-dark);
  color: #fff !important;
}

.reference-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.reference-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 14px;
}

.reference-search-grid,
.reference-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 16px 22px;
}

.reference-result-summary {
  margin: -7px 0 18px;
  color: #555;
  font-size: 16px;
}

.reference-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .15);
  transition: transform .2s ease, box-shadow .2s ease;
}

.reference-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
}

.reference-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e8eeeb;
}

.reference-card__image img {
  width: 100%;
  height: 158px;
  object-fit: contain;
  transition: transform .35s ease;
}

.reference-card:hover .reference-card__image img:not(.image-fallback) {
  transform: scale(1.035);
}

.reference-card__image img.image-fallback {
  object-fit: contain;
  background: linear-gradient(100deg, #e7efe9, #fff 50%, #f4dada);
}

.reference-card__date {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: 100%;
  padding: 4px 8px;
  background: rgba(42, 42, 42, .76);
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
}

.reference-card__body {
  min-height: 78px;
  border-top: 1px solid #ededed;
  padding: 8px 9px 10px;
}

.reference-card h2 {
  margin: 0;
  color: #111;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.24;
}

.reference-card h2 a:hover {
  color: var(--news-red-dark) !important;
}

.reference-card__body p {
  margin: 8px 0 0;
  color: #333;
  font-size: 16px;
  line-height: 1.42;
}

.reference-card__more {
  display: inline-block;
  margin-top: 7px;
  background: var(--news-navy);
  padding: 4px 9px;
  color: #fff !important;
  font-size: 13px;
}

.reference-card--feature {
  grid-column: span 2;
  grid-row: span 2;
}

.reference-card--feature .reference-card__image img {
  height: 286px;
}

.reference-card--feature .reference-card__body {
  min-height: 126px;
}

.reference-card--feature h2 {
  font-size: 25px;
  line-height: 1.22;
}

.reference-search-grid .reference-card__image img {
  height: 148px;
}

.reference-search-grid .reference-card__body {
  min-height: 82px;
}

.reference-search-grid .reference-card h2 {
  font-size: 20px;
  line-height: 1.25;
}

/* Latest / popular sidebar */

.reference-sidebar {
  min-width: 0;
  overflow: hidden;
  background: #fff;
}

.reference-tabs__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reference-tabs__buttons button {
  min-height: 48px;
  border: 0;
  border-radius: 0 !important;
  background: #dedede;
  color: #071b31;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
}

.reference-tabs__buttons button.is-active {
  border-top: 3px solid #001b31;
  background: #fff;
  color: #111;
}

.reference-tabs__panel {
  max-height: 425px;
  overflow-y: auto;
  padding: 0 12px;
  scrollbar-color: #7b7b7b #f1f1f1;
  scrollbar-width: thin;
}

.reference-tabs__panel.hidden {
  display: none;
}

.reference-tab-news {
  position: relative;
  min-height: 94px;
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #e6e6e6;
  padding: 9px 0;
}

.reference-tab-news__image img {
  width: 100%;
  height: 76px;
  object-fit: cover;
}

.reference-tab-news__number {
  position: absolute;
  left: -10px;
  top: 50%;
  width: 29px;
  height: 29px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  background: #070707;
  color: #fff;
  font-size: 13px;
}

.reference-tab-news h3 {
  margin: 0;
  color: #111;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.reference-tab-news h3 a:hover {
  color: var(--news-red-dark) !important;
}

/* Archive, author and pagination */

.reference-archive-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0 0 18px;
  border-left: 4px solid var(--news-red-dark);
  padding: 14px 16px;
  background: #efefef;
}

.reference-archive-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 600;
}

.reference-archive-form input,
.reference-archive-form button {
  min-height: 40px;
  border: 1px solid #c8c8c8;
  border-radius: 0 !important;
  padding: 7px 12px;
  background: #fff;
  color: #222;
  font-size: 14px;
}

.reference-archive-form button {
  border-color: var(--news-red-dark);
  background: var(--news-red-dark);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.reference-author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  border-left: 5px solid var(--news-red-dark);
  padding: 17px 20px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .10);
}

.reference-author-card > span {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--news-red-dark);
  color: #fff;
  font-size: 25px;
  font-weight: 700;
}

.reference-author-card h1,
.reference-author-card p {
  margin: 0;
}

.reference-author-card h1 {
  font-size: 24px;
}

.reference-author-card p {
  margin-top: 3px;
  color: #686868;
  font-size: 15px;
}

.reference-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 30px 0 12px;
}

.reference-pagination__link {
  min-width: 49px;
  height: 40px;
  border: 1px solid #e4e4e4;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -5px;
  padding: 0 12px;
  background: #fff;
  color: #10162a !important;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .12);
  font-size: 14px;
}

.reference-pagination__link:hover,
.reference-pagination__link.is-active {
  z-index: 2;
  border-color: #061026;
  background: #061026;
  color: #fff !important;
}

.reference-pagination__ellipsis {
  padding: 0 9px;
  color: #777;
}

/* Media pages */

.reference-media-card {
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 9px rgba(0, 0, 0, .15);
}

.reference-media-card__visual {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: #e6e6e6;
}

.reference-media-card__visual img,
.reference-media-card__visual iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.reference-media-card__visual > span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, .86);
  color: #1f2d37;
  font-size: 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}

.reference-media-card h2 {
  min-height: 64px;
  margin: 0;
  padding: 7px 9px 9px;
  color: #161616;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
}

/* Editorial and form pages */

.reference-editorial-page {
  padding-top: 0;
}

.reference-editorial-page .reference-breadcrumb {
  margin-top: 14px;
  border-bottom: 0;
  border-left: 4px solid #a72328;
  background: #ededed;
  box-shadow: none;
}

.reference-editorial {
  background: #fff;
  padding: 0 0 32px;
  color: #202020;
}

.reference-editorial > h1 {
  margin: 0 0 12px;
  border-top: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
  padding: 17px 12px;
  color: #d10c0c;
  text-align: center;
  font-family: 'SolaimanLipiNormal', 'SolaimanLipi', Arial, sans-serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.25;
}

.reference-editorial h2 {
  margin: 28px 0 8px;
  font-family: 'SolaimanLipiNormal', 'SolaimanLipi', Arial, sans-serif;
  font-size: 29px;
  font-weight: 600;
}

.reference-editorial p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.7;
}

.reference-updated {
  font-size: 15px !important;
}

.reference-editorial__intro img {
  display: none;
}

.reference-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.reference-stat-grid > div {
  border-top: 3px solid var(--news-red-dark);
  padding: 16px;
  background: #f1f1f1;
  text-align: center;
}

.reference-stat-grid span,
.reference-stat-grid small {
  display: block;
}

.reference-stat-grid span {
  color: var(--news-red-dark);
  font-size: 29px;
  font-weight: 700;
}

.reference-team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #d8d8d8;
}

.reference-team-list p {
  margin: 0;
  padding: 9px 12px;
  background: #f7f7f7;
  font-size: 16px;
  line-height: 1.4;
}

.reference-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  align-items: start;
  gap: 34px;
  margin-top: 26px;
}

.reference-contact-lines p {
  margin-bottom: 7px;
  font-size: 16px;
}

.reference-form-card {
  border-top: 4px solid var(--news-red-dark);
  padding: 22px;
  background: #f1f1f1;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .10);
}

.reference-form-card h1,
.reference-form-card h2 {
  margin: 0 0 15px;
  font-size: 24px;
  font-weight: 600;
}

.reference-form-card > p {
  font-size: 16px;
}

.reference-form {
  display: grid;
  gap: 11px;
}

.reference-form input:not([type="hidden"]),
.reference-form textarea,
.reference-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9c9c9;
  border-radius: 0 !important;
  padding: 9px 12px;
  background: #fff;
  color: #111;
  outline: none;
  font-size: 15px;
}

.reference-form textarea {
  min-height: 130px;
  resize: vertical;
}

.reference-form input:focus,
.reference-form textarea:focus,
.reference-form select:focus {
  border-color: var(--news-red-dark);
  box-shadow: 0 0 0 2px rgba(180, 35, 29, .10);
}

.reference-form button,
.reference-poll-form button,
.reference-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--news-red-dark);
  border-radius: 0 !important;
  padding: 8px 18px;
  background: var(--news-red-dark);
  color: #fff !important;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.reference-button--outline {
  background: #fff;
  color: var(--news-red-dark) !important;
}

.reference-form-success,
.reference-form-error {
  margin: 0 0 12px !important;
  border-left: 4px solid #1b8d47;
  padding: 10px 12px;
  background: #e9f7ee;
  color: #176f3a;
  font-size: 14px !important;
}

.reference-form-error {
  border-color: #c92727;
  background: #fff0f0;
  color: #a81818;
}

.reference-data-request {
  max-width: 520px;
  margin-top: 24px;
}

.reference-page--feature {
  min-height: 420px;
}

.reference-page--feature > .reference-form-card {
  width: min(100%, 620px);
  margin-inline: auto;
}

.reference-poll-form {
  display: grid;
  gap: 10px;
}

.reference-poll-form label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d1d1d1;
  padding: 11px 12px;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
}

.reference-poll-form input {
  accent-color: var(--news-red-dark);
}

/* Podcast, live blog, e-paper and photocard */

.reference-audio-list {
  width: min(100%, 900px);
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.reference-audio-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 17px;
  border-left: 4px solid var(--news-red-dark);
  padding: 15px;
  background: #f2f2f2;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .10);
}

.reference-audio-card > img,
.reference-audio-card__icon {
  width: 112px;
  height: 112px;
  object-fit: cover;
}

.reference-audio-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--news-red-dark);
  color: #fff;
}

.reference-audio-card__icon svg {
  width: 45px;
  height: 45px;
}

.reference-audio-card__heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.reference-audio-card h2,
.reference-audio-card p {
  margin: 0;
}

.reference-audio-card h2 {
  font-size: 21px;
}

.reference-audio-card p,
.reference-audio-card small,
.reference-audio-card__heading span {
  color: #666;
  font-size: 14px;
}

.reference-audio-card audio {
  width: 100%;
  height: 40px;
  margin-top: 10px;
}

.reference-live-page {
  width: min(calc(100% - 24px), 920px);
}

.reference-live-status span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: #666;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.reference-live-status span.is-live {
  background: #c91414;
}

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

@keyframes live-pulse {
  50% { opacity: .35; }
}

.reference-live-title {
  margin: 12px 0 22px;
  font-family: 'SolaimanLipiNormal', 'SolaimanLipi', Arial, sans-serif;
  font-size: 34px;
  line-height: 1.25;
}

.reference-live-updates {
  display: grid;
  gap: 13px;
}

.reference-live-update {
  border-left: 4px solid var(--news-red-dark);
  padding: 14px 16px;
  background: #f3f3f3;
}

.reference-live-update > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #777;
  font-size: 12px;
}

.reference-live-update p {
  margin: 7px 0 0;
  font-size: 16px;
}

.page-epaper .epaper-viewer {
  max-width: 980px;
  margin: 20px auto 0;
  text-align: center;
}

.page-epaper .epaper-page {
  padding: 12px;
  background: #ededed;
}

.page-epaper .epaper-page img {
  max-height: 1000px;
  margin-inline: auto;
  object-fit: contain;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}

.page-epaper .epaper-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.page-epaper .page-link,
.page-epaper .epaper-page-indicator {
  border: 1px solid #d0d0d0;
  padding: 7px 12px;
  background: #fff;
  font-size: 14px;
}

.page-epaper .page-link.disabled {
  opacity: .45;
  pointer-events: none;
}

.reference-photocard-page .photocard-wrap {
  width: min(100%, 720px);
  margin-inline: auto;
}

.reference-photocard-page canvas {
  width: 100%;
  height: auto;
  box-shadow: 0 3px 18px rgba(0, 0, 0, .22);
}

.reference-photocard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* Single article details */

.page-single .article-category-pill,
.page-single .article-toolbar--top {
  display: none !important;
}

.page-single .reference-article {
  border: 0 !important;
  padding: 14px 9px 20px !important;
  background: #fff !important;
}

.page-single .reference-article > h1 {
  margin: 0 0 14px;
  color: #0b0b0b;
  font-family: 'SolaimanLipiNormal', 'SolaimanLipi', Arial, sans-serif;
  font-size: 34px !important;
  font-weight: 700;
  line-height: 1.25;
}

.page-single .article-deck {
  margin: -3px 0 14px !important;
  color: #555 !important;
  font-size: 18px;
  line-height: 1.45;
}

.page-single .reference-article > .flex.items-center {
  min-height: 58px;
  margin-bottom: 12px !important;
  padding-bottom: 9px !important;
}

.page-single .reference-article > .flex.items-center > span {
  width: 50px !important;
  height: 50px !important;
  border-radius: 0 !important;
  background: #586067 !important;
}

.article-featured-media {
  margin: 0 0 14px !important;
}

.article-featured-media img {
  width: 100%;
  max-height: 560px !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
}

.article-follow-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 13px 0 7px;
  border: 1px solid #3289db;
  border-radius: 18px;
  padding: 5px 12px;
  background: #f7fafc;
  color: #2d86d4;
  text-align: center;
  font-size: 15px;
  line-height: 1.25;
}

.article-follow-banner strong {
  color: #e34c4c;
  font-weight: 500;
}

.article-print-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 4px;
  padding: 3px 7px;
  background: #1b9c6c;
  color: #fff !important;
  font-size: 14px;
  line-height: 1.3;
}

.page-single .article-copy {
  color: #1c1c1c;
  font-family: 'SolaimanLipiNormal', 'SolaimanLipi', Arial, sans-serif;
  font-size: 18.5px !important;
  line-height: 1.72 !important;
}

.page-single .article-copy p {
  margin: 0 0 16px;
}

.article-inline-tags a {
  border: 1px solid #d9545a;
  border-radius: 20px !important;
  background: #fff !important;
  color: #c83b43 !important;
}

.page-single .article-inline-tags,
.page-single .article-author-box,
.page-single main > nav.grid {
  display: none !important;
}

.article-share-block {
  margin-top: 20px;
  border-top: 1px solid #e4e4e4;
  padding-top: 8px;
}

.article-share-block h2 {
  margin: 0 0 9px;
  font-size: 24px;
  font-weight: 500;
}

.article-share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-share-buttons a,
.article-share-buttons button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff !important;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.share-facebook { background: #4164a3; }
.share-twitter { background: #22a8df; }
.share-whatsapp { background: #198a65; }
.share-copy { background: #2978a7; }

.site-action-toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 9999;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .24);
  font: 600 14px/1.35 'SolaimanLipiNormal', 'SolaimanLipi', Arial, sans-serif;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}
.site-action-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.site-action-toast.is-error { background: #b91c1c; }
.share-print { background: #6c7f80; }

.article-author-box {
  border-left: 4px solid var(--news-red-dark);
  border-radius: 0 !important;
  background: #f1f1f1 !important;
}

.article-related-heading {
  width: max-content;
  max-width: 100%;
  margin-top: 20px;
  padding: 8px 20px 8px 12px;
  background: #06213a;
  color: #fff;
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
  font-size: 18px;
  font-weight: 500;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 8px 0 26px;
}

.article-related-card {
  min-height: 104px;
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 7px rgba(0, 0, 0, .12);
}

.article-related-card img {
  width: 100%;
  height: 104px;
  object-fit: cover;
}

.article-related-card > span {
  padding: 8px 6px 6px 0;
}

.article-related-card strong,
.article-related-card small {
  display: block;
}

.article-related-card strong {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.article-related-card small {
  margin-top: 5px;
  color: #777;
  font-size: 11px;
}

.page-single #comments {
  border-bottom: 1px solid #d6d6d6;
  padding-bottom: 8px;
  font-size: 22px;
}

/* 404 */

.reference-404 {
  padding-block: 60px;
  text-align: center;
}

.reference-404__number {
  color: var(--news-red-dark);
  font-size: 92px;
  font-weight: 800;
  line-height: 1;
}

.reference-404 h1 {
  margin: 12px 0 5px;
  font-size: 28px;
}

.reference-404 > p {
  color: #666;
}

.reference-404__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 45px;
}

.reference-404__popular {
  text-align: left;
}

/* Footer gateway refinements matching the reference hierarchy */

.footer-gateway__brand {
  height: 84px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 5px 7px;
  background: #fff;
}

.footer-gateway__brand > .footer-gateway__logo {
  min-width: 0;
  width: 100%;
  max-width: none;
  height: 72px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.footer-gateway__seal {
  width: 56px;
  height: 56px;
  border: 2px solid #1f6f3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b71920;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.footer-gateway__qr {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  justify-self: end;
  align-self: center;
  overflow: hidden;
  padding: 2px;
  border: 1px solid #d7d7d7;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.footer-gateway__qr > img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.footer-credit {
  flex: 0 0 auto;
  text-align: right;
}

/* ----------------------- Inner-page responsive rules ---------------------- */

@media (max-width: 1180px) {
  .reference-page-grid {
    grid-template-columns: minmax(0, 2fr) minmax(290px, .9fr);
    gap: 18px;
  }

  .reference-category-grid,
  .reference-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-card--feature {
    grid-column: span 2;
  }

  .reference-search-grid,
  .reference-media-grid {
    gap: 14px;
  }

  .reference-search-grid .reference-card h2,
  .reference-media-card h2 {
    font-size: 17px;
  }
}

@media (max-width: 991px) {
  .reference-page-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reference-page-grid > .reference-sidebar {
    display: none;
  }

  .reference-search-grid,
  .reference-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reference-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-gateway__brand {
    grid-template-columns: 48px minmax(0, 1fr) 44px;
  }

  .footer-gateway__seal,
  .footer-gateway__qr {
    width: 44px;
    height: 44px;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .reference-page {
    padding-top: 10px;
  }

  .reference-breadcrumb {
    min-height: 42px;
    margin-bottom: 14px;
    padding: 7px 9px;
    font-size: 15px;
  }

  .reference-breadcrumb svg {
    width: 17px;
    height: 17px;
  }

  .reference-section-heading {
    font-size: 20px;
  }

  .reference-category-grid,
  .reference-list-grid,
  .reference-search-grid,
  .reference-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .reference-card--feature {
    grid-column: span 2;
  }

  .reference-card__image img,
  .reference-search-grid .reference-card__image img {
    height: 112px;
  }

  .reference-card--feature .reference-card__image img {
    height: 220px;
  }

  .reference-card__body,
  .reference-search-grid .reference-card__body {
    min-height: 68px;
    padding: 6px;
  }

  .reference-card h2,
  .reference-search-grid .reference-card h2 {
    font-size: 16px;
    line-height: 1.2;
  }

  .reference-card--feature h2 {
    font-size: 20px;
  }

  .reference-card--feature .reference-card__body {
    min-height: 0;
  }

  .reference-card--feature .reference-card__body p {
    display: none;
  }

  .reference-card__date {
    padding: 3px 5px;
    font-size: 10px;
  }

  .reference-media-card__visual {
    height: 112px;
  }

  .reference-media-card h2 {
    min-height: 57px;
    padding: 6px;
    font-size: 15px;
  }

  .reference-editorial > h1 {
    font-size: 29px;
  }

  .reference-editorial h2 {
    font-size: 24px;
  }

  .reference-editorial p {
    font-size: 16px;
  }

  .reference-stat-grid,
  .reference-team-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .reference-form-card {
    padding: 17px;
  }

  .reference-audio-card {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 11px;
    padding: 10px;
  }

  .reference-audio-card > img,
  .reference-audio-card__icon {
    width: 84px;
    height: 84px;
  }

  .reference-audio-card h2 {
    font-size: 17px;
  }

  .page-single .reference-article {
    padding: 10px 8px 18px !important;
  }

  .page-single .reference-article > h1 {
    font-size: 27px !important;
  }

  .page-single .article-copy {
    font-size: 17px !important;
    line-height: 1.7 !important;
  }

  .article-related-grid {
    gap: 10px;
  }

  .article-related-card {
    grid-template-columns: 38% minmax(0, 1fr);
    min-height: 82px;
  }

  .article-related-card img {
    height: 82px;
  }

  .article-related-card strong {
    font-size: 14px;
  }

  .footer-gateway__brand {
    grid-column: 1 / -1;
    grid-template-columns: 50px minmax(0, 1fr) 48px;
    height: 78px;
  }

  .footer-gateway__brand > .footer-gateway__logo {
    min-width: 0;
    height: 66px;
  }

  .footer-gateway__qr {
    width: 46px;
    height: 46px;
  }

  .footer-gateway__qr > img {
    width: 100%;
    height: 100%;
  }

  .footer-bottom__inner {
    min-height: 96px;
  }

  .footer-credit {
    text-align: center;
  }
}

@media (max-width: 479px) {
  .footer-gateway__brand {
    grid-template-columns: 42px minmax(0, 1fr) 44px;
    gap: 4px;
    height: 74px;
    padding: 4px 6px;
  }

  .footer-gateway__brand > .footer-gateway__logo {
    height: 62px;
  }

  .footer-gateway__seal {
    width: 40px;
    height: 40px;
  }

  .footer-gateway__qr {
    width: 42px;
    height: 42px;
  }

  .reference-card--feature .reference-card__image img {
    height: 185px;
  }

  .reference-category-pills,
  .reference-archive-days {
    gap: 5px;
  }

  .reference-category-pills a,
  .reference-archive-days a {
    padding: 5px 9px;
    font-size: 12px;
  }

  .reference-archive-form {
    align-items: stretch;
    flex-direction: column;
  }

  .reference-archive-form input,
  .reference-archive-form button {
    width: 100%;
  }

  .article-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reference-404__actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ---------------------------------------------------------------------
   Homepage category sections — screenshot-matched ribbon/lead/list block
   --------------------------------------------------------------------- */

.reference-category-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 32px 24px;
  padding-top: 24px;
  padding-bottom: 46px;
}

.reference-category-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  background: #fff;
  box-shadow: 0 4px 12px rgba(22, 46, 64, .14);
}

.reference-category-section__header {
  min-height: 54px;
  overflow: hidden;
  border-bottom: 1px solid #d7e5ef;
  background: #eaf4fa;
}

.reference-category-section__header h2 {
  margin: 0;
}

.reference-category-section__title {
  width: max-content;
  max-width: calc(100% - 24px);
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 48px 8px 18px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%);
  background: #063756;
  color: #fff !important;
  font-family: 'SolaimanLipiNormal', 'SolaimanLipi', Arial, sans-serif;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.15;
}

.reference-category-section__title svg {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  fill: currentColor;
}

.reference-category-lead {
  margin: 10px 10px 0;
  background: #fff;
}

.reference-category-lead__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dbe4e9;
}

.reference-category-lead__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .55s ease;
}

.reference-category-lead:hover .reference-category-lead__image img:not(.image-fallback) {
  transform: scale(1.035);
}

.reference-category-lead h3 {
  margin: 0;
  padding: 12px 10px 13px;
  border-bottom: 1px dashed #d8d8d8;
  font-family: 'SolaimanLipiNormal', 'SolaimanLipi', Arial, sans-serif;
  font-size: clamp(22px, 2.15vw, 30px);
  font-weight: 500;
  line-height: 1.23;
}

.reference-category-lead h3 a:hover,
.reference-category-list__item:hover {
  color: var(--news-red) !important;
}

.reference-category-list {
  margin: 0 10px;
}

.reference-category-list__item {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding: 10px 8px 10px 4px;
  border-bottom: 1px dashed #d8d8d8;
  font-family: 'SolaimanLipiNormal', 'SolaimanLipi', Arial, sans-serif;
  font-size: clamp(18px, 1.75vw, 24px);
  font-weight: 500;
  line-height: 1.25;
  transition: color .2s ease, padding-left .2s ease;
}

.reference-category-list__item:hover {
  padding-left: 9px;
}

.reference-category-list__arrow {
  align-self: start;
  padding-top: 2px;
  color: #101010;
  font-family: Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
}

.reference-category-section__more {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: #fbfbfb;
  color: #111 !important;
  font-family: 'SolaimanLipiNormal', 'SolaimanLipi', Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, .06);
}

.reference-category-section__more b {
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: .8;
  transition: transform .2s ease;
}

.reference-category-section__more:hover {
  color: var(--news-red) !important;
}

.reference-category-section__more:hover b {
  transform: translateX(4px);
}

html.dark .reference-category-section,
html.dark .reference-category-lead {
  border-color: #334155;
  background: #0f172a;
}

html.dark .reference-category-section__header {
  border-color: #334155;
  background: #182a3b;
}

html.dark .reference-category-lead h3,
html.dark .reference-category-list__item {
  border-color: #334155;
}

html.dark .reference-category-list__arrow {
  color: #e2e8f0;
}

html.dark .reference-category-section__more {
  background: #111c2e;
  color: #f8fafc !important;
}

.article-source-note {
  margin-top: 24px !important;
  padding: 14px 16px;
  border-left: 4px solid var(--news-red);
  background: #f3f6f8;
  color: #45515b;
  font-size: .92em;
}

.article-source-note a {
  color: var(--news-red) !important;
  font-weight: 700;
  text-decoration: underline;
}

html.dark .article-source-note {
  background: #182334;
  color: #cbd5e1;
}

/* -------------------- Bangladesh location news -------------------- */

.bd-news-section {
  margin-top: 30px;
  margin-bottom: 36px;
  overflow: hidden;
  border: 1px solid #cfe5f2;
  border-radius: 16px;
  background: #f7fcff;
  box-shadow: 0 15px 38px rgba(14, 89, 126, .08);
}

.bd-news-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 28px;
  border-bottom: 1px solid #d7eaf4;
  background: linear-gradient(120deg, #e9f8ff 0%, #f8fdff 64%, #dff4ff 100%);
}

.bd-news-section__eyebrow,
.location-filter-hero__copy > span {
  display: inline-block;
  margin-bottom: 3px;
  color: #0878ad;
  font-size: 15px;
  font-weight: 700;
}

.bd-news-section__header h2 {
  margin: 0;
  color: #062d46;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.bd-news-section__header p {
  max-width: 515px;
  margin: 0;
  color: #3f6275;
  font-size: 18px;
  line-height: 1.45;
}

.bd-news-layout {
  display: grid;
  grid-template-columns: minmax(390px, .92fr) minmax(430px, 1.08fr);
  min-height: 670px;
}

.bd-map-panel {
  display: grid;
  place-items: center;
  padding: 26px;
  border-right: 1px solid #d7eaf4;
  background:
    radial-gradient(circle at 50% 42%, rgba(79, 190, 236, .17), transparent 48%),
    linear-gradient(155deg, #f3fbff, #e7f6fd);
}

.bd-map-stage {
  position: relative;
  width: min(100%, 450px);
  aspect-ratio: 1550 / 2149;
}

.bd-map-object,
.bd-map-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 12px 13px rgba(4, 62, 92, .14));
}

.bd-map-svg #text { display: none; }
.bd-map-svg :is(#Rongpur,#Rajshahi,#Khulna,#Barisal,#Chittagong,#Sylhet,#Mymensingh,#Dhaka) { opacity: .96 !important; cursor: pointer; }
.bd-map-svg :is(#Rongpur,#Rajshahi,#Khulna,#Barisal,#Chittagong,#Sylhet,#Mymensingh,#Dhaka) path { stroke: #fff; stroke-width: 2.6px; }
.bd-map-svg :is(#Rongpur,#Rajshahi,#Khulna,#Barisal,#Chittagong,#Sylhet,#Mymensingh,#Dhaka):hover { opacity: 1 !important; filter: brightness(1.08) saturate(1.12); }
.bd-map-unavailable { margin: auto; padding: 30px 18px; border: 1px dashed #9dc9dc; border-radius: 12px; background: #fff; color: #3b6679; text-align: center; }

.bd-map-labels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.bd-map-labels button {
  position: absolute;
  min-width: 64px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 999px;
  background: rgba(2, 52, 78, .86);
  box-shadow: 0 4px 12px rgba(1, 35, 52, .22);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: transform .18s ease, background .18s ease;
}

.bd-map-labels button:hover,
.bd-map-labels button:focus-visible {
  background: #078fc9;
  outline: 3px solid rgba(7, 143, 201, .22);
  transform: translate(-50%, -50%) scale(1.06);
}

.bd-map-labels .is-rangpur { left: 31%; top: 13%; }
.bd-map-labels .is-rajshahi { left: 25%; top: 34%; }
.bd-map-labels .is-mymensingh { left: 51%; top: 34%; }
.bd-map-labels .is-sylhet { left: 77%; top: 33%; }
.bd-map-labels .is-dhaka { left: 50%; top: 48%; }
.bd-map-labels .is-khulna { left: 28%; top: 64%; }
.bd-map-labels .is-barishal { left: 51%; top: 69%; }
.bd-map-labels .is-chattogram { left: 75%; top: 64%; }

.bd-map-tip {
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 3;
  min-width: max-content;
  padding: 6px 11px;
  border: 1px solid #cbe5f2;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #326277;
  font-size: 13px;
  transform: translateX(-50%);
}

.bd-location-panel {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 30px;
  background: #fff;
}

.bd-location-form {
  padding: 20px;
  border: 1px solid #d5e7f0;
  border-radius: 14px;
  background: #f8fcfe;
}

.bd-location-form__heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}

.bd-location-form__heading > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #dff4ff;
  color: #0579af;
  font: 700 25px/1 Arial, sans-serif;
}

.bd-location-form__heading strong,
.bd-location-form__heading small {
  display: block;
}

.bd-location-form__heading strong {
  color: #0b3148;
  font-size: 21px;
}

.bd-location-form__heading small {
  margin-top: 1px;
  color: #6b8796;
  font-size: 13px;
}

.bd-location-form__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.bd-location-form select {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 7px 34px 7px 11px;
  border: 1px solid #bad3df;
  border-radius: 9px;
  background: #fff;
  color: #173e54;
  outline: none;
}

.bd-location-form select:focus {
  border-color: #159ad1;
  box-shadow: 0 0 0 3px rgba(21, 154, 209, .12);
}

.bd-location-form select:disabled {
  background: #eef4f7;
  color: #8ba0ac;
}

.bd-location-form__submit {
  width: 100%;
  min-height: 47px;
  margin-top: 10px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #08a2dc, #0579b1);
  box-shadow: 0 8px 18px rgba(5, 121, 177, .19);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.bd-location-form__submit:hover { background: linear-gradient(135deg, #0793c9, #05699a); }
.bd-location-form__submit span { margin-left: 5px; font-family: Arial, sans-serif; }

.bd-regional-latest {
  min-width: 0;
}

.bd-regional-latest__head,
.location-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 2px solid #dcebf2;
}

.bd-regional-latest__head h3,
.location-results-heading h2 {
  margin: 0;
  color: #0b3148;
  font-size: 24px;
}

.bd-regional-latest__head a,
.location-results-heading span {
  color: #0786bd;
  font-size: 15px;
  font-weight: 700;
}

.bd-regional-latest__list {
  display: grid;
}

.bd-regional-latest__list > a {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed #d9e4e9;
}

.bd-regional-latest__list img {
  width: 104px;
  height: 68px;
  border-radius: 7px;
  object-fit: cover;
  background: #e5eef2;
}

.bd-regional-latest__list small,
.bd-regional-latest__list strong {
  display: block;
}

.bd-regional-latest__list small {
  margin-bottom: 2px;
  color: #0783b9;
  font-size: 12px;
}

.bd-regional-latest__list strong {
  display: -webkit-box;
  overflow: hidden;
  color: #142f3e;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.26;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bd-regional-latest__list > a:hover strong { color: var(--news-red); }
.bd-regional-empty { margin: 22px 0; padding: 18px; border-radius: 10px; background: #f2f8fb; color: #64808f; text-align: center; }

.location-news-page { padding-top: 8px; padding-bottom: 45px; }

.location-filter-hero {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(520px, 1.28fr);
  gap: 25px;
  align-items: center;
  margin: 8px 0 26px;
  padding: 24px 26px;
  border: 1px solid #cfe5f2;
  border-radius: 14px;
  background: linear-gradient(125deg, #e9f8ff, #fafdff);
}

.location-filter-hero__copy h1 {
  margin: 0;
  color: #082f46;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
}

.location-filter-hero__copy p { margin: 7px 0 0; color: #597a8b; font-size: 16px; }
.bd-location-form--results { padding: 13px; background: rgba(255,255,255,.78); }
.location-filter-message { margin: -12px 0 20px; padding: 10px 13px; border: 1px solid #fed7aa; border-radius: 8px; background: #fff7ed; color: #9a3412; }
.location-result-card { position: relative; }
.location-result-card__label { position: absolute; top: 10px; left: 10px; z-index: 3; padding: 5px 9px; border-radius: 999px; background: rgba(2, 57, 83, .88); color: #fff; font-size: 13px; line-height: 1; }
.location-empty-state { display: grid; gap: 5px; padding: 45px 20px !important; text-align: center; }
.location-empty-state strong { color: #244557; font-size: 22px; }
.location-empty-state span { color: #78909c; }

html.dark .bd-news-section,
html.dark .bd-map-panel,
html.dark .bd-news-section__header,
html.dark .location-filter-hero { border-color: #28465a; background: #0c2232; }
html.dark .bd-location-panel,
html.dark .bd-location-form { border-color: #28465a; background: #0f2637; }
html.dark .bd-news-section__header h2,
html.dark .bd-location-form__heading strong,
html.dark .bd-regional-latest__head h3,
html.dark .location-filter-hero__copy h1,
html.dark .location-results-heading h2 { color: #edf9ff; }
html.dark .bd-news-section__header p,
html.dark .location-filter-hero__copy p { color: #a9c5d5; }
html.dark .bd-location-form select { border-color: #34566a; background: #102c3e; color: #e8f5fb; }
html.dark .bd-regional-latest__list strong { color: #e8f5fb; }

@media (max-width: 980px) {
  .bd-news-layout { grid-template-columns: minmax(330px, .9fr) minmax(380px, 1.1fr); }
  .bd-map-panel, .bd-location-panel { padding: 22px; }
  .bd-map-labels button { min-width: 58px; padding: 3px 6px; font-size: 13px; }
  .location-filter-hero { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .bd-news-section__header { display: block; padding: 18px; }
  .bd-news-section__header p { margin-top: 8px; font-size: 16px; }
  .bd-news-layout { grid-template-columns: 1fr; }
  .bd-map-panel { border-right: 0; border-bottom: 1px solid #d7eaf4; }
  .bd-map-stage { width: min(100%, 410px); }
  .bd-location-form__fields { grid-template-columns: 1fr; }
  .location-filter-hero { padding: 19px; }
}

@media (max-width: 480px) {
  .bd-news-section { width: calc(100% - 16px); margin-top: 20px; border-radius: 12px; }
  .bd-news-section__header h2 { font-size: 29px; }
  .bd-map-panel, .bd-location-panel { padding: 14px; }
  .bd-map-tip { display: none; }
  .bd-map-stage { width: 100%; aspect-ratio: auto; }
  .bd-map-object,
  .bd-map-svg { height: min(138vw, 560px); }
  /* Keep division names attached to their geographic regions on small screens. */
  .bd-map-labels { position: absolute; inset: 0; display: block; margin: 0; }
  .bd-map-labels button { min-width: 52px; padding: 3px 5px; font-size: 12px; }
  .bd-location-panel { gap: 16px; }
  .bd-location-form { padding: 14px; }
  .bd-regional-latest__list > a { grid-template-columns: 88px minmax(0, 1fr); }
  .bd-regional-latest__list img { width: 88px; height: 60px; }
  .bd-regional-latest__list strong { font-size: 16px; }
  .location-filter-hero { margin-bottom: 18px; padding: 16px; }
  .location-filter-hero__copy h1 { font-size: 28px; }
}

@media (max-width: 899px) {
  .reference-category-sections {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .reference-category-section__title {
    font-size: 25px;
  }

  .reference-category-lead h3 {
    font-size: 26px;
  }

  .reference-category-list__item {
    font-size: 22px;
  }
}

@media (max-width: 639px) {
  .reference-category-sections {
    gap: 20px;
    padding-top: 16px;
    padding-bottom: 34px;
  }

  .reference-category-section__header,
  .reference-category-section__title {
    min-height: 50px;
  }

  .reference-category-section__title {
    gap: 8px;
    padding: 7px 42px 7px 13px;
    font-size: 22px;
  }

  .reference-category-section__title svg {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .reference-category-lead {
    margin: 8px 0 0;
  }

  .reference-category-lead h3 {
    padding: 11px 12px 12px;
    font-size: 23px;
    line-height: 1.24;
  }

  .reference-category-list {
    margin: 0;
  }

  .reference-category-list__item {
    min-height: 64px;
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 9px 12px 9px 8px;
    font-size: 20px;
  }

  .reference-category-list__arrow {
    font-size: 27px;
  }

  .reference-category-section__more {
    min-height: 52px;
    font-size: 21px;
  }
}

@media (max-width: 389px) {
  .reference-category-section__title {
    font-size: 20px;
  }

  .reference-category-lead h3 {
    font-size: 21px;
  }

  .reference-category-list__item {
    font-size: 18px;
  }
}

@media print {
  .news-header,
  .newspaper-footer,
  .reference-back-top,
  .reference-notice,
  .reference-mobile-nav,
  .cookie-consent,
  .admin-home-quick-add {
    display: none !important;
  }
}
