/*
Theme Name:   BD24 News Portal
Theme URI:    https://bd24.press
Author:       BD24 Team
Author URI:   https://bd24.press
Description:  A clean, fast Bangla news portal. Blue professional design, 2-column layout, breaking ticker, category sections, dark mode, ad slots.
Version:      5.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  bd24
Domain Path:  /languages
Tags:         news, blog, custom-logo, custom-menu, featured-images, post-thumbnails, rtl-language-support, translation-ready, responsive-layout, dark-mode
*/

/* ─── DESIGN TOKENS ─────────────────────────────────────────────────────── */
:root {
  --blue:        #1a56db;
  --blue-dark:   #1240a8;
  --blue-light:  #e8f0fe;
  --red:         #e02424;
  --text:        #111928;
  --text-2:      #4b5563;
  --text-3:      #9ca3af;
  --bg:          #f9fafb;
  --surface:     #ffffff;
  --border:      #e5e7eb;
  --ticker-bg:   #1a56db;
  --ticker-text: #ffffff;
  --sidebar-w:   300px;
  --max-w:       1200px;
  --gap:         24px;
  --radius:      6px;
  --font-sans:   'Hind Siliguri', sans-serif;
  --font-serif:  'Noto Serif Bengali', serif;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 12px rgba(0,0,0,.10);
  --trans:       .18s ease;
}

[data-theme="dark"] {
  --text:      #f3f4f6;
  --text-2:    #d1d5db;
  --text-3:    #6b7280;
  --bg:        #111928;
  --surface:   #1f2937;
  --border:    #374151;
  --blue-light:#1e3a5f;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4);
}

/* ─── RESET & BASE ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background var(--trans), color var(--trans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── LAYOUT SHELL ───────────────────────────────────────────────────────── */
.bd24-wrap   { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
.bd24-layout { display: grid; grid-template-columns: 1fr var(--sidebar-w); gap: var(--gap); padding: var(--gap) 0; }
.bd24-main   { min-width: 0; }
.bd24-sidebar{ min-width: 0; }

/* ─── BREAKING TICKER ───────────────────────────────────────────────────── */
.bd24-ticker {
  background: var(--ticker-bg);
  color: var(--ticker-text);
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 2px solid var(--blue-dark);
}
.bd24-ticker-inner {
  display: flex;
  align-items: center;
  height: 38px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  gap: 12px;
}
.bd24-ticker-label {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.bd24-ticker-track-wrap { flex: 1; overflow: hidden; }
.bd24-ticker-track {
  display: flex;
  gap: 0;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.bd24-ticker-track:hover { animation-play-state: paused; }
.bd24-ticker-item {
  padding: 0 32px 0 0;
  color: var(--ticker-text);
  opacity: .92;
  transition: opacity var(--trans);
}
.bd24-ticker-item::before { content: "▸ "; opacity: .6; }
.bd24-ticker-item:hover { opacity: 1; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.bd24-ticker-close {
  color: rgba(255,255,255,.7);
  font-size: 16px;
  line-height: 1;
  padding: 4px;
  flex-shrink: 0;
  transition: color var(--trans);
}
.bd24-ticker-close:hover { color: #fff; }

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
.bd24-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 38px;
  z-index: 150;
  box-shadow: var(--shadow-sm);
  transition: background var(--trans), border-color var(--trans);
}
.bd24-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 20px;
}
.bd24-logo { flex-shrink: 0; }
.bd24-logo img { height: 40px; width: auto; }
.bd24-logo-text {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -.5px;
}

/* Nav */
.bd24-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.bd24-nav a {
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--text);
  transition: background var(--trans), color var(--trans);
  white-space: nowrap;
}
.bd24-nav a:hover,
.bd24-nav a.current-menu-item { background: var(--blue-light); color: var(--blue); }

/* Header actions */
.bd24-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Search */
.bd24-search-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--trans);
}
.bd24-search-btn:hover { color: var(--blue); border-color: var(--blue); }

/* Dark toggle */
.bd24-dark-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--trans);
}
.bd24-dark-btn:hover { color: var(--blue); border-color: var(--blue); }

/* Hamburger */
.bd24-hamburger {
  display: none;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  align-items: center; justify-content: center;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
}

