/*
Theme Name: Rowshan Taieen Cinematic
Theme URI: https://rowshantaieen.com
Author: Rowshan Taieen
Description: Dark cinematic editorial theme with Bengali typography, atmospheric hero, and story-map blog layout.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: rowshan-cinematic
Tags: blog, dark, cinematic, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:           #080c0b;
  --bg2:          #0e1512;
  --bg3:          #131a17;
  --bg-card:      #111916;
  --bg-card2:     #161e1a;
  --teal:         #3d7a62;
  --teal-light:   #5a9e80;
  --teal-glow:    rgba(61, 122, 98, 0.18);
  --sage:         #8fb89a;
  --gold:         #c4963e;
  --gold-light:   #e0b55a;
  --text:         #e4e0d6;
  --text2:        #b0b8b4;
  --text-muted:   #6a7570;
  --border:       rgba(255,255,255,0.07);
  --border2:      rgba(61,122,98,0.25);
  --overlay:      rgba(8, 12, 11, 0.82);
  --overlay2:     rgba(8, 12, 11, 0.55);
  --radius:       6px;
  --radius-lg:    14px;
  --radius-xl:    24px;
  --shadow:       0 4px 32px rgba(0,0,0,0.55);
  --shadow-lg:    0 12px 60px rgba(0,0,0,0.75);
  --font-sans:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-bengali: 'Hind Siliguri', 'Noto Serif Bengali', serif;
  --transition:   0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sage); }
button, input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--teal); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ============================================================
   GOOGLE FONTS IMPORT (loaded via functions.php too, fallback)
   ============================================================ */

/* ============================================================
   SCREEN READER / ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; word-wrap: normal;
}
.screen-reader-text:focus {
  background: var(--bg3); border-radius: var(--radius);
  clip: auto; clip-path: none; color: var(--text);
  display: block; font-size: 14px; font-weight: 700;
  height: auto; left: 5px; line-height: normal;
  padding: 14px 22px; top: 5px; width: auto; z-index: 100000;
}
.skip-link { position: absolute; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   SITE HEADER & NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
#site-header.scrolled {
  background: rgba(8, 12, 11, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
@media (max-width: 768px) {
  #site-header {
    background: rgba(8, 12, 11, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 48px;
  max-width: 1480px;
  margin: 0 auto;
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.site-branding:hover { opacity: 0.85; }

.custom-logo-wrap {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--border2);
  flex-shrink: 0;
}
.custom-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }

.site-title-text {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
}
.site-tagline-text {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Primary Nav */
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.primary-navigation { display: flex; align-items: center; }

/* strip WordPress menu ul/li defaults */
.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-navigation ul ul { display: none; } /* hide sub-menus */
.primary-navigation li { list-style: none; }

.primary-navigation a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.65);
  padding: 8px 16px;
  border-radius: 0;
  transition: color var(--transition);
  white-space: nowrap;
  background: none;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current-page-ancestor > a {
  color: #fff;
  background: none;
}

.nav-cta {
  background: rgba(61,122,98,0.9) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  margin-left: 8px;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
}
.nav-cta:hover {
  background: var(--teal-light) !important;
  transform: translateY(-1px);
}

/* ── User nav icon + dropdown ── */
.nav-user { position: relative; }
.nav-user-btn { background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; }
.nav-user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); transition: border-color var(--transition); }
.nav-user-btn:hover .nav-user-avatar { border-color: var(--teal); }
.nav-user-dropdown { position: absolute; top: calc(100% + 10px); right: 0; width: 220px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 8px 32px rgba(0,0,0,0.45); opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .15s, transform .15s; z-index: 9999; overflow: hidden; }
.nav-user-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav-user-info { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; }
.nav-user-info img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nav-user-name { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; }
.nav-user-email { font-size: 11px; color: var(--text-muted); word-break: break-all; margin-top: 2px; }
.nav-user-sep { height: 1px; background: var(--border); }
.nav-user-item { display: flex; align-items: center; gap: 9px; padding: 11px 14px; font-size: 13px; font-weight: 500; color: var(--text2); text-decoration: none; transition: background .15s, color .15s; }
.nav-user-item:hover { background: var(--bg2); color: var(--text); }
.nav-user-logout:hover { color: #e53e3e; background: rgba(229,62,62,0.08); }

/* Sign in button */
.nav-signin-btn { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: #1a1a1a; border-radius: 20px; padding: 7px 14px; font-size: 12px; font-weight: 700; text-decoration: none; transition: box-shadow .2s; white-space: nowrap; }
.nav-signin-btn:hover { box-shadow: 0 2px 12px rgba(255,255,255,0.2); }

/* Search in nav */
.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text2);
  padding: 8px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.nav-search-btn:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.nav-search-btn svg { width: 18px; height: 18px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
  padding: 8px 10px;
  flex-direction: column;
  gap: 5px;
  transition: all var(--transition);
}
.menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(8,12,11,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 24px 32px;
  border-bottom: 1px solid var(--border);
  z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu ul li + li { border-top: 1px solid var(--border); }
.mobile-menu ul a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text2);
  letter-spacing: 0.02em;
}
.mobile-menu ul a:hover { color: var(--teal-light); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.55) saturate(0.7);
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,12,11,0.62) 0%, rgba(8,12,11,0.1) 30%, transparent 55%, rgba(8,12,11,0.92) 85%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8,12,11,0.7) 0%, rgba(8,12,11,0.1) 60%, transparent 100%);
}

