/*
Theme Name: BAJUS
Theme URI: https://dipakkarmoker.com/
Author: Dipak Karmoker
Author URI: https://dipakkarmoker.com/
Description: বাংলাদেশের সোনার দাম, রূপার দাম এবং মূল্যবান ধাতুর তথ্যের জন্য একটি প্রফেশনাল, দ্রুত ও AdSense-বান্ধব ওয়ার্ডপ্রেস থিম।
Version: 2.0.0
License: dipakkarmoker.com
Text Domain: bajus
Tags: gold-price, news, blog, adsense, fast, responsive, bangla
*/

/* =========================================
   CSS CUSTOM PROPERTIES
========================================= */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C96A;
  --gold-dark:   #9B7A2E;
  --gold-pale:   #FDF8EE;
  --black:       #0D0D0D;
  --dark:        #1A1A1A;
  --dark-2:      #242424;
  --gray:        #6B6B6B;
  --gray-light:  #D4D4D4;
  --white:       #FFFFFF;
  --off-white:   #F9F6F0;
  --red:         #C0392B;
  --green:       #27AE60;
  --font-bangla: 'Hind Siliguri', 'SolaimanLipi', serif;
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'Hind Siliguri', sans-serif;
  --shadow-sm:   0 2px 8px rgba(201,168,76,0.12);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.1);
  --shadow-gold: 0 4px 24px rgba(201,168,76,0.25);
  --radius:      6px;
  --transition:  all 0.25s ease;
}

/* =========================================
   RESET & BASE
========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* prevent horizontal scroll globally */
}
body {
  font-family: var(--font-bangla);
  background: var(--off-white);
  color: var(--dark);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
  min-width: 0;
}
img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--gold-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
ul    { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.3;
  font-weight: 700;
  word-break: break-word;
}

/* =========================================
   LAYOUT
========================================= */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
.site-main { flex: 1; }

.content-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding: 24px 0;
  align-items: start;
}
@media (max-width: 960px) {
  .content-area { grid-template-columns: 1fr; }
}

/* =========================================
   TOP BAR
========================================= */
.top-bar {
  background: var(--dark);
  color: var(--gray-light);
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--gold-dark);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar a { color: var(--gold-light); }
.top-bar a:hover { color: var(--white); }
.live-date { display: flex; align-items: center; gap: 6px; }
.live-dot {
  width: 7px; height: 7px;
  background: #E74C3C;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; } 50% { opacity:0.3; }
}

/* =========================================
   HEADER
========================================= */
.top-bar {
  /* top-bar স্ক্রল হলে চলে যাবে — sticky নয় */
  position: relative;
  z-index: 999;
}
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;           /* WP admin-bar থাকলে top:32px হবে JS দিয়ে */
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
/* WordPress admin bar compensation */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
  min-height: 64px;
}
/* Branding takes fixed share, nav grows to fill rest */
.header-inner .site-branding {
  flex: 0 0 auto;
}
.header-inner .main-nav {
  flex: 1 1 auto;
  justify-content: flex-end;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}
.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}
.site-title-text { color: var(--white); min-width: 0; overflow: hidden; }
.site-title-text .name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-title-text .tagline {
  font-size: 0.68rem;
  color: var(--gray-light);
  font-family: var(--font-bangla);
  white-space: nowrap;
}

/* =========================================
   NAVIGATION
========================================= */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.main-nav a {
  color: var(--gray-light);
  font-size: 0.85rem;
  padding: 6px 11px;
  border-radius: var(--radius);
  font-weight: 500;
  white-space: nowrap;
  font-family: var(--font-bangla);
  transition: var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-light);
  background: rgba(201,168,76,0.12);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  padding: 7px 11px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--dark-2);
    flex-direction: column;
    padding: 10px;
    gap: 2px;
    border-top: 2px solid var(--gold-dark);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 10px 14px;
    border-radius: 4px;
  }
  .site-title-text .name { font-size: 1.1rem; }
  .site-title-text .tagline { display: none; }
}

