/*
Theme Name: AI Bangla24
Theme URI: https://aibangla24.com
Author: AI Bangla24 Team
Description: বাংলাদেশের সেরা AI বাংলা ব্লগ — কৃত্রিম বুদ্ধিমত্তা সম্পর্কে বাংলায় জানুন
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: ai-bangla24
Tags: ai, artificial-intelligence, bangla, blog, technology
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --primary:        #0a7c52;
  --primary-dark:   #075c3d;
  --primary-light:  #0e9a66;
  --primary-ultra:  #e8f5f0;
  --accent:         #f5a623;
  --accent-dark:    #d4891a;
  --dark:           #1a1a2e;
  --dark2:          #16213e;
  --text:           #2d3748;
  --text-muted:     #718096;
  --border:         #e2e8f0;
  --bg:             #f7fafc;
  --white:          #ffffff;
  --danger:         #e53e3e;
  --success:        #38a169;
  --info:           #3182ce;

  --font-main:      'Hind Siliguri', sans-serif;
  --font-en:        'Plus Jakarta Sans', sans-serif;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow-md:      0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 32px rgba(0,0,0,.14);
  --radius:         10px;
  --radius-lg:      16px;
  --transition:     all 0.22s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-main); }
input, select, textarea { font-family: var(--font-main); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-wide {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: #fff; }
.top-bar-item { display: flex; align-items: center; gap: 5px; }
.top-bar-item i { font-size: 11px; }
.top-bar-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.25); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 16px rgba(10,124,82,0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark, #1a1a2e);
  letter-spacing: -0.3px;
  font-family: var(--font-en);
}
.logo-name span { color: var(--accent); }
.logo-tagline { font-size: 11px; color: rgba(0,0,0,0.5); letter-spacing: 0.3px; }

/* Main Nav */
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav ul li a {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 7px;
  display: flex; align-items: center; gap: 5px;
  transition: var(--transition);
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.main-nav ul li.menu-highlight a {
  background: var(--accent);
  color: var(--dark);
}
.main-nav ul li.menu-highlight a:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-login {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.btn-login:hover { background: rgba(255,255,255,0.25); color: #fff; }
.mobile-menu-btn {
  display: none;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 8px;
  font-size: 16px;
  align-items: center; justify-content: center;
}

/* ============================================================
   HERO / SEARCH SECTION
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #043d2a 100%);
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 50px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}
.hero-badge i { color: var(--accent); }
.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-stat { text-align: center; color: rgba(255,255,255,0.9); }
.hero-stat-num { font-size: 26px; font-weight: 800; color: #fff; font-family: var(--font-en); line-height: 1; }
.hero-stat-num span { color: var(--accent); }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 3px; }
.hero-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* Search Box */
.search-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 8px 8px 8px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
.search-box-field {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  border-right: 1px solid var(--border);
}
.search-box-field:last-of-type { border-right: none; }
.search-box-field i { color: var(--primary); font-size: 15px; flex-shrink: 0; }
.search-box-field input,
.search-box-field select {
  border: none; outline: none;
  font-size: 14.5px;
  color: var(--text);
  background: transparent;
  width: 100%;
  padding: 10px 0;
}
.search-box-field select { cursor: pointer; }
.btn-search {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-search:hover { background: var(--primary-dark); transform: translateY(-1px); }
.search-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.search-tag-label { font-size: 13px; color: rgba(255,255,255,0.7); }
.search-tag {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 12.5px;
  padding: 4px 12px;
  border-radius: 15px;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.search-tag:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section { padding: 52px 0; }
.section-sm { padding: 36px 0; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
  gap: 12px;
  flex-wrap: wrap;
}
.section-title-wrap {}
.section-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 18px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.3px;
}
.section-title span { color: var(--primary); }
.section-subtitle { font-size: 14.5px; color: var(--text-muted); margin-top: 4px; }
.btn-see-all {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-see-all:hover { background: var(--primary); color: #fff; }

/* ============================================================
   CATEGORY STRIP
   ============================================================ */
.category-strip { background: #fff; padding: 28px 0; border-bottom: 1px solid var(--border); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  background: #fff;
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--primary);
  background: var(--primary-ultra);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.cat-icon {
  width: 46px; height: 46px;
  background: var(--primary-ultra);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: var(--transition);
}
.cat-card:hover .cat-icon {
  background: var(--primary);
  color: #fff;
}
.cat-name { font-size: 13px; font-weight: 700; color: var(--dark); line-height: 1.3; }
.cat-count { font-size: 11.5px; color: var(--text-muted); }

.job-list-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ============================================================
   WHY US / FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--primary-ultra);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  transition: var(--transition);
}
.feature-card:hover .feature-icon { background: var(--primary); color: #fff; }
.feature-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '💼';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 120px;
  opacity: 0.08;
  pointer-events: none;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-text h2 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.cta-text p { font-size: 15px; color: rgba(255,255,255,0.8); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-cta-primary {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.btn-cta-primary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-cta-outline {
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.4);
  font-size: 15px;
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding-top: 52px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 300px 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand {}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: #fff;
}
.footer-logo-name { font-size: 20px; font-weight: 800; color: #fff; font-family: var(--font-en); }
.footer-logo-name span { color: var(--accent); }
.footer-desc { font-size: 13.5px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; margin-top: 4px; }
.footer-social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.15);
}
.footer-social-btn:hover { background: rgba(255,255,255,0.25); color: #fff; }
.footer-social-btn.fb:hover { background: #1877f2; border-color: #1877f2; }
.footer-social-btn.yt:hover { background: #ff0000; border-color: #ff0000; }

.footer-widget-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; gap: 7px;
}
.footer-widget-title i { color: var(--accent); font-size: 13px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 13.5px;
  display: flex; align-items: center; gap: 7px;
  transition: var(--transition);
}
.footer-links a::before { content: '›'; color: var(--accent); font-size: 15px; font-weight: 700; }
.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
}
.footer-contact-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-bottom {
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-copyright { font-size: 13px; color: rgba(255,255,255,0.65); }
.footer-copyright a { color: rgba(255,255,255,0.85); font-weight: 600; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.65); }
.footer-bottom-links a:hover { color: #fff; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.page-num {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  transition: var(--transition);
}
.page-num:hover, .page-num.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 13px;
}
.breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); }
.breadcrumb-sep { color: var(--text-muted); }
.breadcrumb-current { color: var(--text-muted); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-label span { color: var(--danger); }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-main);
  color: var(--text);
  background: #fff;
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,124,82,0.12); }
.form-control::placeholder { color: #a0aec0; }

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}
.mobile-nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: #fff;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header {
  background: var(--primary);
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav-header .logo-name { color: #fff; font-size: 18px; font-weight: 800; font-family: var(--font-en); }
.mobile-nav-header .logo-name span { color: var(--accent); }
.mobile-nav-close { background: none; border: none; color: #fff; font-size: 20px; }
.mobile-nav ul { padding: 12px 0; }
.mobile-nav ul li a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  font-size: 15px;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.mobile-nav ul li a:hover { background: var(--primary-ultra); color: var(--primary); }
.mobile-nav ul li a i { width: 20px; color: var(--primary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-with-sidebar { grid-template-columns: 1fr; }
  .sticky-sidebar { position: static; }
}
@media (max-width: 768px) {
  .top-bar { display: none; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-section { padding: 44px 0 54px; }
  .search-box { flex-direction: column; padding: 12px; gap: 12px; }
  .search-box-field { border-right: none; border-bottom: 1px solid var(--border); padding: 0 4px; width: 100%; }
  .search-box-field:last-of-type { border-bottom: none; }
  .btn-search { width: 100%; justify-content: center; }
  .hero-stats { gap: 16px; }
  .hero-stat-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .jobs-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .section-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 15px; }
  .section-title { font-size: 21px; }
}

/* ============================================================
   AI POST CARD (index.php)
   ============================================================ */
.ai-post-card { display: flex; flex-direction: column; overflow: hidden; }
.ai-post-card-thumb { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.ai-post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.ai-post-card:hover .ai-post-card-thumb img { transform: scale(1.04); }
.ai-post-card-cat {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.ai-post-card-body { padding: 14px 16px 0; flex: 1; }
.ai-post-card-excerpt { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; margin: 6px 0 0; }
.ai-post-card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.ai-post-card-meta i { color: var(--primary); }

/* ============================================================
   POST DETAIL HEADER
   ============================================================ */
.post-detail-header {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 22px;
}
.post-detail-thumb { width: 100%; aspect-ratio: 16/6; overflow: hidden; }
.post-detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-detail-meta-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 16px 24px 0;
}
.post-cat-badge {
  background: var(--primary-ultra); color: var(--primary);
  font-size: 11.5px; font-weight: 700; padding: 3px 12px;
  border-radius: 20px; transition: background .2s;
}
.post-cat-badge:hover { background: var(--primary); color: #fff; }
.post-meta-sep { width: 1px; height: 14px; background: var(--border); display: inline-block; }
.post-meta-date, .post-meta-read {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.post-meta-date i, .post-meta-read i { color: var(--primary); font-size: 11px; }
.post-detail-title {
  font-size: 26px; font-weight: 800; color: var(--dark);
  padding: 14px 24px 10px; line-height: 1.4;
}
.post-author-mini {
  display: flex; align-items: center; gap: 10px;
  padding: 0 24px 18px;
}
.post-author-mini-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--primary); }
.post-author-mini-name { display: block; font-size: 13.5px; font-weight: 700; color: var(--dark); }
.post-author-mini-label { display: block; font-size: 11px; color: var(--text-muted); }

/* Post body typography */
.post-body { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.post-body h2 { font-size: 20px; font-weight: 800; color: var(--dark); margin: 28px 0 12px; padding-left: 12px; border-left: 3px solid var(--primary); }
.post-body h2:first-child { margin-top: 0; }
.post-body h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin: 22px 0 10px; }
.post-body p { font-size: 15px; color: var(--text); margin-bottom: 14px; line-height: 1.85; }
.post-body ul, .post-body ol { margin: 8px 0 16px 0; padding-left: 20px; }
.post-body ul li, .post-body ol li { font-size: 14.5px; color: var(--text); padding: 4px 0; line-height: 1.7; }
.post-body img { max-width: 100%; border-radius: 8px; margin: 10px 0; }
.post-body a { color: var(--primary); text-decoration: underline; }
.post-body blockquote { border-left: 4px solid var(--primary); background: var(--primary-ultra); padding: 12px 18px; border-radius: 0 8px 8px 0; margin: 18px 0; font-style: italic; color: var(--dark); }
.post-body code { background: #f1f5f9; padding: 2px 7px; border-radius: 4px; font-size: 13px; color: #c7254e; }
.post-body pre { background: #1e293b; color: #e2e8f0; padding: 18px; border-radius: 10px; overflow-x: auto; margin: 16px 0; }
.post-body pre code { background: none; color: inherit; padding: 0; }

/* Post Tags */
.post-tags-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 18px; margin-top: 20px;
}
.post-tags-bar > i { color: var(--primary); }
.post-tag-pill {
  background: var(--bg); border: 1.5px solid var(--border);
  color: var(--text); font-size: 12.5px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px; transition: .2s;
}
.post-tag-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   AUTHOR BOX (Centered)
   ============================================================ */
.author-box {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px 28px;
  margin-top: 24px; gap: 16px;
}
.author-box-avatar { position: relative; }
.author-box-avatar .author-avatar-img,
.author-box-avatar img {
  width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid var(--primary); object-fit: cover; display: block;
}
.author-box-info { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.author-box-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--primary);
  background: var(--primary-ultra); padding: 3px 12px; border-radius: 20px;
}
.author-box-name { font-size: 18px; font-weight: 800; color: var(--dark); margin: 0; }
.author-box-bio { font-size: 14px; color: var(--text-muted); max-width: 480px; line-height: 1.7; margin: 0; }
.author-box-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 700; padding: 9px 22px;
  border-radius: 8px; margin-top: 4px; transition: var(--transition);
}
.author-box-btn:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }

/* ============================================================
   PROFESSIONAL COMMENT FORM
   ============================================================ */
.ab24-comment-title {
  font-size: 18px; font-weight: 800; color: var(--dark);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: flex; align-items: center; gap: 8px;
}
.ab24-comment-title i { color: var(--primary); }
#commentform {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.ab24-comment-form-row { margin-bottom: 18px; }
.ab24-comment-form-row label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 7px;
}
.ab24-comment-form-row label i { color: var(--primary); font-size: 12px; }
.ab24-comment-form-row input[type="text"],
.ab24-comment-form-row input[type="email"],
.ab24-comment-form-row textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 9px;
  font-size: 14px; font-family: inherit; color: var(--dark);
  background: var(--bg); transition: border-color .2s; box-sizing: border-box;
}
.ab24-comment-form-row input:focus,
.ab24-comment-form-row textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px var(--primary-ultra);
}
.ab24-comment-form-row textarea { resize: vertical; min-height: 120px; }
.ab24-comment-form-col { display: inline-block; width: calc(50% - 9px); }
.ab24-comment-form-col:first-of-type { margin-right: 18px; }
.ab24-comment-submit-wrap { display: flex; align-items: center; justify-content: flex-end; margin-top: 6px; }
.ab24-comment-submit { font-size: 14px; font-weight: 700; padding: 11px 28px; border: none; cursor: pointer; }
span.required { color: var(--danger); }