/* ─── SEARCH MODAL ───────────────────────────────────────────────────────── */
.bd24-search-modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.5);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 80px;
}
.bd24-search-modal[hidden] { display: none; }
.bd24-search-box {
  background: var(--surface);
  border-radius: 10px;
  width: 100%; max-width: 580px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  margin: 0 16px;
}
.bd24-search-form { display: flex; gap: 8px; }
.bd24-search-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 15px;
  font-family: var(--font-sans);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--trans);
}
.bd24-search-input:focus { border-color: var(--blue); }
.bd24-search-submit {
  padding: 10px 18px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--trans);
}
.bd24-search-submit:hover { background: var(--blue-dark); }
.bd24-search-results { margin-top: 12px; }
.bd24-search-result-item {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.bd24-search-result-item:last-child { border-bottom: none; }
.bd24-search-result-item img { width: 56px; height: 40px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.bd24-search-result-title { font-size: 14px; font-weight: 500; color: var(--text); }
.bd24-search-result-title:hover { color: var(--blue); }

/* ─── MOBILE MENU ────────────────────────────────────────────────────────── */
.bd24-offcanvas {
  position: fixed; top: 0; left: -280px; width: 280px; height: 100%;
  background: var(--surface); z-index: 600;
  padding: 20px 0;
  box-shadow: var(--shadow-md);
  transition: left .25s ease;
  overflow-y: auto;
}
.bd24-offcanvas.active { left: 0; }
.bd24-offcanvas[hidden] { left: -280px; }
.bd24-offcanvas-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.bd24-offcanvas-close { font-size: 20px; color: var(--text-2); }
.bd24-offcanvas-nav a {
  display: block; padding: 11px 20px;
  font-size: 15px; font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color var(--trans), background var(--trans);
}
.bd24-offcanvas-nav a:hover { color: var(--blue); background: var(--blue-light); }
.bd24-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 590; display: none;
}
.bd24-overlay.active { display: block; }

/* ─── SECTION HEADER ─────────────────────────────────────────────────────── */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
}
.sec-head-title {
  font-size: 17px; font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.sec-head-title::before {
  content: "";
  display: block; width: 4px; height: 18px;
  background: var(--blue);
  border-radius: 2px;
}
.sec-head-more {
  font-size: 12px; font-weight: 600;
  color: var(--blue);
  padding: 4px 10px;
  border: 1px solid var(--blue);
  border-radius: 20px;
  transition: all var(--trans);
}
.sec-head-more:hover { background: var(--blue); color: #fff; }

/* ─── HERO CARD ──────────────────────────────────────────────────────────── */
.hero-card { position: relative; border-radius: var(--radius); overflow: hidden; }
.hero-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.hero-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.3) 70%, transparent 100%);
}
.hero-card-cat {
  display: inline-block;
  background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  padding: 2px 8px; border-radius: 3px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.hero-card-title {
  font-size: 20px; font-weight: 700; line-height: 1.35;
  color: #fff;
}
.hero-card-title a { color: #fff; }
.hero-card-title a:hover { text-decoration: underline; }
.hero-card-meta { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.7); }

/* ─── NEWS CARD (horizontal) ─────────────────────────────────────────────── */
.news-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.news-card:last-child { border-bottom: none; }
.news-card-img {
  width: 110px; height: 74px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.news-card-body { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.news-card-title {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-title:hover { color: var(--blue); }
.news-card-meta { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.news-card-cat {
  font-size: 11px; font-weight: 600;
  color: var(--blue); margin-bottom: 4px;
}

/* ─── CATEGORY SECTION ───────────────────────────────────────────────────── */
.cat-section { margin-bottom: 32px; }

/* 3-col grid for category posts */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.cat-grid-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow var(--trans); }
.cat-grid-card:hover { box-shadow: var(--shadow-md); }
.cat-grid-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.cat-grid-body { padding: 10px 12px 12px; }
.cat-grid-title {
  font-size: 13px; font-weight: 600; line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-grid-title a:hover { color: var(--blue); }
.cat-grid-meta { font-size: 11px; color: var(--text-3); margin-top: 6px; }

/* ─── SIDEBAR ─────────────────────────────────────────────────────────────── */
.widget {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: background var(--trans);
}
.widget-title {
  font-size: 15px; font-weight: 700;
  color: var(--text);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--blue);
  display: flex; align-items: center; gap: 7px;
}
.widget-title::before {
  content: "";
  width: 4px; height: 16px;
  background: var(--blue);
  border-radius: 2px;
  display: block;
}

/* Sidebar news list */
.sidebar-list { display: flex; flex-direction: column; gap: 0; }
.sidebar-item {
  display: grid; grid-template-columns: 72px 1fr; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.sidebar-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-img { width: 72px; height: 50px; object-fit: cover; border-radius: 4px; }
.sidebar-title { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--text); }
.sidebar-title a:hover { color: var(--blue); }
.sidebar-date { font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* Ad slot */
.ad-slot {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  margin-bottom: 20px;
  min-height: 100px;
  display: flex; align-items: center; justify-content: center;
}

/* ─── SINGLE POST ─────────────────────────────────────────────────────────── */
.single-wrap { padding: var(--gap) 0; }
.single-layout { display: grid; grid-template-columns: 1fr var(--sidebar-w); gap: var(--gap); }
.article-header { margin-bottom: 20px; }
.article-cat {
  display: inline-block;
  background: var(--blue-light); color: var(--blue);
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 3px;
  margin-bottom: 12px;
}
.article-title {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 700; line-height: 1.35;
  color: var(--text); margin-bottom: 14px;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 13px; color: var(--text-2);
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.article-meta i { color: var(--blue); margin-right: 4px; }
.article-meta a { color: var(--text-2); font-weight: 600; }
.article-meta a:hover { color: var(--blue); }
.article-thumb { width: 100%; border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.article-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-thumb figcaption {
  font-size: 12px; color: var(--text-3);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.article-body {
  font-size: 16px; line-height: 1.8;
  color: var(--text);
}
.article-body p { margin-bottom: 18px; }
.article-body h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.article-body h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.article-body a { color: var(--blue); text-decoration: underline; }
.article-body img { border-radius: 4px; margin: 18px 0; }
.article-body blockquote {
  border-left: 4px solid var(--blue);
  margin: 24px 0;
  padding: 12px 20px;
  background: var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-2);
}
.in-article-ad { margin: 24px 0; }

/* Tags */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tag-chip {
  font-size: 12px; font-weight: 500;
  padding: 4px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-2);
  transition: all var(--trans);
}
.tag-chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Share row */
.share-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.share-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px; font-weight: 600;
  color: #fff; transition: opacity var(--trans);
}
.share-btn:hover { opacity: .88; color: #fff; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.wa { background: #25d366; }
.share-btn.tg { background: #229ed9; }
.share-btn.cp { background: var(--text-2); }

/* Author box */
.author-box {
  display: flex; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
}
.author-box-avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-box-name { font-size: 16px; font-weight: 700; color: var(--text); }
.author-box-bio { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.author-box-link { font-size: 12px; color: var(--blue); font-weight: 600; margin-top: 8px; display: inline-block; }
.author-box-link:hover { text-decoration: underline; }

/* Related posts */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.related-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.related-card-body { padding: 10px 12px 12px; }
.related-card-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); }
.related-card-title a:hover { color: var(--blue); }
.related-card-date { font-size: 11px; color: var(--text-3); margin-top: 6px; }

/* Reading bar */
.reading-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--blue); width: 0%;
  z-index: 999; transition: width .1s linear;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px; color: var(--text-3);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb-sep { color: var(--border); }

/* ─── ARCHIVE / CATEGORY PAGE ────────────────────────────────────────────── */
.arc-wrap { padding: var(--gap) 0; }
.arc-layout { display: grid; grid-template-columns: 1fr var(--sidebar-w); gap: var(--gap); }
.arc-title {
  font-size: 22px; font-weight: 700; color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue);
  display: flex; align-items: center; gap: 8px;
}
.arc-title::before {
  content: "";
  width: 5px; height: 22px;
  background: var(--blue);
  border-radius: 2px;
  display: block;
}
.arc-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.arc-card {
  display: grid; grid-template-columns: 160px 1fr; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.arc-card:last-child { border-bottom: none; }
.arc-card-img { width: 160px; height: 107px; object-fit: cover; border-radius: 4px; }
.arc-card-body { display: flex; flex-direction: column; justify-content: space-between; }
.arc-card-cat { font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; margin-bottom: 6px; }
.arc-card-title { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--text); margin-bottom: 8px; }
.arc-card-title a:hover { color: var(--blue); }
.arc-card-excerpt { font-size: 13px; color: var(--text-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.arc-card-meta { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.arc-card-more { font-size: 12px; font-weight: 600; color: var(--blue); margin-left: 10px; }
.arc-card-more:hover { text-decoration: underline; }

/* Pagination */
.pagination {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px;
  margin-top: 28px;
}
.pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  transition: all var(--trans);
}
.pagination .page-numbers:hover,
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ─── 404 ────────────────────────────────────────────────────────────────── */
.p404-wrap { text-align: center; padding: 80px 16px; }
.p404-code { font-size: 100px; font-weight: 800; color: var(--blue); opacity: .15; line-height: 1; }
.p404-title { font-size: 24px; font-weight: 700; margin-top: -20px; margin-bottom: 12px; }
.p404-desc { color: var(--text-2); margin-bottom: 28px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  background: var(--blue); color: #fff;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  transition: background var(--trans);
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

/* ─── STATIC PAGE ────────────────────────────────────────────────────────── */
.page-wrap { padding: var(--gap) 0; }
.page-layout { display: grid; grid-template-columns: 1fr var(--sidebar-w); gap: var(--gap); }
.page-title { font-size: 26px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.page-body { font-size: 16px; line-height: 1.8; }
.page-body p { margin-bottom: 16px; }
.page-body h2 { font-size: 20px; font-weight: 700; margin: 24px 0 10px; }
.page-body a { color: var(--blue); text-decoration: underline; }

/* ─── AUTHOR PAGE ────────────────────────────────────────────────────────── */
.author-header {
  display: flex; gap: 20px; align-items: center;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.author-header-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-header-name { font-size: 20px; font-weight: 700; color: var(--text); }
.author-header-bio { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.author-header-count { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* ─── SEARCH ─────────────────────────────────────────────────────────────── */
.search-count { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.search-empty { text-align: center; padding: 40px 20px; color: var(--text-3); }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.bd24-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: 40px;
}
.bd24-footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 16px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-logo { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-about { font-size: 13px; line-height: 1.7; }
.footer-col-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: #94a3b8; transition: color var(--trans); }
.footer-links a:hover { color: #fff; }
.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.footer-social-link {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 14px;
  transition: all var(--trans);
}
.footer-social-link:hover { background: var(--blue); color: #fff; }
.bd24-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  text-align: center;
  padding: 16px;
  font-size: 12px;
}
.bd24-footer-bottom a { color: #94a3b8; }
.bd24-footer-bottom a:hover { color: #fff; }

/* ─── COMMENTS ───────────────────────────────────────────────────────────── */
.comments-area { margin-top: 32px; }
.comment-list { margin: 20px 0; }
.comment-respond { background: var(--surface); border-radius: var(--radius); padding: 20px; margin-top: 20px; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  margin-bottom: 10px;
  transition: border-color var(--trans);
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--blue); }
.comment-form input[type="submit"] {
  background: var(--blue); color: #fff;
  font-weight: 600; border: none; cursor: pointer;
  width: auto; padding: 10px 24px;
}
.comment-form input[type="submit"]:hover { background: var(--blue-dark); }

/* ─── BACK TO TOP ────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 40px; height: 40px;
  background: var(--blue); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity var(--trans), transform var(--trans);
  z-index: 300;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); color: #fff; }

/* ─── UTILITIES ──────────────────────────────────────────────────────────── */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.no-scroll { overflow: hidden; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 260px; }
}

@media (max-width: 768px) {
  .bd24-nav { display: none; }
  .bd24-hamburger { display: flex; }
  .bd24-layout,
  .single-layout,
  .arc-layout,
  .page-layout { grid-template-columns: 1fr; }
  .bd24-sidebar { display: none; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .bd24-footer-top { grid-template-columns: 1fr 1fr; }
  .arc-card { grid-template-columns: 110px 1fr; }
  .arc-card-img { width: 110px; height: 74px; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .bd24-footer-top { grid-template-columns: 1fr; }
  .hero-card-title { font-size: 16px; }
  .article-title { font-size: 20px; }
  .share-btn { padding: 6px 10px; font-size: 12px; }
  .arc-card { grid-template-columns: 90px 1fr; }
  .arc-card-img { width: 90px; height: 60px; }
}
