/* ===== Inner pages: article, listing, static pages ===== */

.muted { color: var(--muted); }

.page-head {
  border-top: 3px solid var(--black);
  padding: 14px 0 10px;
  margin: 20px 0 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.page-head h1 {
  font-family: "Noto Serif Bengali", serif;
  font-size: 26px;
  font-weight: 800;
  margin: 0;
}

.news-list-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.list-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.list-item a {
  display: flex;
  gap: 16px;
  padding: 14px;
}
.list-item img {
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
}
.list-item .category { color: var(--red); font-size: 13px; font-weight: 700; }
.list-item h3 {
  font-family: "Noto Serif Bengali", serif;
  font-size: 19px;
  font-weight: 700;
  margin: 4px 0 6px;
  color: #111;
  line-height: 1.4;
}
.list-item p { color: var(--muted); font-size: 14px; margin: 0; }
.list-item .meta { color: var(--muted); font-size: 13px; margin-top: 6px; }

.empty { text-align: center; padding: 60px 0; color: var(--muted); }

.pagination-wrap { display: flex; justify-content: center; margin: 24px 0; }
.pagination { display: flex; list-style: none; gap: 6px; padding: 0; margin: 0; }
.pagination .page-item .page-link {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #111;
  background: #fff;
  text-decoration: none;
}
.pagination .page-item.active .page-link { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .page-item.disabled .page-link { color: var(--muted); pointer-events: none; }

/* Article */
.article-page { padding: 24px 0 40px; }
.article { max-width: 800px; margin: 0 auto; }
.article-category { color: var(--red); font-weight: 800; font-size: 15px; }
.article h1 {
  font-family: "Noto Serif Bengali", serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.35;
  margin: 8px 0 12px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.article figure { margin: 0 0 20px; }
.article figure img { width: 100%; border-radius: 8px; }
.article figure figcaption { color: var(--muted); font-size: 13px; margin-top: 6px; }
.article-body { font-size: 17px; line-height: 1.9; color: #222; }
.article-body p { margin-bottom: 16px; }
.article-body img { max-width: 100%; border-radius: 6px; }
.article-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a { background: var(--soft); color: #333; padding: 5px 12px; border-radius: 20px; font-size: 13px; }
.article-tags a:hover { background: var(--red); color: #fff; }

/* Static pages */
.static-page { max-width: 800px; margin: 0 auto; padding: 24px 0 40px; }
.static-page h1 { font-family: "Noto Serif Bengali", serif; font-size: 30px; font-weight: 800; margin-bottom: 16px; }
.static-page .body { font-size: 16px; line-height: 1.9; color: #222; }

@media (max-width: 640px) {
  .list-item a { flex-direction: column; }
  .list-item img { width: 100%; height: 180px; }
  .article h1 { font-size: 26px; }
}

/* ===== Gallery & Video ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.gallery-card { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.gallery-card a { position: relative; display: block; }
.gallery-card > a > img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .3s; }
.gallery-card .overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 26px 12px 8px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; font-size: 13px; }
.gallery-card h3 { position: absolute; bottom: 8px; left: 12px; right: 12px; color: #fff; font-size: 16px; font-weight: 700; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.gallery-card:hover img { transform: scale(1.05); }

.gallery-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-photo { margin: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff; border: 1px solid var(--line); }
.gallery-photo img { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery-photo figcaption { padding: 8px 10px; font-size: 13px; color: var(--muted); }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 999; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 6px; }

.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.video-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.video-card .thumb { position: relative; }
.video-card .thumb img { width: 100%; height: 160px; object-fit: cover; display: block; }
.video-card .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.video-card .duration { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.video-card h3 { font-family: "Noto Serif Bengali", serif; font-size: 16px; font-weight: 700; margin: 0; padding: 10px 12px 4px; color: #111; line-height: 1.4; }
.video-card .meta { padding: 0 12px 10px; color: var(--muted); font-size: 13px; }

.video-player { position: relative; width: 100%; padding-top: 56.25%; background: #000; border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.video-player iframe, .video-player video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
  .gallery-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid, .video-grid, .gallery-photos { grid-template-columns: 1fr; }
}

/* ===== Ads & Lead form ===== */
.ad-slot { margin: 16px 0; text-align: center; }
.ad-slot img { max-width: 100%; height: auto; display: inline-block; border-radius: 6px; }
.ad-slot.sidebar-rectangle { margin: 0; }
.ad-slot.sidebar-rectangle img { width: 100%; }

.lead-form { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-top: 16px; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.lead-form input, .lead-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; font-family: inherit; }
.lead-form textarea { resize: vertical; }
.lead-form .lead-row { margin-bottom: 14px; }
.lead-error { color: var(--red); font-size: 12px; }
.form-success { background: #e8f5ee; border: 1px solid var(--green); color: var(--green-dark); padding: 12px 16px; border-radius: 6px; margin-top: 14px; }

@media (max-width: 560px) {
  .lead-row { grid-template-columns: 1fr; }
}


/* ===== Comments ===== */
.comments-section { margin-top: 36px; }
.comments-section .section-head { margin-bottom: 16px; }
.comment-alert { background: #e8f5e9; border: 1px solid #c8e6c9; color: #2e7d32; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.comment-form { background: #f5f7fa; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; margin-bottom: 20px; }
.comment-form-row { display: flex; gap: 10px; margin-bottom: 10px; }
.comment-form-row input { flex: 1; border: 1px solid #d1d5db; border-radius: 6px; padding: 9px 12px; font-size: 15px; }
.comment-form textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 6px; padding: 9px 12px; margin-bottom: 10px; font-size: 15px; }
.comment-form button { background: #c62828; color: #fff; border: none; border-radius: 6px; padding: 9px 18px; cursor: pointer; font-weight: 600; }
.comment-form button:hover { background: #a91f1f; }
.comment-error { color: #c62828; font-size: 13px; margin-bottom: 8px; }
.comment-item { border-bottom: 1px solid #edf2f7; padding: 14px 0; }
.comment-item:last-child { border-bottom: none; }
.comment-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; gap: 10px; }
.comments-section .muted { color: #64748b; font-size: 13px; }
.comment-item p { margin: 0; color: #334155; }
@media (max-width: 576px) { .comment-form-row { flex-direction: column; gap: 8px; } }

/* Site-wide header ad */
.header-ad { margin: 18px auto; text-align: center; }
.header-ad .ad-slot { display: inline-block; max-width: 100%; }
