/* Self-hosted SolaimanLipi (local fonts/ folder) — primary site font, no external CDN. */
@font-face {
  font-family: 'SolaimanLipi';
  src: url('fonts/SolaimanLipi.ttf') format('truetype');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SolaimanLipi';
  src: url('fonts/SolaimanLipi_Bold.ttf') format('truetype');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

/* GreenNews24 — Complete CSS Reset & UI Styling (Frontend) */
:root {
  --brand: #0f7b46;
  --brand-dark: #0b5c34;
  --brand-light: #e6f4ed;
  --accent: #d32f2f;
  --accent-hover: #b71c1c;
  --bg: #f2f4f6;
  --card: #ffffff;
  --text: #1b1f23;
  --muted: #65707a;
  --border: #e2e6ea;
  --line: #e2e6ea;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --maxw: 1240px;
}

html[data-theme="dark"] {
  --bg: #12161a;
  --card: #1b2026;
  --text: #e7ecf1;
  --muted: #9aa6b2;
  --border: #2a3138;
  --line: #2a3138;
  --brand-light: #182e22;
  --shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* =======================================================
   GLOBAL CSS RESET & TYPOGRAPHY
   ======================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'SolaimanLipi', 'Hind Siliguri', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.15s ease, background 0.15s ease; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.35; font-weight: 700; font-family: 'SolaimanLipi', 'Hind Siliguri', sans-serif; }

/* Native Element Reset */
button, input, select, textarea {
  font-family: 'SolaimanLipi', 'Hind Siliguri', system-ui, sans-serif;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  box-sizing: border-box;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

/* =======================================================
   UNIFIED BUTTON SYSTEM (মার্জিন, প্যাডিং, বর্ডার ও শ্যাডো)
   ======================================================= */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  font-family: 'SolaimanLipi', "Hind Siliguri", sans-serif !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  line-height: 1.4 !important;
  outline: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  user-select: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
}

.btn:hover {
  transform: translateY(-1.5px) !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15) !important;
}

.btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
}

/* Button Colors */
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%) !important;
  color: #ffffff !important;
  border-color: var(--brand) !important;
}
.btn-primary:hover {
  background: var(--brand-dark) !important;
  color: #ffffff !important;
}

