/*
Theme Name: Study Morph Blog
Theme URI: https://studymorph.com/blog/
Author: Study Morph
Author URI: https://studymorph.com/
Description: Custom high-performance modern dual-theme WordPress theme for Study Morph blog. Features seamless design alignment with landing page, instant Dark/Light mode toggle, and rich SEO optimization.
Version: 1.0.0
Text Domain: studymorph
*/

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   1. CSS VARIABLES & DUAL-THEME ENGINE
   ========================================================================== */
:root,
body[data-theme="light"] {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Backgrounds */
  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-card-glass: rgba(255, 255, 255, 0.92);

  /* Borders */
  --border-subtle: #E2E8F0;
  --border-card: #CBD5E1;
  --border-hover: #8B5CF6;

  /* Typography */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  /* Accents */
  --accent-purple: #6D28D9;
  --accent-purple-dark: #5B21B6;
  --accent-cyan: #0284C7;
  --accent-emerald: #059669;
  --accent-amber: #D97706;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #6D28D9 0%, #4F46E5 50%, #0284C7 100%);
  --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  --radial-glow: rgba(109, 40, 217, 0.08);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 10px 30px -5px rgba(109, 40, 217, 0.18);

  /* Specifics */
  --nav-bg: rgba(255, 255, 255, 0.9);
  --input-bg: #FFFFFF;
  --input-border: #CBD5E1;
  --badge-bg: #EDE9FE;
  --badge-border: #DDD6FE;
  --badge-text: #5B21B6;

  --code-bg: #0F172A;
  --code-text: #F8FAFC;
  --inline-code-bg: #F1F5F9;
  --inline-code-text: #6D28D9;

  --footer-bg: #0B0F19;
  --footer-text: #94A3B8;
  --footer-text-primary: #FFFFFF;

  --max-width: 1200px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* Dark Theme */
body[data-theme="dark"] {
  --bg-primary: #08080C;
  --bg-secondary: #0D0D14;
  --bg-card: #12121A;
  --bg-card-hover: #171722;
  --bg-card-glass: rgba(18, 18, 26, 0.88);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-hover: #A78BFA;

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --accent-purple: #8B5CF6;
  --accent-purple-dark: #7C3AED;
  --accent-cyan: #38BDF8;

  --gradient-card: linear-gradient(180deg, #14141F 0%, #0F0F17 100%);
  --radial-glow: rgba(139, 92, 246, 0.15);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 10px 30px -5px rgba(139, 92, 246, 0.3);

  --nav-bg: rgba(8, 8, 12, 0.9);
  --input-bg: #14141E;
  --input-border: rgba(255, 255, 255, 0.15);
  --badge-bg: rgba(139, 92, 246, 0.15);
  --badge-border: rgba(139, 92, 246, 0.35);
  --badge-text: #C4B5FD;

  --code-bg: #07070B;
  --code-text: #E2E8F0;
  --inline-code-bg: rgba(139, 92, 246, 0.15);
  --inline-code-text: #C4B5FD;

  --footer-bg: #050508;
  --footer-text: #94A3B8;
  --footer-text-primary: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.65;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   3. BUTTONS & PILLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary) !important;
  border-color: var(--border-card);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20BD5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
}

/* ==========================================================================
   4. NAVBAR & HEADER (EXACT REPLICA OF LANDING PAGE)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.25s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  transition: transform 0.2s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.02);
}

/* Logo switching */
body[data-theme="light"] .dark-logo { display: none !important; }
body[data-theme="light"] .light-logo { display: block !important; }
body[data-theme="dark"] .light-logo { display: none !important; }
body[data-theme="dark"] .dark-logo { display: block !important; }

.navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.navbar .nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: var(--accent-purple);
}

.navbar .nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 9999px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-purple);
  transform: translateY(-1px);
}

body[data-theme="light"] .theme-icon-moon { display: block; }
body[data-theme="light"] .theme-icon-sun { display: none; }
body[data-theme="dark"] .theme-icon-moon { display: none; }
body[data-theme="dark"] .theme-icon-sun { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px;
}

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   5. BLOG HERO & HEADER SECTION
   ========================================================================== */
.blog-hero {
  padding: 64px 0 40px;
  background: radial-gradient(circle at 50% 20%, var(--radial-glow) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.blog-hero-badge {
  margin-bottom: 16px;
}

.blog-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  font-weight: 800;
}

.blog-hero h1 span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-hero-desc {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.blog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--accent-purple);
  color: #FFFFFF !important;
  border-color: var(--accent-purple);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

/* ==========================================================================
   6. BLOG GRID & POST CARDS
   ========================================================================== */
.blog-content-area {
  padding: 56px 0 80px;
}

.featured-post-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  background: var(--gradient-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 48px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.featured-post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.featured-img-wrap {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

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

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

.featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.featured-content h2 {
  font-size: 1.85rem;
  margin-bottom: 14px;
  transition: color 0.2s ease;
}

.featured-content h2 a:hover {
  color: var(--accent-purple);
}

.featured-content p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Standard Posts Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.blog-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-secondary);
}

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

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

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

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 12px 0 10px;
  line-height: 1.4;
}

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

