/*
Theme Name: TechTown
Theme URI: https://techtown.com
Author: TechTown
Author URI: https://techtown.com
Description: TechTown - School Of Learnings. A modern tech education platform theme for SQL, Python, Power BI, and AI/ML learning.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techtown
Tags: education, technology, learning, custom-menu, featured-images, responsive-layout
*/

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

:root {
  --color-hero-dark:    #0a0c1e;
  --color-hero-mid:     #131640;
  --color-hero-blue:    #1a2060;
  --color-primary:      #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-accent:       #6366f1;
  --color-accent2:      #38bdf8;
  --color-bg-light:     #f0f4ff;
  --color-white:        #ffffff;
  --color-text-dark:    #0f172a;
  --color-text-mid:     #475569;
  --color-text-light:   #94a3b8;
  --color-card-border:  #e2e8f0;
  --color-tag-easy:     #22c55e;
  --color-tag-medium:   #f59e0b;
  --color-tag-hard:     #ef4444;
  --color-tag-sql:      #3b82f6;
  --color-tag-python:   #f59e0b;
  --color-tag-aiml:     #10b981;
  --color-footer-start: #1e3a8a;
  --color-footer-end:   #1e40af;

  --font-heading: 'Sora', 'Nunito', sans-serif;
  --font-body:    'DM Sans', 'Inter', sans-serif;

  --shadow-card:   0 2px 16px rgba(37, 99, 235, 0.08);
  --shadow-btn:    0 4px 14px rgba(37, 99, 235, 0.35);
  --radius-card:   16px;
  --radius-btn:    8px;
  --radius-tag:    6px;
  --transition:    0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-dark);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ==========================================
   TYPOGRAPHY IMPORTS (Google Fonts via PHP enqueue)
   ========================================== */

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-mid);
  text-align: center;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-text-dark);
  border: 2px solid var(--color-card-border);
}
.btn-outline-dark:hover {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-white);
}

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo .logo-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 6px 14px;
  border-radius: 6px;
  transition: all var(--transition);
}

.primary-nav a:hover,
.primary-nav a.current-menu-item {
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

.primary-nav .has-dropdown {
  position: relative;
}

.primary-nav .has-dropdown > a::after {
  content: '▾';
  margin-left: 4px;
  font-size: 0.7rem;
}

/* Header Right */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions .btn-login {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 6px 12px;
  transition: color var(--transition);
}

.header-actions .btn-login:hover {
  color: var(--color-white);
}

.header-actions .btn-signup {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-btn);
  box-shadow: 0 3px 12px rgba(37,99,235,0.4);
  transition: all var(--transition);
}

.header-actions .btn-signup:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  color: var(--color-white);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  position: relative;
  min-height: 600px;
  background: var(--color-hero-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
}

/* Animated background grid */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

/* Blue gradient blob */
.hero-section::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.25) 0%, rgba(99, 102, 241, 0.1) 40%, transparent 70%);
  pointer-events: none;
}

