/*
Theme Name: TTB Bangla Scholar
Theme URI: https://techtalksbangla.com
Author: Enamul Haque
Author URI: https://enamulhaque.co.uk
Description: A clean, modern magazine-style theme for Tech Talks Bangla — built for Bangla and English technology education content with category-colour coding, featured post hero, and learning pathway support.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ttb-scholar
Tags: blog, education, technology, bangla, responsive, custom-menu, post-thumbnails
*/

/* ============================================
   VARIABLES & RESET
============================================ */
:root {
  --navy-900: #050E24;
  --navy-800: #0A1F6B;
  --navy-700: #0E2FA3;
  --navy-600: #1535CE;
  --red:       #C42B2B;
  --blue:      #1535CE;
  --teal:      #0D9488;
  --amber:     #D97706;
  --green:     #16A34A;

  --bg:        #F4F7FC;
  --card:      #FFFFFF;
  --border:    #E2E8F2;
  --text:      #0F1923;
  --muted:     #5E6E82;
  --light:     #94A3B8;

  --cat-ai:          #1535CE; --cat-ai-bg:     #EEF2FF;
  --cat-cyber:       #C42B2B; --cat-cyber-bg:  #FEF2F2;
  --cat-prompt:      #0D9488; --cat-prompt-bg: #F0FDFA;
  --cat-digital:     #D97706; --cat-digital-bg:#FFFBEB;
  --cat-books:       #16A34A; --cat-books-bg:  #F0FDF4;
  --cat-default:     #5E6E82; --cat-default-bg:#F1F5F9;

  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-bangla:  'Hind Siliguri', 'DM Sans', sans-serif;

  --container: 1200px;
  --radius:    12px;
  --radius-sm: 6px;
  --shadow:    0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-bangla);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy-800); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.2; font-weight: normal; color: var(--text); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================
   SITE HEADER
============================================ */
.site-header {
  background: var(--navy-800);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--red);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #FFFFFF;
  white-space: nowrap;
}

.site-logo .logo-tagline {
  font-family: var(--font-bangla);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  display: block;
  line-height: 1.3;
}

/* Primary Navigation */
.primary-nav { flex: 1; }
.primary-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  justify-content: flex-end;
}

.primary-nav a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-page-ancestor > a {
  background: rgba(255,255,255,0.12);
  color: #FFFFFF;
}

.primary-nav .menu-item-start-here > a,
.primary-nav li:nth-child(2) > a {
  background: var(--red);
  color: #FFFFFF;
}
.primary-nav .menu-item-start-here > a:hover,
.primary-nav li:nth-child(2) > a:hover {
  background: #a52020;
}

.nav-search { color: rgba(255,255,255,0.7); cursor: pointer; padding: 0.5rem; }
.nav-search:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   LOGO BANNER & BRAND DIVIDER
============================================ */
.site-banner {
  display: block;
  width: 100%;
  background: #0E2FA3;
  line-height: 0;
  text-decoration: none;
  overflow: hidden;
  max-height: 140px;
}

.site-banner img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: opacity 0.2s;
}

.site-banner:hover img { opacity: 0.95; }

.site-banner-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #0E2FA3 0%, #050E24 100%);
}
.site-banner-text span {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #FFFFFF;
}
.site-banner-text small {
  font-family: var(--font-bangla);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}

.brand-divider {
  height: 4px;
  background: linear-gradient(90deg, #C42B2B 0%, #0D9488 33%, #1535CE 66%, #C42B2B 100%);
  background-size: 200% 100%;
  animation: ttb-shimmer 4s linear infinite;
}

@keyframes ttb-shimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.site-header {
  border-bottom: 2px solid rgba(255,255,255,0.08);
}

.nav-brand {
  font-family: var(--font-bangla);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand span { color: rgba(255,255,255,0.78); font-weight: 500; }

/* ============================================
   HERO / FEATURED POST
============================================ */
.site-hero {
  background: var(--navy-800);
  padding: 0;
  margin: 0;
}

.hero-featured {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16/7;
  max-height: 440px;
}

.hero-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-featured:hover img { transform: scale(1.02); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,17,31,0.92) 0%, rgba(6,17,31,0.5) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}

.hero-content { max-width: 700px; }

.hero-cat {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

.hero-meta a { color: rgba(255,255,255,0.85); }

/* Category Nav Strip */
.category-strip {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 68px;
  z-index: 90;
}

.category-strip-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-strip-inner::-webkit-scrollbar { display: none; }

.category-strip a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.875rem 1.25rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.category-strip a:hover { color: var(--text); }
.category-strip a.active,
.category-strip a.current { color: var(--blue); border-bottom-color: var(--blue); }

/* ============================================
   ARCHIVE HEADER
============================================ */
.archive-header {
  background: var(--navy-800);
  padding: 2.5rem 0;
  margin-bottom: 0;
}

.archive-title {
  font-size: 2rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
}

.archive-description {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  max-width: 600px;
}

/* ============================================
   MAIN CONTENT LAYOUT
============================================ */
.site-main {
  padding: 1.5rem 0 4rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-family: var(--font-heading);
  position: relative;
  padding-left: 1rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.1em;
  width: 4px;
  background: var(--red);
  border-radius: 2px;
}

.section-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ============================================
   POST CARDS
============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb img { transform: scale(1.05); }

.post-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}

.cat-badge {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

.cat-ai     { color: var(--cat-ai);     background: var(--cat-ai-bg); }
.cat-cyber  { color: var(--cat-cyber);  background: var(--cat-cyber-bg); }
.cat-prompt { color: var(--cat-prompt); background: var(--cat-prompt-bg); }
.cat-digital{ color: var(--cat-digital);background: var(--cat-digital-bg); }
.cat-books  { color: var(--cat-books);  background: var(--cat-books-bg); }
.cat-default{ color: var(--cat-default);background: var(--cat-default-bg); }

.post-date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--light);
}