/* =========================================
   GOLD PRICE TICKER
========================================= */
.gold-ticker {
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  padding: 9px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
}
.ticker-label {
  background: var(--dark);
  color: var(--gold-light);
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 1px;
  flex-shrink: 0;
  z-index: 1;
  display: flex; align-items: center; gap: 5px;
  border-radius: 20px;
  margin: 0 10px 0 4px;
}
.live-badge {
  display: inline-block;
  background: #e53935;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 1px 5px;
  border-radius: 3px;
  animation: live-blink 1.4s ease-in-out infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0.35; }
}
.ticker-scroll { flex: 1; overflow: hidden; }
.ticker-scroll marquee { width: 100%; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  padding: 0 4px;
}
.ticker-item .price { font-size: 0.9rem; }
.ticker-up   { color: var(--green); }
.ticker-down { color: var(--red); }

@media (max-width: 480px) {
  .ticker-label { font-size: 0.55rem; padding: 2px 7px; }
  .ticker-item  { font-size: 0.65rem; }
  .ticker-item .price { font-size: 0.72rem; }
  .live-badge   { font-size: 0.5rem; padding: 1px 4px; }
}

/* =========================================
   PRICE CARDS SECTION
========================================= */
.price-section { padding: 20px 0 6px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-size: 1.05rem;
  color: var(--dark);
  display: flex; align-items: center; gap: 7px;
  position: relative;
  padding-left: 13px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 18px;
  background: var(--gold);
  border-radius: 2px;
}
.section-link { font-size: 0.78rem; color: var(--gold-dark); white-space: nowrap; }
.section-link:hover { color: var(--gold); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(201,168,76,0.2);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(201,168,76,0.4);
}
.price-card-label {
  font-size: 0.72rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  font-family: var(--font-body);
}
.price-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.price-card-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-dark);
  font-family: var(--font-display);
  margin-bottom: 5px;
  word-break: break-all;
}
.price-card-unit { font-size: 0.75rem; color: var(--gray); }
.price-change-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  margin-top: 5px;
}
.badge-up   { background: #E8F8F0; color: var(--green); }
.badge-down { background: #FDEDEC; color: var(--red); }
.badge-same { background: #F0F0F0; color: var(--gray); }

/* =========================================
   FEATURED POST
========================================= */
.featured-post {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .featured-post { grid-template-columns: 1fr; }
}
.featured-img {
  overflow: hidden;
  line-height: 0;
  min-height: 200px;
}
.featured-img img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.featured-post:hover .featured-img img { transform: scale(1.04); }
.featured-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.featured-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}
.post-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.featured-title { font-size: 1.15rem; line-height: 1.4; }
.featured-title a { color: var(--dark); }
.featured-title a:hover { color: var(--gold-dark); }
.post-excerpt { font-size: 0.85rem; color: var(--gray); }
.post-meta {
  font-size: 0.74rem;
  color: var(--gray);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.post-meta span { display: flex; align-items: center; gap: 4px; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
  padding: 6px 13px;
  border-radius: var(--radius);
  transition: var(--transition);
  align-self: flex-start;
}
.read-more:hover { background: var(--gold); color: var(--dark); }

/* =========================================
   POST GRID
========================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 540px) {
  .posts-grid { grid-template-columns: 1fr; }
}
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.post-thumb {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.post-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-thumb-link { display: block; }
.post-body {
  padding: 13px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post-title { font-size: 0.9rem; line-height: 1.4; }
.post-title a { color: var(--dark); }
.post-title a:hover { color: var(--gold-dark); }
.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.post-date { font-size: 0.7rem; color: var(--gray); }
.post-link { font-size: 0.7rem; color: var(--gold-dark); font-weight: 700; }

/* =========================================
   POST LIST (horizontal)
========================================= */
.post-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.post-list-item {
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  gap: 10px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  align-items: flex-start;
}
.post-list-item:hover {
  border-color: rgba(201,168,76,0.3);
  box-shadow: var(--shadow-gold);
}
.post-list-thumb {
  width: 84px; height: 63px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-list-body { flex: 1; min-width: 0; }
.post-list-title {
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 5px;
  word-break: break-word;
}
.post-list-title a { color: var(--dark); }
.post-list-title a:hover { color: var(--gold-dark); }
.post-list-meta { font-size: 0.7rem; color: var(--gray); }

/* =========================================
   AD ZONES — only shown when code exists
========================================= */
.ad-zone {
  background: var(--white);
  border: 1px dashed var(--gray-light);
  border-radius: var(--radius);
  text-align: center;
  color: var(--gray);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
}
.ad-zone.ad-728  { min-height: 90px;  width: 100%; max-width: 728px; margin: 0 auto 18px; }
.ad-zone.ad-300  { min-height: 250px; width: 100%; }
.ad-zone.ad-inline { min-height: 90px; width: 100%; margin: 18px 0; }

/* =========================================
   SIDEBAR
========================================= */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.widget {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
}
.widget-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  background: var(--dark);
  color: var(--gold-light);
  display: flex; align-items: center; gap: 7px;
  border-bottom: 2px solid var(--gold);
}
.widget-body { padding: 12px; }

/* Gold Rate Widget */
.gold-rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.gold-rate-table th {
  text-align: left;
  padding: 6px 8px;
  color: var(--gray);
  font-weight: 600;
  border-bottom: 1px solid var(--gray-light);
  font-family: var(--font-body);
}
.gold-rate-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #F5F5F5;
  vertical-align: middle;
}
.gold-rate-table tr:last-child td { border-bottom: none; }
.gold-rate-table tr:hover td { background: var(--gold-pale); }
.purity-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
}
.rate-value { font-weight: 700; color: var(--gold-dark); }

/* Recent Posts Widget */
.widget-post {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #F0EDE6;
  transition: var(--transition);
}
.widget-post:last-child { border-bottom: none; }
.widget-post:hover { background: var(--gold-pale); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 4px; }
.widget-post-thumb {
  width: 62px; height: 48px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(201,168,76,0.2);
}
.widget-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.widget-post:hover .widget-post-thumb img { transform: scale(1.05); }
.widget-post-info { flex: 1; min-width: 0; }
.widget-post-title { font-size: 0.80rem; line-height: 1.4; margin-bottom: 4px; }
.widget-post-title a { color: var(--dark); text-decoration: none; font-weight: 600; }
.widget-post-title a:hover { color: var(--gold-dark); }
.widget-post-date { font-size: 0.66rem; color: var(--gray); margin-top: 3px; }

/* Categories Widget */
.cat-list li { border-bottom: 1px solid #F5F5F5; }
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 0.82rem;
  color: var(--dark);
}
.cat-list a:hover { color: var(--gold-dark); padding-left: 4px; }
.cat-count {
  background: var(--gold-pale);
  color: var(--gold-dark);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* =========================================
   BREADCRUMB
========================================= */
.breadcrumb {
  padding: 8px 0;
  font-size: 0.76rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gold-dark); }
.breadcrumb .sep { color: var(--gray-light); }

/* =========================================
   TABLE OF CONTENTS (TOC)
========================================= */
.toc-box {
  background: linear-gradient(135deg, var(--gold-pale) 0%, #FFF9ED 100%);
  border: 1px solid rgba(201,168,76,0.30);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 22px 0 26px;
  box-shadow: 0 2px 12px rgba(201,168,76,0.10);
}
.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
}
.toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
}
.toc-toggle-btn {
  background: none;
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-dark);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-bangla);
  transition: var(--transition);
}
.toc-toggle-btn:hover { background: var(--gold); color: var(--dark); }
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.toc-list li {
  counter-increment: toc-counter;
}
.toc-list > li { margin-left: 0; }
.toc-list a {
  font-size: 0.87rem;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  line-height: 1.4;
  transition: var(--transition);
}
.toc-list a:hover { color: var(--gold-dark); padding-left: 4px; }
.toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px; height: 22px;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 1;
}
.toc-list .toc-h3 a {
  font-size: 0.82rem;
  color: var(--gray);
  padding-left: 28px;
}
.toc-list .toc-h3 .toc-num {
  width: 18px; height: 18px;
  font-size: 0.62rem;
  background: var(--gold-pale);
  border: 1px solid var(--gold);
}
.toc-hidden { display: none; }