/* Organic SVG overlay (like reference map lines) */
.hero-overlay-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.28;
}
.hero-overlay-svg svg {
  width: 100%; height: 100%;
  position: absolute; top: 0; left: 0;
}

/* ── Animated SVG wave strokes ───────────────────────────────────────────── */
@keyframes svgWaveA {
  0%   { transform: translateY(0px)   translateX(0px); }
  50%  { transform: translateY(-18px) translateX(8px); }
  100% { transform: translateY(0px)   translateX(0px); }
}
@keyframes svgWaveB {
  0%   { transform: translateY(0px)  translateX(0px); }
  40%  { transform: translateY(14px) translateX(-10px); }
  100% { transform: translateY(0px)  translateX(0px); }
}
@keyframes svgWaveC {
  0%   { transform: translateY(0px)   translateX(0px); }
  60%  { transform: translateY(-10px) translateX(12px); }
  100% { transform: translateY(0px)   translateX(0px); }
}
@keyframes svgWaveD {
  0%   { transform: translateY(0px)  translateX(0px); }
  45%  { transform: translateY(20px) translateX(-6px); }
  100% { transform: translateY(0px)  translateX(0px); }
}
@keyframes svgNodePulse {
  0%, 100% { opacity: 0.5; r: 5; }
  50%       { opacity: 0.9; r: 7; }
}
@keyframes svgNodePulse2 {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.75; }
}
@keyframes svgNodePulse3 {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 0.85; }
}

.svg-wave-1 {
  transform-origin: center;
  animation: svgWaveA 14s ease-in-out infinite;
}
.svg-wave-2 {
  transform-origin: center;
  animation: svgWaveB 18s ease-in-out infinite;
  animation-delay: -4s;
}
.svg-wave-3 {
  transform-origin: center;
  animation: svgWaveC 11s ease-in-out infinite;
  animation-delay: -7s;
}
.svg-wave-4 {
  transform-origin: center;
  animation: svgWaveD 16s ease-in-out infinite;
  animation-delay: -2s;
}
.svg-node-1 { animation: svgNodePulse  6s ease-in-out infinite; }
.svg-node-2 { animation: svgNodePulse2 8s ease-in-out infinite; animation-delay: -3s; }
.svg-node-3 { animation: svgNodePulse3 5s ease-in-out infinite; animation-delay: -1.5s; }

@media (prefers-reduced-motion: reduce) {
  .svg-wave-1, .svg-wave-2, .svg-wave-3, .svg-wave-4,
  .svg-node-1, .svg-node-2, .svg-node-3 { animation: none; }
}

/* Floating particles */
.hero-particles {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0%   { opacity: 0; transform: translateY(20px) scale(0); }
  20%  { opacity: 0.6; }
  80%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-80px) scale(1.5); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--teal);
}

.hero-title {
  font-family: var(--font-bengali);
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  text-shadow: 0 4px 32px rgba(0,0,0,0.6);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 300;
  color: var(--text2);
  letter-spacing: 0.06em;
  margin-bottom: 48px;
  text-transform: lowercase;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 0 0 0 var(--teal-glow);
}
.btn-primary:hover {
  background: var(--teal-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(61,122,98,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal-light);
  transform: translateY(-2px);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* Hero stat nodes (like reference map markers) */
.hero-nodes {
  position: absolute;
  right: 80px;
  bottom: 140px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-node {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14,21,18,0.72);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border2);
  border-radius: 40px;
  padding: 10px 18px 10px 12px;
}
.hero-node-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  flex-shrink: 0;
}
.hero-node-text {
  font-size: 12px;
  color: var(--text2);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.hero-node-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-light);
  margin-left: auto;
}