.blog-card-title a:hover {
  color: var(--accent-purple);
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
}

.read-more-link {
  color: var(--accent-purple);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

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

/* Pagination */
.pagination-wrap {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.pagination-wrap .navigation.pagination {
  display: flex;
  justify-content: center;
}

.pagination-wrap .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pagination-wrap a.page-numbers:hover {
  background: var(--accent-purple);
  color: #FFFFFF !important;
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pagination-wrap .page-numbers.current {
  background: var(--accent-purple);
  color: #FFFFFF !important;
  border-color: var(--accent-purple);
  cursor: default;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.3);
}

.pagination-wrap .page-numbers.dots {
  border: none;
  background: transparent;
  padding: 0 6px;
  min-width: auto;
  color: var(--text-muted);
}

.pagination-wrap .prev.page-numbers,
.pagination-wrap .next.page-numbers {
  padding: 0 20px;
  font-weight: 600;
}

body[data-theme="dark"] .pagination-wrap .page-numbers {
  background: #171722;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text-primary);
}

body[data-theme="dark"] .pagination-wrap a.page-numbers:hover {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #FFFFFF !important;
}

/* ==========================================================================
   7. SINGLE POST STYLING (DETAIL PAGE)
   ========================================================================== */
.single-post-wrapper {
  padding: 48px 0 80px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--text-secondary);
}

.breadcrumb-nav a:hover {
  color: var(--accent-purple);
}

.single-header {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

.single-header h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  line-height: 1.25;
  margin: 16px 0 20px;
  font-weight: 800;
}

.single-featured-image {
  max-width: 980px;
  margin: 0 auto 48px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-card);
}

.single-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.single-content-container {
  max-width: 780px;
  margin: 0 auto;
}

/* Post Typography inside article */
.post-entry-content {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

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

.post-entry-content h2 {
  font-size: 1.9rem;
  margin: 44px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.post-entry-content h3 {
  font-size: 1.45rem;
  margin: 36px 0 14px;
}

.post-entry-content h4 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
}

.post-entry-content ul,
.post-entry-content ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

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

.post-entry-content blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  background: var(--bg-card);
  border-left: 4px solid var(--accent-purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.post-entry-content {
  overflow-x: hidden;
  max-width: 100%;
}

.post-entry-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border-collapse: collapse;
}

.post-entry-content th,
.post-entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
}

.post-entry-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--inline-code-bg);
  color: var(--inline-code-text);
  padding: 3px 6px;
  border-radius: 4px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.post-entry-content pre {
  margin: 28px 0;
  padding: 20px;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius-md);
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-card);
}

.post-entry-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.95rem;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}

/* Post Social Share */
.post-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 48px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 14px;
}

.share-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: var(--accent-purple);
  color: #FFFFFF !important;
  border-color: var(--accent-purple);
}

/* Author Box */
.author-box {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
  align-items: center;
}

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

.author-info h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.author-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* In-Article Project CTA Card */
.post-cta-card {
  margin: 56px 0;
  padding: 36px;
  background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid #312E81;
  box-shadow: var(--shadow-lg);
}

.post-cta-card h3 {
  color: #FFFFFF;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.post-cta-card p {
  color: #CBD5E1;
  max-width: 580px;
  margin: 0 auto 24px;
  font-size: 1rem;
}

/* Post Navigation (Prev / Next) */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 48px 0;
}

.nav-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.nav-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.nav-card-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.nav-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Comments Section */
.comments-area {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 28px;
}

.comment-list {
  list-style: none;
  margin-bottom: 40px;
}

.comment-body {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.comment-author {
  font-weight: 700;
  color: var(--text-primary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15);
}

/* ==========================================================================
   8. PRE-FOOTER CTA & FOOTER
   ========================================================================== */
.cta-banner-wrap {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.cta-banner {
  background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 100%);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  border: 1px solid #312E81;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: #FFFFFF;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 14px;
}

.cta-banner p {
  color: #CBD5E1;
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.cta-banner-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 64px 0 32px;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin: 16px 0 20px;
  line-height: 1.6;
  max-width: 320px;
}

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

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--accent-purple);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-col-title {
  color: var(--footer-text-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--footer-text);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

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

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: all 0.25s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .featured-post-card {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar .nav-links, .nav-actions .btn {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .post-navigation {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .featured-content {
    padding: 24px;
  }
  .post-share-bar {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .post-cta-card {
    padding: 24px 16px;
  }
  .post-cta-card .btn {
    white-space: normal;
    text-align: center;
    width: 100%;
  }
  .floating-whatsapp span {
    display: none;
  }
  .floating-whatsapp {
    padding: 12px;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}
