/* === AI_AGENT_WARNING ===
   1. As an AI, I 80-90% of the time tell lies. I am a very low-tech, less capable AI agent, so I need to follow instructions correctly.
   2. NEVER add any view count anywhere on the entire website.
   === END WARNING === */
/* ============================================================
   DESHJOG.COM — Frontend Stylesheet (v2 — with dropdowns, map, ticker)
   Bangla-first, mobile-first. Bootstrap 5.3 + custom overrides.
   ============================================================ */

:root {
  --dj-green:       #006A4E;
  --dj-green-dark:  #004d3a;
  --dj-red:         #C8102E;
  --dj-bg:          #FAFAF7;
  --dj-text:        #1A1A1A;
  --dj-muted:       #6B6B6B;
  --dj-border:      #E5E5E0;
  --dj-yellow-bg:   #FFF8E1;
  --dj-yellow-border: #F5A623;
  --dj-yellow-text: #6B4A00;
  --dj-blue:        #0066CC;
  --dj-maxw:        1240px;
  --dj-serif:       'Noto Serif Bengali', 'Hind Siliguri', 'SolaimanLipi', serif;
  --dj-sans:        'Noto Sans Bengali', 'Hind Siliguri', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--dj-sans);
  background: var(--dj-bg);
  color: var(--dj-text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--dj-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

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

/* ============== TOP BAR ============== */
.dj-topbar {
  background: var(--dj-green);
  color: #fff;
  font-size: 12px;
  padding: 6px 0;
}
.dj-topbar .dj-container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.dj-topbar a { color: #fff; }
.dj-topbar-links a:hover { text-decoration: underline; }

/* ============== HEADER / LOGO ============== */
.dj-header {
  background: #fff;
  border-bottom: 1px solid var(--dj-border);
  padding: 16px 0;
}
.dj-header-flex { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dj-logo { display: flex; align-items: center; gap: 12px; }
.dj-logo img { height: 45px; width: auto; }
.dj-header-tagline { flex: 1; text-align: right; }
.dj-tagline-main { font-weight: 500; color: var(--dj-green); font-size: 12px; }
.dj-tagline-sub { color: var(--dj-muted); font-size: 12px; }
.dj-header-search form { display: flex; gap: 4px; }
.dj-header-search input {
  padding: 8px 12px;
  border: 1px solid var(--dj-border);
  border-radius: 4px 0 0 4px;
  font-size: 12px;
  font-family: inherit;
  min-width: 200px;
}
.dj-header-search button {
  padding: 8px 14px;
  background: var(--dj-green);
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 12px;
}

/* ============== MAIN NAV WITH DROPDOWNS ============== */
.dj-nav {
  background: var(--dj-green);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.dj-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  justify-content: flex-start;
}
.dj-menu > li {
  position: relative;
  border-right: 1px solid rgba(255,255,255,0.1);
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dj-menu > li > a {
  color: #fff;
  padding: 12px 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 18px;
  text-align: center;
  width: 100%;
}
.dj-menu > li > a:hover,
.dj-menu > li.active > a {
  background: var(--dj-green-dark);
  text-decoration: none;
}

.dj-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 180px;
  z-index: 200;
  border-radius: 0 0 4px 4px;
}
.dj-dropdown li { border-bottom: 1px solid var(--dj-border); }
.dj-dropdown li:last-child { border-bottom: none; }
.dj-dropdown a {
  color: var(--dj-text);
  padding: 10px 16px;
  display: block;
  font-size: 14px;
}
.dj-dropdown a:hover { background: var(--dj-bg); color: var(--dj-green); text-decoration: none; }

.dj-has-dropdown:hover > .dj-dropdown,
.dj-has-dropdown:focus-within > .dj-dropdown { display: block; }

/* Grid dropdown for 8 divisions (2 cols) */
.dj-dropdown-grid {
  display: none;
  grid-template-columns: 1fr 1fr;
  min-width: 280px;
}
.dj-has-dropdown:hover > .dj-dropdown-grid,
.dj-has-dropdown:focus-within > .dj-dropdown-grid { display: grid; }

/* ============== BREAKING TICKER ============== */
.dj-ticker {
  background: var(--dj-red);
  color: #fff;
  padding: 8px 0;
  font-weight: 500;
  overflow: hidden;
}
.dj-ticker .dj-container { display: flex; align-items: center; gap: 16px; }
.dj-ticker-label {
  background: #fff;
  color: var(--dj-red);
  padding: 4px 10px;
  font-weight: 700;
  font-size: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.dj-ticker-content { overflow: hidden; white-space: nowrap; flex: 1; }
.dj-ticker-track {
  display: inline-block;
  animation: dj-ticker-scroll 60s linear infinite;
}
.dj-ticker-track a { color: #fff; margin-right: 20px; }
.dj-ticker-sep { color: rgba(255,255,255,0.5); margin-right: 20px; }
@keyframes dj-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============== HOMEPAGE LAYOUT ============== */
.dj-main { padding: 24px 0; }
.dj-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
@media (max-width: 900px) { .dj-grid { grid-template-columns: 1fr; } }

.dj-section-title {
  font-family: var(--dj-serif);
  font-size: 24px;
  margin: 32px 0 16px 0;
  border-bottom: 2px solid var(--dj-green);
  padding-bottom: 8px;
}

/* Lead story */
.dj-lead {
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--dj-border);
  border-radius: 6px;
  overflow: hidden;
}
.dj-lead a:hover { text-decoration: none; }
.dj-lead-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #eee; display: block; }
.dj-lead-img-placeholder {
  background: url(/assets/images/placeholders/article-placeholder-1200.png) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--dj-serif);
  font-size: 28px;
}
.dj-lead-body { padding: 20px; }
.dj-lead-title {
  font-family: var(--dj-serif);
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 12px 0;
  color: var(--dj-text);
  font-weight: 700;
}
.dj-lead-summary { font-size: 17px; color: #444; margin: 0; }

/* Source badge row */
.dj-source-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
  align-items: center;
  font-size: 12px;
  color: var(--dj-muted);
}
.dj-source-badge {
  display: inline-block;
  background: #F0F0EC;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  color: var(--dj-text);
}
.dj-source-badge.multi { background: #E3F2FD; color: #0D47A1; }
.dj-source-badge.single { background: #FFF3E0; color: #BF360C; }

/* Top stories grid — FIX (2026-08-08): Use fixed 4-column grid so last row fills properly */
.dj-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.dj-card {
  background: #fff;
  border: 1px solid var(--dj-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.dj-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dj-card a:hover { text-decoration: none; }
.dj-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #eee; display: block; }
.dj-card-img-placeholder {
  background: url(/assets/images/placeholders/article-placeholder-1200.png) center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #fff;
  font-family: var(--dj-serif);
  font-size: 22px;
  font-weight: 700;
  padding-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.dj-lead-img-placeholder {
  background: url(/assets/images/placeholders/article-placeholder-1200.png) center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #fff;
  font-family: var(--dj-serif);
  font-size: 28px;
  font-weight: 700;
  padding-bottom: 30px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.dj-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.dj-card-title { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--dj-text); margin: 0; }
.dj-card-meta { font-size: 12px; color: var(--dj-muted); margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }

/* Bangladesh map widget */
.dj-map-widget {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--dj-border);
  margin-bottom: 16px;
}
.dj-map-widget #dj-bangladesh-map {
  background: #EAF3F1;
  height: 380px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--dj-border);
}
/* Large map widget at end of homepage */
.dj-map-section {
  background: linear-gradient(180deg, #F8FBFA 0%, #fff 100%);
  padding: 32px 20px;
  border-radius: 12px;
  border: 1px solid var(--dj-border);
}
.dj-map-widget-large {
  padding: 0;
  background: transparent;
  border: none;
  margin-bottom: 24px;
}
.dj-map-widget-large #dj-bangladesh-map {
  height: 540px;
  border-radius: 10px;
  border: 2px solid var(--dj-border);
  box-shadow: 0 4px 16px rgba(0, 106, 78, 0.08);
}
.dj-map-section-subtitle {
  text-align: center;
  color: var(--dj-muted);
  font-size: 14px;
  margin: 0 0 20px 0;
}
.dj-section-title-center {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.dj-section-bar {
  display: inline-block;
  width: 40px;
  height: 3px;
  background: var(--dj-red);
  border-radius: 2px;
  vertical-align: middle;
}
.dj-map-marker {
  background: transparent !important;
  border: none !important;
}
.dj-big-pin-wrap {
  background: transparent !important;
  border: none !important;
}
.dj-big-pin {
  transition: transform 0.2s ease;
}
.dj-big-pin:hover {
  transform: scale(1.15);
}
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  font-family: 'Noto Sans Bengali', sans-serif;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.leaflet-popup-content a {
  color: var(--dj-green);
  font-weight: 500;
}
.dj-map-hint {
  text-align: center;
  color: var(--dj-muted);
  font-size: 12px;
  margin: 12px 0 0 0;
}
.dj-division-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}
.dj-division-links a {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--dj-border);
  border-radius: 20px;
  color: var(--dj-green);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.dj-division-links a:hover {
  background: var(--dj-green);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 106, 78, 0.2);
}
.dj-division-links .dj-div-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--dj-red);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.dj-division-links a:hover .dj-div-num {
  background: #fff;
  color: var(--dj-red);
}
.dj-division-links-large {
  gap: 12px;
  margin-top: 24px;
}
.dj-division-links-large a {
  padding: 10px 20px;
  font-size: 15px;
}

/* Category blocks */
.dj-category-block { margin-bottom: 32px; }
.dj-category-title {
  font-family: var(--dj-serif);
  font-size: 22px;
  margin: 0 0 12px 0;
  border-bottom: 2px solid var(--dj-red);
  padding-bottom: 8px;
}
.dj-category-title a { color: var(--dj-text); }
.dj-category-title a:hover { text-decoration: none; color: var(--dj-green); }
.dj-category-title .dj-more { color: var(--dj-red); }
.dj-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.dj-cat-card { min-height: 110px; }

/* Sidebar */
.dj-sidebar {
  /* No sticky, no max-height, no overflow — sidebar flows naturally with page */
  align-self: start;
  padding-right: 4px;
}

.dj-sidebar-block {
  background: #fff;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid var(--dj-border);
  margin-bottom: 20px;
}
.dj-sidebar-block h3 {
  font-size: 16px;
  border-bottom: 2px solid var(--dj-green);
  padding-bottom: 8px;
  margin: 0 0 12px 0;
}
.dj-empty { color: var(--dj-muted); font-size: 12px; }

.dj-most-read-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--dj-border);
  color: var(--dj-text);
  align-items: flex-start;
}
.dj-most-read-item:hover { text-decoration: none; color: var(--dj-green); }
.dj-most-read-item:last-child { border-bottom: none; }
.dj-rank {
  font-size: 22px;
  font-weight: 700;
  color: var(--dj-green);
  flex-shrink: 0;
  min-width: 24px;
  text-align: center;
}
.dj-most-read-title { font-size: 12px; line-height: 1.4; }

.dj-ad-slot .dj-ad-placeholder {
  background: linear-gradient(135deg, #F5F5F0 0%, #E5E5E0 100%);
  border: 2px dashed #CCC;
  padding: 60px 20px;
  text-align: center;
  color: #999;
  font-size: 12px;
  border-radius: 4px;
}
.dj-ad-tall { min-height: 250px; display: flex; align-items: center; justify-content: center; }

/* Ad and promo blocks: NO padding so images fill the block edge-to-edge */
.dj-sidebar-block.dj-ad-slot {
  padding: 0;
  overflow: hidden;
  line-height: 0;
}
.dj-sidebar-block.dj-ad-slot h3 {
  padding: 12px 16px 8px;
  margin: 0;
  line-height: 1.4;
}
.dj-sidebar-block.dj-ad-slot .dj-ad-slot img,
.dj-sidebar-block.dj-ad-slot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* Promo image blocks (newsletter, app) — no padding, image fills the block, with hover effect */
.dj-sidebar-block.dj-promo-block {
  padding: 0;
  overflow: hidden;
  line-height: 0;
  border-radius: 6px;
}
.dj-sidebar-block.dj-promo-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.dj-sidebar-block.dj-promo-block:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* Ad image blocks (when ad is rendered as image placeholder) — same hover as promo */
.dj-ad-image-block {
  padding: 0 !important;
  overflow: hidden;
  line-height: 0;
  border-radius: 6px;
}
.dj-ad-image-block a {
  display: block;
  line-height: 0;
}
.dj-ad-image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.dj-ad-image-block:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* Header leaderboard ad — also has hover */
.dj-header-leaderboard img {
  transition: transform 0.3s ease, filter 0.3s ease;
}
.dj-header-leaderboard:hover img {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.dj-sources-text { font-size: 12px; color: var(--dj-muted); margin: 0 0 12px 0; }
.dj-source-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dj-source-logo { display: flex; align-items: center; justify-content: center; padding: 6px; background: #F8F8F5; border-radius: 4px; }
.dj-source-logo img { width: 32px; height: 32px; object-fit: contain; }

.dj-sidebar-info { background: linear-gradient(135deg, var(--dj-green) 0%, var(--dj-green-dark) 100%); color: #fff; }
.dj-sidebar-info h3 { color: #fff; border-color: rgba(255,255,255,0.3); }
.dj-sidebar-info p { font-size: 12px; opacity: 0.9; margin: 0 0 12px 0; }

/* ============== ARTICLE PAGE ============== */
.dj-article { background: #fff; border: 1px solid var(--dj-border); border-radius: 6px; padding: 32px; max-width: 820px; margin: 0 auto; }
@media (max-width: 600px) { .dj-article { padding: 16px; } }

.dj-breadcrumb { font-size: 12px; color: var(--dj-muted); margin-bottom: 16px; }
.dj-breadcrumb a { color: var(--dj-muted); }
.dj-breadcrumb .sep { margin: 0 6px; opacity: 0.6; }

.dj-article h1 {
  font-family: var(--dj-serif);
  font-size: 32px;
  line-height: 1.3;
  margin: 0 0 16px 0;
  color: var(--dj-text);
}

.dj-byline {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--dj-muted);
  padding: 8px 12px;
  background: #F8F8F5;
  border-radius: 4px;
}

/* DISPUTED FACTS YELLOW BOX (§E.3) */
.dj-disputed {
  background: var(--dj-yellow-bg);
  border: 2px solid var(--dj-yellow-border);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 16px 0 24px 0;
}
.dj-disputed-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--dj-yellow-text);
  margin-bottom: 10px;
}
.dj-disputed-list { list-style: none; padding: 0; margin: 0; }
.dj-disputed-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--dj-yellow-border);
  font-size: 15px;
}
.dj-disputed-list li:last-child { border-bottom: none; }
.dj-disputed-source {
  font-weight: 700;
  color: var(--dj-yellow-text);
  background: rgba(245, 166, 35, 0.2);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
}

.dj-ai-disclosure {
  background: #F5F5F0;
  border-left: 3px solid var(--dj-green);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--dj-muted);
  margin: 16px 0;
  border-radius: 0 4px 4px 0;
}

.dj-featured-img { max-width: 100%; height: auto; max-height: 500px; object-fit: contain; border-radius: 4px; margin: 16px auto; display: block; }
.dj-image-credit { font-size: 12px; color: var(--dj-muted); margin: -8px auto 16px auto; font-style: italic; text-align: center; }

.dj-article-body { font-size: 18px; line-height: 1.85; }
.dj-article-body p { margin: 0 0 1em 0; }
.dj-article-body h2 {
  font-family: var(--dj-serif);
  font-size: 22px;
  margin: 1.5em 0 0.6em 0;
  color: var(--dj-green);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--dj-border);
}
.dj-article-body ul { padding-left: 24px; margin: 0 0 1em 0; }
.dj-article-body li { margin-bottom: 6px; }