#comments {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px;
}
.comments-title {
  font-size: 17px; font-weight: 800; color: var(--dark);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-list .comment:last-child { border-bottom: none; }
.comment-author .fn { font-weight: 700; color: var(--dark); font-size: 14.5px; }
.comment-author img { border-radius: 50%; border: 2px solid var(--primary); vertical-align: middle; margin-right: 10px; }
.comment-meta { font-size: 12px; color: var(--text-muted); margin: 4px 0 10px 42px; }
.comment-content { margin-left: 42px; font-size: 14px; color: var(--text); line-height: 1.75; }
.reply a { font-size: 12px; color: var(--primary); font-weight: 700; margin-left: 42px; }
.comment-respond { margin-top: 20px; }

/* ============================================================
   SIDEBAR POSTS LIST (latest & popular)
   ============================================================ */












/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.toc-widget { position: relative; }
.ab24-toc-ul { list-style: none; padding: 0; margin: 0; }
.ab24-toc-ul li { padding: 5px 0; border-bottom: 1px dashed var(--border); }
.ab24-toc-ul li:last-child { border-bottom: none; }
.ab24-toc-ul li a { font-size: 13px; color: var(--text); text-decoration: none; transition: color .2s; display: flex; align-items: flex-start; gap: 6px; }
.ab24-toc-ul li a::before { content: '›'; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.ab24-toc-ul li a:hover { color: var(--primary); }

@media (max-width: 768px) {
  .ab24-comment-form-col { display: block; width: 100%; margin-right: 0 !important; }
  .post-detail-title { font-size: 20px; padding: 12px 16px 8px; }
  .post-detail-meta-bar { padding: 12px 16px 0; }
  .post-author-mini { padding: 0 16px 14px; }
  .author-box { padding: 24px 16px; }
}

/* ============================================================
   SEARCH / POST LIST STYLE
   ============================================================ */
.ai-posts-list { display: flex; flex-direction: column; gap: 12px; }
.post-list-item {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition);
}
.post-list-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.post-list-thumb { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list-body { flex: 1; min-width: 0; }
.post-list-title { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.post-list-title a { color: inherit; }
.post-list-title a:hover { color: var(--primary); }
.post-list-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.post-list-meta span { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.post-list-meta span i { font-size: 11px; color: var(--primary); }

/* ============================================================
   ইস্যু ১ — PREMIUM POST PAGE: পোস্ট পেজে প্রিমিয়াম লুক
   ============================================================ */
.post-detail-header {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}
.post-detail-thumb {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  position: relative;
}
.post-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.post-detail-thumb:hover img { transform: scale(1.02); }

/* ইস্যু ২ — লেখক, তারিখ, ক্যাটাগরি — টাইটেলের আগে */
.post-detail-author-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 24px 0;
  flex-wrap: wrap;
}
.post-author-row-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}
.post-author-row-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.post-author-row-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}
.post-author-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.post-author-row-meta i { color: var(--primary); font-size: 11px; }
.post-author-row-sep { color: var(--border); }
.post-cat-badge-sm {
  background: var(--primary-light, #e8f5ef);
  color: var(--primary);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: background .2s;
}
.post-cat-badge-sm:hover { background: var(--primary); color: #fff; }

.post-detail-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--dark);
  padding: 14px 24px 20px;
  margin: 0;
}
@media (max-width: 768px) {
  .post-detail-title { font-size: 20px; padding: 12px 16px 16px; }
  .post-detail-author-row { padding: 14px 16px 0; }
}

/* ইস্যু ৩ — INLINE TOC (মোবাইল ও কন্টেন্টের আগে) */
.post-toc-inline {
  background: #fff;
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
}
.post-toc-inline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--primary-light, #e8f5ef) 0%, #fff 100%);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}
.post-toc-inline-header i { color: var(--primary); }
.toc-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background .2s;
}
.toc-toggle-btn:hover { background: var(--primary); color: #fff; }
#ab24-toc-inline {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 18px;
}
#ab24-toc-inline.ab24-toc-open {
  max-height: 600px;
  padding: 12px 18px;
}

