/* =============================================
   বিশ্ব দর্পণ — Main Stylesheet v2
   Modern Bengali News Portal
   ============================================= */

/* ---- Variables ---- */
:root {
  --red:        #c0392b;
  --red-dk:     #a93226;
  --red-lt:     #e74c3c;
  --dark:       #111827;
  --dark2:      #1f2937;
  --text:       #1f2937;
  --text-md:    #4b5563;
  --text-lt:    #9ca3af;
  --border:     #e5e7eb;
  --bg:         #f3f4f6;
  --white:      #ffffff;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  14px;
  --ease:       .22s ease;
  --font:       'Noto Sans Bengali', sans-serif;
  --font-serif: 'Noto Serif Bengali', serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 18px; }

/* =============================================
   TOP BAR
   ============================================= */
.topbar {
  background: var(--dark);
  padding: 7px 0;
  font-size: .8rem;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-date  { color: #9ca3af; display: flex; align-items: center; gap: 6px; }
.topbar-right { display: flex; align-items: center; gap: 4px; }
.topbar-right a {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: #9ca3af;
  font-size: .9rem;
  transition: background var(--ease), color var(--ease);
}
.topbar-right a:hover { background: var(--red); color: white; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.site-logo img { max-height: 56px; width: auto; }

/* Search */
.header-search form {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.header-search form:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}
.header-search input {
  border: none; outline: none;
  padding: 8px 18px;
  font-family: var(--font); font-size: .9rem;
  width: 230px; background: transparent;
}
.header-search button {
  background: var(--red); color: white; border: none;
  cursor: pointer; padding: 8px 18px; font-size: .88rem;
  transition: background var(--ease);
}
.header-search button:hover { background: var(--red-dk); }

/* Mobile toggle */
.mobile-menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 5px;
}
.mobile-menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: transform var(--ease);
}

/* =============================================
   NAV
   ============================================= */
.main-nav { background: var(--red); }
.nav-list  { display: flex; flex-wrap: wrap; }
.nav-list li a {
  display: block; color: rgba(255,255,255,.9);
  padding: 11px 16px; font-size: .88rem; font-weight: 500;
  position: relative; transition: color var(--ease);
}
.nav-list li a::after {
  content: ''; position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px; background: white;
  transition: left var(--ease), right var(--ease);
}
.nav-list li a:hover, .nav-list li a.active { color: white; }
.nav-list li a:hover::after, .nav-list li a.active::after { left: 0; right: 0; }

/* =============================================
   BREAKING BAR / TICKER  (upgraded)
   ============================================= */
.breaking-bar {
  background: #0f172a;
  padding: 0;
  border-bottom: 2px solid var(--red);
}
.breaking-inner {
  display: flex;
  align-items: stretch;
  height: 46px;
  max-width: 100%;
  overflow: hidden;
}
.breaking-label {
  background: var(--red);
  color: white;
  padding: 0 20px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .5px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  padding-right: 28px;
}
.ticker-wrap {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 60s linear infinite;
  will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 0 8px;
  letter-spacing: .01em;
  transition: color .2s;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.ticker-item:hover { color: #fbbf24; }
.ticker-dot {
  color: var(--red-lt);
  font-size: .5rem;
  padding: 0 10px;
  vertical-align: middle;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   LAYOUT
   ============================================= */
.main-content { padding: 22px 0 48px; }
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 26px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

/* =============================================
   HERO SLIDER  (homepage)
   ============================================= */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  background: var(--dark);
  overflow: hidden;
  user-select: none;
}

/* Main slide area */
.hero-slider {
  position: relative;
  width: 100%;
  height: 520px;
}

.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.slider-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Background image */
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transform: scale(1.04);
  transition: transform 6s ease;
}
.slider-slide.active .slide-bg {
  transform: scale(1);
}
.slide-bg-fallback {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Gradient overlay */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.55) 45%,
    rgba(0,0,0,.18) 70%,
    rgba(0,0,0,.05) 100%
  );
}