/* ============================================================
   SECTION SHARED STYLES
   ============================================================ */
.section {
  padding: 96px 0;
}
.section-sm { padding: 64px 0; }
.section-lg { padding: 128px 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}
.section-header-left {}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 10px;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--teal);
  display: block;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.18;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-top: 12px;
}

.view-all-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: all var(--transition);
}
.view-all-link::after {
  content: '→';
  transition: transform var(--transition);
}
.view-all-link:hover { color: var(--sage); }
.view-all-link:hover::after { transform: translateX(4px); }

/* Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  margin: 0;
}

/* ============================================================
   BLOG CARD GRID
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.post-card:hover::before { opacity: 1; }

.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--bg3);
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.05); }

.post-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
}
.post-card-thumb-placeholder svg {
  width: 32px; height: 32px;
  color: var(--text-muted);
  opacity: 0.4;
}

.post-card-category {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(8,12,11,0.8);
  backdrop-filter: blur(8px);
  color: var(--teal-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border2);
}

.post-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.post-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }

.post-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  font-family: var(--font-bengali);
  transition: color var(--transition);
}
.post-card:hover .post-card-title { color: var(--sage); }

/* For Bengali content titles use bengali font, English use sans */
.post-card-title.is-latin { font-family: var(--font-sans); }

.post-card-excerpt {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.post-card-read {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}
.post-card-read::after { content: '→'; transition: transform var(--transition); }
.post-card:hover .post-card-read { color: var(--sage); }
.post-card:hover .post-card-read::after { transform: translateX(4px); }
.post-card-read-time { font-size: 11px; color: var(--text-muted); }

/* Featured post (large) */
.post-card-featured {
  grid-column: span 2;
}
.post-card-featured .post-card-thumb { aspect-ratio: 16/7; }
.post-card-featured .post-card-title { font-size: 24px; }
.post-card-featured .post-card-excerpt { -webkit-line-clamp: 4; }

/* ============================================================
   CATEGORY MAP SECTION
   ============================================================ */
.categories-section { background: var(--bg2); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal-glow), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.cat-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cat-card:hover::before { opacity: 1; }

.cat-card-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-glow);
  border: 1.5px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
  z-index: 1;
}

.cat-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.cat-card-count {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.cat-card-bar {
  height: 2px;
  border-radius: 2px;
  background: var(--border);
  position: relative;
  z-index: 1;
}
.cat-card-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  border-radius: 2px;
  width: var(--fill, 30%);
}

/* ============================================================
   YOUTUBE / VIDEO SECTION
   ============================================================ */
.video-section {
  position: relative;
  background: var(--bg);
}
.video-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

.video-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.video-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.video-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg3);
}
.video-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.video-card:hover .video-card-thumb img { transform: scale(1.04); }

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,12,11,0.3);
  transition: background var(--transition);
}
.video-card:hover .video-play-btn { background: rgba(8,12,11,0.1); }
.video-play-btn svg {
  width: 52px; height: 52px;
  color: #fff;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
  transition: transform var(--transition);
}
.video-card:hover .video-play-btn svg { transform: scale(1.1); }

.video-card-body { padding: 18px 20px; }
.video-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  font-family: var(--font-bengali);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card-title.is-latin { font-family: var(--font-sans); }
.video-card-meta { font-size: 11px; color: var(--text-muted); letter-spacing: 0.04em; }

.video-card.featured .video-card-body { padding: 22px 24px; }
.video-card.featured .video-card-title { font-size: 17px; -webkit-line-clamp: 3; margin-bottom: 10px; }

.youtube-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 32px;
  text-decoration: none;
  transition: all var(--transition);
}
.youtube-cta:hover {
  background: rgba(61,122,98,0.08);
  border-color: var(--teal);
  transform: translateY(-2px);
}
.youtube-cta-icon { color: #ff0000; flex-shrink: 0; }
.youtube-cta-icon svg { width: 32px; height: 32px; }
.youtube-cta-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.youtube-cta-text span { font-size: 12px; color: var(--text-muted); }
.youtube-cta-arrow {
  margin-left: auto;
  color: var(--teal-light);
  font-size: 18px;
  transition: transform var(--transition);
}
.youtube-cta:hover .youtube-cta-arrow { transform: translateX(4px); }

/* ============================================================
   ABOUT STRIP (homepage preview)
   ============================================================ */
.about-strip {
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}
.about-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(61,122,98,0.12), transparent);
  pointer-events: none;
}

