/**
 * 24updatenews — Editorial design system
 * Noto Serif Bengali headlines · Noto Sans UI · cool slate + news crimson
 * Presentation only. Overrides legacy header_styles / Bootstrap conflict.
 */

:root {
  --p-ink: #0f172a;
  --p-ink-2: #334155;
  --p-ink-3: #64748b;
  --p-paper: #ffffff;
  --p-canvas: #f1f5f9;
  --p-soft: #e8eef5;
  --p-line: #e2e8f0;
  --p-line-2: #cbd5e1;
  --p-crimson: #c41e3a;
  --p-crimson-d: #9b1830;
  --p-navy: #0b1220;
  --p-navy-2: #152033;
  --p-gold: #c9a227;
  --p-r: 14px;
  --p-r-sm: 10px;
  --p-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --p-shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --p-serif: "Noto Serif Bengali", Georgia, "Times New Roman", serif;
  --p-sans: "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
  --p-max: 1180px;
  --p-h1: clamp(1.55rem, 1.2rem + 1.2vw, 2.15rem);
  --p-h2: clamp(1.2rem, 1.05rem + 0.55vw, 1.55rem);
  --p-h3: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem);
}

/* ========== BASE ========== */
body.portal-modern {
  margin: 0;
  font-family: var(--p-serif) !important;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--p-ink);
  background: var(--p-canvas) !important;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

body.portal-modern #wrapper,
body.portal-modern #main-body {
  background: transparent;
}

body.portal-modern a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

body.portal-modern h1,
body.portal-modern h2,
body.portal-modern h3,
body.portal-modern h4,
body.portal-modern .headline,
body.portal-modern .headline a,
body.portal-modern .home-box-headline h3 a,
body.portal-modern .article-details h1 {
  font-family: var(--p-serif) !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em;
  color: var(--p-ink) !important;
  line-height: 1.35 !important;
}

body.portal-modern .headline a:hover,
body.portal-modern a.text-decoration-none:hover {
  color: var(--p-crimson) !important;
}

body.portal-modern main.container,
body.portal-modern main.container-xl,
body.portal-modern .container-xl {
  max-width: var(--p-max);
}

body.portal-modern main.container-xl,
body.portal-modern main.container {
  padding-top: 1.75rem;
  padding-bottom: 2.5rem;
}

/* Kill legacy list-box chrome sitewide under portal */
body.portal-modern ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.portal-modern ul li a {
  display: block;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

body.portal-modern ul li a:hover {
  background: transparent !important;
  color: var(--p-crimson) !important;
}

/* ========== MASTHEAD ========== */
body.portal-modern .portal-masthead {
  background: var(--p-paper);
}

body.portal-modern .portal-utility {
  background: var(--p-navy) !important;
  border: 0 !important;
  padding: 0.55rem 0 !important;
}

body.portal-modern .portal-utility__date {
  font-family: var(--p-sans) !important;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #cbd5e1;
  letter-spacing: 0.01em;
}

body.portal-modern .portal-search__form {
  max-width: 380px;
  margin-left: auto;
  gap: 0;
}

body.portal-modern .portal-search__input,
body.portal-modern .portal-search .form-control {
  font-family: var(--p-sans) !important;
  font-size: 0.9rem !important;
  border-radius: 999px 0 0 999px !important;
  border: 1px solid #334155 !important;
  border-right: 0 !important;
  background: #1e293b !important;
  color: #f8fafc !important;
  padding: 0.45rem 1rem !important;
  box-shadow: none !important;
}

body.portal-modern .portal-search__input::placeholder {
  color: #94a3b8;
}

body.portal-modern .portal-search__btn,
body.portal-modern .portal-search .btn-primary {
  font-family: var(--p-sans) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  border-radius: 0 999px 999px 0 !important;
  background: var(--p-crimson) !important;
  border-color: var(--p-crimson) !important;
  padding: 0.45rem 1.15rem !important;
  flex-shrink: 0;
}

body.portal-modern .portal-search__btn:hover,
body.portal-modern .portal-search .btn-primary:hover {
  background: var(--p-crimson-d) !important;
  border-color: var(--p-crimson-d) !important;
}

body.portal-modern .portal-brand {
  background: var(--p-paper);
  border-bottom: 1px solid var(--p-line);
  padding: 1.35rem 0 !important;
}

body.portal-modern .site-logo-wrap {
  min-height: auto !important;
}

body.portal-modern .site-logo-img {
  display: block;
  margin: 0 auto;
  max-width: min(380px, 82vw);
  width: auto;
  height: auto;
  max-height: 78px;
  object-fit: contain;
}

/* ========== BREAKING ========== */
body.portal-modern .breaking-news {
  background: var(--p-crimson) !important;
  color: #fff;
}

body.portal-modern #breking-details,
body.portal-modern #breking-details a,
body.portal-modern #header3-1-left-ticker a {
  font-family: var(--p-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #fff !important;
}

/* ========== PRIMARY NAV ========== */
body.portal-modern .portal-nav-band,
body.portal-modern .bg-warning.portal-nav-band {
  background: var(--p-navy) !important;
  border-bottom: 0 !important;
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.28);
  position: sticky;
  top: 0;
  z-index: 1040;
}