/* Desktop: inline TOC লুকাই, সাইডবার TOC দেখাই */
@media (min-width: 1024px) {
  .post-toc-inline { display: none; }
  .toc-widget { display: block; }
}
/* Mobile/Tablet: সাইডবার TOC লুকাই (sticky sidebar সহ) */
@media (max-width: 1023px) {
  .post-toc-inline { display: block; }
  .toc-widget { display: none; }
}

/* ইস্যু ৪ — RELATED POSTS: রেসপন্সিভ কার্ড গ্রিড */
.related-posts-section {
  margin-top: 32px;
}
.related-section-header {
  margin-bottom: 18px;
}
.related-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.related-section-title i { color: var(--primary); }
.related-divider-cat {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  margin-left: 4px;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 600px) {
  .related-posts-grid { grid-template-columns: 1fr; }
}
.related-post-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.related-post-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.related-post-thumb {
  display: block;
  height: 160px;
  overflow: hidden;
  position: relative;
  background: var(--light-bg, #f7f8fa);
}
.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
  display: block;
}
.related-post-card:hover .related-post-thumb img { transform: scale(1.05); }
.related-post-thumb--no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  background: linear-gradient(135deg, var(--primary-light, #e8f5ef) 0%, #f0f4f8 100%);
}
.related-no-img-icon { font-size: 40px; color: var(--primary); opacity: .4; }
.related-post-cat-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.related-post-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.related-post-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}
.related-post-title a { color: var(--dark); text-decoration: none; }
.related-post-title a:hover { color: var(--primary); }
.related-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.related-post-meta i { color: var(--primary); font-size: 10px; }
.related-post-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s, transform .15s;
  margin-top: auto;
  align-self: flex-start;
}
.related-post-read-btn:hover { background: var(--primary-dark, #085e3d); transform: translateX(2px); }

/* ইস্যু ৭ — SHARE BOX */
.post-share-box {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 20px;
}
.post-share-box-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-share-box-title i { color: var(--primary); }
.post-share-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.share-pill--tg { background: #0088cc; color: #fff; border-color: #0088cc; }
.share-pill--tg:hover { background: #006daa; }

/* ইস্যু ৫ — সাইটের নাম ডায়নামিক লোগো */
.footer-logo-name { font-size: 20px; font-weight: 800; color: #fff; }
/* হেডার সবুজ ব্যাকগ্রাউন্ড — লোগো নাম সাদা */
.site-header .logo-name { font-size: 22px; font-weight: 800; color: var(--dark, #1a1a2e); font-family: var(--font-en); }
.site-header .logo-tagline { color: rgba(0,0,0,0.5); }

/* ============================================================
   ইস্যু ৭ — HOME: ফিচার্ড কার্ড ও পোস্ট কার্ড উন্নত
   ============================================================ */

/* বড় ফিচার্ড প্রথম পোস্ট */
.home-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 0;
  transition: var(--transition);
}
.home-featured-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.12); }
@media (max-width: 768px) {
  .home-featured-card { grid-template-columns: 1fr; }
}
.home-featured-thumb {
  display: block;
  overflow: hidden;
  position: relative;
  min-height: 260px;
  background: var(--light-bg, #f7f8fa);
}
.home-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.home-featured-card:hover .home-featured-thumb img { transform: scale(1.04); }
.home-featured-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.home-featured-body {
  padding: 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
@media (max-width: 768px) {
  .home-featured-body { padding: 20px 18px; }
}
.home-featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.home-featured-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  flex-shrink: 0;
}
.home-featured-author { font-weight: 700; color: var(--dark); }
.home-featured-sep { color: var(--border); }
.home-featured-meta i { color: var(--primary); font-size: 11px; }
.home-featured-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
}
.home-featured-title a { color: var(--dark); text-decoration: none; }
.home-featured-title a:hover { color: var(--primary); }
.home-featured-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
.home-featured-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s, transform .15s;
  align-self: flex-start;
  margin-top: 4px;
}
.home-featured-read-btn:hover { background: var(--primary-dark, #085e3d); transform: translateX(3px); }
@media (max-width: 768px) {
  .home-featured-title { font-size: 18px; }
}

/* পোস্ট কার্ডে avatar */
.ai-post-meta-avatar {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  flex-shrink: 0;
}
.ai-post-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 12px; color: var(--text-muted); }
.ai-post-card-meta-sep { color: var(--border); }
.ai-post-card-meta i { color: var(--primary); font-size: 10px; }

/* পোস্ট কার্ডে "পড়ুন" বাটন */
.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s, transform .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-read-more:hover { background: var(--primary-dark, #085e3d); transform: translateX(2px); }

/* ইমেজ ছাড়া কার্ড */
.ai-post-card-thumb--no-img {
  background: linear-gradient(135deg, var(--primary-light, #e8f5ef) 0%, #f0f4f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.ai-post-no-img-icon { font-size: 36px; color: var(--primary); opacity: .4; }

/* job-card-footer flex alignment */
.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================
   HOME — HORIZONTAL POST LIST (---)
   ============================================================ */

@media (max-width: 900px) {
  .home-post-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 560px) {
  .home-post-grid { grid-template-columns: 1fr; gap: 16px; }
}

.home-post-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.home-post-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  transform: translateY(-3px);
}

.home-post-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: var(--light-bg, #f0f4f8);
  flex-shrink: 0;
}
.home-post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.home-post-card:hover .home-post-card-thumb img { transform: scale(1.06); }

.home-post-card-thumb-fallback {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 36px; color: var(--primary); opacity: .3;
}
.home-post-card-cat {
  position: absolute; top: 8px; left: 8px;
  background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 9px; border-radius: 4px;
  pointer-events: none;
}

.home-post-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  flex: 1;
}
.home-post-card-title {
  font-size: 15px; font-weight: 800;
  line-height: 1.5; margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-post-card-title a { color: var(--dark); text-decoration: none; }
.home-post-card-title a:hover { color: var(--primary); }

.home-post-card-excerpt {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.6; margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-post-card-meta {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  margin-top: auto;
}
.home-post-meta-dot { color: var(--border); }
.home-post-card-meta i { color: var(--primary); font-size: 10px; }

.home-post-card-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: var(--radius);
  text-decoration: none; white-space: nowrap;
  align-self: flex-start;
  transition: background .2s, transform .15s;
  margin-top: 6px;
}
.home-post-card-btn:hover {
  background: var(--primary-dark, #088a55);
  transform: translateX(3px);
}

/* ============================================================
   PRO SHARE BOX
   ============================================================ */
.pro-share-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.pro-share-left {
  flex-shrink: 0;
}
.pro-share-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pro-share-label i { color: var(--primary); }
.pro-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.pro-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .18s, transform .15s;
  line-height: 1;
}
.pro-share-btn:hover { opacity: .88; transform: translateY(-2px); }
.pro-share-btn i { font-size: 14px; }
.pro-share-btn--fb  { background: #1877f2; color: #fff; }
.pro-share-btn--wa  { background: #25d366; color: #fff; }
.pro-share-btn--tg  { background: #0088cc; color: #fff; }
.pro-share-btn--tw  { background: #000;    color: #fff; }
.pro-share-btn--copy {
  background: var(--light-bg, #f0f4f8);
  color: var(--dark);
  border: 1.5px solid var(--border);
  font-family: inherit;
}
.pro-share-btn--copy.copied { background: var(--primary); color: #fff; border-color: var(--primary); }
@media (max-width: 600px) {
  .pro-share-box { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  .pro-share-btn span { display: none; }
  .pro-share-btn { padding: 9px 13px; border-radius: 8px; }
  .pro-share-btn i { font-size: 16px; }
}

/* ============================================================
   SIDEBAR TOC — Desktop, Active Highlight
   ============================================================ */
.ab24-toc-ul li a.toc-active {
  color: var(--primary);
  font-weight: 700;
}
.ab24-toc-ul li a.toc-active::before {
  content: '▶';
  font-size: 9px;
}

/* ============================================================
   ক্যাটাগরি ইন্টার্নাল লিংকিং SECTION
   ============================================================ */
.cat-internal-links-section {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cat-internal-box {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cat-internal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(90deg, var(--primary) 0%, #0b9263 100%);
}
.cat-internal-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.18);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
  flex-shrink: 0;
}
.cat-internal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.cat-internal-label {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cat-internal-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}
.cat-internal-name:hover { text-decoration: underline; }
.cat-internal-see-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
}
.cat-internal-see-all:hover { background: rgba(255,255,255,.35); }

.cat-internal-list {
  list-style: none;
  margin: 0; padding: 0;
}
.cat-internal-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .18s;
}
.cat-internal-item:last-child { border-bottom: none; }
.cat-internal-item:hover { background: var(--light-bg, #f7f8fa); }

.cat-internal-thumb {
  display: block;
  width: 68px; height: 50px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--light-bg, #f0f4f8);
}
.cat-internal-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.cat-internal-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cat-internal-post-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.cat-internal-post-title:hover { color: var(--primary); }
.cat-internal-post-date {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.cat-internal-post-date i { color: var(--primary); font-size: 10px; }

@media (max-width: 600px) {
  .cat-internal-header { flex-wrap: wrap; gap: 10px; }
  .cat-internal-see-all { width: 100%; justify-content: center; }
  .cat-internal-item { padding: 10px 14px; gap: 10px; }
  .cat-internal-thumb { width: 56px; height: 44px; }
}
/* ============================================================
   POST CARD GRID  (pc-*)  —  Home Latest 9
   ============================================================ */

.pc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .pc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pc-grid { grid-template-columns: 1fr; } }

/* Card shell */
.pc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .22s, transform .22s;
}
.pc-card:hover {
  box-shadow: 0 8px 28px rgba(10,124,82,.11);
  transform: translateY(-3px);
}

/* Top row: thumb + content */
.pc-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 16px 12px;
}

/* Thumbnail — small square */
.pc-card__thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary-ultra);
}
.pc-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .35s;
}
.pc-card:hover .pc-card__thumb img { transform: scale(1.08); }
.pc-card__thumb-fb {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 26px; color: var(--primary); opacity: .3;
}

/* Content beside thumb */
.pc-card__content {
  display: flex; flex-direction: column; gap: 5px;
  min-width: 0; flex: 1;
}
.pc-card__cat {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: .3px;
  color: var(--primary);
  background: var(--primary-ultra);
  padding: 2px 8px; border-radius: 20px;
  width: fit-content;
}
.pc-card__title {
  font-size: 14px; font-weight: 700;
  line-height: 1.55; margin: 0; color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-card__title a { color: inherit; text-decoration: none; }
.pc-card__title a:hover { color: var(--primary); }

/* Footer row */
.pc-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
  gap: 8px;
}
.pc-card__date {
  font-size: 12px; color: var(--text-muted);
  white-space: nowrap;
}
.pc-card__date i { color: var(--primary); font-size: 10px; margin-right: 3px; }

.pc-card__actions {
  display: flex; align-items: center; gap: 8px;
}

/* Bookmark button */
.pc-card__bookmark {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff; color: var(--text-muted);
  font-size: 14px; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  flex-shrink: 0;
}
.pc-card__bookmark:hover,
.pc-card__bookmark.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-ultra);
}

/* Detail button */
.pc-card__btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: 8px;
  text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .15s;
}
.pc-card__btn:hover {
  background: var(--primary-dark);
  transform: translateX(2px);
  color: #fff;
}
.pc-card__btn i { font-size: 11px; }


.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
.sticky-sidebar { position: sticky; top: 80px; }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
.sticky-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (max-width: 960px) {
  .page-with-sidebar { grid-template-columns: 1fr; }
  .sticky-sidebar { position: static; }
}

/* ============================================================
   SIDEBAR WIDGETS  (sb-*)
   ============================================================ */
.sb-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  margin-bottom: 18px;
}

/* Widget title row */
.sb-widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* Icon circle */
.sb-widget-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.sb-widget-icon--clock {
  background: var(--primary-ultra);
  color: var(--primary);
}
.sb-widget-icon--fire {
  background: #fff5f5;
  color: #e53e3e;
}

/* List */
.sb-list {
  list-style: none;
  padding: 0; margin: 0;
}
.sb-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.sb-item:last-child { border-bottom: none; }

/* Rank badge */
.sb-rank {
  min-width: 22px;
  height: 22px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Item link */
.sb-item-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  text-decoration: none;
}
.sb-item-link:hover .sb-item-title { color: var(--primary); }

.sb-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.45;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sb-item-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.sb-item-meta i { color: var(--primary); font-size: 10px; }

/* Search widget */
.sb-widget--search { padding: 18px; }
.sb-search-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.sb-widget--search .search-form,
.sb-widget--search form {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.sb-widget--search input[type="search"],
.sb-widget--search input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--dark);
  background: #fff;
}
.sb-widget--search button[type="submit"],
.sb-widget--search input[type="submit"] {
  background: var(--dark);
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
  white-space: nowrap;
}
.sb-widget--search button[type="submit"]:hover,
.sb-widget--search input[type="submit"]:hover {
  background: var(--primary);
}