.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-strip-photo {
  position: relative;
}
.about-strip-photo-frame {
  border-radius: 50%;
  overflow: hidden;
  width: 360px;
  height: 360px;
  max-width: 360px;
  margin: 0 auto;
  position: relative;
  flex-shrink: 0;
  border: 3px solid rgba(61,122,98,0.35);
  box-shadow: 0 0 0 8px rgba(61,122,98,0.08), 0 24px 60px rgba(0,0,0,0.5);
}
.about-strip-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.92) saturate(0.9);
}
.about-strip-photo-frame::after {
  content: none;
}

.about-photo-badge {
  position: absolute;
  bottom: 28px; right: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  z-index: 2;
}
.badge-stat {
  text-align: center;
}
.badge-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal-light);
  line-height: 1;
}
.badge-stat span {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-divider { width: 1px; height: 36px; background: var(--border); }

.about-strip-content {}
.about-strip-bio {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.about-tag {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text2);
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  position: relative;
}
#site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

.footer-top {
  padding: 72px 0 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--teal);
  color: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(61,122,98,0.25);
}
.social-link svg { width: 16px; height: 16px; }

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 20px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal-light); }

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--teal-light); }

/* ============================================================
   SINGLE POST / PAGE
   ============================================================ */
.single-hero {
  position: relative;
  padding: 140px 0 72px;
  overflow: hidden;
}
.single-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(61,122,98,0.1), transparent);
  pointer-events: none;
}

.single-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}
.single-breadcrumb a { color: var(--text-muted); }
.single-breadcrumb a:hover { color: var(--teal-light); }
.single-breadcrumb-sep { opacity: 0.4; }

.single-category-tag {
  display: inline-block;
  background: var(--teal-glow);
  border: 1px solid var(--border2);
  color: var(--teal-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-decoration: none;
}

.single-title {
  font-family: var(--font-bengali);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 24px;
}
.single-title.is-latin { font-family: var(--font-sans); }

.single-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.single-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border2); }
.single-meta strong { color: var(--text2); }

.single-featured-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 64px;
  aspect-ratio: 16/7;
}
.single-featured-img img { width: 100%; height: 100%; object-fit: cover; }

/* Article content */
.entry-content {
  font-size: 18px;
  line-height: 1.85;
  color: var(--text2);
  max-width: 720px;
  margin: 0 auto;
}
.entry-content h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--text);
  margin: 2.2em 0 0.8em;
  line-height: 1.25;
}
.entry-content h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--text);
  margin: 2em 0 0.7em;
}
.entry-content h4, .entry-content h5, .entry-content h6 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 1.8em 0 0.6em;
}
.entry-content p { margin-bottom: 1.5em; }
.entry-content a { color: var(--teal-light); border-bottom: 1px solid transparent; }
.entry-content a:hover { color: var(--sage); border-color: var(--sage); }
.entry-content strong { color: var(--text); font-weight: 700; }
.entry-content em { color: var(--text); font-style: italic; }
.entry-content blockquote {
  border-left: 3px solid var(--teal);
  padding: 20px 28px;
  margin: 2em 0;
  background: var(--bg3);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
  font-size: 19px;
  line-height: 1.65;
}
.entry-content blockquote cite {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-style: normal;
  margin-top: 12px;
}
.entry-content ul, .entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}
.entry-content li { margin-bottom: 0.5em; }
.entry-content img {
  border-radius: var(--radius-lg);
  margin: 2em 0;
  width: 100%;
}
.entry-content hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 3em 0;
}
.entry-content figure { margin: 2em 0; }
.entry-content figcaption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}
.entry-content pre {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  font-size: 14px;
  margin: 1.5em 0;
}
.entry-content code {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--sage);
}
.entry-content pre code { background: none; border: none; padding: 0; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 15px;
}
.entry-content th, .entry-content td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
.entry-content th {
  background: var(--bg3);
  color: var(--text);
  font-weight: 600;
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.post-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.post-tag:hover {
  border-color: var(--teal);
  color: var(--teal-light);
}

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.share-bar-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.share-btn:hover { border-color: var(--teal); color: var(--teal-light); }
.share-btn svg { width: 14px; height: 14px; }

/* Author card */
.author-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  margin: 64px 0 0;
  align-items: center;
}
.author-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border2);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.author-role { font-size: 12px; color: var(--teal-light); letter-spacing: 0.06em; margin-bottom: 10px; }
.author-bio { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* Related posts */
.related-posts { padding: 80px 0; }
.related-posts-title {
  font-size: 22px; font-weight: 700; color: var(--text);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 14px;
}
.related-posts-title::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--teal);
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ============================================================
   ARCHIVE / BLOG LIST
   ============================================================ */