/* Bottom wave */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  overflow: hidden;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8rem;
  color: var(--color-accent2);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cta .btn {
  font-size: 0.95rem;
  padding: 13px 28px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-laptop-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.hero-laptop-wrap img {
  width: 100%;
  filter: drop-shadow(0 20px 60px rgba(37, 99, 235, 0.4));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Floating tech icons around laptop */
.hero-float-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  animation: floatIcon 4s ease-in-out infinite;
}

.float-icon:nth-child(1) { top: 5%;  left: 10%; background: linear-gradient(135deg,#f59e0b,#f97316); animation-delay: 0s;   color:#fff; }
.float-icon:nth-child(2) { top: 15%; right: 5%; background: linear-gradient(135deg,#3b82f6,#6366f1); animation-delay: 0.8s; color:#fff; }
.float-icon:nth-child(3) { bottom: 25%; left: 5%; background: linear-gradient(135deg,#10b981,#06b6d4); animation-delay: 1.6s; color:#fff; }
.float-icon:nth-child(4) { bottom: 15%; right: 10%; background: linear-gradient(135deg,#6366f1,#8b5cf6); animation-delay: 2.4s; color:#fff; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(3deg); }
  66% { transform: translateY(4px) rotate(-2deg); }
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-item { text-align: left; }
.hero-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 3px;
  display: block;
}

/* ==========================================
   LEARNING PATHS SECTION
   ========================================== */
.learning-paths-section {
  background: var(--color-bg-light);
  padding: 80px 0;
}

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

.path-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.path-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
  border-color: rgba(99,102,241,0.3);
}

.path-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.path-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.path-icon-sql    { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.path-icon-python { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.path-icon-bi     { background: linear-gradient(135deg, #fef3c7, #fed7aa); }
.path-icon-ai     { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }

.path-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
}

.path-card-desc {
  font-size: 0.88rem;
  color: var(--color-text-mid);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.path-card .btn {
  font-size: 0.875rem;
  padding: 10px 20px;
  width: 100%;
  justify-content: center;
}

/* ==========================================
   FEATURED PROBLEMS SECTION
   ========================================== */
.featured-problems-section {
  background: var(--color-bg-light);
  padding: 20px 0 80px;
}

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

.problem-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.13);
  border-color: rgba(99,102,241,0.25);
}

.problem-card-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.problem-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-tag);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
}

.tag-easy   { background: #dcfce7; color: #15803d; }
.tag-medium { background: #fef9c3; color: #a16207; }
.tag-hard   { background: #fee2e2; color: #dc2626; }
.tag-sql    { background: #dbeafe; color: #1d4ed8; }
.tag-python { background: #fef3c7; color: #d97706; }
.tag-bi     { background: #ede9fe; color: #7c3aed; }
.tag-aiml   { background: #d1fae5; color: #059669; }

.problem-desc {
  font-size: 0.84rem;
  color: var(--color-text-mid);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 18px;
}

.problem-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.problem-card-footer .btn {
  font-size: 0.82rem;
  padding: 8px 18px;
}

.problem-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.problem-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0 40px;
  color: rgba(255,255,255,0.75);
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Glowing orbs */
.footer-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.15;
}

.footer-orb-1 {
  width: 400px;
  height: 400px;
  background: #3b82f6;
  bottom: -100px;
  right: 10%;
}

.footer-orb-2 {
  width: 250px;
  height: 250px;
  background: #6366f1;
  top: 20%;
  left: 5%;
}

/* Footer geometric shapes */
.footer-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.footer-shape {
  position: absolute;
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 8px;
}

.footer-shape-1 {
  width: 60px; height: 60px;
  bottom: 15%; right: 20%;
  transform: rotate(15deg);
}

.footer-shape-2 {
  width: 40px; height: 40px;
  bottom: 30%; right: 35%;
  transform: rotate(30deg);
  border-radius: 50%;
}

.footer-inner {
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .site-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.8);
}

/* ==========================================
   PAGE TEMPLATES
   ========================================== */

/* Default Page */
.page-hero {
  background: linear-gradient(135deg, var(--color-hero-dark) 0%, var(--color-hero-blue) 100%);
  padding: 140px 0 80px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
}

.page-content-wrap {
  padding: 60px 0 80px;
  background: var(--color-bg-light);
}

.page-content-wrap .container {
  max-width: 860px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 12px;
  margin-top: 32px;
}

.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.2rem; }

.entry-content p {
  color: var(--color-text-mid);
  margin-bottom: 16px;
  line-height: 1.75;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 16px 24px;
  color: var(--color-text-mid);
  line-height: 1.75;
}

/* ==========================================
   BLOG / POSTS
   ========================================== */
.blog-section {
  background: var(--color-bg-light);
  padding: 80px 0;
}

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

.post-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(37,99,235,0.13);
}

.post-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.post-body { padding: 22px; }

.post-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 8px;
  display: block;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

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

.post-excerpt {
  font-size: 0.85rem;
  color: var(--color-text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}

.post-meta {
  font-size: 0.78rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Widgets / Sidebar */
.widget { margin-bottom: 32px; }
.widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

/* ==========================================
   STICKY HEADER (scrolled state)
   ========================================== */
.site-header.scrolled {
  position: fixed;
  background: rgba(10, 12, 30, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
  .paths-grid,
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .primary-nav,
  .header-actions .btn-login {
    display: none;
  }

  .menu-toggle { display: flex; }

  .mobile-menu-open .primary-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-hero-dark);
    padding: 80px 24px 40px;
    z-index: 200;
    gap: 0;
  }

  .mobile-menu-open .primary-nav a {
    font-size: 1.2rem;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    display: block;
    width: 100%;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }

  .paths-grid,
  .problems-grid {
    grid-template-columns: 1fr;
  }

  .posts-grid { grid-template-columns: 1fr; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* ==========================================
   ANIMATIONS & SCROLL REVEALS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================
   WP ALIGNMENT & BLOCK EDITOR
   ========================================== */
.alignleft  { float: left;  margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }

.wp-block-image { margin-bottom: 24px; }

/* Screen reader text */
.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 !important;
}

/* ==========================================
   BLOG — HERO SECTION
   ========================================== */
.blog-hero-section {
  position: relative;
  background: var(--color-hero-dark);
  overflow: hidden;
  padding: 110px 0 90px;
}

.blog-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 60% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

.blog-hero-glow {
  position: absolute;
  top: -120px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.22) 0%, rgba(99,102,241,0.08) 45%, transparent 70%);
  pointer-events: none;
}

.blog-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.blog-hero-content { max-width: 720px; }

.blog-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin: 16px 0 14px;
  letter-spacing: -0.02em;
}

.blog-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  line-height: 1.65;
}

/* Search bar */
.blog-search-form { max-width: 560px; }

.blog-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 6px 8px 6px 16px;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition);
}

.blog-search-wrap:focus-within {
  border-color: rgba(99,102,241,0.6);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.blog-search-wrap > svg { color: rgba(255,255,255,0.4); flex-shrink: 0; }

.blog-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.925rem;
  padding: 8px 0;
}

.blog-search-input::placeholder { color: rgba(255,255,255,0.35); }

.blog-search-btn { padding: 10px 22px; font-size: 0.875rem; }

/* ==========================================
   BLOG — FILTER PILLS
   ========================================== */
.blog-filter-section {
  background: var(--color-bg-light);
  padding: 28px 0 0;
  border-bottom: 1px solid var(--color-card-border);
}

.blog-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 24px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-mid);
  background: var(--color-white);
  border: 1.5px solid var(--color-card-border);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.filter-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #eff6ff;
}

.filter-pill.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 3px 12px rgba(37,99,235,0.3);
}

/* ==========================================
   BLOG — MAIN LAYOUT
   ========================================== */
.blog-main-section {
  background: var(--color-bg-light);
  padding: 48px 0 80px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

/* ==========================================
   BLOG — FEATURED CARD (first post)
   ========================================== */
.blog-featured-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  box-shadow: 0 4px 24px rgba(37,99,235,0.09);
  margin-bottom: 28px;
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(37,99,235,0.15);
}

.blog-featured-img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}

.blog-featured-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-featured-card:hover .blog-featured-img { transform: scale(1.04); }

.blog-featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 20px;
}

.blog-placeholder-img {
  background: linear-gradient(135deg, #1e2a4a, #131640);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

.blog-placeholder-img svg { width: 48px; height: 48px; }

.blog-featured-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.meta-dot { opacity: 0.5; }

.post-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  text-decoration: none;
}

.post-category:hover { text-decoration: underline; }

.blog-featured-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1.3;
  margin-bottom: 14px;
}

.blog-featured-title a { color: inherit; text-decoration: none; }
.blog-featured-title a:hover { color: var(--color-primary); }

.blog-featured-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-mid);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 28px;
}