/* =========================================
   SINGLE POST — fully responsive
========================================= */

/* Article wrapper */
.single-post {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  width: 100%;
}

/* Featured image */
.post-hero {
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  line-height: 0;
}
.post-hero img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Inner padding */
.post-content-wrap { padding: 22px 26px 30px; }

/* Meta bar */
.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  font-size: 0.76rem;
  color: var(--gray);
  margin-bottom: 12px;
}
.post-meta-bar .post-cat a {
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
}

/* Title */
.post-content-title {
  font-size: 1.6rem;
  line-height: 1.35;
  margin-bottom: 16px;
  color: var(--dark);
  word-break: break-word;
}

/* Body text */
.post-content-body {
  font-size: 0.96rem;
  color: #333;
  line-height: 1.9;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow-x: hidden;
  max-width: 100%;
}
.post-content-body > * {
  max-width: 100%;
  overflow-x: auto;
}
/* Embedded iframes / videos */
.post-content-body iframe,
.post-content-body embed,
.post-content-body object,
.post-content-body video {
  max-width: 100%;
  width: 100% !important;
  height: auto;
  aspect-ratio: 16 / 9;
}
/* Prevent zoom/transform issues on images */
.post-content-body img {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 4px;
  margin: 12px 0;
  display: block;
}
/* Pre/code blocks scroll instead of overflow */
.post-content-body pre {
  overflow-x: auto;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-all;
}
.post-content-body h2  {
  font-size: 1.2rem;
  margin: 30px 0 10px;
  color: var(--dark);
  padding-left: 12px;
  border-left: 4px solid var(--gold);
  scroll-margin-top: 80px; /* sticky header offset */
}
.post-content-body h3  {
  font-size: 1.05rem;
  margin: 22px 0 8px;
  color: var(--dark-2);
  scroll-margin-top: 80px;
}
.post-content-body h4  { font-size: 0.97rem; margin: 18px 0 7px; scroll-margin-top: 80px; }
.post-content-body ul,
.post-content-body ol  { padding-left: 1.4rem; margin-bottom: 15px; }
.post-content-body li  { margin-bottom: 5px; }
.post-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 12px 0;
}
.post-content-body p   { margin-bottom: 15px; max-width: 100%; }
.post-content-body h2  {
  font-size: 1.2rem;
  margin: 30px 0 10px;
  color: var(--dark);
  padding-left: 12px;
  border-left: 4px solid var(--gold);
  scroll-margin-top: 80px;
  word-break: break-word;
}
.post-content-body h3  {
  font-size: 1.05rem;
  margin: 22px 0 8px;
  color: var(--dark-2);
  scroll-margin-top: 80px;
}
.post-content-body h4  { font-size: 0.97rem; margin: 18px 0 7px; scroll-margin-top: 80px; }
.post-content-body ul,
.post-content-body ol  { padding-left: 1.4rem; margin-bottom: 15px; }
.post-content-body li  { margin-bottom: 5px; }
.post-content-body a   { color: var(--gold-dark); text-decoration: underline; }
.post-content-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 10px 16px;
  margin: 18px 0;
  background: var(--gold-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

/* Wide tables scroll on mobile */
.post-content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.86rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.post-content-body th {
  background: var(--dark);
  color: var(--gold-light);
  padding: 9px 11px;
  text-align: left;
  white-space: nowrap;
}
.post-content-body td {
  padding: 8px 11px;
  border-bottom: 1px solid #F0EDE6;
}
.post-content-body tr:nth-child(even) td { background: var(--gold-pale); }

/* Tags */
.post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
}
.tags-label { font-size: 0.8rem; color: #555; font-weight: 600; }
.post-tag {
  font-size: 0.74rem;
  background: var(--gold-pale);
  color: var(--gold-dark);
  padding: 4px 11px;
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid rgba(201,168,76,0.25);
  transition: var(--transition);
}
.post-tag:hover { background: var(--gold); color: var(--dark); }

/* Share box */
.share-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}
.share-label {
  display: block;
  font-size: 0.82rem;
  color: #555;
  font-weight: 600;
  margin-bottom: 9px;
}
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  padding: 7px 15px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s;
}
.share-fb { background: #1877F2; }
.share-tw { background: #000; }
.share-wa { background: #25D366; }
.share-btn:hover { opacity: 0.82; color: #fff; }

/* Author box */
.author-box {
  margin-top: 24px;
  padding: 18px;
  background: #FBF8F2;
  border: 1px solid #e5dfc8;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.author-avatar-wrap { flex-shrink: 0; }
.author-avatar,
.author-avatar img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-light);
  display: block;
}
.author-role {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.author-name { margin: 0 0 5px; font-size: 0.97rem; font-weight: 700; }
.author-name a { color: var(--gold); text-decoration: none; }
.author-bio {
  margin: 0 0 9px;
  font-size: 0.84rem;
  color: #555;
  line-height: 1.6;
}
.author-all-posts { font-size: 0.78rem; color: var(--gold-dark); font-weight: 600; }

/* Post nav */
.post-nav {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.post-nav-link {
  background: #F9F6F0;
  border: 1px solid #e5e0d4;
  border-radius: 6px;
  padding: 11px 13px;
  font-size: 0.8rem;
  color: #333;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
}
.post-nav-next { text-align: right; }
.nav-dir   { display: block; color: #888; font-size: 0.68rem; }
.nav-title { display: block; font-weight: 600; word-break: break-word; }
.post-nav-link:hover { border-color: var(--gold); color: var(--gold-dark); }

/* Related posts block */
.related-posts { margin-top: 22px; }

/* Comments wrap */
.comments-wrap {
  margin-top: 22px;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* =========================================
   BAJUS COMMENTS — v3
========================================= */
.bajus-comments { }

.comments-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-pale);
}

/* Comment list */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Single comment */
.bajus-comment {
  padding: 16px 0;
  border-bottom: 1px solid #F0EDE6;
}
.bajus-comment:last-child { border-bottom: none; }

/* Author comment highlight */
.bajus-comment.author-comment .comment-body {
  background: linear-gradient(to right, rgba(201,168,76,0.08), transparent);
  padding: 12px;
  border-radius: 6px;
  border-left: 3px solid var(--gold);
  margin-left: -3px;
}

/* Nested replies */
.children {
  list-style: none;
  padding: 0;
  margin: 0;
}
.children .bajus-comment {
  padding: 12px 0 12px 52px;
  border-bottom: none;
  border-top: 1px dashed #F0EDE6;
}

.comment-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* Avatar column */
.comment-avatar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.c-avatar {
  width: 44px !important; height: 44px !important;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  object-fit: cover;
  display: block;
}
.author-badge {
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--gold);
  color: var(--dark);
  padding: 2px 6px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Content column */
.comment-content { flex: 1; min-width: 0; }

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.comment-author-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark);
}
.comment-date {
  font-size: 0.70rem;
  color: var(--gray);
}

.comment-pending {
  font-size: 0.78rem;
  color: #888;
  font-style: italic;
  background: #fafafa;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.comment-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #333;
}
.comment-text p { margin-bottom: 6px; }
.comment-text p:last-child { margin-bottom: 0; }

.comment-reply { margin-top: 7px; }
.comment-reply a {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-decoration: none;
  border: 1px solid rgba(201,168,76,0.35);
  padding: 3px 10px;
  border-radius: 20px;
  transition: var(--transition);
  display: inline-block;
}
.comment-reply a:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.comments-closed {
  font-size: 0.86rem;
  color: var(--gray);
  text-align: center;
  padding: 12px;
  background: #fafafa;
  border-radius: 4px;
}

/* Comment form */
.comment-reply-title {
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 14px;
  padding-top: 18px;
  border-top: 2px solid var(--gold-pale);
}
.comment-form-heading {
  font-family: var(--font-display);
}
.cancel-reply { font-size: 0.75rem; }
.cancel-reply a { color: var(--gray); }

.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form p { margin: 0; }

.comment-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #444;
  margin-bottom: 5px;
}
.comment-label .required { color: var(--red); margin-left: 2px; }

.comment-input,
.comment-textarea {
  width: 100%;
  border: 1.5px solid #E0DDD5;
  border-radius: 6px;
  padding: 9px 12px;
  font-family: var(--font-bangla);
  font-size: 0.88rem;
  background: var(--white);
  color: var(--dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.comment-input:focus,
.comment-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.comment-textarea { resize: vertical; min-height: 120px; }

/* 2-col for name/email on wider screens */
@media (min-width: 560px) {
  .comment-form-author,
  .comment-form-email {
    display: inline-block;
    width: calc(50% - 6px);
    vertical-align: top;
  }
  .comment-form-author { margin-right: 12px; }
}

.bajus-submit-btn {
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 6px;
  padding: 10px 26px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-bangla);
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-start;
}
.bajus-submit-btn:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.comments-pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Mobile */
@media (max-width: 480px) {
  .children .bajus-comment { padding-left: 20px; }
  .comment-form-author,
  .comment-form-email { display: block; width: 100%; margin-right: 0; }
}

/* Mobile — single post */
@media (max-width: 600px) {
  .post-content-wrap      { padding: 14px 14px 22px; }
  .post-content-title     { font-size: 1.2rem; }
  .post-content-body      { font-size: 0.91rem; line-height: 1.8; }
  .post-content-body h2   { font-size: 1.05rem; }
  .post-content-body h3   { font-size: 0.97rem; }
  .author-box             { flex-direction: column; align-items: center; text-align: center; }
  .post-nav               { grid-template-columns: 1fr; }
  .post-nav-next          { text-align: left; }
  .toc-box                { padding: 14px; }
}

/* =========================================
   FOOTER
========================================= */
.site-footer { background: var(--dark); color: var(--gray-light); margin-top: 40px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 36px 0 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 9px;
}
.footer-brand p { font-size: 0.82rem; line-height: 1.7; margin-bottom: 14px; }
.social-links { display: flex; gap: 7px; flex-wrap: wrap; }
.social-link {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-light);
  font-size: 0.88rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--dark); }
.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { font-size: 0.81rem; color: var(--gray-light); transition: var(--transition); }
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-bottom {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.76rem;
}
.footer-bottom a { color: var(--gold-light); }

/* =========================================
   PAGINATION
========================================= */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 24px 0;
  flex-wrap: wrap;
}
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px;
  padding: 0 8px;
  background: var(--white);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}