.archive-hero {
  padding: 140px 0 72px;
  position: relative;
}
.archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(61,122,98,0.08), transparent);
  pointer-events: none;
}

.archive-title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 14px;
}
.archive-description {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.archive-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.filter-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--teal);
  color: var(--teal-light);
  background: var(--teal-glow);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 0;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  transition: all var(--transition);
}
.page-numbers:hover, .page-numbers.current {
  border-color: var(--teal);
  color: var(--teal-light);
  background: var(--teal-glow);
}
.page-numbers.prev, .page-numbers.next {
  width: auto;
  padding: 0 16px;
  gap: 6px;
}
.page-numbers.dots { border: none; background: none; pointer-events: none; }

/* ============================================================
   STATIC PAGE
   ============================================================ */
.page-wrap {
  padding: 140px 0 80px;
}
.page-hero-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page { padding: 140px 0 100px; }
.about-page-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: start;
}
.about-page-photo {
  border-radius: 50%;
  overflow: hidden;
  width: 300px;
  height: 300px;
  border: 3px solid rgba(61,122,98,0.4);
  box-shadow: 0 0 0 10px rgba(61,122,98,0.07), 0 24px 60px rgba(0,0,0,0.5);
  margin: 0 auto 28px;
}
.about-page-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* About page social links */
.about-social-links { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.about-social-link {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 16px;
  text-decoration: none; color: var(--text2);
  font-size: 14px; font-weight: 500;
  transition: border-color 0.22s, color 0.22s;
}
.about-social-link:hover { border-color: var(--teal); color: var(--text); }
.about-social-link svg, .about-social-link img { flex-shrink: 0; }
.about-social-link span { flex: 1; }
.about-social-link .asl-arrow { margin-left: auto; font-size: 12px; color: var(--text-muted); }

/* RedLab Studio glimpse section */
.redlab-glimpse {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.redlab-glimpse-logo {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.redlab-glimpse-logo::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--teal);
}
.redlab-glimpse h2 { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.redlab-glimpse p { font-size: 15px; color: var(--text-muted); line-height: 1.7; max-width: 520px; }
.redlab-glimpse-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.redlab-home-enroll-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: #fff; border-radius: 40px; padding: 13px 24px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s, transform .2s; }
.redlab-home-enroll-btn:hover { background: #2e6b52; transform: translateY(-2px); }
.redlab-glimpse-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.redlab-glimpse-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 12px; text-align: center; }
/* RedLab actions row */
.redlab-glimpse-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
@media (max-width: 768px) {
  .redlab-glimpse { grid-template-columns: 1fr; padding: 28px 20px; gap: 28px; }
  .redlab-glimpse-cta { align-items: flex-start; }
  .redlab-glimpse-actions { flex-direction: column; gap: 10px; align-items: flex-start; }
  .redlab-glimpse-actions .redlab-home-enroll-btn,
  .redlab-glimpse-actions .btn-outline {
      display: inline-flex;
      width: auto;
      min-width: 220px;
      justify-content: center;
      box-sizing: border-box;
  }
  .redlab-glimpse-badges { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .redlab-glimpse-badge { padding: 14px 10px; }
  .about-page-photo { width: 220px; height: 220px; }
}
.about-page-name {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 6px;
}
.about-page-role {
  font-size: 14px;
  color: var(--teal-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-weight: 600;
}
.about-page-bio {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.85;
  margin-bottom: 40px;
}
.about-divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.error-404-inner {}
.error-404-code {
  font-size: clamp(80px, 15vw, 180px);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--sage));
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 16px;
}
.error-404-title {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.error-404-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-form-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto 56px;
}
.search-form-wrap input[type="search"] {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: 50px;
  padding: 16px 56px 16px 24px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.search-form-wrap input[type="search"]:focus { border-color: var(--teal); }
.search-form-wrap input[type="search"]::placeholder { color: var(--text-muted); }
.search-form-wrap button[type="submit"] {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: var(--teal);
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background var(--transition);
}
.search-form-wrap button[type="submit"]:hover { background: var(--teal-light); }
.search-form-wrap button[type="submit"] svg { width: 18px; height: 18px; }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section {
  max-width: 720px;
  margin: 64px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.comments-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}
.comment-list { list-style: none; }
.comment-wrap {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.comment-avatar { border-radius: 50%; }
.comment-author-name { font-size: 14px; font-weight: 700; color: var(--text); }
.comment-date { font-size: 12px; color: var(--text-muted); }
.comment-body { font-size: 15px; color: var(--text2); line-height: 1.7; }

/* Comment form */
.comment-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 20px;
  outline: none;
  transition: border-color var(--transition);
  font-family: var(--font-sans);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--teal); }
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .submit {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.comment-form .submit:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

/* ============================================================
   WIDGETS
   ============================================================ */
.widget-area {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.widget-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-title::before {
  content: '';
  width: 16px; height: 2px;
  background: var(--teal);
  display: block;
}

/* ============================================================
   FORMS / INPUTS (generic)
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea, select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  padding: 11px 15px;
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--teal); }
input::placeholder, textarea::placeholder { color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card-featured { grid-column: span 2; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .about-strip-inner { gap: 48px; }
}

@media (max-width: 900px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .about-strip-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-strip-photo-frame { width: 240px !important; height: 240px !important; max-width: 240px; }
  .about-photo-badge { right: 0; }
  .hero-content { padding: 0 40px; }
  .hero-nodes { right: 24px; bottom: 120px; }
  .about-page-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-header-inner { padding: 0 20px; }
  .primary-navigation { display: none; }
  .menu-toggle { display: flex; }

  .hero-content { padding: 0 24px; max-width: 100%; }
  .hero-nodes { display: none; }
  .container, .container-wide, .container-narrow { padding: 0 20px; }

  .posts-grid { grid-template-columns: 1fr; }
  .post-card-featured { grid-column: span 1; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }

  .section { padding: 64px 0; }
  .section-header { flex-direction: column; align-items: flex-start; }

  .author-card { flex-direction: column; }
  .share-bar { flex-wrap: wrap; }
  .about-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-title { font-size: 36px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   UTILITIES / HELPERS
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.mb-0 { margin-bottom: 0; }

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Glow effect */
.glow { box-shadow: 0 0 40px rgba(61,122,98,0.2); }

/* No results message */
.no-results-msg {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.no-results-msg h2 { font-size: 24px; color: var(--text2); margin-bottom: 12px; }

/* ============================================================
   YOUTUBE 3×3 THUMBNAIL GRID — click-to-play
   ============================================================ */
.yt-thumb-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px;
  width: 100%;
}

.yt-thumb-card {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* 16:9 thumbnail — click target */
.yt-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg3);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.yt-thumb-wrap:hover {
  border-color: rgba(61,122,98,0.55);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(61,122,98,0.25);
  transform: translateY(-2px);
}

.yt-thumb-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.25s ease;
  filter: brightness(0.8);
}
.yt-thumb-wrap:hover img {
  transform: scale(1.05);
  filter: brightness(0.65);
}

/* Play overlay — centered, appears on hover */
.yt-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.yt-play-btn {
  width: 40px;
  height: 40px;
  background: rgba(8,12,11,0.72);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.75;
  transition: background 0.22s, border-color 0.22s, transform 0.22s, box-shadow 0.22s, opacity 0.22s;
  backdrop-filter: blur(4px);
}
.yt-thumb-wrap:hover .yt-play-btn {
  background: var(--teal);
  border-color: var(--teal);
  transform: scale(1.15);
  box-shadow: 0 0 24px rgba(61,122,98,0.6);
  opacity: 1;
}

/* Title below thumbnail */
.yt-thumb-title {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  transition: color 0.2s;
}
.yt-thumb-card:hover .yt-thumb-title { color: var(--text2); }

/* Playing state */
.yt-thumb-wrap.yt-playing { cursor: default; }
.yt-thumb-wrap.yt-playing iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.yt-thumb-wrap.yt-playing:hover { transform: none; box-shadow: none; }

/* Mobile: 1 column, only first 3 visible */
@media (max-width: 768px) {
  .yt-thumb-grid,
  .yt-thumb-grid[style] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .yt-hide-mobile { display: none !important; }
}