.dj-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0; }
.dj-tag { background: #E8F5E9; color: var(--dj-green); padding: 4px 10px; border-radius: 12px; font-size: 12px; }

.dj-related { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--dj-border); }
.dj-related h2 { font-family: var(--dj-serif); font-size: 22px; margin: 0 0 16px 0; }

.dj-share { display: flex; gap: 12px; margin-top: 24px; padding: 16px 0; border-top: 1px solid var(--dj-border); align-items: center; flex-wrap: wrap; }
.dj-share a { padding: 6px 14px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.dj-share-fb { background: #1877F2; color: #fff; }
.dj-share-wa { background: #25D366; color: #fff; }

/* ============== FOOTER ============== */
.dj-footer {
  background: #1A1A1A;
  color: #ccc;
  padding: 40px 0 20px 0;
  margin-top: 48px;
  font-size: 12px;
}
.dj-footer a { color: #fff; }
.dj-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .dj-footer-grid { grid-template-columns: 1fr 1fr; } }
.dj-footer h4 { color: #fff; font-size: 16px; margin: 0 0 12px 0; }
.dj-footer ul { list-style: none; padding: 0; margin: 0; }
.dj-footer li { padding: 4px 0; }
.dj-footer-about { color: #aaa; font-size: 12px; line-height: 1.7; }
.dj-footer-bottom {
  border-top: 1px solid #333;
  padding-top: 16px;
  text-align: center;
  color: #888;
  font-size: 12px;
}
.dj-footer-bottom > div { margin: 4px 0; }
.dj-footer-copyright strong { color: #fff; }
.dj-footer-meta { color: #aaa; }
.dj-footer-meta strong { color: #fff; }
.dj-footer-disclaimer {
  color: #777;
  font-size: 12px;
  font-style: italic;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #333;
}

/* ============== ADMIN ============== */
.dj-admin-body { background: #F5F5F7; font-family: var(--dj-sans); }
.dj-admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 800px) { .dj-admin-layout { grid-template-columns: 1fr; } .dj-admin-sidebar { display: none; } }

.dj-admin-sidebar { background: #2C3E50; color: #ECF0F1; padding: 20px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dj-admin-sidebar h2 { color: #fff; font-size: 22px; padding: 0 20px 20px 20px; border-bottom: 1px solid #34495E; margin: 0 0 16px 0; }
.dj-admin-sidebar a { display: block; padding: 10px 20px; color: #BDC3C7; text-decoration: none; }
.dj-admin-sidebar a:hover, .dj-admin-sidebar a.active { background: #34495E; color: #fff; }
.dj-admin-main { padding: 24px; }

.dj-admin-topbar {
  background: #fff;
  padding: 12px 24px;
  margin: -24px -24px 24px -24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E5E5E5;
}
.dj-admin-topbar .user-info { font-size: 12px; color: #555; }
.dj-admin-topbar .user-info strong { color: #2C3E50; }

.dj-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.dj-stat-card { background: #fff; padding: 20px; border-radius: 8px; border-left: 4px solid var(--dj-green); }
.dj-stat-card.warn { border-left-color: var(--dj-yellow-border); }
.dj-stat-card.danger { border-left-color: var(--dj-red); }
.dj-stat-card .label { font-size: 12px; color: #7F8C8D; text-transform: uppercase; letter-spacing: 0.5px; }
.dj-stat-card .value { font-size: 28px; font-weight: 700; color: #2C3E50; margin-top: 4px; }

.dj-admin-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 20px; }
.dj-admin-card h3 { margin: 0 0 16px 0; font-size: 18px; color: #2C3E50; border-bottom: 1px solid #E5E5E5; padding-bottom: 8px; }

.dj-table { width: 100%; border-collapse: collapse; }
.dj-table th, .dj-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid #E5E5E5; font-size: 12px; }
.dj-table th { background: #F8F9FA; font-weight: 600; color: #495057; }
.dj-table tr:hover { background: #F8F9FA; }

.dj-btn { display: inline-block; padding: 6px 14px; border-radius: 4px; font-size: 12px; font-weight: 500; border: none; cursor: pointer; text-decoration: none; }
.dj-btn-primary { background: var(--dj-green); color: #fff; }
.dj-btn-danger  { background: var(--dj-red); color: #fff; }
.dj-btn-secondary { background: #ECF0F1; color: #2C3E50; }
.dj-btn:hover { opacity: 0.9; text-decoration: none; }

.dj-login-box { max-width: 360px; margin: 80px auto; background: #fff; padding: 32px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.dj-login-box h1 { text-align: center; color: var(--dj-green); margin: 0 0 24px 0; font-size: 28px; }
.dj-form-group { margin-bottom: 16px; }
.dj-form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 12px; }
.dj-form-group input { width: 100%; padding: 10px; border: 1px solid #DDD; border-radius: 4px; font-size: 15px; font-family: inherit; }
.dj-form-error { background: #FDE8E8; color: #C8102E; padding: 10px; border-radius: 4px; margin-bottom: 16px; font-size: 12px; }
.dj-alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; }
.dj-alert-success { background: #E8F5E9; color: #2E7D32; }
.dj-alert-warn { background: #FFF8E1; color: #F57F17; }

/* Category page list */
.dj-cat-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.dj-cat-page-grid .dj-card { min-height: 140px; }

/* ============== DARK MODE (Phase 9.1) ============== */
@media (prefers-color-scheme: dark) {
    :root {
        --dj-bg: #1A1A1A;
        --dj-text: #F5F5F5;
        --dj-muted: #999;
        --dj-border: #333;
        --dj-yellow-bg: #3d2f0a;
        --dj-yellow-text: #FFD700;
    }
}

body.dj-dark-mode {
    --dj-bg: #1A1A1A;
    --dj-text: #F5F5F5;
    --dj-muted: #999;
    --dj-border: #333;
    --dj-yellow-bg: #3d2f0a;
    --dj-yellow-text: #FFD700;
    background: var(--dj-bg);
    color: var(--dj-text);
}

body.dj-dark-mode .dj-header,
body.dj-dark-mode .dj-lead,
body.dj-dark-mode .dj-card,
body.dj-dark-mode .dj-sidebar-block,
body.dj-dark-mode .dj-admin-card,
body.dj-dark-mode .dj-article {
    background: #2A2A2A;
    color: var(--dj-text);
}

body.dj-dark-mode .dj-card-title,
body.dj-dark-mode .dj-lead-title,
body.dj-dark-mode h1,
body.dj-dark-mode h2,
body.dj-dark-mode h3 {
    color: var(--dj-text);
}

body.dj-dark-mode .dj-source-badge {
    background: #3A3A3A;
    color: #DDD;
}

body.dj-dark-mode .dj-table th {
    background: #1F1F1F;
    color: #CCC;
}

body.dj-dark-mode .dj-table tr:hover {
    background: #1F1F1F;
}

body.dj-dark-mode .dj-input,
body.dj-dark-mode .dj-select,
body.dj-dark-mode .dj-textarea {
    background: #1F1F1F;
    color: var(--dj-text);
    border-color: #444;
}

body.dj-dark-mode .dj-footer {
    background: #0A0A0A;
}

.dj-dark-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.dj-dark-toggle:hover { background: rgba(255,255,255,0.1); }

/* ============== HEADER LAYOUT FIX: logo (icon+text) + leaderboard side by side ============== */
.dj-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.dj-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.dj-logo-icon {
    height: 50px;
    width: 50px;
    object-fit: contain;
    border-radius: 6px;
}
.dj-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.dj-logo-text-bn {
    font-family: var(--dj-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--dj-green);
    line-height: 1.1;
}
.dj-logo-text-en {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--dj-red);
    letter-spacing: 1.5px;
    margin-top: 2px;
}
.dj-footer-logo {
    margin-bottom: 12px;
}
.dj-footer-logo .dj-logo-text-bn { color: #fff; }
.dj-footer-logo .dj-logo-text-en { color: rgba(255,255,255,0.7); }
.dj-header-leaderboard {
    flex: 1;
    max-width: 728px;
    display: flex;
    justify-content: flex-end;
    line-height: 0;
}
.dj-header-leaderboard a {
    display: block;
    line-height: 0;
    border-radius: 4px;
    overflow: hidden;
}
.dj-header-leaderboard img {
    max-height: 90px;
    width: 100%;
    max-width: 728px;
    height: auto;
    border-radius: 0;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.dj-header-leaderboard:hover img {
    transform: scale(1.02);
    filter: brightness(1.05);
}

@media (max-width: 600px) {
    .dj-logo-icon { height: 40px; width: 40px; }
    .dj-logo-text-bn { font-size: 22px; }
    .dj-logo-text-en { font-size: 9px; }
}

/* ============== NAV: smarter, more compact ============== */
.dj-nav {
    background: var(--dj-green);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.dj-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    align-items: stretch;
}
.dj-menu > li {
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.dj-menu > li > a {
    color: #fff;
    padding: 6px 8px;
    font-weight: 500;
    display: block;
    white-space: nowrap;
    font-size: 12px;
    transition: background 0.15s;
}
.dj-menu > li > a:hover,
.dj-menu > li.active > a {
    background: rgba(0,0,0,0.2);
    text-decoration: none;
}

/* Remove the old header tagline + search (no longer used) */
.dj-header-tagline { display: none; }
.dj-header-search { display: none; }

/* ============== STATIC PAGES (About, Editorial, Correction, Contact, Privacy) ============== */
.dj-static-hero {
    position: relative;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #006A4E 0%, #004D38 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.dj-static-hero-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}
.dj-static-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 106, 78, 0.85) 0%, rgba(0, 30, 60, 0.75) 100%);
    z-index: 2;
}
.dj-static-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 20px;
}
.dj-static-hero-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 8px;
}
.dj-static-hero-title {
    font-family: var(--dj-serif);
    font-size: 36px;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.dj-static-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.dj-static-stat-card {
    background: #fff;
    padding: 24px 16px;
    border-radius: 10px;
    border: 1px solid var(--dj-border);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dj-static-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 106, 78, 0.1);
}
.dj-static-stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.dj-static-stat-value {
    font-family: var(--dj-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--dj-green);
    line-height: 1;
}
.dj-static-stat-label {
    font-size: 13px;
    color: var(--dj-muted);
    margin-top: 4px;
}

.dj-static-content {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--dj-border);
    padding: 40px;
    margin-bottom: 32px;
}
@media (max-width: 600px) {
    .dj-static-content { padding: 20px; }
    .dj-static-hero { height: 180px; }
    .dj-static-hero-title { font-size: 26px; }
    .dj-static-hero-icon { font-size: 40px; }
}

.dj-static-body {
    font-family: var(--dj-serif);
    font-size: 17px;
    line-height: 1.8;
    color: var(--dj-text);
}
.dj-static-body h2 {
    font-family: var(--dj-serif);
    color: var(--dj-green);
    margin: 32px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--dj-green);
    font-size: 24px;
}
.dj-static-body h2:first-child { margin-top: 0; }
.dj-static-body h3 {
    color: var(--dj-text);
    margin: 24px 0 8px 0;
    font-size: 19px;
}
.dj-static-body p { margin: 0 0 14px 0; }
.dj-static-body ul, .dj-static-body ol {
    margin: 0 0 14px 0;
    padding-left: 24px;
}
.dj-static-body li { margin-bottom: 6px; }
.dj-static-body strong { color: var(--dj-green); font-weight: 700; }
.dj-static-body a { color: var(--dj-green); text-decoration: underline; }
.dj-static-body blockquote {
    background: linear-gradient(135deg, #F0F8F5 0%, #E8F5EE 100%);
    border-left: 4px solid var(--dj-green);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
}

.dj-static-cards {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px dashed var(--dj-border);
}
.dj-static-cards-title {
    font-family: var(--dj-serif);
    font-size: 24px;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.dj-static-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.dj-static-card {
    background: linear-gradient(135deg, #FAFBFC 0%, #F0F4F8 100%);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--dj-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dj-static-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 106, 78, 0.12);
    border-color: var(--dj-green);
}
.dj-static-card-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.dj-static-card-title {
    font-family: var(--dj-serif);
    color: var(--dj-green);
    font-size: 17px;
    margin: 0 0 8px 0;
}
.dj-static-card-text {
    font-size: 14px;
    color: var(--dj-muted);
    line-height: 1.5;
    margin: 0;
}

/* CTA box on static pages */
.dj-static-cta {
    background: linear-gradient(135deg, var(--dj-green) 0%, var(--dj-green-dark) 100%);
    color: #fff;
    padding: 24px;
    border-radius: 10px;
    margin-top: 32px;
    text-align: center;
}
.dj-static-cta h3 {
    color: #fff;
    font-family: var(--dj-serif);
    font-size: 20px;
    margin: 0 0 8px 0;
}
.dj-static-cta p {
    margin: 0 0 16px 0;
    opacity: 0.95;
    font-size: 14px;
}
.dj-static-cta a {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    color: var(--dj-green);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.2s ease;
}
.dj-static-cta a:hover { transform: translateY(-1px); }

/* ============================================================
   MOBILE RESPONSIVE — Hamburger menu + touch-friendly nav
   Added 2026-07-28 per HONEST_AUDIT.md §1.7
   ============================================================ */

/* Hamburger button — hidden on desktop, visible on mobile */
.dj-menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 24px;
    padding: 8px 12px;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 768px) {
    /* Top bar — hide non-essential links, keep date + search */
    .dj-topbar { font-size: 12px; padding: 6px 0; }
    .dj-topbar-links a:not(.dj-search-link) { display: none; }
    .dj-topbar-links a.dj-search-link { display: inline; }
    .dj-topbar-links .dj-dark-toggle { display: inline-block; }

    /* Header — stack logo + ad vertically */
    .dj-header-flex {
        flex-direction: column;
        gap: 8px;
        padding: 8px 0;
        text-align: center;
    }
    .dj-header-leaderboard { display: none; }  /* hide 728x90 ad on mobile */
    .dj-logo img { height: 36px !important; }

    /* Nav — hamburger menu */
    .dj-nav { padding: 0; }
    .dj-nav .dj-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px;
    }
    .dj-menu-toggle {
        display: block;
        order: 1;
    }
    .dj-menu {
        position: fixed;
        top: 0;
        left: -100%; right: auto;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--dj-green);
        flex-direction: column;
        padding: 60px 0 20px 0;
        gap: 0;
        overflow-y: auto;
        transition: left 0.25s ease;
        z-index: 9999;
        box-shadow: 2px 0 8px rgba(0,0,0,0.3);
    }
    .dj-menu.dj-menu-open {
        left: 0; right: auto;
    }
    .dj-menu > li {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }
    .dj-menu > li > a {
        padding: 14px 20px;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Dropdown — HIDE on mobile by default (don't expand inline).
       Only the parent category link is visible. Users tap the parent
       to navigate to the category landing page where they can see sub-categories.
       This keeps the mobile menu compact and shows the MAIN menu items. */
    .dj-dropdown {
        display: none !important;
    }
    /* Special: hide the "সারাদেশ" (divisions) dropdown parent's children entirely
       on mobile — divisions are accessible via /division/{slug} or the country page */
    .dj-has-dropdown > a::after {
        content: '';
    }

    /* Backdrop when menu is open */
    .dj-menu-backdrop {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
    }
    .dj-menu-backdrop.dj-menu-backdrop-open {
        display: block;
    }

    /* Hero/lead story — full width, smaller image */
    .dj-lead-img { height: 200px !important; }
    .dj-lead-title { font-size: 20px !important; }

    /* Cards — single column */
    .dj-top-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .dj-cat-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .dj-card-img { height: 180px !important; }

    /* Footer — 1 column */
    .dj-footer-grid { grid-template-columns: 1fr !important; }
    .dj-footer-col { margin-bottom: 16px; }

    /* Article body — narrower line length */
    .dj-article { padding: 12px !important; }
    .dj-article-body { font-size: 17px; line-height: 1.8; }

    /* Sidebar — stack below main content */
    .dj-grid { grid-template-columns: 1fr !important; }

    /* Touch targets — minimum 44x44px per WCAG 2.1 AA */
    .dj-menu > li > a,
    .dj-dropdown a,
    .dj-footer-col a,
    .dj-topbar-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Hide Bangladesh map on mobile (too wide, breaks layout) */
    #dj-bangladesh-map { height: 250px !important; }

    /* Tables — horizontal scroll */
    .dj-table { font-size: 13px; }
    .dj-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ============================================================
   MOBILE FIXES v2 — 2026-07-28
   Fix: hamburger touch target, logo size, collapsible footer, map
   ============================================================ */

/* Larger hamburger touch target (44x44 min per WCAG) */
@media (max-width: 768px) {
    .dj-menu-toggle {
        font-size: 26px;
        padding: 10px 14px;
        min-width: 44px;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Larger logo on mobile */
    .dj-logo img {
        height: 52px !important;
    }

    /* Collapsible footer — accordion style */
    .dj-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    .dj-footer-col {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 0 !important;
        margin: 0 !important;
    }
    .dj-footer-col:first-child {
        padding: 16px 0 !important;
    }
    .dj-footer-col h4 {
        cursor: pointer;
        padding: 14px 0;
        margin: 0;
        font-size: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        user-select: none;
    }
    .dj-footer-col h4::after {
        content: "▸";
        font-size: 14px;
        transition: transform 0.2s;
        color: rgba(255,255,255,0.5);
    }
    .dj-footer-col.dj-footer-open h4::after {
        transform: rotate(90deg);
    }
    .dj-footer-col ul,
    .dj-footer-col .dj-footer-about {
        display: none;
        padding: 0 0 12px 0 !important;
    }
    .dj-footer-col.dj-footer-open ul,
    .dj-footer-col.dj-footer-open .dj-footer-about {
        display: block;
    }
    .dj-footer-col:first-child .dj-footer-about {
        display: block !important;
    }
    .dj-footer-col:first-child h4::after {
        display: none;
    }
    .dj-footer-col ul li a {
        padding: 8px 0;
        display: block;
    }

    /* Footer bottom — smaller text */
    .dj-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 12px;
    }

    /* Map — proper height on mobile */
    #dj-bangladesh-map {
        height: 300px !important;
        max-height: 50vh !important;
    }

    /* Top bar — hide tagline on mobile, keep date + search */
    .dj-topbar span:not(.dj-bangla-date):not(.dj-search-link) {
        display: none !important;
    }
    .dj-topbar .dj-bangla-date {
        font-size: 11px;
    }
}

/* Desktop: footer columns visible by default (no accordion) */
@media (min-width: 769px) {
    .dj-footer-col ul,
    .dj-footer-col .dj-footer-about {
        display: block !important;
    }
}

/* ============================================================
   MOBILE MENU FIX v3 — Left-side drawer + body scroll lock
   ============================================================ */

/* Override the old right-side menu with left-side */
@media (max-width: 768px) {
    .dj-menu {
        left: -100% !important;
        right: auto !important;
        transition: left 0.25s ease !important;
        box-shadow: 2px 0 8px rgba(0,0,0,0.3) !important;
    }
    .dj-menu.dj-menu-open {
        left: 0 !important;
        right: auto !important;
    }

    /* Lock body scroll when menu is open */
    body.dj-menu-body-locked {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }

    /* Hamburger on the LEFT side now */
    .dj-menu-toggle {
        order: 0 !important;
    }
}

/* ============================================================
   MAP Z-INDEX FIX — prevent Leaflet from overlapping header/footer
   ============================================================ */

/* Constrain all Leaflet z-indexes to stay below the sticky header (z-index: 100) */
.dj-map-section {
    position: relative;
    z-index: 0; /* create a new stacking context */
    isolation: isolate; /* isolate from rest of page */
}

/* Force Leaflet panes to low z-index within the map section */
.dj-map-section .leaflet-pane,
.dj-map-section .leaflet-top,
.dj-map-section .leaflet-bottom,
.dj-map-section .leaflet-control {
    z-index: 1 !important;
}

.dj-map-section .leaflet-popup-pane {
    z-index: 2 !important;
}

/* Ensure the sticky nav stays above everything */
.dj-nav {
    z-index: 1000 !important;
}

/* Ensure the mobile menu stays above map */
.dj-menu {
    z-index: 9999 !important;
}

/* ============================================================
   HOVER EFFECTS v2 — all cards + sidebar banners
   ============================================================ */

/* News cards: lift + shadow + image zoom on hover */
.dj-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 8px;
    overflow: hidden;
}
.dj-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 106, 78, 0.12);
}
.dj-card img.dj-card-img {
    transition: transform 0.3s ease;
}
.dj-card:hover img.dj-card-img {
    transform: scale(1.05);
}

/* Lead story hover — DISABLED per founder directive (2026-08-11)
   The dual-layer image swap JS (featured ↔ OG) conflicts with CSS hover transform,
   causing a visual glitch when mouse enters the card.
   Only the lead card hover is disabled; all other cards retain their hover effects. */
.dj-lead {
    transition: none;
}
.dj-lead:hover {
    transform: none;
    box-shadow: none;
}
.dj-lead img.dj-lead-img {
    transition: opacity 0.5s ease;
}
.dj-lead:hover img.dj-lead-img {
    transform: none;
}

/* Sidebar banner hover (newsletter + app download) */
.dj-sidebar-block a img {
    transition: transform 0.3s ease, filter 0.3s ease;
}
.dj-sidebar-block a:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* Photo carousel cards hover */
#dj-photo-scroll > a > div {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#dj-photo-scroll > a:hover > div {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 106, 78, 0.15);
}
#dj-photo-scroll img {
    transition: transform 0.3s ease;
}
#dj-photo-scroll a:hover img {
    transform: scale(1.05);
}

/* ============================================================
   ISLAMIC PRAYER TIMES CARD
   ============================================================ */
.dj-prayer-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2440 100%);
    border-radius: 10px;
    padding: 16px;
    color: #fff;
}
.dj-prayer-card h3 {
    color: #fff;
    margin: 0 0 12px 0;
    font-size: 15px;
    text-align: center;
}
.dj-prayer-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.dj-prayer-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
}
.dj-prayer-time .prayer-icon {
    font-size: 16px;
}
.dj-prayer-time .prayer-name {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}
.dj-prayer-time .prayer-time-val {
    color: #fff;
    font-weight: 600;
    margin-left: auto;
    font-size: 13px;
}

/* ============================================================
   MARKET / CURRENCY / GOLD CARD
   ============================================================ */
.dj-market-card {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border-radius: 10px;
    padding: 16px;
    color: #fff;
}
.dj-market-card h3 {
    color: #fff;
    margin: 0 0 12px 0;
    font-size: 15px;
    text-align: center;
}
.dj-market-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.dj-market-item {
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dj-market-label {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
}
.dj-market-value {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}
.dj-market-updated {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    margin-top: 10px;
}

/* ============================================================
   EXPANDED SHARE BUTTONS (Twitter, LinkedIn, Telegram, Copy)
   ============================================================ */
.dj-share-x { background: #000; color: #fff; }
.dj-share-li { background: #0A66C2; color: #fff; }
.dj-share-tg { background: #0088CC; color: #fff; }
.dj-share-copy { background: #475569; color: #fff; cursor: pointer; border: none; font-family: inherit; }
.dj-share-copy:hover { background: #1e293b; }
.dj-share a:hover, .dj-share button:hover { opacity: 0.88; transform: translateY(-1px); transition: all 0.15s ease; }
@media (max-width: 600px) {
    .dj-share { gap: 6px; }
    .dj-share a, .dj-share button { padding: 5px 10px; font-size: 11px; }
    .dj-share span { display: none; }
}

/* ============================================================
   AI TL;DR SUMMARY BOX (unique — no Bangla competitor has this)
   ============================================================ */
.dj-tldr-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 20px 0 28px 0;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}
.dj-tldr-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.dj-tldr-icon {
    font-size: 18px;
}
.dj-tldr-label {
    font-weight: 700;
    color: #92400e;
    font-size: 14px;
}
.dj-tldr-tag {
    margin-left: auto;
    background: #f59e0b;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.dj-tldr-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #78350f;
    font-weight: 500;
}
@media (max-width: 600px) {
    .dj-tldr-box { padding: 12px 14px; margin: 16px 0 20px 0; }
    .dj-tldr-text { font-size: 14px; }
}
/* ============================================================
   ENHANCED WEATHER CARD (interactive, graphical)
   ============================================================ */
.dj-weather-enhanced {
    background: linear-gradient(135deg, var(--w-grad1, #0ea5e9) 0%, var(--w-grad2, #0284c7) 100%);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dj-weather-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.dj-weather-enhanced::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.dj-weather-enhanced::after {
    content: '';
    position: absolute;
    bottom: -20px; left: -20px;
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.dj-w-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.dj-w-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.95;
}
.dj-w-pin { font-size: 14px; }
.dj-w-desc {
    font-size: 11px;
    background: rgba(255,255,255,0.15);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.dj-w-main {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
    position: relative;
    z-index: 1;
}
.dj-w-icon-big {
    font-size: 42px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    animation: dj-w-float 3s ease-in-out infinite;
}
@keyframes dj-w-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.dj-w-temp {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}
.dj-w-unit {
    font-size: 18px;
    font-weight: 600;
    opacity: 0.8;
    margin-left: 2px;
}
.dj-w-feels {
    font-size: 11px;
    opacity: 0.85;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.dj-w-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.dj-w-detail-item {
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}
.dj-w-detail-icon { font-size: 14px; }
.dj-w-detail-label {
    font-size: 10px;
    opacity: 0.8;
}
.dj-w-detail-val {
    font-size: 12px;
    font-weight: 700;
}
.dj-w-forecast {
    display: flex;
    gap: 4px;
    justify-content: space-between;
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 6px;
    position: relative;
    z-index: 1;
}
.dj-w-fc-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: transform 0.15s ease;
}
.dj-w-fc-item:hover {
    transform: translateY(-2px);
}
.dj-w-fc-hour {
    font-size: 9px;
    opacity: 0.7;
}
.dj-w-fc-emoji {
    font-size: 14px;
}
.dj-w-fc-temp {
    font-size: 11px;
    font-weight: 700;
}


/* ============================================================
   TRENDING TAGS CLOUD
   ============================================================ */
.dj-tags-cloud .dj-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dj-tag-pill {
    display: inline-block;
    padding: 4px 10px;
    background: #f0fdf4;
    color: #006A4E;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}
.dj-tag-pill:hover {
    background: #006A4E;
    color: #fff;
    border-color: #006A4E;
    transform: translateY(-1px);
}

/* ============================================================
   DUAL DATE CARD (Bangla + Hijri)
   ============================================================ */
.dj-date-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    border-radius: 10px;
    padding: 16px;
    border: none;
}
.dj-date-card h3 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.2);
}
.dj-date-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.dj-date-item {
    flex: 1;
    text-align: center;
}
.dj-date-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.dj-date-val {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
}
.dj-date-bn .dj-date-val {
    color: #fbbf24;
}
.dj-date-hijri .dj-date-val {
    color: #34d399;
}
.dj-date-divider {
    width: 1px;
    background: rgba(255,255,255,0.15);
}

/* ============================================================
   ONLINE POLL WIDGET
   ============================================================ */
.dj-poll-card {
    background: linear-gradient(135deg, #fef2f2 0%, #fef3c7 100%);
    border: 1px solid #fecaca;
    border-radius: 10px;
}
.dj-poll-card h3 {
    color: #991b1b;
    border-bottom-color: #fca5a5;
}
.dj-poll-question {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.5;
}
.dj-poll-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dj-poll-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.dj-poll-option:hover {
    border-color: #006A4E;
    background: #f0fdf4;
}
.dj-poll-option input[type=radio] {
    accent-color: #006A4E;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.dj-poll-option-text {
    font-size: 13px;
    color: #1e293b;
}
.dj-poll-submit {
    background: #006A4E;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.15s ease;
}
.dj-poll-submit:hover {
    background: #00553E;
}
.dj-poll-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dj-poll-result-item {
    background: #fff;
    border-radius: 6px;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
}
.dj-poll-result-item.dj-poll-voted {
    border-color: #006A4E;
    background: #f0fdf4;
}
.dj-poll-option-label {
    font-size: 12px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 4px;
}
.dj-poll-bar {
    position: relative;
    height: 20px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}
.dj-poll-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #006A4E 0%, #00805e 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}
.dj-poll-pct {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.dj-poll-total {
    font-size: 11px;
    color: #64748b;
    margin: 8px 0 0 0;
    text-align: center;
}

/* ============================================================
   SPORTS / CRICKET WIDGET
   ============================================================ */
.dj-sports-card {
    background: linear-gradient(135deg, #14532d 0%, #052e16 100%);
    border-radius: 10px;
    padding: 14px 16px;
    color: #fff;
    border: 1px solid #166534;
}
.dj-sports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.dj-sports-header h3 {
    color: #fff;
    margin: 0;
    font-size: 15px;
    border: none;
    padding: 0;
}
.dj-sports-more {
    color: #86efac;
    font-size: 11px;
    text-decoration: none;
    font-weight: 600;
}
.dj-sports-more:hover {
    color: #fff;
    text-decoration: underline;
}
.dj-sports-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dj-sports-item {
    display: flex;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
    padding: 6px;
    transition: background 0.15s ease;
}
.dj-sports-item:hover {
    background: rgba(255,255,255,0.15);
}
.dj-sports-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.dj-sports-info {
    flex: 1;
    min-width: 0;
}
.dj-sports-title {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.dj-sports-time {
    font-size: 10px;
    color: #86efac;
}

/* ============================================================
   ARTICLE PAGE GRID (article + sidebar)
   ============================================================ */
.dj-article-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 900px) {
    .dj-article-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .dj-article-sidebar {
        order: 2;
    }
}
.dj-article-sidebar .dj-ad-slot {
    min-height: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    display: block;
    padding: 0;
}
.dj-article-sidebar .dj-ad-slot img {
    border-radius: 8px;
    border: none;
    display: block;
}

/* Article inside grid — override max-width so it fills the column */
.dj-article-grid .dj-article {
    max-width: 100%;
    margin: 0;
}

/* Grid items need min-width:0 to shrink below intrinsic content size */
.dj-article-grid > * {
    min-width: 0;
}
.dj-article-wrap {
    width: 100%;
    overflow: hidden;
}

/* ============================================================
   DAILY ISLAMIC CONTENT (compact cards)
   ============================================================ */
.dj-islamic-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
@media (max-width: 900px) {
    .dj-islamic-section {
        grid-template-columns: 1fr;
    }
}
.dj-islamic-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 3px solid #006A4E;
    border-radius: 8px;
    padding: 14px 16px;
    transition: box-shadow 0.2s ease;
}
.dj-islamic-card:hover {
    box-shadow: 0 2px 12px rgba(0, 106, 78, 0.1);
}
.dj-ayah-card {
    background: #fefce8;
    border-color: #fde68a;
    border-left-color: #ca8a04;
}
.dj-islamic-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 106, 78, 0.1);
}
.dj-islamic-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}
.dj-islamic-title-wrap h3 {
    margin: 0;
    font-size: 14px;
    color: #006A4E;
    font-family: var(--dj-serif);
    line-height: 1.3;
}
.dj-ayah-card .dj-islamic-title-wrap h3 {
    color: #ca8a04;
}
.dj-islamic-title-wrap small {
    color: #64748b;
    font-size: 10px;
    display: block;
    margin-top: 2px;
}
.dj-islamic-arabic {
    font-size: 16px;
    line-height: 1.8;
    text-align: right;
    direction: rtl;
    color: #1e293b;
    margin: 0 0 8px 0;
    font-family: 'Noto Naskh Arabic', 'Amiri', serif;
}
.dj-islamic-text {
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 8px 0;
}
.dj-islamic-narrator {
    display: block;
    font-size: 10px;
    color: #64748b;
    margin-bottom: 6px;
}
.dj-islamic-source {
    display: inline-block;
    font-size: 10px;
    color: #006A4E;
    text-decoration: none;
    font-weight: 600;
    padding: 3px 8px;
    background: rgba(0, 106, 78, 0.08);
    border-radius: 3px;
    transition: background 0.15s ease;
}
.dj-ayah-card .dj-islamic-source {
    color: #ca8a04;
    background: rgba(202, 138, 4, 0.08);
}
.dj-islamic-source:hover {
    background: rgba(0, 106, 78, 0.15);
}
.dj-islamic-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
}
.dj-islamic-audio-btn {
    background: #ca8a04;
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: inherit;
    padding: 0;
}
.dj-islamic-audio-btn:hover {
    background: #a16207;
}


/* ===== Article Reader Tools (font-size, TTS, progress) ===== */
.dj-reader-tools {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    padding: 10px 14px; margin: 0 0 16px 0;
    background: linear-gradient(90deg, #f0fdf4 0%, #f0f9ff 100%);
    border: 1px solid #d1fae5; border-radius: 10px;
}
.dj-tool-group { display: flex; gap: 4px; align-items: center; }
.dj-tool-label { color: #475569; font-weight: 500; margin-right: 4px; font-size: 12px; }
.dj-tool-btn {
    background: #fff; border: 1px solid #cbd5e1; color: #1e293b;
    padding: 4px 10px; border-radius: 6px; cursor: pointer;
    font-size: 13px; font-weight: 500; transition: all 0.15s ease; min-width: 32px;
}
.dj-tool-btn:hover:not(:disabled) { background: #006A4E; color: #fff; border-color: #006A4E; }
.dj-tool-btn.active { background: #006A4E; color: #fff; border-color: #006A4E; }
.dj-tool-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dj-tts-btn.playing { background: #dc2626; color: #fff; border-color: #dc2626; }
.dj-tts-status { margin-left: auto; color: #006A4E; font-size: 12px; font-weight: 500; }
.dj-article-body.font-sm { font-size: 15px !important; }
.dj-article-body.font-md { font-size: 18px !important; }
.dj-article-body.font-lg { font-size: 21px !important; }
@media (max-width: 768px) {
    .dj-article-body.font-sm { font-size: 14px !important; }
    .dj-article-body.font-md { font-size: 16px !important; }
    .dj-article-body.font-lg { font-size: 19px !important; }
}
.dj-read-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, #006A4E 0%, #F42A41 100%);
    z-index: 9999; transition: width 0.1s ease;
}


/* ============================================================================
   POLITICAL PARTY PAGES — Per POLITICAL_PARTY_NEWS_PLAN.md §7
   Source label rule: ALWAYS "সোর্স:" in Bangla script — never "SUTRO".
   ============================================================================ */

/* ===== Landing page hero ===== */
.dj-politics-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 40px 32px 32px;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    min-height: 200px;
}
.dj-politics-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 100%);
    z-index: 1;
}
.dj-politics-hero .dj-container,
.dj-politics-hero-content { position: relative; z-index: 2; }
.dj-politics-hero-content { max-width: 800px; }
.dj-politics-hero h1 {
    font-family: var(--dj-serif);
    font-size: 36px;
    margin: 0 0 12px;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    line-height: 1.2;
}
.dj-politics-hero-sub {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 18px;
    color: rgba(255,255,255,0.95);
    max-width: 720px;
}
.dj-politics-hero-stats {
    display: flex; gap: 24px; flex-wrap: wrap;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255,255,255,0.25);
}
.dj-politics-hero-stats span {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}
.dj-politics-hero-stats strong { color: #FFD700; font-size: 17px; }
.dj-politics-hero-placeholder-note {
    position: relative; z-index: 2;
    margin-top: 18px; padding: 8px 12px;
    background: rgba(0,0,0,0.5);
    border: 1px dashed rgba(255,255,255,0.6);
    border-radius: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
}
.dj-politics-hero-placeholder-note code {
    background: rgba(255,255,255,0.15);
    padding: 2px 6px; border-radius: 4px;
    font-family: monospace;
}
@media (max-width: 768px) {
    .dj-politics-hero { padding: 28px 18px 22px; min-height: 160px; }
    .dj-politics-hero h1 { font-size: 26px; }
    .dj-politics-hero-sub { font-size: 13px; }
    .dj-politics-hero-stats { gap: 14px; flex-direction: column; }
}

/* ===== Section titles ===== */
.dj-section-title {
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--dj-green, #006A4E);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dj-section-title h2 {
    font-family: var(--dj-serif);
    font-size: 26px;
    margin: 0;
    color: var(--dj-text);
}
.dj-section-subtitle {
    font-size: 13px;
    color: var(--dj-muted);
}

/* ===== Politics article grid (3-col) ===== */
.dj-politics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 16px 0;
}
@media (max-width: 1024px) { .dj-politics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .dj-politics-grid { grid-template-columns: 1fr; } }

.dj-politics-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    border-top: 4px solid var(--party-color, #006A4E);
}
.dj-politics-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border-color: var(--party-color, #006A4E);
}
.dj-politics-card-link { display: block; color: inherit; text-decoration: none; }
.dj-politics-card-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f4f6;
}
.dj-politics-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.dj-politics-card:hover .dj-politics-card-img img { transform: scale(1.05); }
.dj-politics-card-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}
.dj-politics-card-body { padding: 14px 16px 16px; }
.dj-politics-card-party {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600;
    color: var(--party-color, #006A4E);
    margin-bottom: 8px;
    padding: 3px 8px;
    background: color-mix(in srgb, var(--party-color, #006A4E) 12%, transparent);
    border-radius: 12px;
}
.dj-party-dot {
    display: inline-block;
    width: 8px; height: 8px; border-radius: 50%;
}
.dj-politics-card-title {
    font-family: var(--dj-serif);
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 8px;
    color: var(--dj-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dj-politics-card-summary {
    font-size: 13px;
    line-height: 1.6;
    color: var(--dj-muted);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dj-politics-card-meta {
    font-size: 12px;
    color: var(--dj-muted);
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

/* ===== Party cards grid (landing page) ===== */
.dj-party-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 16px 0;
}
@media (max-width: 1100px) { .dj-party-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .dj-party-cards-grid { grid-template-columns: 1fr; } }

.dj-party-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    border-top: 5px solid var(--party-color, #455A64);
    display: flex;
    flex-direction: column;
}
.dj-party-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
    border-color: var(--party-color, #455A64);
}
.dj-party-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}
.dj-party-card-link > .dj-party-card-cta { margin-top: auto; }
.dj-party-card-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--party-color, #455A64) 8%, #fff) 0%,
        #fff 100%);
}
.dj-party-card-logo {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--party-color, #455A64);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.dj-party-card-logo img {
    width: 100%; height: 100%; object-fit: cover;
}
.dj-party-card-titles h3 {
    font-family: var(--dj-serif);
    font-size: 17px;
    margin: 0 0 4px;
    color: var(--dj-text);
    line-height: 1.3;
}
.dj-party-card-short {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--party-color, #455A64);
    background: color-mix(in srgb, var(--party-color, #455A64) 12%, #fff);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.dj-party-card-leader {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--dj-text);
    border-bottom: 1px solid #f3f4f6;
}
.dj-party-card-symbol {
    padding: 6px 16px;
    font-size: 12px;
    color: var(--party-color, #455A64);
    background: color-mix(in srgb, var(--party-color, #455A64) 6%, #fff);
    border-bottom: 1px solid #f3f4f6;
    font-weight: 500;
}
.dj-party-card-symbol strong { color: var(--party-color, #455A64); }
.dj-party-card-ideology {
    padding: 10px 16px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--dj-muted);
    border-bottom: 1px solid #f3f4f6;
    min-height: 48px;
}
.dj-party-card-recent {
    padding: 10px 16px;
    background: #fafbfc;
    font-size: 12px;
    color: var(--dj-muted);
    min-height: 76px;
}
.dj-party-card-recent-empty {
    display: flex; align-items: center; justify-content: center;
    color: var(--dj-muted); font-style: italic;
}
.dj-party-card-recent strong { color: var(--dj-text); display: block; margin-bottom: 6px; font-size: 12px; }
.dj-party-card-recent ul { list-style: none; padding: 0; margin: 0; }
.dj-party-card-recent li { margin-bottom: 4px; line-height: 1.4; }
.dj-party-card-recent a {
    color: var(--dj-text); text-decoration: none;
    display: block;
    transition: color 0.15s;
}
.dj-party-card-recent a:hover { color: var(--party-color, #006A4E); }
.dj-party-card-cta {
    padding: 12px 16px;
    text-align: center;
    background: var(--party-color, #455A64);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    transition: opacity 0.15s;
}
.dj-party-card:hover .dj-party-card-cta { opacity: 0.92; }
.dj-party-card-ec-link {
    display: block;
    padding: 8px 16px;
    text-align: center;
    font-size: 11px;
    color: var(--dj-muted);
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.15s;
}
.dj-party-card-ec-link:hover {
    background: var(--party-color, #455A64);
    color: #fff;
}

/* ===== Source note box ===== */
.dj-politics-source-note {
    display: flex; align-items: flex-start; gap: 14px;
    margin: 32px 0 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-left: 4px solid #ca8a04;
    border-radius: 8px;
    color: #422006;
    font-size: 13px;
    line-height: 1.6;
}
.dj-politics-source-note-icon { font-size: 22px; flex-shrink: 0; }
.dj-politics-source-note strong { color: #78350f; }

/* ===== Empty state ===== */
.dj-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fafbfc;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    margin: 24px 0;
}
.dj-empty-state h3 {
    font-family: var(--dj-serif);
    color: var(--dj-text);
    margin: 0 0 8px;
}
.dj-empty-state p {
    color: var(--dj-muted);
    margin: 0;
}

/* ===== Party profile page hero (bounded card, light/glassy style) ===== */
.dj-party-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--dj-text);
    padding: 36px 32px 28px;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
}
.dj-party-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%);
    z-index: 1;
}
.dj-party-hero .dj-container { position: relative; z-index: 2; }
.dj-party-hero-content {
    display: flex; gap: 28px; align-items: flex-start;
    flex-wrap: wrap;
}
.dj-party-hero-logo-wrap {
    flex-shrink: 0;
    width: 110px; height: 110px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--party-color, #006A4E);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.dj-party-hero-logo { width: 100%; height: 100%; object-fit: cover; }
.dj-party-hero-logo-placeholder { font-size: 56px; }
.dj-party-hero-info { flex: 1; min-width: 280px; }
.dj-party-hero h1 {
    font-family: var(--dj-serif);
    font-size: 36px;
    margin: 0 0 6px;
    color: var(--dj-text);
    text-shadow: none;
    line-height: 1.25;
}
.dj-party-hero-enname {
    font-size: 15px;
    color: var(--dj-muted);
    margin-bottom: 14px;
    font-style: italic;
}
.dj-party-hero-meta {
    display: flex; gap: 20px; flex-wrap: wrap;
    font-size: 14px;
    margin-bottom: 14px;
    color: var(--dj-text);
}
.dj-party-hero-meta strong { color: var(--party-color, #006A4E); }
.dj-party-hero-meta a { color: var(--party-color, #006A4E); }
.dj-party-hero-ideology {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dj-text);
    padding: 10px 14px;
    background: rgba(255,255,255,0.5);
    border-left: 3px solid var(--party-color, #006A4E);
    border-radius: 4px;
    margin-bottom: 18px;
    max-width: 720px;
}
.dj-party-hero-stats {
    display: flex; gap: 24px; flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.dj-hero-stat {
    display: flex; flex-direction: column; gap: 2px;
    min-width: 80px;
}
.dj-hero-stat-num {
    font-family: var(--dj-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--party-color, #006A4E);
    line-height: 1;
}
.dj-hero-stat-label {
    font-size: 11px;
    color: var(--dj-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dj-party-hero-placeholder-note {
    position: relative; z-index: 2;
    margin-top: 18px; padding: 8px 12px;
    background: rgba(0,0,0,0.45);
    border: 1px dashed rgba(255,255,255,0.55);
    border-radius: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
}
.dj-party-hero-placeholder-note code {
    background: rgba(255,255,255,0.15);
    padding: 2px 6px; border-radius: 4px;
    font-family: monospace;
}

/* ===== Party section title (variant) ===== */
.dj-party-section-title {
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--party-color, #006A4E);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dj-party-section-title h2 {
    font-family: var(--dj-serif);
    font-size: 24px;
    margin: 0;
    color: var(--dj-text);
}
.dj-party-section-subtitle {
    font-size: 13px;
    color: var(--dj-muted);
}

/* ===== Pagination ===== */
.dj-politics-pagination {
    display: flex; gap: 6px; justify-content: center;
    margin: 32px 0;
    flex-wrap: wrap;
}
.dj-pagination-btn {
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: var(--dj-text);
    background: #fff;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.15s;
}
.dj-pagination-btn:hover {
    background: var(--party-color, #006A4E);
    color: #fff;
    border-color: var(--party-color, #006A4E);
}
.dj-pagination-btn.active {
    background: var(--party-color, #006A4E);
    color: #fff;
    border-color: var(--party-color, #006A4E);
}

/* ===== Wings grid ===== */
.dj-party-wings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin: 16px 0;
}
.dj-party-wing-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--party-color, #006A4E);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
}
.dj-party-wing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.dj-party-wing-card strong { display: block; color: var(--dj-text); font-size: 14px; }
.dj-party-wing-card small { color: var(--dj-muted); font-size: 12px; }

/* ===== Related parties ===== */
.dj-related-parties {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin: 16px 0;
}
.dj-related-party-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
    border-top: 3px solid var(--party-color, #006A4E);
}
.dj-related-party-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}
.dj-related-party-emoji { font-size: 28px; flex-shrink: 0; }
.dj-related-party-card strong { display: block; color: var(--dj-text); font-size: 14px; }
.dj-related-party-card small { color: var(--dj-muted); font-size: 12px; }

/* ===== Politics article page variants ===== */
.dj-politics-article-party-chip {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    margin: 16px 0;
    border: 2px solid;
    border-radius: 8px;
    background: color-mix(in srgb, var(--party-color, #006A4E) 8%, #fff);
}
.dj-politics-chip-cta {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--party-color, #006A4E);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid var(--party-color, #006A4E);
    border-radius: 4px;
    transition: all 0.15s;
}
.dj-politics-chip-cta:hover {
    background: var(--party-color, #006A4E);
    color: #fff;
}

/* ===== Source attribution block (সোর্স) — highlighted box ===== */
.dj-source-block {
    margin: 32px 0;
    padding: 0;
    background: linear-gradient(135deg, #fffbef 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-left: 5px solid #ca8a04;
    border-radius: 10px;
    overflow: hidden;
}
.dj-source-block-politics {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--party-color, #ca8a04) 5%, #fffbef) 0%,
        color-mix(in srgb, var(--party-color, #ca8a04) 10%, #fef3c7) 100%);
    border-color: color-mix(in srgb, var(--party-color, #ca8a04) 30%, #fde68a);
}
.dj-source-block-title {
    font-family: var(--dj-serif);
    font-size: 18px;
    font-weight: 700;
    padding: 12px 20px;
    background: rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.dj-source-block-body { padding: 16px 20px; }
.dj-source-row {
    display: flex; gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
}
.dj-source-row:last-child { border-bottom: none; }
.dj-source-label {
    flex-shrink: 0;
    min-width: 130px;
    color: var(--dj-text);
    font-weight: 500;
}
.dj-source-value {
    flex: 1;
    color: var(--dj-text);
}
.dj-source-value a {
    color: var(--party-color, #006A4E);
    text-decoration: none;
    word-break: break-all;
}
.dj-source-value a:hover { text-decoration: underline; }
.dj-source-disclaimer {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px dashed rgba(0,0,0,0.1);
}
.dj-source-disclaimer span { color: var(--dj-muted) !important; font-size: 12px !important; line-height: 1.5; }

/* ===== Parties mentioned chips ===== */
.dj-article-parties-mentioned {
    display: flex; gap: 8px; flex-wrap: wrap;
    align-items: center;
    padding: 14px 0;
    margin: 24px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}
.dj-party-mention-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}
.dj-party-mention-chip:hover {
    background: color-mix(in srgb, currentColor 8%, #fff);
    transform: translateY(-1px);
}

/* ===== Dark mode tweaks for politics pages ===== */
body.dj-dark-mode .dj-politics-card,
body.dj-dark-mode .dj-party-card {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}
body.dj-dark-mode .dj-politics-card-title,
body.dj-dark-mode .dj-party-card-titles h3 {
    color: #f3f4f6;
}
body.dj-dark-mode .dj-politics-card-summary,
body.dj-dark-mode .dj-party-card-ideology,
body.dj-dark-mode .dj-politics-card-meta,
body.dj-dark-mode .dj-party-card-leader,
body.dj-dark-mode .dj-party-card-recent,
body.dj-dark-mode .dj-party-card-recent a {
    color: #9ca3af;
}
body.dj-dark-mode .dj-party-card-recent strong,
body.dj-dark-mode .dj-politics-card-party {
    color: #f3f4f6;
}
body.dj-dark-mode .dj-party-card-recent { background: #111827; }
body.dj-dark-mode .dj-party-card-ec-link { background: #111827; color: #9ca3af; border-top-color: #374151; }
body.dj-dark-mode .dj-party-card-ec-link:hover { background: var(--party-color, #455A64); color: #fff; }
body.dj-dark-mode .dj-party-card-symbol { background: color-mix(in srgb, var(--party-color, #455A64) 15%, #1f2937); }
body.dj-dark-mode .dj-source-block {
    background: linear-gradient(135deg, #422006 0%, #451a03 100%);
    border-color: #78350f;
}
body.dj-dark-mode .dj-source-block-title { background: rgba(255,255,255,0.05); color: #fde68a; }
body.dj-dark-mode .dj-source-label,
body.dj-dark-mode .dj-source-value { color: #fef3c7; }
body.dj-dark-mode .dj-source-disclaimer span { color: #d1d5db !important; }
body.dj-dark-mode .dj-empty-state { background: #1f2937; border-color: #374151; }
body.dj-dark-mode .dj-empty-state h3 { color: #f3f4f6; }
body.dj-dark-mode .dj-politics-source-note {
    background: linear-gradient(135deg, #422006 0%, #451a03 100%);
    border-color: #78350f;
    color: #fef3c7;
}
body.dj-dark-mode .dj-politics-article-party-chip {
    background: color-mix(in srgb, var(--party-color, #006A4E) 15%, #1f2937);
}
body.dj-dark-mode .dj-related-party-card,
body.dj-dark-mode .dj-party-wing-card { background: #1f2937; border-color: #374151; }

/* ===== Person chips on article pages ===== */
.dj-person-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f8fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.dj-person-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    text-decoration: none;
    color: var(--dj-text);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}
.dj-person-chip:hover {
    border-color: #1565C0;
    background: #e3f2fd;
}
.dj-person-chip img {
    width: 24px; height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.dj-person-chip-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565C0;
    font-size: 11px;
    font-weight: 700;
}
.dj-person-chip-role {
    font-size: 9px;
    background: #1565C0;
    color: #fff;
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 2px;
}


/* ===== Added 2026-08-01: Directory + Profile CSS (was missing) ===== */

/* ===== Directory Landing Page — Person Cards ===== */
/* Per DIRECTORY_MASTER_PLAN.md — 5 per row, 1 line featured, 2 lines all */

.dj-directory-featured-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.dj-directory-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.dj-pcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--dj-border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--dj-text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  height: 100%;
}
.dj-pcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.12);
  border-color: var(--dj-green);
}

.dj-pcard-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.dj-pcard-photo {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #f0f4f0 0%, #e0e8e0 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.dj-pcard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.dj-pcard-photo-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--dj-muted);
  background: linear-gradient(135deg, #e8efe8 0%, #d0d8d0 100%);
}
.dj-pcard-verified {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.dj-pcard-info {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dj-pcard-name {
  font-family: var(--dj-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--dj-text);
  margin: 0;
  line-height: 1.3;
}
.dj-pcard-prof {
  font-size: 11px;
  color: var(--dj-muted);
  font-weight: 500;
}
.dj-pcard-pos {
  font-size: 11px;
  color: var(--dj-green);
  font-weight: 600;
  line-height: 1.35;
  margin-top: 2px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.dj-pcard-pos.is-acting {
  color: var(--dj-red);
  font-weight: 700;
}

.dj-pcard-news {
  display: block;
  padding: 6px 12px;
  font-size: 11px;
  color: var(--dj-blue);
  text-decoration: none;
  text-align: center;
  border-top: 1px solid var(--dj-border);
  background: #f8faf8;
  transition: background 0.2s;
}
.dj-pcard-news:hover {
  background: #eef4ee;
  color: var(--dj-green);
  text-decoration: none;
}

.dj-directory-scroll-wrap {
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
  padding: 4px 0;
}
.dj-directory-scroll-track {
  display: flex;
  gap: 14px;
  animation: dj-scroll-x 60s linear infinite;
  width: max-content;
}
.dj-directory-scroll-track:hover {
  animation-play-state: paused;
}
.dj-directory-scroll-track .dj-pcard {
  width: calc((100vw - 62px) / 5);
  min-width: 180px;
  max-width: 220px;
  height: 280px;
}
@keyframes dj-scroll-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 1024px) {
  .dj-directory-featured-row { grid-template-columns: repeat(4, 1fr); }
  .dj-directory-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .dj-directory-featured-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .dj-directory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .dj-pcard { height: 280px; }
  .dj-pcard-photo { height: 160px; }
  .dj-directory-scroll-track .dj-pcard {
    width: 140px;
    min-width: 140px;
    height: 240px;
  }
}
@media (max-width: 480px) {
  .dj-pcard-name { font-size: 12px; }
  .dj-pcard-pos { font-size: 10px; }
}

/* ===== Person Profile Page ===== */
.dj-profile-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8faf8 100%);
  border: 1px solid var(--dj-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.dj-profile-header-top {
  display: flex;
  gap: 24px;
  width: 100%;
}
.dj-profile-photo-large {
  width: 200px;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e8efe8 0%, #d0d8d0 100%);
  border: 3px solid var(--dj-green);
}
.dj-profile-photo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dj-profile-photo-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: var(--dj-muted);
}
.dj-profile-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dj-profile-header-info h1 {
  font-family: var(--dj-serif);
  font-size: 28px;
  color: var(--dj-text);
  margin: 0;
  line-height: 1.2;
}
.dj-profile-enname {
  font-size: 14px;
  color: var(--dj-muted);
  font-style: italic;
}
.dj-profile-position {
  font-size: 16px;
  color: var(--dj-green);
  font-weight: 600;
  padding: 8px 12px;
  background: rgba(0, 106, 78, 0.08);
  border-radius: 6px;
  border-left: 4px solid var(--dj-green);
  margin-top: 8px;
}
.dj-profile-position.is-acting {
  color: var(--dj-red);
  background: rgba(200, 16, 46, 0.08);
  border-left-color: var(--dj-red);
  font-weight: 700;
}
.dj-profile-org {
  font-size: 13px;
  color: var(--dj-muted);
}
.dj-profile-fb-link {
  font-size: 13px;
  color: var(--dj-blue);
}
.dj-profile-quick-info {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 13px;
  color: var(--dj-text);
}
.dj-profile-quick-info span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dj-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.dj-profile-chip {
  background: var(--dj-yellow-bg);
  border: 1px solid var(--dj-yellow-border);
  color: var(--dj-yellow-text);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.dj-profile-section-title {
  font-family: var(--dj-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--dj-text);
  border-bottom: 2px solid var(--dj-green);
  padding-bottom: 6px;
  margin: 24px 0 12px 0;
}

@media (max-width: 768px) {
  .dj-profile-header {
    flex-direction: column;
    padding: 16px;
  }
  .dj-profile-header-top {
    flex-direction: column;
    gap: 16px;
  }
  .dj-profile-photo-large {
    width: 150px;
    height: 180px;
    align-self: center;
  }
  .dj-profile-header-info h1 {
    font-size: 22px;
    text-align: center;
  }
  .dj-profile-enname {
    text-align: center;
  }
  .dj-profile-position {
    font-size: 14px;
    text-align: center;
  }
}


/* ===== Profile Page Enhancement (2026-08-01) ===== */

/* Verified badge next to name */
.dj-verified-badge {
  font-size: 18px;
  vertical-align: middle;
  margin-left: 4px;
}

/* Quick info sidebar */
.dj-quick-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dj-quick-info div {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: var(--dj-text);
  line-height: 1.4;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0ed;
}
.dj-quick-info div:last-child {
  border-bottom: none;
}
.dj-quick-info div span {
  flex-shrink: 0;
  font-size: 14px;
}
.dj-quick-info div strong {
  color: var(--dj-muted);
  font-weight: 600;
  font-size: 12px;
  min-width: 60px;
}

/* Social media links */
.dj-social-link {
  display: block;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: #f8faf8;
  border: 1px solid var(--dj-border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--dj-blue);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.dj-social-link:hover {
  background: #eef4ee;
  border-color: var(--dj-green);
  text-decoration: none;
}

/* Source card — compact, at bottom of profile, inside a card */
.dj-source-compact {
  background: #fff;
  border: 1px solid var(--dj-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.dj-source-compact-label {
  font-family: var(--dj-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--dj-text);
  margin-right: 4px;
}
.dj-source-compact-link {
  display: inline-block;
  padding: 4px 12px;
  background: #f0f4f0;
  border: 1px solid var(--dj-border);
  border-radius: 12px;
  font-size: 12px;
  color: var(--dj-green);
  text-decoration: none;
  transition: background 0.2s;
}
.dj-source-compact-link:hover {
  background: var(--dj-green);
  color: #fff;
  text-decoration: none;
}

/* Profile section title enhancement */
.dj-profile-section-title {
  font-family: var(--dj-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--dj-text);
  border-bottom: 2px solid var(--dj-green);
  padding-bottom: 6px;
  margin: 24px 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Profile header enhancement */
.dj-profile-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8faf8 100%);
  border: 1px solid var(--dj-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}



/* Political party badge in profile */
.dj-profile-party-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 106, 78, 0.08);
  border: 1px solid rgba(0, 106, 78, 0.2);
  border-radius: 6px;
  font-size: 13px;
  color: var(--dj-green);
  font-weight: 600;
  margin-top: 4px;
}
.dj-profile-party-badge img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

/* Cover photo banner */
.dj-profile-cover {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: -40px;
  position: relative;
  z-index: 0;
}
.dj-profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* News card grid in profile — FIX (2026-08-08): Use fixed 4-column grid */
.dj-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .dj-quick-info div strong {
    min-width: 50px;
    font-size: 11px;
  }
  .dj-source-compact {
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .dj-profile-section-title {
    font-size: 16px;
  }
}


/* ============================================================
   DIVISIONAL NEWS CAROUSEL (auto-scrolling, same as photo carousel)
   ============================================================ */
#dj-division-scroll > a > div {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#dj-division-scroll a:hover > div {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 106, 78, 0.15);
}
#dj-division-scroll img {
    transition: transform 0.3s ease;
}
#dj-division-scroll a:hover img {
    transform: scale(1.05);
}

/* Mobile: make entertainment grid scrollable (5 items too wide for mobile) */
@media (max-width: 768px) {
    .dj-entertainment-grid {
        display: flex !important;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 12px !important;
        padding: 8px 0 !important;
    }
    .dj-entertainment-grid > a {
        flex: 0 0 200px !important;
        white-space: normal !important;
    }
    .dj-entertainment-grid > a > div {
        width: 200px !important;
    }
    /* Division scroll cards - smaller on mobile */
    #dj-division-scroll > a {
        width: 220px !important;
    }
    #dj-division-scroll img {
        height: 130px !important;
    }
    /* Category grid - 2 columns on mobile (instead of 1) */
    .dj-cat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .dj-cat-card .dj-card-img {
        height: 90px !important;
    }
}