.blog-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid var(--color-bg-light);
}

.author-avatar-sm {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.blog-read-btn {
  font-size: 0.85rem;
  padding: 10px 20px;
  gap: 6px;
  flex-shrink: 0;
}

/* ==========================================
   BLOG — REGULAR POST CARDS
   ========================================== */
.blog-post-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.blog-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(37,99,235,0.13);
  border-color: rgba(99,102,241,0.25);
}

.blog-card-img-wrap {
  flex-shrink: 0;
  width: 200px;
  overflow: hidden;
  display: block;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.blog-placeholder-small {
  width: 200px;
  min-height: 160px;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.4;
  margin-bottom: 8px;
}

.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--color-primary); }

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--color-text-mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap var(--transition);
}

.blog-read-link:hover { gap: 8px; }

/* ==========================================
   BLOG — PAGINATION
   ========================================== */
.blog-pagination { margin-top: 16px; }

.blog-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-mid);
  background: var(--color-white);
  border: 1.5px solid var(--color-card-border);
  text-decoration: none;
  transition: all var(--transition);
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
  width: auto;
  padding: 0 16px;
}

/* ==========================================
   BLOG — EMPTY STATE
   ========================================== */
.blog-empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-card-border);
}

.blog-empty-icon {
  width: 80px; height: 80px;
  background: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.blog-empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-dark);
}