body.portal-modern .portal-nav-band > .container,
body.portal-modern .portal-nav-band > .container-xl {
  min-height: 52px;
}

body.portal-modern .portal-primary-nav.navbar {
  padding: 0.2rem 0;
  background: transparent !important;
}

body.portal-modern .portal-primary-nav .navbar-brand,
body.portal-modern .menu-font .navbar-brand {
  font-family: var(--p-sans) !important;
  font-weight: 700 !important;
  color: #fff !important;
  font-size: 1rem !important;
}

body.portal-modern .menu-font .nav-link {
  font-family: var(--p-sans) !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  color: #e2e8f0 !important;
  padding: 0.7rem 0.85rem !important;
  border-radius: 8px;
  position: relative;
}

body.portal-modern .menu-font .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body.portal-modern .menu-font .nav-link.active {
  color: #fff !important;
  background: rgba(196, 30, 58, 0.22) !important;
}

body.portal-modern .menu-font .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--p-crimson);
  border-radius: 2px;
}

body.portal-modern .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35) !important;
}

body.portal-modern .navbar-toggler-icon {
  filter: invert(1);
}

/* Mobile chips */
body.portal-modern .scrolling-menu {
  display: flex;
  overflow-x: auto;
  gap: 0.4rem;
  padding: 0.55rem 0 0.7rem !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

body.portal-modern .scrolling-menu::-webkit-scrollbar {
  display: none;
}

body.portal-modern .scrolling-menu a {
  flex-shrink: 0;
  font-family: var(--p-sans) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  padding: 0.4rem 0.9rem !important;
  margin: 0 !important;
}

body.portal-modern .scrolling-menu a:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

body.portal-modern .scrolling-menu a.active {
  background: var(--p-crimson) !important;
  border-color: var(--p-crimson) !important;
  color: #fff !important;
}

@media (min-width: 992px) {
  body.portal-modern .scrolling-menu {
    display: none !important;
  }
}

/* ========== HOME SECTIONS ========== */
body.portal-modern .portal-home .portal-section {
  margin-bottom: 1.75rem;
}

body.portal-modern .portal-section__inner,
body.portal-modern .featured-content-box {
  background: var(--p-paper) !important;
  border: 1px solid var(--p-line) !important;
  border-radius: var(--p-r) !important;
  box-shadow: var(--p-shadow-sm) !important;
  padding: 1.35rem 1.4rem 1.5rem !important;
  overflow: hidden;
}

body.portal-modern .portal-section--lead .portal-section__inner {
  padding: 1.5rem 1.45rem 1.7rem !important;
}

/* Lead grid tiles */
body.portal-modern .portal-tile {
  background: var(--p-canvas);
  border: 1px solid var(--p-line);
  border-radius: var(--p-r-sm);
  padding: 1rem 1.05rem !important;
  height: 100%;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.portal-modern .portal-tile:hover {
  border-color: var(--p-line-2);
  box-shadow: var(--p-shadow-sm);
  transform: translateY(-1px);
}

body.portal-modern .portal-tile--feature {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-color: var(--p-line-2);
  padding: 1.25rem 1.3rem !important;
  position: relative;
}

body.portal-modern .portal-tile--feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--p-crimson);
  border-radius: var(--p-r-sm) 0 0 var(--p-r-sm);
}

