/* ============================================
   News Portal Stylesheet
   Designed to match TemplatePro-style layout
   ============================================ */

/* ---------- Base ---------- */
:root {
  --primary:   #c0392b;   /* newspaper red */
  --primary-dark: #962d22;
  --secondary: #2c3e50;
  --accent:    #e67e22;
  --text:      #222;
  --muted:     #6c757d;
  --bg-soft:   #f5f5f5;
  --border:    #e0e0e0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'SolaimanLipi', sans-serif;
  color: var(--text);
  background: #fafafa;
  font-size: 16px;
  line-height: 1.65;
}
a { color: var(--secondary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.4; }

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--secondary);
  color: #fff;
  font-size: 13px;
}
.top-bar a { color: #fff; }
.top-bar .top-social a {
  display: inline-block;
  margin-left: 8px;
  width: 26px; height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.top-bar .top-social a:hover { background: var(--primary); }

/* ---------- Logo (moved into nav) ---------- */
.logo-bar { background: #fff; border-bottom: 1px solid var(--border); }
.site-logo { max-height: 60px; }

/* Top bar styles */
.top-bar { height: 60px; background: var(--secondary); border-bottom: 1px solid var(--border); color: #ddd; }
.top-bar a { color: #ddd; }
.top-bar .container { height: 100%; display: flex; align-items: center; gap: 12px; }
.top-left { display: flex; align-items: center; }
.top-left { flex: 0 0 auto; }
.top-logo-img { width: 240px !important; max-width: 240px !important; height: 56.09px !important; object-fit: contain; display: block; }
.top-date.small {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.top-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.top-location,
.top-clock,
.top-date-static {
  white-space: nowrap;
}
.top-social { display: flex; gap: 8px; }

/* Ensure main-nav aligns items to the right */
.main-nav .container { display: flex; align-items: center; }
.nav-list { margin-left: auto; }
.nav-actions { display: flex; align-items: center; margin-left: 8px; }
.search-wrap { position: relative; display: flex; align-items: center; }

.search-toggle {
  border: 0;
  background: transparent;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background .2s ease, transform .2s ease;
}
.search-toggle:hover,
.search-toggle.active {
  background: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.search-drawer {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
  transform: translateY(-50%) translateX(18px);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s ease, opacity .28s ease;
  z-index: 1200;
}
.search-drawer.open {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.search-drawer-form {
  display: flex;
  width: 100%;
}
.search-drawer-form input {
  flex: 1;
  border: 0;
  padding: 12px 14px;
  font-family: inherit;
  outline: none;
}
.search-drawer-form button {
  border: 0;
  background: var(--primary);
  color: #fff;
  min-width: 92px;
  padding: 0 16px;
  font-size: 16px;
}

/* ---------- Main nav ---------- */
.main-nav {
  background: var(--primary);
  z-index: 999;
}
.main-nav .container {
  position: relative;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block;
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
}
.nav-list > li > a:hover,
.nav-list > li > a.active {
  background: var(--primary-dark);
  color: #fff;
}
.nav-list > li.has-dropdown {
  display: flex;
  align-items: stretch;
}
.nav-list > li.has-dropdown > a {
  flex: 1;
}
.submenu-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-list .dropdown {
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  list-style: none;
  margin: 0; padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
}
.nav-list .has-dropdown:hover .dropdown { display: block; }
.nav-list .dropdown li a {
  display: block;
  padding: 7px 16px;
  color: var(--text);
  font-size: 14px;
}
.nav-list .dropdown li a:hover { background: var(--bg-soft); color: var(--primary); }
.nav-list .search-form {
  display: flex;
  margin: 6px;
}
.nav-list .search-form input {
  border: 0; padding: 6px 10px; border-radius: 4px 0 0 4px; outline: none;
  font-family: inherit;
}
.nav-list .search-form button {
  border: 0; background: var(--primary-dark); color: #fff;
  padding: 6px 12px; border-radius: 0 4px 4px 0;
}
.nav-toggle {
  background: transparent; border: 0; color: #fff;
  font-size: 22px; padding: 10px 14px;
  display: none;
}
.nav-backdrop {
  display: none;
}
.nav-logo {
  display: none;
}
.nav-logo-img {
  display: block;
  width: auto;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---------- Breaking ticker ---------- */
.breaking-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.breaking-label {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.breaking-ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.header-ad-banner {
  margin-top: 6px;
  margin-bottom: 6px;
}
.home-triple-ad-slot {
  margin: 0 0 10px;
  display: flex;
  justify-content: center;
}
.home-triple-ad-banner {
  display: block;
  width: min(725px, 100%);
  max-width: 725px;
  height: 100px;
  text-align: center;
  overflow: hidden;
}
.home-triple-ad-banner img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}
body.has-header-ad .site-main.py-3 {
  padding-top: 6px !important;
}
body.no-header-ad .site-main.py-3 {
  padding-top: 0 !important;
}
.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 80s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center;
  padding: 8px 18px;
  font-size: 14px;
  border-right: 1px solid var(--border);
  color: var(--text);
}
.ticker-item img { width: 14px; height: 14px; margin-right: 6px; }
.ticker-item:hover { color: var(--primary); }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Hero section ---------- */
.hero-main { position: relative; background: #fff; padding: 0; border: 1px solid var(--border); }
.hero-main > a { display: block; position: relative; }
.hero-main img { width: 100%; height: auto; object-fit: contain; display: block; background: #fff; }
.hero-main .cat-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 2px;
}
.hero-title { padding: 14px 14px 4px; font-size: 22px; }
.hero-title a { color: var(--text); }
.hero-title a:hover { color: var(--primary); }
.hero-excerpt { padding: 0 14px 14px; }
.hero-main .meta { padding: 0 14px 14px; }
.readmore { color: var(--primary); font-weight: 600; margin-left: 4px; }

.hero-side { background: #fff; padding: 8px; border: 1px solid var(--border); }
.hero-side-img { width: 100px; height: 75px; object-fit: cover; flex-shrink: 0; }
.hero-side h6 { font-size: 14px; line-height: 1.4; margin: 0; color: var(--text); }
.hero-side a:hover h6 { color: var(--primary); }

/* ---------- News tabs (latest/popular) ---------- */
.tabs-news .nav-link {
  font-weight: 700;
  color: var(--text);
  border-radius: 0;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
}
.tabs-news .nav-link.active {
  color: var(--primary);
  border-color: var(--border);
  border-bottom: 2px solid var(--primary);
  background: #fff;
}

/* ---------- News cards ---------- */
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.news-card img { width: 100%; height: 180px; object-fit: cover; }
.news-card h5, .news-card h6 { margin: 10px 0 6px; font-size: 16px; line-height: 1.4; }
.news-card h5 a, .news-card h6 a { color: var(--text); }
.news-card h5 a:hover, .news-card h6 a:hover { color: var(--primary); }
.news-card.big img { height: 240px; }
.national-featured-card h5 {
  margin-top: 8px;
  margin-bottom: 4px;
}
.national-featured-card p {
  margin-bottom: 0;
}

/* Home page: keep card titles visually consistent */
.home-page .hero-title,
.home-page .hero-side h6,
.home-page .news-card h5,
.home-page .news-card h6,
.home-page .news-list-item h6,
.home-page .home-section-featured-title,
.home-page .home-section-content h6 {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.home-page .hero-title,
.home-page .news-card h5,
.home-page .news-card h6,
.home-page .news-list-item h6,
.home-page .home-section-featured-title,
.home-page .home-section-content h6 {
  min-height: 2.8em;
}
.home-page .hero-title {
  min-height: 3.1em;
}

/* List items (small thumb + title) */
.news-list-item .list-thumb {
  width: 141px;
  height: 68px;
  object-fit: cover;
  flex-shrink: 0;
}
.news-list-item {
  align-items: center;
  gap: 10px !important;
  margin-bottom: 8px !important;
}
.news-list-item h6 {
  font-size: 15px;
  line-height: 1.35;
  margin: 0;
}
.news-list-item h6 a { color: var(--text); }
.news-list-item h6 a:hover { color: var(--primary); }
.search-thumb { width: 130px; height: 90px; object-fit: cover; flex-shrink: 0; }

.cat-section-equal-thumb .news-list-item > a {
  flex: 0 0 141px;
  display: block;
}
.cat-section-equal-thumb .news-list-item .list-thumb {
  width: 141px;
  height: 68px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* Text-only list */
.text-list { list-style: none; padding: 0; margin: 0; }
.text-list li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  position: relative;
  padding-left: 14px;
}
.text-list li:before {
  content: '▸';
  position: absolute; left: 0; color: var(--primary);
}
.text-list li a { color: var(--text); }
.text-list li a:hover { color: var(--primary); }

/* Popular list (numbered with images) */
.popular-list, .popular-numbered { list-style: none; padding: 0; counter-reset: poplist; }
.popular-list li, .popular-numbered li {
  counter-increment: poplist;
  position: relative;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.popular-list li:before, .popular-numbered li:before {
  content: counter(poplist);
  position: absolute;
  left: 0; top: 12px;
  background: var(--primary);
  color: #fff;
  width: 26px; height: 26px;
  text-align: center;
  line-height: 26px;
  font-weight: 700;
  border-radius: 50%;
  font-size: 12px;
}
.popular-list li > a, .popular-numbered li > a {
  display: flex; gap: 10px; align-items: center;
  padding-left: 36px;
}
.popular-list .popular-sidebar-link {
  align-items: flex-start;
}
.popular-numbered .popular-item-link {
  align-items: flex-start;
}
.popular-list li img {
  width: 141px;
  height: 68px;
  flex: 0 0 141px;
  object-fit: cover;
  display: block;
}
.popular-numbered .pop-thumb { width: 90px; height: 65px; object-fit: cover; }
.popular-list li span { font-size: 13px; color: var(--text); line-height: 1.4; }
.popular-list .popular-sidebar-body {
  min-width: 0;
  flex: 1;
}
.popular-list .popular-sidebar-body strong {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 4px;
}
.popular-list .popular-sidebar-body .post-meta-line {
  font-size: 12px;
}
.popular-numbered .popular-item-body {
  min-width: 0;
  flex: 1;
}
.popular-numbered .popular-item-body h6 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.7em;
}
.popular-numbered .popular-item-body .post-meta-line {
  font-size: 12px;
}

/* ---------- Category section title ---------- */
.cat-section-title {
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  background: #eef4f9;
  overflow: hidden;
}
.cat-section-title > a:first-child,
.cat-section-title > span {
  background: #113c67;
  color: #fff !important;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
  position: relative;
}
.cat-section-title > a:first-child::after,
.cat-section-title > span::after {
  content: '';
  position: absolute;
  top: 0;
  right: -14px;
  width: 0;
  height: 0;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 14px solid #113c67;
}
.cat-section-title .more-link {
  font-size: 14px;
  color: #113c67;
  font-weight: 700;
  background: transparent;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* ---------- Page heading ---------- */
.page-heading {
  font-size: 22px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  margin-bottom: 18px;
}
.page-heading i { color: var(--primary); margin-right: 6px; }

.post-meta-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #666;
}
.post-meta-line i {
  font-size: 12px;
}

/* ---------- Single news ---------- */
.single-title { font-size: 26px; margin: 8px 0 12px; color: var(--text); }
.single-meta-top { margin-bottom: 8px; }
.cat-badge { background: var(--primary); color: #fff; font-size: 12px; padding: 5px 10px; }
.single-content { font-size: 17px; line-height: 1.9; }
.single-content p { margin-bottom: 14px; }
.single-content img { margin: 10px 0; }
.single-inline-ad {
  margin: 14px 0;
}
.single-inline-ad img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.share-box .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 16px;
  border-radius: 10px;
  line-height: 1;
}
.share-box .share-btn i {
  display: block;
}
.share-btn.fb { background: #3b5998; }
.share-btn.tw { background: #000; }
.share-btn.wa { background: #25d366; }
.share-btn.ln { background: #0077b5; }
.share-btn:hover { color: #fff; opacity: 0.9; }

/* ---------- Comments ---------- */
.comment-list { list-style: none; padding: 0; }
.comment-item {
  display: flex; gap: 12px;
  background: var(--bg-soft);
  padding: 12px; margin-bottom: 10px;
  border-left: 3px solid var(--primary);
}
.comment-avatar {
  width: 42px; height: 42px;
  background: var(--primary); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-form .form-control { font-family: inherit; }

/* ---------- Sidebar widgets ---------- */
.sidebar .widget {
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 18px;
  padding: 14px;
}
.fb-page-widget iframe {
  display: block;
  height: 200px;
  width: 100%;
}
.widget-title {
  background: var(--secondary);
  color: #fff;
  padding: 8px 12px;
  margin: -14px -14px 12px;
  font-size: 16px;
}
.sidebar-ad img { max-width: 100%; }

/* 250x250 square sidebar ad (responsive) */
.ad-250 {
  text-align: center;
}
.ad-250 img {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: inline-block;
}

/* Debug alert small */
.ad-debug { font-size: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--secondary);
  color: #ddd;
  margin-top: 30px;
}

/* ---------- Category section box styling (re-applied) ---------- */
.cat-section {
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
.cat-section + .cat-section { margin-top: 12px; }
.cat-section .cat-section-title {
  margin: -10px -10px 8px;
}
.cat-section .cat-section-title .more-link { color: #113c67; }
.cat-section .news-card { margin-bottom: 10px; }
.news-list-item .list-thumb { width: 141px; height: 68px; object-fit: cover; border-radius: 4px; }
.news-list-item h6 a { color: #111; }
.national-list-item {
  align-items: flex-start;
}
.national-list-item > a {
  flex: 0 0 141px;
  display: block;
}
.national-list-item .list-thumb {
  width: 141px;
  height: 68px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.national-list-item > div {
  min-width: 0;
}
.national-list-item h6 {
  line-height: 1.3;
}

/* Ensure vertical rhythm so left column sections visually fill below sidebar */
.col-lg-8 .cat-section { margin-bottom: 18px; }

/* keep only one copy of cat-section styles above */
.cat-section-compact {
  overflow: hidden;
}
.cat-section-compact .cat-section-title {
  margin: 0;
  padding: 0;
  background: #eef4f9;
  border-bottom: 0;
  display: flex;
  align-items: stretch;
}
.cat-section-compact .cat-section-title > a:first-child {
  background: #113c67;
  color: #fff !important;
  padding: 10px 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
}
.cat-section-compact .cat-section-title > a:first-child::after {
  content: '';
  position: absolute;
  top: 0;
  right: -14px;
  width: 0;
  height: 0;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 14px solid #113c67;
}
.cat-section-compact .home-section-feed {
  padding: 8px 10px 10px;
}
.cat-section-compact .home-section-item {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.cat-section-compact .home-section-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.cat-section-compact .home-section-thumb {
  flex: 0 0 141px;
  display: block;
}
.cat-section-compact .home-section-thumb img {
  width: 141px;
  height: 68px;
  object-fit: cover;
  display: block;
}
.cat-section-compact .home-section-item.is-featured .home-section-thumb {
  flex-basis: 141px;
}
.cat-section-compact .home-section-item.is-featured .home-section-thumb img {
  width: 141px;
  height: 68px;
}
.cat-section-compact .home-section-content {
  flex: 1;
  min-width: 0;
}
.cat-section-compact .home-section-content h6 {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}
.cat-section-compact .home-section-item.is-featured .home-section-content h6 {
  font-size: 17px;
  line-height: 1.35;
}
.home-triple-wrap { margin-top: 6px; }
.home-pair { margin-bottom: 6px; }
.cat-section-compact .home-section-content a {
  color: #111;
}
.cat-section-compact .home-section-content a:hover {
  color: var(--primary);
}
.cat-section-stack .home-section-featured {
  padding: 12px 14px 10px;
}
.cat-section-stack .home-section-featured-thumb {
  display: block;
  margin-bottom: 8px;
}
.cat-section-stack .home-section-featured-thumb img {
  width: 100%;
  height: 198px;
  object-fit: cover;
  display: block;
}
.cat-section-stack .home-section-featured-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.28;
}
.cat-section-stack .home-section-featured-title a {
  color: #111;
}
.cat-section-stack .home-section-featured-title a:hover {
  color: var(--primary);
}
.cat-section-stack .home-section-list {
  padding: 0 14px 14px;
}
.cat-section-stack .home-section-list .news-list-item h6 {
  font-size: 13px;
  line-height: 1.25;
}
.cat-section-stack .home-section-list .news-list-item {
  gap: 8px !important;
  margin-bottom: 8px !important;
  align-items: center;
}
.cat-section-stack .home-section-list .news-list-item > a {
  flex: 0 0 141px;
  display: block;
}
.cat-section-stack .home-section-list .news-list-item .list-thumb {
  width: 141px;
  height: 68px;
  object-fit: cover;
  display: block;
}

.cat-section-entertainment .home-section-featured-title {
  font-size: 15px;
  line-height: 1.25;
  min-height: 2.5em;
}
.cat-section-entertainment .home-section-featured p {
  margin-bottom: 8px;
}
.cat-section-entertainment .home-section-featured .post-meta-line {
  font-size: 12px;
  line-height: 1.35;
}
.cat-section-entertainment .home-section-list .news-list-item h6 {
  min-height: 2.6em;
}
.cat-section-entertainment .home-section-list .news-list-item > div {
  min-width: 0;
  flex: 1;
}
.cat-section-entertainment .home-section-list .news-list-item .post-meta-line {
  font-size: 12px;
  line-height: 1.35;
}

/* Editorial section: ensure list thumbnails are uniform 141x68 */
.cat-section-equal-thumb .news-list-item .list-thumb {
  width: 141px;
  height: 68px;
  object-fit: cover;
}

/* Ensure editorial section has visible gap below it */
.cat-section-equal-thumb {
  margin-bottom: 24px !important;
}

/* Sidebar category widget uses the same card language, but stays tighter */
.sidebar-category-widget .home-section-featured-thumb img {
  height: 170px;
}
.sidebar-category-widget .home-section-featured {
  padding: 12px 14px 8px;
}
.sidebar-category-widget .home-section-featured-title {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.32;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.sidebar-category-widget .home-section-featured p {
  margin-bottom: 0;
}
.sidebar-category-widget .home-section-list .news-list-item > a {
  flex: 0 0 141px;
}
.sidebar-category-widget .home-section-list .news-list-item .list-thumb {
  width: 141px;
  height: 68px;
  object-fit: cover;
}
.sidebar-category-widget .home-section-list .news-list-item {
  align-items: flex-start;
}
.sidebar-category-widget .home-section-list .news-list-item > div {
  min-width: 0;
}
.sidebar-category-widget .home-section-list .news-list-item h6 {
  margin-bottom: 2px;
  font-size: 13px;
  line-height: 1.28;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.sidebar-category-widget .home-section-list .post-meta-line {
  font-size: 12px;
  line-height: 1.2;
}
.footer-top { padding: 40px 0; }
.footer-title {
  color: #fff;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
  margin-bottom: 14px;
  font-size: 17px;
}
.footer-link {
  display: block;
  padding: 4px 0;
  color: #ccc;
  font-size: 14px;
}
.footer-link:hover { color: var(--primary); padding-left: 4px; }
.footer-logo { max-height: 70px; }
.footer-social a {
  display: inline-block;
  width: 32px; height: 32px;
  line-height: 32px;
  text-align: center;
  background: rgba(255,255,255,0.1);
  color: #fff;
  margin-right: 6px;
  border-radius: 50%;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.newsletter-form { display: flex; gap: 4px; }
.newsletter-form input {
  flex: 1; border: 0; padding: 8px 12px;
  font-family: inherit;
  border-radius: 3px;
}
.footer-meta { background: #1a252f; border-top: 1px solid #34495e; color: #aaa; font-size: 13px; }
.footer-meta a { color: #fff; }

/* ---------- Pagination ---------- */
.pagination .page-link {
  color: var(--primary);
  border-color: var(--border);
}
.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .main-nav {
    z-index: 4000;
  }
  .main-nav .container {
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
  }
  .nav-toggle { display: inline-block; }
  .nav-logo {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: calc(100% - 10px);
    align-items: center;
    justify-content: center;
    z-index: 2;
  }
  .nav-logo-img {
    max-height: 42px;
  }
  .nav-list {
    display: flex;
    flex-direction: column;
    background: var(--primary-dark);
    width: min(320px, 86vw);
    position: fixed;
    left: 0;
    top: 54px;
    height: calc(100vh - 54px);
    overflow-y: auto;
    padding: 10px 0 16px;
    transform: translateX(-105%);
    transition: transform .25s ease;
    box-shadow: 14px 0 28px rgba(0,0,0,0.24);
    z-index: 4001;
    pointer-events: auto;
  }
  .nav-list.open { transform: translateX(0); }
  .nav-list > li { width: 100%; }
  .nav-list > li.has-dropdown {
    display: block;
  }
  .nav-list > li > a {
    display: block;
    padding: 12px 18px;
  }
  .nav-parent-link,
  .nav-submenu-label {
    display: block;
    width: 100%;
    padding: 12px 18px;
    color: #fff;
  }
  .nav-submenu-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
  }
  .nav-submenu-label:hover {
    background: rgba(255,255,255,0.12);
  }
  .nav-submenu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
  }
  .nav-submenu-check:not(:checked) ~ .dropdown {
    display: none;
  }
  .nav-submenu-check:checked ~ .dropdown {
    display: block;
  }
  .nav-other-toggle {
    justify-content: space-between;
    color: #fff;
  }
  .nav-list .dropdown {
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,0.12);
    min-width: 0;
    width: 100%;
  }
  .nav-list .dropdown[hidden] {
    display: none !important;
  }
  .nav-list .dropdown li a { color: #fff; }
  .nav-list .search-form { width: 100%; padding: 8px 12px; }
  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .nav-drawer-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .2px;
  }
  .nav-drawer-close {
    border: 0;
    background: rgba(255,255,255,0.12);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 3000;
  }
  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.nav-open {
    overflow: hidden;
  }

  .top-bar {
    height: auto;
    padding: 8px 0;
  }
  .top-bar .container {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }
  .top-left {
    display: none;
  }
  .top-date,
  .top-social {
    flex: 0 0 100%;
    justify-content: center;
  }
  .top-logo-img {
    width: 180px !important;
    max-width: 180px !important;
    height: auto !important;
    max-height: 42px;
  }
  .top-date.small {
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .top-date.small .top-location,
  .top-date.small .top-clock,
  .top-date.small .top-date-static {
    white-space: nowrap;
  }
  .top-location,
  .top-clock,
  .top-date-static {
    white-space: normal;
  }
}
@media (max-width: 575.98px) {
  .top-bar .container {
    gap: 6px;
  }
  .main-nav .container {
    min-height: 50px;
  }
  .nav-logo-img {
    max-height: 34px;
  }
  .top-date.small {
    font-size: 11px;
  }
  .top-social a {
    width: 24px;
    height: 24px;
    line-height: 24px;
    margin-left: 6px;
  }
  .home-triple-ad-slot {
    margin-bottom: 8px;
  }
  .home-triple-ad-banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: visible;
  }
  .home-triple-ad-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
  }
  .single-title { font-size: 20px; }
  .news-card img { height: 160px; }
}

@media (max-width: 991.98px) {
  .single-page .sidebar .sidebar-ad {
    display: none;
  }
}