.blog-empty-state p {
  color: var(--color-text-mid);
  margin-bottom: 24px;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 24px;
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-card);
}

.sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* Tags cloud */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-tags .tag { cursor: pointer; text-decoration: none; }
.sidebar-tags .tag:hover { filter: brightness(0.88); transform: translateY(-1px); transition: all var(--transition); }

/* Recent posts */
.sidebar-recent-post {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-card-border);
  text-decoration: none;
  transition: all var(--transition);
}

.sidebar-recent-post:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-recent-post:first-of-type { padding-top: 0; }

.sidebar-recent-post:hover .sidebar-recent-title { color: var(--color-primary); }

.sidebar-recent-thumb {
  width: 60px !important;
  height: 50px !important;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.sidebar-thumb-placeholder {
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-recent-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sidebar-recent-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.sidebar-recent-date {
  font-size: 0.73rem;
  color: var(--color-text-light);
}

/* CTA Widget */
.sidebar-cta {
  background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
  border: none !important;
  color: var(--color-white);
  text-align: center;
}

.sidebar-cta-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.sidebar-cta h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.sidebar-cta p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
  line-height: 1.55;
}

.sidebar-cta .btn-primary {
  background: rgba(255,255,255,0.18) !important;
  box-shadow: none !important;
  border: 1.5px solid rgba(255,255,255,0.35);
}

.sidebar-cta .btn-primary:hover {
  background: rgba(255,255,255,0.28) !important;
}

/* Newsletter */
.sidebar-newsletter h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}

.sidebar-newsletter p {
  font-size: 0.82rem;
  color: var(--color-text-mid);
  margin-bottom: 16px;
  line-height: 1.5;
}

.sidebar-email-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-card-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-dark);
  outline: none;
  transition: border-color var(--transition);
}

.sidebar-email-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* ToC */
.sidebar-toc .toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.toc-link {
  font-size: 0.84rem;
  color: var(--color-text-mid);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  display: block;
  border-left: 2px solid var(--color-card-border);
  transition: all var(--transition);
}

.toc-link:hover {
  background: #eff6ff;
  border-left-color: var(--color-primary);
  color: var(--color-primary);
  padding-left: 14px;
}

/* ==========================================
   SINGLE POST — HERO
   ========================================== */
.post-hero-section {
  position: relative;
  background: var(--color-hero-dark);
  overflow: hidden;
  padding: 110px 0 90px;
}

.post-hero-inner { max-width: 800px; }

.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

.post-hero-meta .post-category { font-size: 0.78rem; }

.post-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.post-hero-excerpt {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 700px;
}