body.portal-modern .portal-tile--feature h1.headline {
  font-size: var(--p-h1) !important;
  margin-bottom: 1rem !important;
}

body.portal-modern .portal-tile h3.headline {
  font-size: var(--p-h3) !important;
}

body.portal-modern .portal-tile .btn-link {
  font-family: var(--p-sans) !important;
  font-weight: 700 !important;
  color: var(--p-crimson) !important;
  text-decoration: none !important;
  padding-left: 0 !important;
}

body.portal-modern .portal-tile .btn-link:hover {
  text-decoration: underline !important;
}

body.portal-modern .portal-tile img,
body.portal-modern .lcp-media img,
body.portal-modern .news-box img {
  border-radius: 10px !important;
  object-fit: cover;
}

body.portal-modern .lcp-media {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16 / 10;
  background: var(--p-soft);
}

body.portal-modern .lcp-media img {
  width: 100%;
  height: 100%;
}

/* Index lists under lead */
body.portal-modern .portal-index-lists {
  margin-top: 1rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--p-line);
}

body.portal-modern .portal-index-lists__title {
  font-family: var(--p-sans) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p-crimson) !important;
  margin-bottom: 0.9rem !important;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--p-crimson);
  display: inline-block;
}

body.portal-modern .portal-index-list li {
  margin: 0 !important;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--p-line);
}

body.portal-modern .portal-index-list li:last-child {
  border-bottom: 0;
}

body.portal-modern .portal-index-list a {
  font-family: var(--p-serif) !important;
  font-size: 1.02rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: var(--p-ink) !important;
}

body.portal-modern .portal-index-list a:hover {
  color: var(--p-crimson) !important;
}

/* Category section titles */
body.portal-modern .cat-headline {
  background: transparent !important;
  padding: 0 0 0.65rem !important;
  margin: 0 0 1.15rem !important;
  border-radius: 0 !important;
  border-bottom: 3px solid var(--p-crimson) !important;
  display: inline-block;
  min-width: min(280px, 100%);
}

body.portal-modern .cat-headline a,
body.portal-modern .cat-headline a.text-decoration-none {
  font-family: var(--p-serif) !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: var(--p-ink) !important;
}

body.portal-modern .news-box.big-news {
  padding-right: 0.5rem;
}

body.portal-modern .news-box.big-news .headline {
  font-size: var(--p-h2) !important;
  margin-top: 0.75rem;
}

body.portal-modern .news-box .card-text,
body.portal-modern .news-box p {
  font-size: 0.98rem;
  color: var(--p-ink-2);
  line-height: 1.65;
}

/* ========== SIDEBAR ========== */
body.portal-modern .portal-sidebar {
  position: relative;
}

@media (min-width: 992px) {
  body.portal-modern .portal-sidebar {
    position: sticky;
    top: 72px;
    align-self: flex-start;
  }
}

body.portal-modern .portal-sidebar-tabs {
  background: var(--p-paper) !important;
  border: 1px solid var(--p-line) !important;
  border-radius: var(--p-r) !important;
  box-shadow: var(--p-shadow) !important;
  padding: 1rem 1.05rem 1.15rem !important;
  margin-bottom: 1.35rem !important;
}

body.portal-modern .portal-sidebar-tabs .nav-tabs,
body.portal-modern .portal-sidebar-tabs .nav.nav-tabs {
  border: 0 !important;
  background: var(--p-soft) !important;
  border-radius: 999px !important;
  padding: 0.2rem !important;
  gap: 0.15rem;
  display: flex;
}