.page-link:hover, .page-link.active {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* =========================================
   SCROLL TO TOP
========================================= */
.scroll-top {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 38px; height: 38px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  font-size: 1rem;
  z-index: 999;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-2px); }

/* =========================================
   UTILITIES
========================================= */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================
   SEARCH BAR
========================================= */
.search-form {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  background: var(--white);
}
.search-input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  outline: none;
  font-size: 0.86rem;
  font-family: var(--font-bangla);
  background: transparent;
  min-width: 0;
}
.search-btn {
  background: var(--gold);
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--dark);
  font-size: 0.88rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.search-btn:hover { background: var(--gold-dark); color: var(--white); }

/* =========================================
   BREAKING NEWS BANNER
========================================= */
.breaking-bar {
  background: var(--red);
  color: var(--white);
  padding: 7px 0;
  overflow: hidden;
}
.breaking-inner { display: flex; align-items: center; }
.breaking-label {
  background: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
}
.breaking-text { flex: 1; overflow: hidden; }
.breaking-track {
  display: flex;
  animation: ticker 20s linear infinite;
  white-space: nowrap;
  font-size: 0.82rem;
  padding: 0 18px;
  gap: 48px;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================
   AUTHOR AVATAR (global)
========================================= */
.author-avatar img,
.author-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-light);
}

/* =========================================
   FOOTER CREDIT
========================================= */
.footer-credit-wrap { font-size: 0.8rem; color: #aaa; }
.bajus-credit a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
}
.bajus-credit a:hover { color: #fff; text-decoration: underline; }