.post-hero-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.post-hero-author-row .author-avatar {
  width: 44px !important;
  height: 44px !important;
  border: 2px solid rgba(255,255,255,0.25);
}

.post-hero-author-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-hero-author-row .author-name {
  color: var(--color-white);
  font-size: 0.9rem;
}

.author-bio-short {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

/* ==========================================
   SINGLE POST — BODY
   ========================================== */
.post-body-section {
  background: var(--color-bg-light);
  padding: 48px 0 80px;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}

.post-article { min-width: 0; }

.post-featured-image {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 8px 32px rgba(37,99,235,0.12);
}

.post-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Rich content styles */
.entry-content {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 40px 44px;
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-mid);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 32px 0 14px;
  line-height: 1.3;
}

.entry-content h2 { font-size: 1.45rem; }
.entry-content h3 { font-size: 1.2rem; }
.entry-content h4 { font-size: 1rem; }

.entry-content p { margin-bottom: 18px; }

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

.entry-content ul,
.entry-content ol {
  margin: 0 0 18px 22px;
  line-height: 1.8;
}

.entry-content li { margin-bottom: 4px; }

.entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  margin: 24px 0;
  padding: 16px 24px;
  background: #eff6ff;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #1e40af;
}

.entry-content pre,
.entry-content code {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.875rem;
}

.entry-content pre {
  background: #0d1117;
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 20px 0;
  line-height: 1.6;
}

.entry-content code {
  background: #f1f5f9;
  color: #6366f1;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.875em;
}

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

.entry-content img {
  border-radius: 10px;
  margin: 20px 0;
  max-width: 100%;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.entry-content th {
  background: var(--color-bg-light);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--color-card-border);
  color: var(--color-text-dark);
}

.entry-content td {
  padding: 9px 14px;
  border: 1px solid var(--color-card-border);
}

.entry-content tr:nth-child(even) td { background: #f8fafc; }

/* Post tags */
.post-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid var(--color-card-border);
  margin-bottom: 24px;
}

.post-tags-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Author card */
.post-author-card {
  display: flex;
  gap: 20px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 28px 30px;
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.author-avatar-lg {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  flex-shrink: 0;
  border: 3px solid var(--color-bg-light) !important;
}

.post-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-author-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  font-weight: 600;
}

.post-author-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
}

.post-author-bio {
  font-size: 0.85rem;
  color: var(--color-text-mid);
  line-height: 1.6;
  margin-top: 4px;
}

/* Post navigation */
.post-nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--color-white);
  border-radius: 12px;
  border: 1.5px solid var(--color-card-border);
  text-decoration: none;
  transition: all var(--transition);
}

.post-nav-link:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(37,99,235,0.12);
  transform: translateY(-2px);
}

.post-nav-next { text-align: right; }

.post-nav-dir {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}

.post-nav-next .post-nav-dir { justify-content: flex-end; }

.post-nav-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Comments */
.post-comments { margin-top: 8px; }

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-card-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 12px;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.comment-form .submit {
  background: var(--color-primary);
  color: white;
  padding: 11px 28px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition);
}

.comment-form .submit:hover { background: var(--color-primary-dark); }

/* ==========================================
   RESPONSIVE — BLOG
   ========================================== */
@media (max-width: 1024px) {
  .blog-layout,
  .post-layout { grid-template-columns: 1fr; }

  .blog-sidebar { position: static; }

  .blog-featured-card { grid-template-columns: 1fr; }

  .blog-featured-img { min-height: 240px; }

  .post-nav-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .blog-post-card { flex-direction: column; }

  .blog-card-img-wrap { width: 100%; }

  .blog-card-img,
  .blog-placeholder-small { width: 100%; min-height: 180px; }

  .blog-hero-title { font-size: 1.9rem; }

  .blog-search-wrap { flex-wrap: wrap; padding: 12px 14px; border-radius: 10px; }

  .blog-search-btn { width: 100%; }

  .entry-content { padding: 24px 22px; }

  .post-author-card { flex-direction: column; }
}