body.portal-modern .portal-sidebar-tabs .nav-item {
  flex: 1;
  margin: 0 !important;
}

body.portal-modern .portal-sidebar-tabs .nav-link {
  width: 100%;
  text-align: center;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: var(--p-sans) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: var(--p-ink-3) !important;
  background: transparent !important;
  padding: 0.48rem 0.6rem !important;
}

body.portal-modern .portal-sidebar-tabs .nav-link.active {
  background: var(--p-paper) !important;
  color: var(--p-crimson) !important;
  box-shadow: var(--p-shadow-sm) !important;
}

body.portal-modern .portal-sidebar-tabs .tab-content ul li {
  margin: 0 !important;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--p-line);
  counter-increment: side-news;
}

body.portal-modern .portal-sidebar-tabs .tab-content ul {
  counter-reset: side-news;
}

body.portal-modern .portal-sidebar-tabs .tab-content ul li a {
  font-family: var(--p-serif) !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: var(--p-ink) !important;
  padding-left: 1.75rem !important;
  position: relative;
}

body.portal-modern .portal-sidebar-tabs .tab-content ul li a::before {
  content: counter(side-news, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: var(--p-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--p-crimson);
  letter-spacing: -0.02em;
}

body.portal-modern .portal-sidebar-tabs .tab-content ul li a:hover {
  color: var(--p-crimson) !important;
}

body.portal-modern .lead-sideber .lead-box,
body.portal-modern #share-bazar > div,
body.portal-modern .add-sideber {
  background: var(--p-paper);
  border: 1px solid var(--p-line);
  border-radius: var(--p-r-sm);
  padding: 1rem;
  margin-bottom: 1.15rem;
  box-shadow: var(--p-shadow-sm);
}

body.portal-modern .portal-sidebar h2:not(.cat-headline) {
  font-family: var(--p-serif) !important;
  font-size: 1.2rem !important;
  border-bottom: 3px solid var(--p-crimson);
  display: inline-block;
  padding-bottom: 0.35rem;
  margin: 0.5rem 0 0.85rem;
}

/* ========== CATEGORY / GROUP ========== */
body.portal-modern .catnews-left,
body.portal-modern .portal-tile.catnews-left {
  background: var(--p-paper);
  border: 1px solid var(--p-line);
  border-radius: var(--p-r-sm);
  padding: 1rem 1.05rem !important;
  margin-bottom: 1rem !important;
}

body.portal-modern .breadcrumb {
  font-family: var(--p-sans) !important;
  font-size: 0.85rem !important;
  background: var(--p-paper) !important;
  border: 1px solid var(--p-line);
  border-radius: var(--p-r-sm);
  padding: 0.65rem 1rem !important;
}

body.portal-modern .breadcrumb a {
  color: var(--p-ink-2) !important;
}

body.portal-modern .breadcrumb a:hover {
  color: var(--p-crimson) !important;
}

body.portal-modern .allnews a {
  font-family: var(--p-sans) !important;
  font-weight: 700;
  color: var(--p-crimson) !important;
}

/* ========== ARTICLE ========== */
body.portal-modern .article-details {
  background: var(--p-paper);
  border: 1px solid var(--p-line);
  border-radius: var(--p-r);
  box-shadow: var(--p-shadow-sm);
  padding: 1.5rem 1.6rem 1.75rem;
  text-align: left;
}

body.portal-modern .article-details h1 {
  font-size: var(--p-h1) !important;
  line-height: 1.32 !important;
  margin: 0.35rem 0 0.85rem !important;
  text-align: left !important;
}

body.portal-modern .article-details .dask-name,
body.portal-modern .article-details small {
  font-family: var(--p-sans) !important;
  font-size: 0.9rem !important;
  color: var(--p-ink-3) !important;
  font-weight: 500 !important;
}

body.portal-modern .article-details .dask-name.h4 {
  font-size: 1rem !important;
  color: var(--p-ink-2) !important;
}

body.portal-modern .news-details {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--p-ink);
  text-align: justify;
}

body.portal-modern .news-details p {
  margin-bottom: 1.15rem;
}