/* Text content */
.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.slide-inner {
  max-width: 580px;
  padding: 32px 48px;
  transform: translateY(18px);
  opacity: 0;
  transition: transform .6s ease .2s, opacity .6s ease .2s;
}
.slider-slide.active .slide-inner {
  transform: translateY(0);
  opacity: 1;
}

.slide-cat {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.slide-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: white;
  line-height: 1.38;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.slide-excerpt {
  font-size: .92rem;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-meta {
  display: flex;
  gap: 16px;
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 18px;
}
.slide-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.slide-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: white;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 700;
  transition: background .2s, gap .2s;
}
.slide-link:hover .slide-read-more {
  background: var(--red-dk);
  gap: 12px;
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.15);
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.slider-arrow:hover { background: var(--red); border-color: var(--red); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 130px;
  left: 48px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, width .2s, border-radius .2s;
}
.slider-dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

/* Thumbnail strip */
.slider-thumbs {
  display: flex;
  gap: 0;
  height: 110px;
  background: rgba(0,0,0,.85);
  overflow-x: auto;
  scrollbar-width: none;
}
.slider-thumbs::-webkit-scrollbar { display: none; }

.slider-thumb {
  flex: 1;
  min-width: 0;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.08);
  border-top: 3px solid transparent;
  transition: border-color .2s;
}
.slider-thumb.active { border-top-color: var(--red); }
.slider-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  transition: opacity .2s;
}
.slider-thumb:hover img,
.slider-thumb.active img { opacity: 1; }
.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%);
}
.thumb-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  font-size: .7rem;
  font-weight: 600;
  color: white;
  line-height: 1.4;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
}

/* OLD hero section — remove */
.hero-section { display: none; }

/* =============================================
   SECTION HEAD
   ============================================= */
.section-head {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  font-size: 1.1rem; font-weight: 800;
  color: var(--dark);
  display: flex; align-items: center; gap: 0;
}
.section-title span {
  border-bottom: 3px solid var(--red);
  padding-bottom: 4px;
}
.section-viewall {
  font-size: .82rem; font-weight: 700;
  color: var(--red);
  display: flex; align-items: center; gap: 5px;
  transition: gap var(--ease);
}
.section-viewall:hover { gap: 9px; }

/* =============================================
   NEWS GRID  (3 columns)
   ============================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease);
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.card-img-link { display: block; overflow: hidden; }
.card-img-wrap {
  position: relative; padding-top: 58%;
  background: var(--bg);
  overflow: hidden;
}
.card-img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.news-card:hover .card-img-wrap img { transform: scale(1.06); }
.card-img-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: rgba(255,255,255,.25); font-size: 2.5rem;
}

.card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.card-cat-tag {
  display: inline-block;
  background: #fef2f2; color: var(--red);
  border: 1px solid #fecaca;
  padding: 2px 9px; border-radius: 30px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .3px; margin-bottom: 9px;
  transition: background var(--ease), color var(--ease);
}
.card-cat-tag:hover { background: var(--red); color: white; border-color: var(--red); }
.card-headline {
  font-size: .97rem; font-weight: 700; line-height: 1.55;
  margin-bottom: 8px; flex: 1; color: var(--dark);
}
.card-headline a { color: inherit; transition: color var(--ease); }
.card-headline a:hover { color: var(--red); }
.card-summary { font-size: .82rem; color: var(--text-md); line-height: 1.6; margin-bottom: 12px; }
.card-footer-meta {
  display: flex; gap: 12px;
  font-size: .75rem; color: var(--text-lt);
  border-top: 1px solid var(--border);
  padding-top: 10px; margin-top: auto;
}
.card-footer-meta span { display: flex; align-items: center; gap: 4px; }

/* =============================================
   CATEGORY STRIP
   ============================================= */
.cat-strip { margin-bottom: 36px; }
.cat-strip-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