.post-card-title {
  font-family: var(--font-bangla);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 0.625rem;
  flex: 1;
}

.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--blue); }

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.post-card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.read-time {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--light);
}

.post-card-large {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}

.post-card-large .post-card-thumb {
  flex: 0 0 45%;
  aspect-ratio: auto;
  min-height: 260px;
}

.post-card-large .post-card-title {
  font-size: 1.4rem;
}

/* ============================================
   SIDEBAR
============================================ */
.sidebar { position: sticky; top: 120px; }

.widget {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border);
}

.about-widget { text-align: center; }

.about-widget .author-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--border);
}

.about-widget h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.about-widget p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
}
.social-link:hover { background: var(--navy-800); color: #fff; }

.widget-post-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }

.widget-post {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.widget-post-thumb {
  width: 64px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
}

.widget-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.widget-post-title {
  font-size: 0.825rem;
  font-family: var(--font-bangla);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.widget-post-title a { color: inherit; }
.widget-post-title a:hover { color: var(--blue); }

.widget-cat-list { list-style: none; display: flex; flex-direction: column; gap: 0.375rem; }

.widget-cat-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  transition: background 0.2s, color 0.2s;
}

.widget-cat-item a:hover { background: var(--navy-800); color: #fff; }

.widget-cat-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--light);
  background: var(--card);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

/* ============================================
   NEWSLETTER BANNER
============================================ */
.newsletter-section {
  background: var(--navy-800);
  padding: 3.5rem 0;
  margin: 3rem 0 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.newsletter-copy h2 {
  font-size: 2rem;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.newsletter-copy p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.7;
}

.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }
.newsletter-row { display: flex; gap: 0; }

.newsletter-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: var(--font-bangla);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  outline: none;
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-input:focus { background: rgba(255,255,255,0.15); }

.newsletter-btn {
  padding: 0.875rem 1.5rem;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-btn:hover { background: #a52020; }

/* ============================================
   LEARNING PATHS SECTION
============================================ */
.paths-section { padding: 3rem 0; }

.path-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.path-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  display: block;
  color: var(--text);
}

.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.path-card.ai     { border-top-color: var(--cat-ai); }
.path-card.cyber  { border-top-color: var(--cat-cyber); }
.path-card.prompt { border-top-color: var(--cat-prompt); }
.path-card.digital{ border-top-color: var(--cat-digital); }

.path-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.ai     .path-icon { background: var(--cat-ai-bg);     color: var(--cat-ai); }
.cyber  .path-icon { background: var(--cat-cyber-bg);  color: var(--cat-cyber); }
.prompt .path-icon { background: var(--cat-prompt-bg); color: var(--cat-prompt); }
.digital.path-icon { background: var(--cat-digital-bg);color: var(--cat-digital); }

.path-card h3 {
  font-family: var(--font-bangla);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.path-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.path-posts-count {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--light);
}

/* ============================================
   SINGLE POST
============================================ */
.post-header { padding: 1.5rem 0 0; }

.post-hero-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.byline-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.byline-info small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--light);
}

.byline-info strong {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
}

.entry-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text);
  max-width: 760px;
}

.entry-content h2 { font-size: 1.6rem; margin: 2rem 0 0.875rem; }
.entry-content h3 { font-size: 1.3rem; margin: 1.75rem 0 0.75rem; }
.entry-content p  { margin-bottom: 1.25rem; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.25rem 1.75rem; }
.entry-content li { margin-bottom: 0.375rem; }

.entry-content blockquote {
  border-left: 4px solid var(--red);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-style: italic;
}

.entry-content code {
  background: var(--bg);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
  color: var(--red);
}

.entry-content pre {
  background: var(--navy-900);
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.entry-content pre code { background: none; color: inherit; padding: 0; }

.entry-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.entry-content a { color: var(--blue); text-decoration: underline; }
.entry-content a:hover { color: var(--navy-800); }

.post-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.tag-link:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.related-posts { padding: 3rem 0; border-top: 1px solid var(--border); margin-top: 3rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }

/* ============================================
   PAGINATION
============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.page-numbers {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.page-numbers:hover, .page-numbers.current {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}

.page-numbers.dots { border: none; background: none; }

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-logo img { height: 40px; width: auto; }
.footer-logo span { font-family: var(--font-heading); font-size: 1.2rem; color: #fff; }

.footer-tagline {
  font-family: var(--font-bangla);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--red); color: #fff; }

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-nav-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.footer-nav-list a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-nav-list a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ============================================
   UTILITY
============================================ */
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: block;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    padding: 1rem 0;
  }
  .primary-nav.is-open ul { flex-direction: column; padding: 0 1.25rem; }
  .nav-toggle { display: flex; }
  .post-card-large { flex-direction: column; }
  .post-card-large .post-card-thumb { flex: none; min-height: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero-featured { aspect-ratio: 4/3; }
  .posts-grid { grid-template-columns: 1fr; }
  .path-cards { grid-template-columns: 1fr 1fr; }
  .hero-cat { display: none; }
  .site-hero { padding: 0; margin: 0; }
}

@media (max-width: 480px) {
  .path-cards { grid-template-columns: 1fr; }
  .category-strip a { padding: 0.75rem 1rem; }
}

/* ============================================
   PRINT
============================================ */
@media print {
  .site-header, .sidebar, .site-footer, .newsletter-section { display: none; }
  .content-grid { grid-template-columns: 1fr; }
  .entry-content { max-width: 100%; }
}