body.portal-modern .news-details img {
  border-radius: 12px;
  margin: 0.75rem 0 1rem;
}

body.portal-modern .news-tags-container {
  gap: 0.5rem;
  margin-top: 1.25rem;
}

body.portal-modern .tags-label {
  font-family: var(--p-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-crimson);
}

body.portal-modern .tag-link {
  font-family: var(--p-sans) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  background: var(--p-soft) !important;
  border: 1px solid var(--p-line) !important;
  color: var(--p-ink-2) !important;
  padding: 0.35rem 0.85rem !important;
}

body.portal-modern .tag-link:hover {
  background: var(--p-crimson) !important;
  border-color: var(--p-crimson) !important;
  color: #fff !important;
}

body.portal-modern .news-details-scroll {
  background: var(--p-paper) !important;
  border: 1px solid var(--p-line);
  border-radius: var(--p-r);
  padding: 1rem 1.15rem;
  max-height: none;
  overflow: visible;
}

body.portal-modern .news-details-scroll .cat-headline {
  color: var(--p-ink) !important;
}

body.portal-modern .news-details-scroll ul li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--p-line);
}

body.portal-modern .news-details-scroll ul li a {
  font-family: var(--p-serif) !important;
  font-weight: 600 !important;
  font-size: 1.02rem !important;
  color: var(--p-ink) !important;
}

/* ========== FOOTER ========== */
body.portal-modern #footer.portal-footer {
  background: linear-gradient(165deg, var(--p-navy) 0%, var(--p-navy-2) 55%, #1a2740 100%) !important;
  border-top: 4px solid var(--p-crimson);
  padding: 3.25rem 0 2rem !important;
  margin-top: 2.5rem !important;
}

body.portal-modern .portal-footer__top {
  text-align: center;
  margin-bottom: 1.75rem;
}

body.portal-modern .portal-footer__mark {
  font-family: var(--p-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.01em;
}

body.portal-modern .portal-footer__tagline {
  font-family: var(--p-sans);
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}

body.portal-modern #footer .nav-link {
  font-family: var(--p-sans) !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: #cbd5e1 !important;
  padding: 0.35rem 0.85rem !important;
}

body.portal-modern #footer .nav-link:hover {
  color: #fff !important;
}

body.portal-modern #footer .nav-link.active {
  color: var(--p-gold) !important;
}

body.portal-modern #footer-mid {
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  padding: 1.2rem 1.4rem;
  font-family: var(--p-sans);
  font-size: 0.9rem;
  line-height: 1.7;
  color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--p-r-sm);
  text-align: center;
}

body.portal-modern #footer hr {
  width: 100% !important;
  max-width: 720px;
  margin: 1.35rem auto !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  opacity: 1 !important;
}

body.portal-modern #footer .text-secondary {
  color: #94a3b8 !important;
}

body.portal-modern #footer strong {
  color: #f1f5f9;
}

body.portal-modern #footer a.text-warning,
body.portal-modern #footer .hover-link:hover {
  color: var(--p-gold) !important;
}

/* ========== MISC ========== */
body.portal-modern .carousel-caption {
  background: linear-gradient(0deg, rgba(11, 18, 32, 0.92) 0%, transparent 100%);
  font-family: var(--p-serif);
}

body.portal-modern .underliner a {
  font-family: var(--p-serif) !important;
  font-weight: 700 !important;
  color: var(--p-ink) !important;
}

body.portal-modern .separator {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--p-line-2), transparent);
}

@media (max-width: 991.98px) {
  body.portal-modern .portal-search__form {
    max-width: 100%;
    margin: 0.35rem 0 0;
  }

  body.portal-modern .portal-section__inner,
  body.portal-modern .featured-content-box {
    padding: 1rem !important;
  }

  body.portal-modern .article-details {
    padding: 1.1rem;
  }

  body.portal-modern .portal-utility__date {
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  body.portal-modern {
    font-size: 1rem;
  }

  body.portal-modern .portal-tile--feature h1.headline {
    font-size: 1.35rem !important;
  }
}