/* featured card in category strip */
.cat-featured-card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; display: block; min-height: 260px;
}
.cat-featured-img {
  position: absolute; inset: 0;
}
.cat-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-featured-card:hover .cat-featured-img img { transform: scale(1.05); }
.cat-featured-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 18px; z-index: 2;
}
.cat-featured-title {
  font-size: 1rem; font-weight: 800;
  color: white; line-height: 1.45;
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.cat-featured-time { font-size: .75rem; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 4px; }

/* small list */
.cat-small-list { display: flex; flex-direction: column; gap: 12px; }
.cat-small-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px;
  border: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
.cat-small-item:hover { box-shadow: var(--shadow); }
.cat-small-thumb {
  flex-shrink: 0; width: 76px; height: 56px;
  border-radius: 6px; overflow: hidden;
}
.cat-small-thumb img { width: 76px; height: 56px; object-fit: cover; transition: transform .3s; }
.cat-small-item:hover .cat-small-thumb img { transform: scale(1.08); }
.cat-small-body { flex: 1; }
.cat-small-title {
  display: block; font-size: .85rem; font-weight: 700;
  color: var(--dark); line-height: 1.45;
  margin-bottom: 5px; transition: color var(--ease);
}
.cat-small-title:hover { color: var(--red); }
.cat-small-time { font-size: .73rem; color: var(--text-lt); display: flex; align-items: center; gap: 4px; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination { margin: 8px 0 32px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination li a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: .88rem; font-weight: 600;
  transition: all var(--ease);
}
.pagination li a:hover   { background: var(--red); color: white; border-color: var(--red); }
.pagination li.active a  { background: var(--red); color: white; border-color: var(--red); }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.widget { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.widget-title {
  font-size: .95rem; font-weight: 800;
  color: var(--white);
  background: var(--dark);
  padding: 11px 16px;
  display: flex; align-items: center; gap: 8px;
}
.widget-title i { color: var(--red-lt); }
.widget-body { padding: 16px; }

/* Latest posts */
.widget-post-list { display: flex; flex-direction: column; }
.widget-post-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.widget-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.widget-post-thumb {
  flex-shrink: 0; width: 72px; height: 54px;
  border-radius: 6px; overflow: hidden;
}
.widget-post-thumb img { width: 72px; height: 54px; object-fit: cover; transition: transform .3s; }
.widget-post-thumb:hover img { transform: scale(1.1); }
.widget-post-info { flex: 1; }
.widget-post-title {
  display: block; font-size: .85rem; font-weight: 700;
  color: var(--dark); line-height: 1.45; margin-bottom: 4px;
  transition: color var(--ease);
}
.widget-post-title:hover { color: var(--red); }
.widget-post-date { font-size: .72rem; color: var(--text-lt); display: flex; align-items: center; gap: 3px; }

/* Categories */
.category-list { display: flex; flex-direction: column; }
.category-list li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border);
  font-size: .88rem; color: var(--text);
  transition: color var(--ease), padding-left var(--ease);
}
.category-list li:last-child a { border-bottom: none; }
.category-list li a:hover { color: var(--red); padding-left: 6px; }
.cat-count {
  background: #fee2e2; color: var(--red);
  font-size: .7rem; font-weight: 800;
  padding: 1px 8px; border-radius: 20px; min-width: 26px; text-align: center;
}

/* About */
.about-logo { text-align: center; margin-bottom: 12px; }
.about-logo img { margin: 0 auto; max-width: 140px; }
.widget-about-text { font-size: .85rem; color: var(--text-md); line-height: 1.75; margin-bottom: 14px; }
.social-links { display: flex; gap: 8px; }
.social-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 10px; border-radius: 7px;
  font-size: .8rem; font-weight: 700;
  color: white !important; transition: opacity var(--ease);
}
.social-btn:hover { opacity: .88; }
.social-btn.facebook { background: #1877f2; }
.social-btn.youtube  { background: #ff0000; }

/* =============================================
   SINGLE POST — ARTICLE
   ============================================= */
.article-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.article-header { padding: 26px 30px 20px; border-bottom: 1px solid var(--border); }
.article-category-tag {
  display: inline-block;
  background: var(--red); color: white;
  padding: 4px 14px; border-radius: 30px;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 14px;
}
.article-title {
  font-family: var(--font-serif);
  font-size: 1.9rem; font-weight: 800;
  line-height: 1.45; color: var(--dark);
  margin-bottom: 18px;
}
.article-meta-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.article-author { display: flex; align-items: center; gap: 10px; }
.author-avatar { font-size: 2.2rem; color: #d1d5db; line-height: 1; }
.author-name { display: block; font-size: .9rem; font-weight: 700; color: var(--dark); }
.author-date { display: block; font-size: .75rem; color: var(--text-lt); }
.article-meta-right { display: flex; gap: 10px; }
.meta-pill {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg); color: var(--text-md);
  padding: 4px 12px; border-radius: 20px;
  font-size: .78rem;
}

/* Share bar */
.share-bar {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 10px;
}
.share-bar-top { }
.share-bar-bottom {
  padding: 18px 30px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}
.share-bar-label {
  font-size: .82rem; font-weight: 700;
  color: var(--text-md); white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
}
.share-bar-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.shr-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 7px;
  font-family: var(--font); font-size: .82rem; font-weight: 700;
  color: white !important; cursor: pointer; border: none;
  transition: opacity var(--ease), transform var(--ease);
}
.shr-btn:hover { opacity: .88; transform: translateY(-1px); }
.shr-fb   { background: #1877f2; }
.shr-wa   { background: #25d366; }
.shr-tw   { background: #000000; }
.shr-copy { background: #6366f1; }
.shr-page { background: #1877f2; }

/* Featured image */
.article-figure { margin: 0; }
.article-hero-img { width: 100%; max-height: 480px; object-fit: cover; }

/* Article body */
.article-body {
  padding: 26px 30px;
  font-size: 1.05rem; line-height: 1.9; color: var(--text);
}
.article-body p   { margin-bottom: 1.3em; }
.article-body h2  { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 800; margin: 1.8em 0 .6em; color: var(--dark); border-left: 4px solid var(--red); padding-left: 12px; }
.article-body h3  { font-size: 1.2rem; font-weight: 700; margin: 1.5em 0 .5em; color: var(--dark); }
.article-body img { border-radius: var(--radius); margin: 1.2em 0; box-shadow: var(--shadow); }
.article-body ul,
.article-body ol  { padding-left: 1.8em; margin-bottom: 1.2em; }
.article-body li  { margin-bottom: .5em; }
.article-body blockquote {
  border-left: 4px solid var(--red);
  background: linear-gradient(90deg, #fef2f2 0%, transparent 100%);
  padding: 14px 20px;
  margin: 1.5em 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text-md);
  font-size: 1rem;
}
.article-body a { color: var(--red); text-decoration: underline; }

/* Tags */
.article-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 16px 30px;
  border-top: 1px solid var(--border);
}
.tags-label { font-size: .82rem; font-weight: 700; color: var(--text-md); display: flex; align-items: center; gap: 5px; }
.tag-pill {
  background: #fef2f2; color: var(--red);
  border: 1px solid #fecaca;
  padding: 3px 12px; border-radius: 20px;
  font-size: .78rem; font-weight: 700;
  transition: background var(--ease), color var(--ease);
}
.tag-pill:hover { background: var(--red); color: white; }

/* =============================================
   RELATED POSTS
   ============================================= */
.related-section { margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
}
.related-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.related-img-link { display: block; overflow: hidden; }
.related-img-wrap {
  position: relative; padding-top: 56%;
  background: var(--bg);
}
.related-img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.related-card:hover .related-img-wrap img { transform: scale(1.06); }
.related-body { padding: 12px 14px 14px; }
.related-title { font-size: .88rem; font-weight: 700; line-height: 1.45; margin-bottom: 6px; }
.related-title a { color: var(--dark); transition: color var(--ease); }
.related-title a:hover { color: var(--red); }
.related-time { font-size: .72rem; color: var(--text-lt); display: flex; align-items: center; gap: 4px; }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb { margin-bottom: 14px; font-size: .8rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; list-style: none; }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 5px; color: var(--text-lt); }
.breadcrumb a { color: var(--red); }
.breadcrumb [aria-current="page"] { color: var(--text-lt); }

/* =============================================
   PAGE HEADER  (category / search pages)
   ============================================= */
.page-header {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 22px;
  border-left: 4px solid var(--red);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.page-header-title { font-size: 1.4rem; font-weight: 800; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.page-header-title i { color: var(--red); }
.page-header-count { color: var(--text-md); font-size: .88rem; margin-top: 4px; }

/* =============================================
   SEARCH PAGE
   ============================================= */
.search-page-form { background: var(--white); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; border: 1px solid var(--border); }
.search-input-wrap { display: flex; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color var(--ease); }
.search-input-wrap:focus-within { border-color: var(--red); }
.search-input-wrap input { flex: 1; border: none; outline: none; padding: 11px 16px; font-family: var(--font); font-size: .95rem; }
.search-input-wrap button { background: var(--red); color: white; border: none; cursor: pointer; padding: 11px 20px; font-family: var(--font); font-size: .9rem; font-weight: 700; display: flex; align-items: center; gap: 6px; transition: background var(--ease); }
.search-input-wrap button:hover { background: var(--red-dk); }

.news-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.news-list-item { display: flex; gap: 14px; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: box-shadow var(--ease); }
.news-list-item:hover { box-shadow: var(--shadow-lg); }
.list-item-thumb { flex-shrink: 0; width: 170px; }
.list-item-thumb img { width: 170px; height: 115px; object-fit: cover; }
.list-item-body { padding: 14px 16px 14px 0; flex: 1; }
.list-item-title { font-size: 1rem; font-weight: 700; margin-bottom: 7px; line-height: 1.5; }
.list-item-title a { color: var(--dark); transition: color var(--ease); }
.list-item-title a:hover { color: var(--red); }
.list-item-excerpt { font-size: .85rem; color: var(--text-md); margin-bottom: 10px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--dark); color: #9ca3af; margin-top: 48px; }
.footer-top { padding: 50px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; }
.footer-logo { margin-bottom: 14px; }
.footer-logo img { max-width: 150px; }
.footer-about { font-size: .86rem; line-height: 1.8; color: #6b7280; margin-bottom: 18px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.07); color: #9ca3af;
  font-size: .9rem; display: flex; align-items: center; justify-content: center;
  transition: all var(--ease);
}
.footer-social a:hover { background: var(--red); color: white; }
.footer-heading { font-size: .95rem; font-weight: 800; color: white; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .85rem; color: #6b7280; display: flex; align-items: center; gap: 7px; transition: color var(--ease); }
.footer-links a:hover { color: white; }
.footer-links a i { color: var(--red-lt); font-size: .72rem; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: #6b7280; }
.footer-contact i { color: var(--red-lt); margin-top: 2px; flex-shrink: 0; }
.footer-contact a { color: #6b7280; transition: color var(--ease); }
.footer-contact a:hover { color: white; }
.footer-bottom { background: rgba(0,0,0,.35); padding: 14px 0; text-align: center; font-size: .8rem; color: #4b5563; }
.footer-bottom a { color: var(--red-lt); }

/* =============================================
   404 / EMPTY
   ============================================= */
.not-found { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.not-found-inner { text-align: center; padding: 40px; }
.nf-code { display: block; font-size: 7rem; font-weight: 900; color: #e5e7eb; line-height: 1; margin-bottom: 8px; }
.not-found-inner h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; }
.not-found-inner p { color: var(--text-md); margin-bottom: 22px; }
.nf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: white !important;
  padding: 11px 24px; border-radius: var(--radius);
  font-weight: 700; transition: background var(--ease);
}
.nf-btn:hover { background: var(--red-dk); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-md); }
.empty-state i { font-size: 3.5rem; margin-bottom: 14px; color: #e5e7eb; display: block; }
.empty-state p { margin-bottom: 18px; }
.btn-primary {
  display: inline-block; background: var(--red); color: white !important;
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-weight: 700; transition: background var(--ease);
}
.btn-primary:hover { background: var(--red-dk); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .layout-with-sidebar { grid-template-columns: 1fr 290px; }
  .hero-slider { height: 440px; }
  .slide-title { font-size: 1.55rem; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-slider { height: 360px; }
  .slide-inner { padding: 24px 32px; }
  .slide-title { font-size: 1.3rem; }
  .slide-excerpt { display: none; }
  .slider-dots { bottom: 118px; left: 32px; }
  .slider-thumbs { height: 90px; }
  .cat-strip-inner { grid-template-columns: 1fr; }
  .cat-featured-card { min-height: 200px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .content-area { order: 1; }

  .header-inner { flex-wrap: wrap; }
  .header-search { order: 3; width: 100%; }
  .header-search input { width: 100%; }
  .mobile-menu-toggle { display: flex; }
  .nav-list { display: none; flex-direction: column; background: var(--red-dk); }
  .nav-list.open { display: flex; }
  .nav-list li a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-list li a::after { display: none; }

  .hero-slider { height: 300px; }
  .slide-inner { padding: 16px 20px; max-width: 100%; }
  .slide-title { font-size: 1.1rem; }
  .slide-meta { display: none; }
  .slider-dots { bottom: 98px; left: 16px; }
  .slider-arrow { width: 36px; height: 36px; font-size: .85rem; }
  .slider-thumbs { height: 80px; }
  .thumb-title { display: none; }

  .news-grid { grid-template-columns: 1fr; }

  .article-title { font-size: 1.45rem; }
  .article-header { padding: 18px; }
  .article-body { padding: 18px; }
  .article-tags { padding: 12px 18px; }
  .share-bar-bottom { padding: 14px 18px; }

  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .news-list-item { flex-direction: column; }
  .list-item-thumb { width: 100%; }
  .list-item-thumb img { width: 100%; height: 190px; }
  .list-item-body { padding: 14px; }
}

@media (max-width: 480px) {
  .hero-slider { height: 240px; }
  .slide-title { font-size: 1rem; }
  .slide-cat { display: none; }
  .slide-read-more { padding: 7px 14px; font-size: .8rem; }
  .slider-thumbs { display: none; }
  .slider-dots { bottom: 12px; left: 50%; transform: translateX(-50%); }
  .share-bar-btns { gap: 6px; }
  .shr-btn span { display: none; }
  .shr-btn { padding: 8px 12px; }
  .breaking-label { clip-path: none; padding-right: 16px; }
  .ticker-item { font-size: .9rem; }
  .meta-pill span { display: none; }
}

/* =============================================
   AD SLOTS
   ============================================= */
.ad-slot { background: #fafafa; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ad-slot-header { margin-bottom: 0; }
.ad-slot-footer { margin-top: 0; }
.ad-slot-inline { margin: 28px 0; }
.ad-inner {
  text-align: center;
  padding: 12px 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-inner::before {
  content: attr(data-label);
  font-size: .68rem;
  color: #9ca3af;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =============================================
   PUBLIC GALLERY PAGE
   ============================================= */
.pub-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.pub-gallery-item { cursor: pointer; }
.pub-gallery-thumb {
  position: relative;
  padding-top: 75%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}
.pub-gallery-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.pub-gallery-item:hover .pub-gallery-thumb img { transform: scale(1.07); }
.pub-gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.0);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem;
  opacity: 0;
  transition: opacity var(--ease), background var(--ease);
}
.pub-gallery-item:hover .pub-gallery-overlay { opacity: 1; background: rgba(0,0,0,.35); }
.pub-gallery-caption {
  font-size: .78rem; color: var(--text-md);
  text-align: center; margin-top: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* =============================================
   LIGHTBOX
   ============================================= */
#lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.94);
  display: flex; align-items: center; justify-content: center;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: white; border: none; cursor: pointer;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
  z-index: 9010;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--red); }
.lb-close { top: 20px; right: 20px; }
.lb-prev  { left: 16px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-inner { text-align: center; max-width: 90vw; max-height: 90vh; }
.lb-inner img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius); }
.lb-caption { color: rgba(255,255,255,.8); font-size: .9rem; margin-top: 10px; }
.lb-share { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.lbs-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; cursor: pointer; color: white; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.lbs-fb   { background: #1877f2; }
.lbs-wa   { background: #25d366; }
.lbs-copy { background: #6366f1; }

/* =============================================
   ADMIN: UPLOAD ZONE (post-edit sidebar)
   ============================================= */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  color: var(--text-muted, #6b7280);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--primary, #c0392b);
  background: #fff5f5;
  color: var(--primary, #c0392b);
}
.upload-zone i  { font-size: 1.8rem; }
.upload-zone span { font-size: .88rem; font-weight: 600; }
.upload-zone small { font-size: .72rem; color: var(--text-muted, #9ca3af); }

.upload-progress { margin-top: 10px; }
.progress-bar   { height: 6px; background: var(--border, #e5e7eb); border-radius: 3px; overflow: hidden; }
.progress-fill  { height: 100%; background: var(--primary, #c0392b); border-radius: 3px; transition: width .2s ease; }
#progressText   { font-size: .78rem; color: var(--text-muted, #6b7280); margin-top: 5px; display: block; }

/* =============================================
   ADMIN: GALLERY PICKER MODAL
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.gallery-modal {
  background: white;
  border-radius: var(--radius-lg, 14px);
  width: 100%; max-width: 860px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  overflow: hidden;
}
.gallery-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  flex-shrink: 0;
}
.gallery-modal-head h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.2rem; color: var(--text-muted, #6b7280);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease, .22s);
}
.modal-close:hover { background: #fee2e2; color: var(--red, #c0392b); }

.gallery-modal-upload {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px;
  background: #f9fafb;
  border-bottom: 1px solid var(--border, #e5e7eb);
  flex-shrink: 0;
}
.modal-upload-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary, #c0392b); color: white;
  padding: 8px 16px; border-radius: 7px;
  font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: opacity .2s;
}
.modal-upload-btn:hover { opacity: .88; }

.gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 16px 22px;
  overflow-y: auto;
  flex: 1;
}
.gallery-thumb {
  position: relative;
  padding-top: 75%;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--ease, .22s);
}
.gallery-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(192,57,43,.0);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem;
  opacity: 0;
  transition: all var(--ease, .22s);
}
.gallery-thumb:hover { border-color: var(--primary, #c0392b); }
.gallery-thumb:hover .gallery-thumb-overlay { opacity: 1; background: rgba(192,57,43,.5); }

/* =============================================
   ADMIN: GALLERY MANAGE PAGE
   ============================================= */
.gallery-manage-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 18px 20px;
}
.gallery-manage-item { display: flex; flex-direction: column; gap: 6px; }
.gallery-manage-img {
  position: relative;
  padding-top: 75%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg, #f3f4f6);
}
.gallery-manage-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-manage-actions {
  position: absolute; top: 5px; right: 5px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; transition: opacity var(--ease, .22s);
}
.gallery-manage-img:hover .gallery-manage-actions { opacity: 1; }
.gm-btn {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; border: none; cursor: pointer;
  transition: opacity .2s;
}
.gm-btn:hover { opacity: .88; }
.gm-copy { background: #6366f1; color: white; }
.gm-view { background: #2563eb; color: white; }
.gm-delete { background: var(--red, #c0392b); color: white; }
.gallery-caption-form { display: flex; }
.caption-input {
  width: 100%; border: 1px solid var(--border, #e5e7eb);
  border-radius: 5px; padding: 4px 8px;
  font-size: .75rem; font-family: inherit; outline: none;
}
.caption-input:focus { border-color: var(--primary, #c0392b); }
.gallery-manage-meta { font-size: .7rem; color: var(--text-lt, #9ca3af); }

/* =============================================
   ADMIN: TOOLBAR SEP
   ============================================= */
.toolbar-sep {
  width: 1px; background: var(--border, #e5e7eb);
  align-self: stretch; margin: 2px 4px;
}

/* =============================================
   POST FIGURE (images inside post body)
   ============================================= */
.post-figure, .article-body figure {
  margin: 1.4em 0;
  text-align: center;
}
.post-figure img, .article-body figure img {
  max-width: 100%; border-radius: var(--radius, 10px);
  box-shadow: var(--shadow, 0 4px 16px rgba(0,0,0,.09));
  margin: 0 auto;
}
.post-figure figcaption, .article-body figcaption {
  font-size: .8rem; color: var(--text-md, #4b5563);
  margin-top: 6px; font-style: italic;
}

/* =============================================
   RESPONSIVE — new additions
   ============================================= */
@media (max-width: 900px) {
  .pub-gallery-grid      { grid-template-columns: repeat(3, 1fr); }
  .gallery-modal-grid    { grid-template-columns: repeat(4, 1fr); }
  .gallery-manage-grid   { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .pub-gallery-grid      { grid-template-columns: repeat(2, 1fr); }
  .gallery-modal-grid    { grid-template-columns: repeat(3, 1fr); }
  .gallery-manage-grid   { grid-template-columns: repeat(2, 1fr); }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}

/* =============================================
   VIDEO EMBED  (responsive)
   ============================================= */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 1.4em 0;
  background: #000;
  box-shadow: var(--shadow);
}
.video-wrap iframe,
.video-wrap embed,
.video-wrap object {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.article-body .video-wrap { margin: 1.6em 0; }

/* =============================================
   AD SLOTS  (clean)
   ============================================= */
.ad-slot { overflow: hidden; }
.ad-slot-header  { border-bottom: 1px solid var(--border); margin-bottom: 0; }
.ad-slot-footer  { border-top: 1px solid var(--border); }
.ad-slot-inline  { margin: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ad-wrap {
  text-align: center;
  padding: 10px 0;
  min-height: 10px;
}

/* =============================================
   PUSH NOTIFICATION PROMPT — #bdPushPrompt
   ============================================= */
#bdPushPrompt {
  position: fixed;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  max-width: 480px;
  width: calc(100% - 32px);
  transition: bottom .4s cubic-bezier(.34,1.56,.64,1);
  font-family: var(--font);
}
#bdPushPrompt.bdpp-show { bottom: 20px; }

.bdpp-icon img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bdpp-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bdpp-text strong {
  font-size: .92rem;
  font-weight: 700;
  color: var(--dark);
}
.bdpp-text span {
  font-size: .78rem;
  color: var(--text-md);
}
.bdpp-allow {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--ease);
}
.bdpp-allow:hover { background: var(--red-dk); }
.bdpp-deny {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font);
  font-size: .78rem;
  color: var(--text-md);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--ease);
}
.bdpp-deny:hover { background: var(--bg); }

@media (max-width: 520px) {
  #bdPushPrompt {
    flex-wrap: wrap;
    gap: 8px;
  }
  .bdpp-allow, .bdpp-deny {
    flex: 1;
    text-align: center;
  }
}
