/* =============================================
   Daily Bartabdnew - World-Class News Portal CSS
   Primary: #b72126 | Font: Noto Serif Bengali
   ============================================= */

:root {
  --red:         #b72126;
  --red-dark:    #8e1a1e;
  --red-light:   #fdf0f0;
  --navy:        #1d2d50;
  --dark:        #1a1a1a;
  --body:        #2d2d2d;
  --muted:       #6b7280;
  --border:      #e5e7eb;
  --bg:          #f5f6f8;
  --white:       #ffffff;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.08);
  --shadow:      0 2px 12px rgba(0,0,0,.10);
  --shadow-red:  0 4px 16px rgba(183,33,38,.20);
  --radius:      6px;
  --font:        'Noto Serif Bengali', 'SolaimanLipi', serif;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  margin: 0; padding: 0;
  line-height: 1.75;
}
a { text-decoration: none; color: inherit; transition: color .18s; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* =============================================
   PAGE LOADER
   ============================================= */
.page-loader {
  position: fixed; inset: 0; background: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity .4s;
}
.page-loader.hide { opacity: 0; pointer-events: none; }
.loader-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   TOP BAR
   ============================================= */
.np-topbar {
  background: var(--navy);
  color: rgba(255,255,255,.82);
  font-size: 12.5px;
  padding: 7px 0;
}
.np-topbar a { color: rgba(255,255,255,.8); }
.np-topbar a:hover { color: #fff; }
.np-topbar .social-links { display: flex; gap: 4px; }
.np-topbar .social-links a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  background: rgba(255,255,255,.1);
  transition: background .2s;
}
.np-topbar .social-links a:hover { background: rgba(255,255,255,.2); color: #fff; }
.np-topbar .social-links .fa-facebook { color: #4a90d9; }
.np-topbar .social-links .fa-youtube  { color: #ff4444; }
.np-topbar .social-links .fa-twitter  { color: #5ac8fa; }
.np-topbar .login-link {
  background: var(--red);
  color: #fff !important;
  padding: 4px 14px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s;
}
.np-topbar .login-link:hover { background: var(--red-dark); }
.np-datetime { display: flex; align-items: center; gap: 6px; }

/* =============================================
   HEADER
   ============================================= */
.np-header {
  background: var(--white);
  padding: 14px 0;
  border-bottom: 3px solid var(--red);
}
.np-header .logo img { max-height: 72px; width: auto; }
.ad-banner-placeholder {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 8px 24px;
  font-size: 12px;
  color: var(--muted);
  min-width: 280px;
  min-height: 72px;
  display: flex; align-items: center; justify-content: center;
}

/* =============================================
   BREAKING NEWS TICKER
   ============================================= */
.np-ticker {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 9px 0;
}
.np-ticker .ticker-label {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  padding: 3px 15px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
}
.np-ticker .ticker-label i { animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker-content {
  display: flex; white-space: nowrap;
  animation: tick-scroll 35s linear infinite;
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-content a {
  display: inline-block;
  padding: 0 28px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dark);
}
.ticker-content a::after { content: '|'; margin-left: 28px; color: var(--border); }
.ticker-content a:hover { color: var(--red); }
@keyframes tick-scroll { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* =============================================
   NAVIGATION
   ============================================= */
.np-navbar {
  background: var(--red);
  position: relative; z-index: 200;
  box-shadow: 0 2px 8px rgba(183,33,38,.35);
}
.np-navbar .navbar { padding: 0; background: transparent; }
.np-navbar .navbar-nav .nav-item > a {
  color: rgba(255,255,255,.93) !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 15px !important;
  display: block;
  transition: background .18s;
  white-space: nowrap;
  letter-spacing: .2px;
}
.np-navbar .navbar-nav .nav-item > a:hover { background: var(--red-dark); color: #fff !important; }
.np-navbar .sa-dropdown { position: relative; }
.np-navbar .sa-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--white);
  min-width: 220px;
  border-top: 3px solid var(--red);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 999;
  animation: fadeD .18s ease;
}
@keyframes fadeD { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }
.np-navbar .sa-dropdown:hover .sa-dropdown-menu { display: block; }
.np-navbar .sa-dropdown-menu li a {
  display: block;
  padding: 9px 18px;
  font-size: 13.5px;
  color: var(--dark) !important;
  border-bottom: 1px solid #f4f4f4;
  transition: background .15s, padding-left .15s;
}
.np-navbar .sa-dropdown-menu li:last-child a { border-bottom: none; }
.np-navbar .sa-dropdown-menu li a:hover {
  background: var(--red-light); color: var(--red) !important; padding-left: 24px;
}
.np-navbar .navbar-toggler { border: none; color: #fff; font-size: 20px; padding: 8px 12px; }
.np-navbar .navbar-toggler:focus { box-shadow: none; }

/* Sticky nav */
.np-navbar-sticky {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1050;
  animation: slideD .25s ease;
  box-shadow: 0 3px 18px rgba(0,0,0,.25);
}
@keyframes slideD { from{transform:translateY(-100%)} to{transform:translateY(0)} }

/* =============================================
   BREADCRUMB
   ============================================= */
.np-breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
}
.np-breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px; font-size: 13px; color: var(--muted);
}
.np-breadcrumb ol li { display: flex; align-items: center; }
.np-breadcrumb ol li a { color: var(--muted); }
.np-breadcrumb ol li a:hover { color: var(--red); }
.np-breadcrumb ol li.active { color: var(--red); font-weight: 600; }
.np-breadcrumb ol li + li::before { content: '/'; margin: 0 7px; color: var(--border); }

/* =============================================
   SECTION TITLE
   ============================================= */
.np-section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.np-section-title::before {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 60px; height: 2px;
  background: var(--red);
}
.np-section-title h2 {
  font-size: 16px; font-weight: 800;
  color: var(--navy);
  margin: 0;
  display: flex; align-items: center; gap: 9px;
}
.np-section-title h2 span {
  display: inline-block;
  background: var(--red);
  width: 4px; height: 18px;
  border-radius: 2px;
}
.np-section-title .more-link {
  font-size: 12.5px; font-weight: 700;
  color: var(--red); display: flex; align-items: center; gap: 5px;
}
.np-section-title .more-link:hover { color: var(--red-dark); }

/* =============================================
   FEATURED / HERO SECTION
   ============================================= */
.np-featured {
  background: var(--white);
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--border);
}

/* Slider */
.featured-slider-wrap {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
}
.featured-slide { display: none; position: relative; width: 100%; height: 100%; }
.featured-slide.active { display: block; }
.featured-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.featured-slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
  padding: 36px 22px 22px;
}
.featured-slide-caption .cat-badge {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: 11.5px; font-weight: 700;
  padding: 3px 12px; border-radius: 3px;
  margin-bottom: 10px; letter-spacing: .3px;
}
.featured-slide-caption h2 {
  color: #fff; font-size: 18px; font-weight: 800;
  line-height: 1.55; margin: 0 0 8px;
}
.featured-slide-caption h2 a { color: #fff; }
.featured-slide-caption h2 a:hover { color: #fecaca; }
.featured-slide-caption .meta { color: rgba(255,255,255,.75); font-size: 12px; }

/* Slider controls */
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.55); color: #fff; border: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: background .2s;
}
.slider-btn:hover { background: var(--red); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots { position: absolute; bottom: 14px; right: 18px; display: flex; gap: 5px; z-index: 10; }
.slider-dot { width: 7px; height: 7px; background: rgba(255,255,255,.5); border-radius: 50%; cursor: pointer; transition: background .2s, transform .2s; }
.slider-dot.active { background: #fff; transform: scale(1.4); }

/* Side hero cards */
.feat-side-post {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .2s;
}
.feat-side-post:hover { box-shadow: var(--shadow-red); }
.feat-side-post .fp-img { position: relative; }
.feat-side-post .fp-img img {
  width: 100%; height: 130px; object-fit: cover;
  transition: transform .3s;
}
.feat-side-post:hover .fp-img img { transform: scale(1.04); }
.feat-side-post .fp-img .cat-badge {
  position: absolute; bottom: 8px; left: 8px;
  background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 700;
  padding: 2px 9px; border-radius: 2px;
}
.feat-side-post .fp-body { padding: 10px 12px 12px; }
.feat-side-post h4 {
  font-size: 13px; font-weight: 700;
  line-height: 1.55; margin: 0 0 6px;
  color: var(--navy);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feat-side-post h4 a:hover { color: var(--red); }
.feat-side-post .meta-time { font-size: 11px; color: var(--muted); }

/* =============================================
   NEWS CARDS
   ============================================= */
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  transition: box-shadow .22s, transform .22s;
}
.news-card:hover { box-shadow: var(--shadow-red); transform: translateY(-2px); }
.news-card .card-img { position: relative; overflow: hidden; }
.news-card .card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.news-card:hover .card-img img { transform: scale(1.05); }
.news-card .cat-badge {
  position: absolute; bottom: 10px; left: 10px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 2px;
}
.news-card .card-body { padding: 14px 15px 16px; }
.news-card h3, .news-card h4 {
  font-size: 15px; font-weight: 700;
  line-height: 1.6; margin: 0 0 8px;
  color: var(--navy);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card h3 a:hover, .news-card h4 a:hover { color: var(--red); }
.news-card .card-summary {
  font-size: 13px; color: var(--muted);
  line-height: 1.65; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .card-meta {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
  margin-top: auto;
}
.news-card .card-meta i { color: var(--red); padding-right: 7px;}

/* Lead / big card variant */
.news-card.lead-card .card-img img { height: 260px; }
.news-card.lead-card h3 {
  font-size: 17px;
  -webkit-line-clamp: 3;
}

/* Horizontal list card */
.news-list-card {
  display: flex; gap: 12px;
  background: var(--white);
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow .2s;
}
.news-list-card:hover { box-shadow: var(--shadow-red); }
.news-list-card .card-thumb {
  flex-shrink: 0; width: 100px; height: 75px;
  border-radius: 4px; overflow: hidden;
}
.news-list-card .card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.news-list-card:hover .card-thumb img { transform: scale(1.06); }
.news-list-card .card-info { flex: 1; min-width: 0; }
.news-list-card h4 {
  font-size: 13.5px; font-weight: 700;
  line-height: 1.55; margin: 0 0 5px;
  color: var(--navy);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-list-card h4 a:hover { color: var(--red); }
.news-list-card .meta-time { font-size: 11.5px; color: var(--muted); }

/* =============================================
   CATEGORY SECTION (HOMEPAGE)
   ============================================= */
.np-category-section {
  padding: 28px 0 32px;
  background: var(--bg);
}
.np-category-section:nth-child(even) { background: var(--white); }
/* bordered top */
.np-category-section + .np-category-section {
  border-top: 1px solid var(--border);
}

/* =============================================
   SIDEBAR WIDGETS
   ============================================= */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
}
.sidebar-widget .widget-title {
  background: var(--navy);
  color: #fff;
  font-size: 14.5px; font-weight: 700;
  padding: 11px 16px; margin: 0;
  display: flex; align-items: center; gap: 8px;
  border-left: 4px solid var(--red);
}
.sidebar-widget .widget-body { padding: 0; }

.sidebar-news-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #f3f3f3;
  transition: background .15s;
  position: relative;
  cursor: pointer;
}
.sidebar-news-item:last-child { border-bottom: none; }
.sidebar-news-item:hover { background: var(--red-light); }
.sidebar-news-item .sn-num {
  flex-shrink: 0; width: 24px; height: 24px;
  background: var(--red); color: #fff;
  border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.sidebar-news-item .sn-text { flex: 1; min-width: 0; }
.sidebar-news-item h5 {
  font-size: 13px; font-weight: 600;
  line-height: 1.55; margin: 0 0 3px;
  color: var(--navy);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-news-item:hover h5 { color: var(--red); }
.sidebar-news-item .sn-time { font-size: 11px; color: var(--muted); }
.sidebar-news-item a.stretch-link::after { content: ''; position: absolute; inset: 0; }

/* Sidebar with thumbnail */
.sidebar-thumb-item {
  display: flex; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f3f3f3;
  transition: background .15s;
  position: relative;
}
.sidebar-thumb-item:last-child { border-bottom: none; }
.sidebar-thumb-item:hover { background: var(--red-light); }
.sidebar-thumb-item .thumb {
  flex-shrink: 0; width: 72px; height: 55px;
  border-radius: 4px; overflow: hidden;
}
.sidebar-thumb-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-thumb-item .info { flex: 1; min-width: 0; }
.sidebar-thumb-item h5 {
  font-size: 12.5px; font-weight: 600; line-height: 1.5;
  color: var(--navy); margin: 0 0 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-thumb-item:hover h5 { color: var(--red); }
.sidebar-thumb-item .info-time { font-size: 11px; color: var(--muted); }
.sidebar-thumb-item a.stretch-link::after { content: ''; position: absolute; inset: 0; }

/* Ad placeholder */
.ad-widget-box {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 4px;
  height: 250px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--muted);
}

/* =============================================
   CATEGORY PAGE
   ============================================= */
.cat-page-header {
  background: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cat-page-header h1 {
  font-size: 22px; font-weight: 800;
  color: var(--navy); margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.cat-page-header h1 span {
  display: inline-block;
  background: var(--red); width: 5px; height: 24px; border-radius: 2px;
}
.cat-page-header .sub-count {
  font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px;
}

/* =============================================
   ARTICLE / DETAILS PAGE
   ============================================= */
.np-article-wrap { padding: 28px 0; }

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px 32px;
}

.article-header { margin-bottom: 22px; }
.article-cat-badge {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: 11.5px; font-weight: 700;
  padding: 4px 14px; border-radius: 3px;
  margin-bottom: 14px; letter-spacing: .4px;
  text-transform: uppercase;
}
.article-header h1 {
  font-size: 26px; font-weight: 800;
  line-height: 1.55; color: var(--navy);
  margin-bottom: 18px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
}
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-meta i { color: var(--red); font-size: 12px; }

.article-img-wrap {
  border-radius: var(--radius); overflow: hidden; margin: 22px 0;
}
.article-img-wrap img {
  width: 100%; max-height: 480px; object-fit: cover;
}
.article-img-caption {
  background: var(--bg); border: 1px solid var(--border);
  border-top: none; padding: 8px 14px;
  font-size: 12.5px; color: var(--muted); text-align: center;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Share buttons */
.share-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 20px 0;
}
.share-bar .share-label {
  font-size: 13px; font-weight: 700;
  color: var(--muted); margin-right: 4px;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 4px;
  font-size: 13px; font-weight: 600;
  color: #fff; border: none; cursor: pointer;
  transition: filter .2s, transform .15s;
}
.share-btn:hover { filter: brightness(.88); transform: translateY(-1px); color: #fff; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter  { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy     { background: var(--red); }

/* Article body */
.article-body {
  font-size: 16px; line-height: 2; color: var(--body);
}
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-size: 20px; font-weight: 800; color: var(--navy); margin: 28px 0 14px; }
.article-body h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 22px 0 12px; }
.article-body img { border-radius: var(--radius); margin: 18px 0; }
.article-body blockquote {
  border-left: 4px solid var(--red);
  background: var(--red-light);
  padding: 14px 20px;
  margin: 22px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy);
}
.article-body a { color: var(--red); text-decoration: underline; }

/* Tags */
.article-tags { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.article-tags strong { font-size: 13px; color: var(--muted); }
.tag-pill {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--body);
  font-size: 12px; font-weight: 600;
  padding: 3px 12px; border-radius: 20px;
  margin: 4px 3px;
  transition: background .15s, border-color .15s;
}
.tag-pill:hover { background: var(--red-light); border-color: var(--red); color: var(--red); }

/* Related news */
.related-news-section {
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.rn-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s; height: 100%;
}
.rn-card:hover { box-shadow: var(--shadow-red); transform: translateY(-2px); }
.rn-card .rn-img { overflow: hidden; }
.rn-card .rn-img img {
  width: 100%; height: 150px; object-fit: cover;
  transition: transform .3s;
}
.rn-card:hover .rn-img img { transform: scale(1.05); }
.rn-card .rn-body { padding: 12px 14px 14px; }
.rn-card .rn-cat { font-size: 11px; color: var(--red); font-weight: 700; margin-bottom: 6px; }
.rn-card h5 {
  font-size: 13.5px; font-weight: 700; line-height: 1.55;
  color: var(--navy); margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rn-card h5 a:hover { color: var(--red); }
.rn-card .rn-time { font-size: 11px; color: var(--muted); }

/* =============================================
   FOOTER
   ============================================= */
.np-footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 42px 0 0;
  margin-top: 44px;
}
.np-footer .footer-logo img { max-height: 52px; margin-bottom: 14px; }
.np-footer .footer-about { font-size: 13px; line-height: 1.85; opacity: .78; margin-bottom: 18px; }
.np-footer h5 {
  color: #fff; font-size: 15px; font-weight: 700;
  padding-bottom: 10px; margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  position: relative;
}
.np-footer h5::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 36px; height: 2px; background: var(--red);
}
.np-footer .footer-links li { margin-bottom: 8px; }
.np-footer .footer-links a {
  color: rgba(255,255,255,.68); font-size: 13px;
  display: flex; align-items: center; gap: 7px;
  transition: color .2s, padding-left .2s;
}
.np-footer .footer-links a::before {
  content: '›'; color: var(--red); font-size: 16px; line-height: 1;
}
.np-footer .footer-links a:hover { color: #fff; padding-left: 4px; }
.np-footer .footer-contact { font-size: 13px; }
.np-footer .footer-contact p {
  margin-bottom: 10px; display: flex; align-items: flex-start;
  gap: 8px; opacity: .78;
}
.np-footer .footer-contact i { color: var(--red); margin-top: 3px; width: 14px; }
.footer-social { display: flex; gap: 8px; margin-top: 4px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
  transition: background .2s, transform .2s;
}
.footer-social a:hover { background: var(--red); transform: translateY(-2px); color: #fff; }
.np-footer-bottom {
  background: rgba(0,0,0,.3);
  padding: 14px 0;
  margin-top: 40px;
}
.np-footer-bottom p { margin: 0; font-size: 12.5px; opacity: .65; }
.np-footer-bottom .row { align-items: center; }

/* =============================================
   BACK TO TOP
   ============================================= */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--red); color: #fff;
  border: none; border-radius: 50%; font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 14px rgba(183,33,38,.45);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all .28s;
  z-index: 999;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--red-dark); }

/* =============================================
   UTILITIES
   ============================================= */
.cat-badge-inline {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 2px;
}
.text-red { color: var(--red) !important; }
.bg-red   { background: var(--red) !important; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1199px) {
  .article-card { padding: 22px 22px; }
}
@media (max-width: 991px) {
  .np-navbar .sa-dropdown-menu {
    position: static; box-shadow: none; animation: none;
    border-top: 1px solid rgba(255,255,255,.12);
    background: var(--red-dark);
  }
  .np-navbar .sa-dropdown-menu li a { color: rgba(255,255,255,.85) !important; border-bottom-color: rgba(255,255,255,.08); }
  .np-navbar .sa-dropdown-menu li a:hover { background: rgba(255,255,255,.1); color: #fff !important; padding-left: 18px; }
  .featured-slider-wrap { aspect-ratio: 4/3; }
  .article-header h1 { font-size: 21px; }
  .article-card { padding: 18px; }
}
@media (max-width: 767px) {
  .np-topbar .social-links { display: none; }
  .np-header .header-ad { display: none !important; }
  .featured-slider-wrap { aspect-ratio: 16/10; }
  .news-card .card-img img { height: 170px; }
  .article-header h1 { font-size: 18px; }
  .np-footer { padding-top: 30px; }
}
@media (max-width: 575px) {
  .featured-slide-caption h2 { font-size: 14px; }
  .article-header h1 { font-size: 17px; }
  .np-section-title h2 { font-size: 14.5px; }
}

/* =============================================
   PREMIUM DESIGN ENHANCEMENTS
   ============================================= */

/* Smooth font rendering */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Header — subtle elevation + border accent */
.np-header {
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  position: relative;
}

/* Topbar — gradient left accent */
.np-topbar {
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(135deg, #16243a 0%, #1d2d50 100%);
}

/* Navbar — sticky improvement */
.np-navbar {
  background: linear-gradient(135deg, #b72126 0%, #c93338 100%);
}

/* Ticker pulse animation on label */
.np-ticker .ticker-label {
  background: linear-gradient(135deg, #b72126, #c93338);
  box-shadow: 0 2px 8px rgba(183,33,38,.4);
}

/* Section separator — red left-border accent */
.np-category-section {
  position: relative;
}
.np-section-title h2 {
  padding-left: 14px;
  border-left: 4px solid var(--red);
  border-bottom: none;
}
.np-section-title::before { display: none; }
.np-section-title {
  border-bottom: 2px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 22px;
}

/* News card — premium hover with smooth lift */
.news-card {
  transition: box-shadow .25s ease, transform .25s ease;
  border-color: #eaeaea;
}
.news-card:hover {
  box-shadow: 0 8px 28px rgba(183,33,38,.16);
  transform: translateY(-4px);
  border-color: #f3c0c0;
}

/* Card image — zoom on hover */
.news-card .card-img { overflow: hidden; }
.news-card .card-img img { transition: transform .4s ease; }
.news-card:hover .card-img img { transform: scale(1.06); }

/* List card — subtle hover */
.news-list-card { transition: box-shadow .22s ease, border-color .22s; }
.news-list-card:hover {
  box-shadow: 0 4px 18px rgba(183,33,38,.13);
  border-color: #f3c0c0;
}

/* Sidebar widget title — gradient */
.sidebar-widget .widget-title {
  background: linear-gradient(135deg, #1d2d50 0%, #253852 100%);
}

/* Footer — richer gradient */
.np-footer {
  background: linear-gradient(180deg, #192435 0%, #1d2d50 100%);
}
.np-footer h5 { letter-spacing: .3px; }

/* Footer bottom — deeper contrast */
.np-footer-bottom {
  background: rgba(0,0,0,.38);
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Social icon hover ring effect */
.footer-social a {
  position: relative; overflow: hidden;
  transition: background .22s, transform .22s, box-shadow .22s;
}
.footer-social a:hover {
  background: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(183,33,38,.45);
}

/* Back-to-top — pulse ring */
#back-to-top { box-shadow: 0 4px 16px rgba(183,33,38,.5); }
#back-to-top:hover { transform: translateY(-2px); }

/* Featured slider — richer caption gradient */
.featured-slide-caption {
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.35) 55%, transparent 100%);
}

/* Cat badge — pill style */
.cat-badge, .cat-badge-inline {
  border-radius: 3px;
  letter-spacing: .3px;
  font-size: 11px;
  box-shadow: 0 1px 4px rgba(183,33,38,.3);
}

/* Breadcrumb — minimal clean */
.np-breadcrumb { background: #fff; }

/* Feat side post hover */
.feat-side-post {
  transition: box-shadow .22s, transform .22s;
}
.feat-side-post:hover {
  box-shadow: 0 6px 22px rgba(183,33,38,.15);
  transform: translateY(-2px);
}

/* Sidebar news number badge gradient */
.sidebar-news-item .sn-num {
  background: linear-gradient(135deg, #b72126, #c93338);
  box-shadow: 0 1px 5px rgba(183,33,38,.35);
}

/* Navbar link active underline */
.np-navbar .navbar-nav .nav-item > a {
  position: relative;
}
.np-navbar .navbar-nav .nav-item > a::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px; background: rgba(255,255,255,.7);
  transition: left .2s, right .2s;
}
.np-navbar .navbar-nav .nav-item > a:hover::after,
.np-navbar .navbar-nav .nav-item.active > a::after {
  left: 0; right: 0;
}

/* Page loader — brand color */
.loader-spinner { border-top-color: var(--red); }