.btn-secondary {
  background: var(--card) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.btn-secondary:hover {
  background: var(--bg) !important;
  border-color: var(--muted) !important;
}

.btn-warning {
  background: #f59e0b !important;
  color: #ffffff !important;
  border-color: #d97706 !important;
}
.btn-warning:hover {
  background: #d97706 !important;
  color: #ffffff !important;
}

.btn-danger {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
}
.btn-danger:hover {
  background: var(--accent-hover) !important;
  color: #ffffff !important;
}

.btn-accent {
  background: #6366f1 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
}
.btn-accent:hover {
  background: #4f46e5 !important;
  color: #ffffff !important;
}

/* Button Sizes */
.btn-sm {
  padding: 7px 15px !important;
  font-size: 13.5px !important;
  border-radius: 6px !important;
}

.btn-lg {
  padding: 14px 28px !important;
  font-size: 16px !important;
  border-radius: var(--radius) !important;
}

/* =======================================================
   FORM INPUTS & CONTROL STYLING
   ======================================================= */
.form-group {
  margin-bottom: 16px;
  display: block;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-control {
  display: block;
  width: 100%;
  padding: 11px 16px !important;
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text) !important;
  font-family: 'SolaimanLipi', "Hind Siliguri", sans-serif !important;
  font-size: 15px !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.form-control:focus {
  border-color: var(--brand) !important;
  background: var(--card) !important;
  box-shadow: 0 0 0 3.5px rgba(15, 123, 70, 0.18) !important;
}

textarea.form-control {
  min-height: 110px !important;
  resize: vertical;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  line-height: 1.3;
}

.badge-published { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-pending { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.badge-draft { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.badge-role { background: #e0e7ff; color: #4338ca; border: 1px solid #c7d2fe; }

/* =======================================================
   TOPBAR & HEADER
   ======================================================= */
.topbar {
  background: var(--brand-dark);
  color: #dff3e7;
  font-size: 13.5px;
}
.topbar-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.district-select {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 4px !important;
  padding: 3px 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: 'SolaimanLipi', "Hind Siliguri", sans-serif !important;
  outline: none !important;
  cursor: pointer !important;
  height: 28px !important;
}
.district-select option {
  background: #ffffff !important;
  color: #1e293b !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 6px !important;
}

.topbar-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.theme-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  color: #ffffff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.theme-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  font-weight: 800;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(15, 123, 70, 0.25);
}
.logo-text {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
}
.logo-text b { color: var(--accent); }

.ad-slot {
  flex: 1;
  height: 70px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.02) 10px, rgba(0,0,0,0.02) 20px);
}

.header-tools { display: flex; gap: 8px; }
.header-tools button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  transition: all 0.2s ease;
}
.header-tools button:hover {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}
.menu-btn { display: none !important; }

/* Sticky Nav & Dropdowns */
.nav {
  background: var(--brand);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.nav-in {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  align-items: center;
  max-width: 100%;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link {
  color: #eafbf1;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  background: var(--brand-dark);
  color: #ffffff;
  border-bottom-color: #ffd54f;
}

.arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}
.nav-item.has-dropdown:hover .arrow {
  transform: rotate(180deg);
}

/* Dropdown Sub-menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  padding: 6px 0;
  z-index: 100;
  animation: dropFade 0.2s ease forwards;
}

.nav-item.has-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--border) !important;
  white-space: nowrap;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
}
.dropdown-item:last-child { border: 0 !important; }
.dropdown-item:hover {
  background: var(--brand-light) !important;
  color: var(--brand) !important;
  padding-left: 20px !important;
}

/* Full-Width Mega Menu */
.mega-item {
  margin-left: auto;
}

.mega-btn {
  background: var(--accent) !important;
  color: #ffffff !important;
  padding: 9px 14px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border-radius: 4px !important;
  border: none !important;
  cursor: pointer !important;
  margin-left: 4px;
}
.mega-btn:hover {
  background: var(--accent-hover) !important;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  width: 1100px;
  max-width: 90vw;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  z-index: 9999;
  max-height: 85vh;
  overflow-y: auto;
  animation: dropFade 0.25s ease forwards;
}

.mega-menu-in {
  padding: 24px;
}

.mega-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--brand);
  margin-bottom: 20px;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.mega-col {
  background: var(--bg);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.mega-title {
  display: block !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--brand) !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid var(--border) !important;
  padding-bottom: 6px !important;
  text-decoration: none !important;
}

.mega-sub-list a {
  display: block !important;
  font-size: 13.5px !important;
  color: var(--text) !important;
  padding: 4px 0 !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
  text-decoration: none !important;
}

.mega-sub-list a:hover {
  color: var(--accent) !important;
  transform: translateX(3px) !important;
}

.mega-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@keyframes dropFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Search bar */
.search-wrap {
  display: none;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.search-wrap.open { display: block; }
.search-form { display: flex; gap: 10px; }
.search-form input { flex: 1; }

/* Ticker */
.ticker {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.ticker-in {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  overflow: hidden;
}
.ticker-label {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 5px 14px;
  border-radius: 4px;
  white-space: nowrap;
}
.ticker-view {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 24px;
}
.ticker-track {
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  animation: slide 34s linear infinite;
  font-size: 15px;
}
.ticker-track a { margin-right: 48px; color: var(--text); }
.ticker-track a:hover { color: var(--accent); }
.ticker-in:hover .ticker-track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Main Cards & Layouts */
main { padding: 24px 16px 40px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.thumb {
  background: linear-gradient(135deg, var(--c1, #0f7b46), var(--c2, #0b5c34));
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lead-grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.lead-main h2 { font-size: 26px; margin: 16px 16px 10px; font-weight: 700; }
.lead-main h2:hover { color: var(--brand); }
.lead-main p { margin: 0 16px; color: var(--muted); font-size: 15px; }

.sec { margin-bottom: 30px; }
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--brand);
  margin-bottom: 18px;
  padding-bottom: 8px;
}
.sec-head h4 { font-size: 20px; color: var(--brand); position: relative; padding-left: 14px; font-weight: 700; }
.sec-head h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

.news {
  padding: 0 0 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.news h3 { font-size: 16px; margin: 12px 14px 6px; font-weight: 600; font-family: 'SolaimanLipi', "Hind Siliguri", sans-serif; }

/* =======================================================
   RICH ARTICLE CONTENT & MULTI-IMAGE SUPPORT (.post-body)
   ======================================================= */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.post { padding: 28px; }

/* Rich Body Formatting */
.post-body {
  font-size: 19px !important;
  line-height: 1.95 !important;
  color: var(--text) !important;
  font-family: 'SolaimanLipi', "Hind Siliguri", sans-serif !important;
}

.post-body p {
  margin-bottom: 22px !important;
}

/* In-Content Images Support (Multiple Images inside Article) */
.post-body img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--radius) !important;
  margin: 24px auto !important;
  display: block !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
  border: 1px solid var(--border) !important;
}

.post-body figure {
  margin: 28px 0 !important;
  text-align: center !important;
}

.post-body figcaption {
  font-size: 14px !important;
  color: var(--muted) !important;
  margin-top: 8px !important;
  font-style: italic !important;
}

.post-body blockquote {
  border-left: 4px solid var(--brand) !important;
  background: var(--brand-light) !important;
  padding: 18px 24px !important;
  font-size: 19px !important;
  font-style: italic !important;
  border-radius: 0 10px 10px 0 !important;
  margin: 28px 0 !important;
}

.post-body h2, .post-body h3, .post-body h4 {
  font-size: 23px !important;
  color: var(--brand) !important;
  margin: 28px 0 14px !important;
  font-weight: 700 !important;
}

/* In-Article Advertisement Banner Slot */
.in-article-ad {
  margin: 32px 0 !important;
  padding: 16px !important;
  background: var(--bg) !important;
  border: 1px dashed var(--border) !important;
  border-radius: var(--radius) !important;
  text-align: center !important;
  overflow: hidden !important;
}

.in-article-ad span {
  display: block !important;
  font-size: 12px !important;
  color: var(--muted) !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Post Audio Reader & Print Toolbar */
.post-tools {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 18px 0 24px 0 !important;
  flex-wrap: wrap !important;
  background: var(--bg) !important;
  padding: 14px 18px !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
}

.post-tools button {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Social Share Bar */
.share-box {
  margin-top: 32px !important;
  padding-top: 20px !important;
  border-top: 1px solid var(--border) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.share-box a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 18px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
  transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.share-box a:hover {
  transform: translateY(-2px) !important;
  opacity: 0.9 !important;
}

/* Tag Cloud Box */
.tag-cloud {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 24px !important;
  padding-top: 18px !important;
  border-top: 1px solid var(--border) !important;
}
.tag-cloud a {
  padding: 5px 12px !important;
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  font-size: 13.5px !important;
  color: var(--muted) !important;
}
.tag-cloud a:hover {
  background: var(--brand) !important;
  color: #ffffff !important;
  border-color: var(--brand) !important;
}

/* Author Info Box */
.author-card {
  display: flex !important;
  gap: 16px !important;
  align-items: center !important;
  background: var(--bg) !important;
  padding: 18px !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  margin-top: 28px !important;
}
.author-avatar {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
  color: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  font-weight: 700 !important;
  font-size: 22px !important;
}

/* =======================================================
   SIDEBAR & SIDE WIDGETS (.side, .side-box, .pop-list)
   ======================================================= */
.post-layout, .lead-grid, .split {
  align-items: flex-start;
}

.side, .latest {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: -webkit-sticky;
  position: sticky;
  top: 85px;
  align-self: flex-start;
  height: auto;
  z-index: 10;
}

.side::-webkit-scrollbar, .latest::-webkit-scrollbar {
  width: 4px;
}
.side::-webkit-scrollbar-thumb, .latest::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

/* Compact Post Tools Toolbar (Ultra-Sleek Single Line) */
.post-tools-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 6px 12px;
  margin: 14px 0 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.audio-control-pill {
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--brand);
  color: #ffffff !important;
  border: 0;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.audio-btn:hover { opacity: 0.9; }
.audio-btn-pause { background: #d97706 !important; }
.audio-btn-stop { background: #dc2626 !important; }

.speed-select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 14px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.tool-icons-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-icon-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tool-icon-btn:hover {
  background: var(--brand-light);
  border-color: var(--brand);
}

/* Single Line Compact Share Bar */
.share-box-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 6px 14px;
  margin: 20px 0 24px;
  flex-wrap: wrap;
}

.share-icons-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.share-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 34px;
  padding: 0 12px;
  border-radius: 18px;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff !important;
  border: 0;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.share-icon-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.share-btn-photocard {
  background: var(--brand);
}

.share-btn-fb {
  background: #1877f2;
  width: 34px;
  padding: 0;
  border-radius: 50%;
}

.share-btn-tw {
  background: #0f172a;
  width: 34px;
  padding: 0;
  border-radius: 50%;
}

.share-btn-wa {
  background: #25d366;
  width: 34px;
  padding: 0;
  border-radius: 50%;
}

.side-box {
  padding: 0 0 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.side-box .sec-head {
  margin: 0 14px 10px;
  padding-top: 14px;
}

.pop-list li {
  border-bottom: 1px dashed var(--border);
  font-size: 14.5px;
  transition: background 0.15s ease;
}
.pop-list li:last-child { border: 0; }
.pop-list a {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  align-items: flex-start;
}
.pop-list a:hover {
  background: var(--bg);
  color: var(--brand);
}
.pop-list .num {
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 800;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.pop-list li:nth-child(1) .num {
  background: #fef3c7;
  color: #b45309;
}
.pop-list li:nth-child(2) .num {
  background: #e0e7ff;
  color: #4338ca;
}

.side-ad {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

/* Comments Form & List */
.comments-section {
  margin-top: 40px !important;
  padding-top: 28px !important;
  border-top: 2px solid var(--brand) !important;
}

.comment-form {
  margin: 20px 0 28px 0 !important;
  display: grid !important;
  gap: 14px !important;
  background: var(--bg) !important;
  padding: 20px !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
}

.comment-form .form-control {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  color: var(--text) !important;
}

.comment-list { display: grid; gap: 14px; }
.comment-item {
  background: var(--bg);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Footer & Social Styling */
.footer {
  background: #09140e;
  color: #c9d8cf;
  margin-top: 48px;
  border-top: 3px solid var(--brand);
}

.foot-in {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding: 48px 16px 36px;
}

.footer h5 {
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 700;
  position: relative;
  padding-bottom: 8px;
  font-family: 'SolaimanLipi', "Hind Siliguri", sans-serif;
}

.footer h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2.5px;
  background: var(--brand);
  border-radius: 2px;
}

.footer p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #a8bba8;
}

.footer a {
  display: block;
  padding: 4px 0;
  font-size: 14.5px;
  color: #c9d8cf;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer a:hover {
  color: #7fe3ac;
  transform: translateX(3px);
}

/* Social Icon Buttons */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  transition: all 0.2s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 0 !important;
}

.social-btn:hover {
  transform: translateY(-3px) !important;
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #ffffff !important;
}

.social-fb:hover { background: #1877f2 !important; border-color: #1877f2 !important; }
.social-tw:hover { background: #1da1f2 !important; border-color: #1da1f2 !important; }
.social-yt:hover { background: #ff0000 !important; border-color: #ff0000 !important; }
.social-li:hover { background: #0a66c2 !important; border-color: #0a66c2 !important; }

/* Footer Newsletter Form */
.footer-newsletter {
  margin-top: 14px;
}

.footer-newsletter-box {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.footer-newsletter-box input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  padding: 9px 12px !important;
  font-size: 13.5px !important;
  border-radius: 6px !important;
  outline: none !important;
  width: 100%;
}

.footer-newsletter-box input::placeholder {
  color: #9aa89a !important;
}

.footer-newsletter-box input:focus {
  border-color: var(--brand) !important;
  background: rgba(255, 255, 255, 0.14) !important;
}

/* Footer Copyright & Back to Top Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  background: #060e0a;
}

.footer-bottom-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: #9aa89a;
}

.to-top-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.to-top-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
}

/* =======================================================
   RESPONSIVE MEDIA QUERIES (DESKTOP, TABLET & MOBILE 320PX+)
   ======================================================= */
@media (max-width: 1024px) {
  .lead-grid { grid-template-columns: 1fr 1fr; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .side, .latest { position: static; max-height: none; }
}

@media (max-width: 768px) {
  /* Mobile Layout Reset */
  body { font-size: 15px; }

  /* Mobile Topbar — Exactly 2 Clean Centered Lines */
  .topbar { padding: 6px 0; }
  .topbar-in { flex-direction: column; gap: 4px; padding: 4px 10px; width: 100%; align-items: center; text-align: center; height: auto; }
  
  .topbar-in > div:first-child {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
  }
  #today-date { font-size: 11.5px !important; text-align: center; }
  #visitor-weather { display: none !important; } /* Hidden on mobile per user request */

  .topbar-links {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 2px !important;
  }
  .topbar-links a { font-size: 12px !important; font-weight: 600 !important; }
  .district-select, .link-epaper, .link-archive { display: none !important; } /* Hidden on mobile per user request */

  /* Mobile Header */
  .header-in { padding: 10px 12px; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .logo-mark { width: 34px !important; height: 34px !important; font-size: 18px !important; border-radius: 8px !important; }
  .logo-text { font-size: 21px !important; }
  .ad-slot { max-height: 60px; margin: 6px 0; width: 100%; flex: 1 1 100%; }
  .header-tools button { width: 36px; height: 36px; font-size: 15px; }
  .menu-btn { display: inline-flex !important; align-items: center; justify-content: center; }

  /* Mobile Nav Drawer */
  .nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    width: 100%;
    position: relative;
    top: 0;
    background: var(--brand-dark);
  }
  .nav.open {
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-in {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px 0;
  }
  .nav-item {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 11px 16px !important;
    font-size: 15px !important;
  }
  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 4px 0;
  }
  .nav-item:hover .dropdown-menu {
    display: block;
  }
  .dropdown-item {
    color: #eafbf1 !important;
    padding-left: 28px !important;
    font-size: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }
  .dropdown-item:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
  }
  .mega-item { width: 100%; margin: 0; }
  .mega-btn { width: 100%; border-radius: 0 !important; margin: 0 !important; text-align: center; }

  /* Mobile Mega Menu Modal */
  .mega-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    z-index: 99999;
  }
  .mega-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Mobile Grid Containers (Clean Vertical Stacking) */
  .lead-grid, .split, .grid4, .grid2, .foot-in {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .lead-main img, .side-card img {
    height: 200px !important;
    width: 100% !important;
    object-fit: cover !important;
  }

  .lead-main img { height: 200px !important; }
  .lead-main h2 { font-size: 18px !important; margin: 10px 12px 6px !important; }

  /* Mobile Article View */
  .post { padding: 14px !important; }
  .post-header h1 { font-size: 21px !important; line-height: 1.4 !important; }
  .post-meta { flex-direction: column; align-items: flex-start !important; gap: 8px !important; }
  .post-body { font-size: 17px !important; line-height: 1.8 !important; }
  .post-body img, .post-body iframe, .post-body table { max-width: 100% !important; height: auto !important; margin: 14px auto !important; }
  .post-body table { display: block; overflow-x: auto; }
  .post-tools { flex-direction: column; align-items: stretch !important; padding: 12px !important; }
  .post-tools button, .post-tools select { width: 100% !important; justify-content: center !important; }
  .post-nav-prev-next { flex-direction: column !important; gap: 10px !important; }

  /* Mobile Photo Card Modal Fit */
  #photoCardModal .card { width: 92% !important; max-width: 640px !important; margin: 20px auto !important; padding: 16px !important; }
  #photoCardCanvas { max-width: 100% !important; height: auto !important; }

  /* Mobile Footer */
  .foot-in { padding: 28px 16px; }
  .footer-bottom-in { flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 18px !important; }
  .header-tools button { width: 32px; height: 32px; font-size: 13px; }
  .ticker-label { font-size: 12px; padding: 4px 8px; }
  .ticker-track { font-size: 13.5px; }
  .news h3 { font-size: 15px !important; }
}

/* Video News Play Overlay */
.video-card-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
  pointer-events: none;
}

.video-card-thumb:hover .video-play-badge {
  transform: translate(-50%, -50%) scale(1.15);
  background: #dc2626;
}
