/*
Theme Name: KrutiDev Developer
Theme URI: https://drjawwadahmad.com/
Author: Dr. Jawwad Ahmad
Author URI: https://drjawwadahmad.com/
Description: A premium, SEO-optimized WordPress theme for the KrutiDev Unicode Converter. Bhagwat-inspired sacred color palette with saffron and gold accents, glassmorphism cards, Inter and Noto Sans Devanagari typography, animated sections, and full mobile responsiveness.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: krutidev-developer
Tags: one-column, custom-menu, featured-images, translation-ready, blog
*/

/* ==========================================================================
   BHAGWAT DESIGN TOKENS — Sacred Saffron & Gold Palette
   ========================================================================== */
:root {
  /* Background — Refined Bright Slate-White & Off-White */
  --bg-dark: #f1f5f9;
  --bg-deeper: #e2e8f0;
  --bg-alt: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;

  /* Primary — True Sacred Bhagwat Saffron (#ff6600) */
  --primary: #ff6600;
  --primary-hover: #e05300;
  --primary-glow: rgba(255, 102, 0, 0.12);
  --primary-soft: rgba(255, 102, 0, 0.04);
  --primary-border: rgba(255, 102, 0, 0.18);

  /* Secondary — Rich Professional Gold-Brown (high legibility) */
  --accent-gold: #b45309;
  --accent-gold-soft: rgba(180, 83, 9, 0.04);
  --accent-gold-border: rgba(180, 83, 9, 0.15);

  /* Tertiary — Success Green */
  --success: #059669;
  --success-soft: rgba(5, 150, 105, 0.06);

  /* Text — Dark Slate & Charcoal for Supreme Legibility */
  --text-primary: #0f172a;
  --text-muted: #334155;
  --text-dim: #627288;

  /* Borders — True Bhagwat Saffron Tint */
  --border-color: rgba(255, 102, 0, 0.12);
  --border-active: rgba(255, 102, 0, 0.45);

  /* Typography */
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --font-hindi: 'Noto Sans Devanagari', sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

  /* Spacing */
  --container-max: 1200px;
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 6rem;

  /* Effects — Subtle Shadows & Glassmorphic Accents for Light Theme */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px var(--primary-glow);
  --shadow-gold: 0 0 15px rgba(180, 83, 9, 0.05);
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fixed header offset */
  --site-header-height: 4.5rem;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--sp-sm);
}

section {
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.section-dark {
  background: radial-gradient(circle at 10% 20%, rgba(217, 79, 0, 0.025) 0%, var(--bg-dark) 55%);
}

.section-alt {
  background: radial-gradient(circle at 90% 80%, rgba(217, 79, 0, 0.025) 0%, var(--bg-alt) 55%);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h2.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: var(--sp-sm);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto var(--sp-lg);
  font-size: 1.05rem;
  line-height: 1.75;
}

.subsection-heading {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem auto 1.25rem;
  max-width: 900px;
  line-height: 1.35;
}

.content-block .subsection-heading:first-of-type {
  margin-top: 0.5rem;
}

/* Plain content blocks — no icons, cards, or badges */
.content-prose-block {
  margin-top: 3.5rem;
  width: 100%;
}

.content-prose {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.content-prose p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.content-prose p:last-child {
  margin-bottom: 0;
}

.content-bullet-list,
.content-numbered-list {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.content-bullet-list li,
.content-numbered-list li {
  margin-bottom: 0.5rem;
}

.content-numbered-list {
  list-style: decimal;
}

/* ==========================================================================
   PREMIUM CONTENT BLOCKS — Hero sections below converter
   ========================================================================== */
.premium-content-block {
  margin-top: 3.5rem;
  width: 100%;
}

.how-it-works-block {
  margin-top: 3.5rem;
  width: 100%;
}

.how-it-works-block .content-prose .subsection-heading {
  text-align: left;
  margin: 2rem auto 1rem;
  max-width: 900px;
}

.how-it-works-block .quick-answer-box {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Mapping in Simpler Terms — interactive panel */
.mapping-simpler-panel {
  margin: 0 0 1.75rem;
  padding: 1.75rem 1.85rem 1.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--primary);
  transition: var(--transition);
}

.mapping-simpler-panel:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.mapping-simpler-title {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1.35rem;
  text-align: left;
}

.mapping-compare-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.mapping-compare-card {
  flex: 1 1 200px;
  max-width: 280px;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-dark);
  text-align: center;
  transition: var(--transition);
  cursor: default;
}

.mapping-compare-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-soft);
}

.mapping-unicode:hover {
  background: rgba(255, 102, 0, 0.04);
}

.mapping-krutidev:hover {
  background: rgba(255, 102, 0, 0.06);
}

.mapping-compare-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.mapping-compare-char {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.35rem;
  font-family: 'Noto Sans Devanagari', sans-serif;
}

.mapping-krutidev .mapping-compare-char {
  font-family: inherit;
  font-size: 2rem;
  letter-spacing: 0.02em;
}

.mapping-compare-code {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.mapping-compare-arrow {
  display: flex;
  align-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  padding: 0 0.25rem;
  transition: transform 0.25s ease;
}

.mapping-compare-row:hover .mapping-compare-arrow {
  transform: translateX(4px);
}

.mapping-simpler-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.mapping-coverage-heading {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  color: var(--primary);
  margin: 0 0 0.85rem;
}

.mapping-coverage-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
}

.mapping-coverage-grid li {
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-muted);
  transition: var(--transition);
}

.mapping-coverage-grid li:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
  background: rgba(255, 102, 0, 0.03);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .mapping-compare-row {
    flex-direction: column;
    align-items: center;
  }

  .mapping-compare-arrow {
    transform: rotate(90deg);
  }

  .mapping-compare-row:hover .mapping-compare-arrow {
    transform: rotate(90deg) translateX(4px);
  }

  .mapping-compare-card {
    max-width: 100%;
    width: 100%;
  }
}

.premium-block-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.premium-block-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.premium-block-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.premium-block-card:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.premium-block-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
}

.premium-block-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.premium-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.premium-step-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
}

.premium-step-item:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-soft);
}

.premium-step-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  padding-top: 0.15rem;
}

.premium-step-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.35rem;
}

.premium-step-body p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.premium-note-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem;
  background: rgba(255, 102, 0, 0.04);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
}

.premium-note-panel p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.premium-note-panel p:last-child {
  margin-bottom: 0;
}

/* Key Facts panel */
.key-facts-panel {
  margin: 2.5rem auto;
  max-width: 900px;
  padding: 2rem 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--primary);
}

.key-facts-panel .subsection-heading {
  margin-top: 0;
  text-align: left;
  max-width: none;
}

.key-facts-grid {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.key-facts-grid li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 1.35rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  transition: var(--transition);
}

.key-facts-grid li::before {
  content: '';
  position: absolute;
  left: 0.65rem;
  top: 1.15rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.key-facts-grid li:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
  background: rgba(255, 102, 0, 0.03);
}

/* Audience showcase — image placeholder cards */
.audience-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.audience-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.audience-showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.audience-showcase-topline {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
}

.audience-image-placeholder {
  aspect-ratio: 16 / 10;
  background: var(--bg-deeper);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.audience-image-placeholder span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.audience-showcase-accent {
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 1rem 1.25rem 0;
  border-radius: 2px;
}

.audience-showcase-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.75rem 1.25rem 0.5rem;
}

.audience-showcase-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 1.25rem 1.25rem;
}

/* Full-width error panels */
.error-panel-section {
  padding: var(--sp-lg) 0;
}

.error-panel-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 2rem 0 2.5rem;
  padding: 0;
}

.error-panel {
  width: 100%;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.error-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.error-panel:hover {
  border-color: var(--border-active);
}

.error-panel[open] {
  border-color: var(--primary-border);
  box-shadow: inset 4px 0 0 var(--primary);
}

.error-panel summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 2rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.error-panel summary::-webkit-details-marker {
  display: none;
}

.error-num {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  min-width: 64px;
}

.error-title {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.error-toggle {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-left: auto;
}

.error-panel[open] .error-toggle {
  transform: rotate(-135deg);
}

.error-panel-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-color);
}

.error-panel-col {
  padding: 1.5rem 2rem;
}

.error-panel-col h4 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.error-panel-col p {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.error-panel-col p:last-child {
  margin-bottom: 0;
}

.error-cause-col {
  background: rgba(255, 102, 0, 0.03);
  border-right: 1px solid var(--border-color);
}

.error-fix-col {
  background: var(--bg-card);
}

@media (max-width: 900px) {
  .premium-block-grid-2 {
    grid-template-columns: 1fr;
  }

  .audience-showcase-grid {
    grid-template-columns: 1fr;
  }

  .error-panel-content {
    grid-template-columns: 1fr;
  }

  .error-cause-col {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .error-panel summary {
    padding: 1rem 1.25rem;
    gap: 0.85rem;
  }

  .error-panel-col {
    padding: 1.25rem;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .audience-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

.highlight {
  color: var(--primary);
  text-shadow: 0 0 15px rgba(217, 79, 0, 0.12);
}

.highlight-gold {
  color: var(--accent-gold);
  text-shadow: 0 0 12px rgba(180, 83, 9, 0.1);
}

.text-hindi {
  font-family: var(--font-hindi);
}

/* ==========================================================================
   REUSABLE COMPONENTS
   ========================================================================== */

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-primary {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.badge-gold {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-border);
}

/* --- Buttons --- */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #CC5500 100%);
  color: #fff;
  border: none;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-family: var(--font-ui);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

/* --- Glass Card --- */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* --- Definition Callout Box --- */
.definition-box {
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  position: relative;
}

.definition-box::before {
  content: 'INFO';
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: var(--bg-card);
  padding: 0 6px;
}

.definition-box p {
  color: var(--text-primary);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.75;
}

/* --- Callout Box --- */
.callout-box {
  background: var(--accent-gold-soft);
  border: 1px solid var(--accent-gold-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--accent-gold);
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.callout-box .callout-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
}

.callout-box.callout-saffron {
  background: var(--primary-soft);
  border-color: var(--primary-border);
  color: var(--primary);
}

.callout-box.callout-green {
  background: var(--success-soft);
  border-color: rgba(76, 175, 80, 0.25);
  color: var(--success);
}

/* --- Data Tables --- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.data-table thead th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--primary-border);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tbody td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  vertical-align: top;
}

.data-table tbody tr {
  transition: var(--transition);
}

.data-table tbody tr:hover {
  background: rgba(255, 107, 0, 0.04);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table .hindi-cell {
  font-family: var(--font-hindi);
  font-size: 1.15rem;
  color: var(--text-primary);
}

.data-table .code-cell {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 0.85rem;
}

/* Responsive table */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
}

/* --- Content Block --- */
.content-block {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--sp-xl) 0; /* Increase padding for premium breathing room */
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}



.content-block h3 {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.content-block h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content-block ul,
.content-block ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.content-block li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* --- Ambient Orbs --- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-saffron {
  background: radial-gradient(circle, rgba(255, 107, 0, 0.15) 0%, transparent 70%);
}

.orb-gold {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
}

/* ==========================================================================
   HEADER — Fixed Glassmorphism Navbar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 0.9rem 0;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  padding: 0.65rem 0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-decoration: none;
}

.logo:hover {
  color: var(--text-primary);
}

.logo svg {
  flex-shrink: 0;
}

/* WP Nav Menu */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav ul li a,
.main-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  position: relative;
  padding-bottom: 2px;
  text-decoration: none;
}

.main-nav ul li a::after,
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav a:hover {
  color: var(--text-primary);
}

.main-nav ul li a:hover::after,
.main-nav a:hover::after {
  width: 100%;
}

.main-nav ul li.current-menu-item a {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* WP Admin Bar */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
  padding: 0.6rem 0;
  padding-top: var(--site-header-height, 4.5rem);
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 100%;
}

.admin-bar .breadcrumbs {
  padding-top: calc(var(--site-header-height, 4.5rem) + 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .breadcrumbs {
    padding-top: calc(var(--site-header-height, 4.5rem) + 46px);
  }
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs .separator {
  margin: 0 8px;
  opacity: 0.5;
}

.breadcrumbs .current {
  color: var(--primary);
  font-weight: 500;
}

.breadcrumbs + .page-wrapper {
  padding-top: var(--sp-md);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--site-header-height, 4.5rem) + 1.5rem);
  padding-bottom: var(--sp-md);
  position: relative;
  overflow: hidden;
}

.admin-bar .hero-section {
  padding-top: calc(var(--site-header-height, 4.5rem) + 32px + 1.5rem);
}

@media screen and (max-width: 782px) {
  .admin-bar .hero-section {
    padding-top: calc(var(--site-header-height, 4.5rem) + 46px + 1.5rem);
  }
}

.breadcrumbs ~ main .hero-section,
.breadcrumbs ~ .hero-section,
.container:has(> .breadcrumbs) + main .hero-section,
[class*="page-template-page-krutidev"] .hero-section {
  padding-top: 0 !important;
}

[class*="page-template-page-krutidev"] .breadcrumbs {
  padding-top: calc(var(--site-header-height, 4.5rem) + 0.15rem);
  padding-bottom: 0.15rem;
}

[class*="page-template-page-krutidev"] .hero-content {
  margin-top: 0 !important;
}

.container:has(> .breadcrumbs) + main > .hero-section:first-child .hero-content {
  margin-top: 0;
}

.hero-section .orb-1 {
  width: 700px;
  height: 700px;
  top: -10%;
  left: 40%;
}

.hero-section .orb-2 {
  width: 500px;
  height: 500px;
  bottom: 0;
  left: -10%;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  margin-bottom: var(--sp-sm);
  animation: fadeSlideUp 0.8s ease-out;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content {
  text-align: center;
  max-width: 1100px;
  margin-bottom: 0.65rem;
  margin-top: 0.35rem;
}

.hero-content h1 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(0.82rem, 1.4vw, 0.92rem);
  color: var(--text-muted);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- Tool Wrapper --- */
.tool-wrapper {
  width: 100%;
  max-width: 1100px;
  padding: 0.75rem 0.85rem;
  margin-bottom: var(--sp-sm);
}

/* --- Converter Explanation Section --- */
.converter-explanation-section {
  margin-top: 3.5rem;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  text-align: left;
}

.converter-explanation-header {
  text-align: center;
  margin-bottom: 2rem;
}

.converter-explanation-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  background: rgba(255, 102, 0, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-border);
  margin-bottom: 0.85rem;
}

.converter-explanation-header h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

.converter-explanation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .converter-explanation-grid {
    grid-template-columns: 1fr;
  }
}

.converter-explanation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.converter-explanation-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.converter-explanation-card-accent {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.04) 0%, var(--bg-card) 100%);
  border-color: var(--primary-border);
}

.converter-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 102, 0, 0.1);
  color: var(--primary);
  margin-bottom: 1rem;
}

.converter-explanation-card p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

/* --- Stats Bar --- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  margin-bottom: var(--sp-md);
}

.stat-item {
  text-align: center;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-width: 140px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.08) 0%, rgba(255, 215, 0, 0.05) 100%);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  text-align: center;
  margin: var(--sp-md) auto;
  max-width: 700px;
}

.cta-banner p {
  color: var(--text-primary);
  margin-bottom: 0;
}

.cta-banner a {
  color: var(--accent-gold);
  font-weight: 600;
  text-decoration: underline;
}

/* ==========================================================================
   HOW-TO SECTION (Alternating Steps Layout & Mockups)
   ========================================================================== */
.howto-section {
  padding: var(--sp-xl) 0;
  position: relative;
}

.howto-steps-container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  max-width: 1000px;
  margin: 3.5rem auto 0;
}

.howto-row {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.howto-row.reverse {
  flex-direction: row-reverse;
}

.howto-content-col {
  flex: 1;
  text-align: left;
}

.howto-image-col {
  flex: 1.1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.howto-step-badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.1);
}

.howto-content-col h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.howto-content-col p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Mock Browser Window / Image Placeholder styling */
.mock-browser-window {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.mock-browser-window:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.window-header {
  background: var(--bg-deeper);
  padding: 0.75rem 1.25rem;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border-color);
}

.window-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.window-header .dot.red { background: #ff5f56; }
.window-header .dot.yellow { background: #ffbd2e; }
.window-header .dot.green { background: #27c93f; }

.window-body {
  padding: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  background: linear-gradient(135deg, rgba(217, 79, 0, 0.02) 0%, rgba(15, 23, 42, 0.04) 100%);
}

.image-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

.placeholder-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.3));
}

.placeholder-text {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

/* --- Quick Answer Q&A Box styling --- */
.quick-answer-box {
  background: linear-gradient(135deg, rgba(217, 79, 0, 0.03) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 2rem 0;
  width: 100%;
  max-width: 1100px;
  text-align: left;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 30px rgba(217, 79, 0, 0.015), var(--shadow-card);
  transition: var(--transition);
}

.quick-answer-box:hover {
  border-color: var(--border-active);
  box-shadow: 0 12px 35px rgba(217, 79, 0, 0.05), 0 0 20px var(--primary-glow);
}

.quick-answer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-answer-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.quick-answer-list li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.75rem;
}
.quick-answer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
}

/* ==========================================================================
   MIND MAP — ENCODING ECOSYSTEM
   ========================================================================== */
.mindmap-section {
  padding: var(--sp-xl) 0;
}

.mindmap-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 550px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.mindmap-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.branch-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.25;
  stroke-dasharray: 8 6;
  opacity: 0.35;
  animation: mindmapLineFlow 4s linear infinite;
  transition: all 0.3s ease;
}

@keyframes mindmapLineFlow {
  to {
    stroke-dashoffset: -28;
  }
}

.mindmap-wrapper:hover .branch-line {
  opacity: 0.65;
  stroke-width: 2.5;
}

/* Node status indicators */
.indicator-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.unicode-indicator {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.legacy-indicator {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.tooltip-icon {
  margin-right: 4px;
}

.node {
  position: absolute;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  white-space: nowrap;
}

.node:hover {
  box-shadow: var(--shadow-glow);
  border-color: var(--primary) !important;
  z-index: 5;
}

.center-node {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--primary), #ff8800);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 1.1rem 2rem;
  box-shadow: 0 8px 30px rgba(255, 102, 0, 0.35);
  border: none !important;
}

.center-node:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 12px 35px rgba(255, 102, 0, 0.45);
}

.main-branch {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  top: 50%;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
}

.main-branch.left {
  left: 28%;
  transform: translate(-50%, -50%);
  border-left: 4px solid var(--success) !important;
}

.main-branch.left:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.12);
}

.main-branch.right {
  right: 28%;
  transform: translate(50%, -50%);
  border-right: 4px solid #ef4444 !important;
}

.main-branch.right:hover {
  transform: translate(50%, -50%) scale(1.08);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.12);
}

.sub-node {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.sub-node.left-1 {
  top: 18%;
  left: 10%;
  transform: translate(-50%, -50%);
}

.sub-node.left-1:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.sub-node.left-2 {
  top: 50%;
  left: 8%;
  transform: translate(-50%, -50%);
}

.sub-node.left-2:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.sub-node.left-3 {
  top: 82%;
  left: 10%;
  transform: translate(-50%, -50%);
}

.sub-node.left-3:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.sub-node.right-1 {
  top: 18%;
  right: 10%;
  transform: translate(50%, -50%);
}

.sub-node.right-1:hover {
  transform: translate(50%, -50%) scale(1.08);
}

.sub-node.right-2 {
  top: 50%;
  right: 8%;
  transform: translate(50%, -50%);
}

.sub-node.right-2:hover {
  transform: translate(50%, -50%) scale(1.08);
}

.sub-node.right-3 {
  top: 82%;
  right: 10%;
  transform: translate(50%, -50%);
}

.sub-node.right-3:hover {
  transform: translate(50%, -50%) scale(1.08);
}

.tooltip-card {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 500px;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-primary);
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.tooltip-card.active {
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(255, 102, 0, 0.08), 0 0 15px rgba(255, 102, 0, 0.05);
}

/* ==========================================================================
   FLOW DIAGRAM
   ========================================================================== */
.flow-section {
  padding: var(--sp-xl) 0;
}

.flow-container {
  padding: var(--sp-md);
  max-width: 1200px; /* Utilizes full side-to-side space */
  margin: 0 auto;
}

.flow-controls {
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.flow-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.flow-step {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.65; /* Increased opacity from 0.4 for clear text contrast when inactive */
  transition: var(--transition-slow);
}

.flow-step.active-step {
  opacity: 1;
  transform: translateY(-4px);
}

.flow-step.active-step .step-box {
  background: #ffffff; /* Bright white when active */
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(255, 102, 0, 0.12), 0 0 15px var(--primary-glow);
}

.step-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-box {
  background: #faf8f5; /* Warm off-white background for clear separation */
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.hindi-char {
  font-family: var(--font-hindi);
  font-size: 2.5rem;
  color: var(--text-primary);
  line-height: 1;
}

.english-char,
.kruti-char {
  font-size: 2.5rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1;
}

.kruti-char {
  font-family: serif;
}

.meta-code {
  font-size: 0.72rem;
  color: #ea580c; /* High contrast orange to pass WCAG standards on light backgrounds */
  font-family: var(--font-mono);
  background: rgba(234, 88, 12, 0.08); /* Higher contrast tint background */
  padding: 3px 8px;
  border-radius: 4px;
}

.gear-icon svg {
  color: var(--text-dim);
  transition: var(--transition);
}

.flow-step.active-step .gear-icon svg {
  color: var(--primary);
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.flow-arrow {
  color: var(--border-color);
  transition: var(--transition);
  flex-shrink: 0;
}

.flow-arrow.active-arrow {
  color: var(--primary);
}

/* Final render glow */
.flow-step.active-step .step-box.final-render {
  border-color: var(--success);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.25);
}

.flow-step.active-step .step-box.final-render .meta-code {
  background: var(--success-soft);
  color: var(--success);
}

/* ==========================================================================
   SUPPORTED FONTS — Card Grid
   ========================================================================== */
.font-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.font-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.font-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  opacity: 0;
  transition: var(--transition);
}

.font-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.font-card:hover::before {
  opacity: 1;
}

.font-card-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-hindi);
  transition: var(--transition);
}

.font-card:hover .font-card-icon {
  background: rgba(255, 107, 0, 0.15);
  transform: scale(1.05);
}

.font-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.font-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ==========================================================================
   APPLICATIONS / INDUSTRY — Accordion
   ========================================================================== */
.industry-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.industry-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.industry-item:hover {
  border-color: rgba(255, 165, 0, 0.15);
}

.industry-item[open] {
  border-color: var(--primary);
}

.industry-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 3rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.industry-item summary::-webkit-details-marker {
  display: none;
}

.industry-item summary::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.3s ease;
}

.industry-item[open] summary::after {
  transform: translateY(-35%) rotate(-135deg);
}

.industry-item[open] summary {
  border-bottom: 1px solid var(--border-color);
  color: var(--primary);
}

.industry-item .accordion-body {
  padding: 1.25rem 1.5rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  line-height: 1.75;
}

.industry-item .accordion-body ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.industry-item .accordion-body li {
  margin-bottom: 0.35rem;
}

.industry-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */
.timeline-section {
  padding: var(--sp-xl) 0;
}

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--border-color) 0%, var(--primary) 50%, var(--border-color) 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
  padding-right: 3rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item.right-align {
  left: 50%;
  padding-right: 0;
  padding-left: 3rem;
  transform: translateX(30px);
}

.timeline-item.right-align.visible {
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  top: 24px;
  right: -9px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 12px var(--primary-glow);
  z-index: 2;
}

.timeline-item.right-align .timeline-dot {
  right: auto;
  left: -9px;
}

.timeline-content {
  padding: 1.5rem;
}

.timeline-date {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.timeline-content p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-section {
  padding: var(--sp-xl) 0;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-item:hover {
  border-color: rgba(255, 165, 0, 0.15);
}

.faq-item[open] {
  border-color: var(--primary);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 3rem;
  color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-35%) rotate(-135deg);
}

.faq-item[open] summary {
  color: var(--primary);
  border-bottom: 1px solid var(--border-color);
}

.faq-content {
  padding: 1.25rem 1.5rem;
  color: var(--text-muted);
  background: rgba(217, 79, 0, 0.015);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ==========================================================================
   TESTIMONIALS / REVIEWS
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
}

.review-card:hover {
  border-color: var(--accent-gold-border);
  transform: translateY(-4px);
}

.review-stars {
  color: var(--accent-gold);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.review-text {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

.review-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.review-role {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   RELATED TOOLS — Card Grid
   ========================================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.tool-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.tool-card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.tool-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.tool-card p {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.tool-card a.tool-link {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   ABOUT / EEAT
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.about-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ==========================================================================
   MEGA FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-deeper);
  padding: var(--sp-xl) 0 2rem;
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.site-footer.saffron-footer-glow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 120px;
  background: radial-gradient(ellipse at bottom, rgba(255, 102, 0, 0.08) 0%, rgba(255, 102, 0, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1.1fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-links-duo {
  display: contents;
}

.footer-brand .logo {
  margin-bottom: 0.75rem;
}

.footer-desc {
  color: var(--text-muted);
  max-width: 340px;
  font-size: 0.92rem;
  line-height: 1.65;
}

.footer-buttons-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.footer-btn {
  padding: 0.6rem 1.25rem !important;
  font-size: 0.85rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.15) !important;
  text-decoration: none !important;
}

.footer-btn.btn-alt-orange {
  background: var(--accent-gold) !important;
  border-color: var(--accent-gold) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.15) !important;
}

.footer-btn.btn-alt-orange:hover {
  background: #9a4004 !important;
  transform: translateY(-2px) !important;
}

.footer-links h3 {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 5px var(--primary-glow);
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: inline-block;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
  text-shadow: 0 0 8px var(--primary-glow);
}

/* Circular Social Media Badges (Roblox style) */
.footer-social-circles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.5rem;
}

.social-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-card);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.social-circle svg {
  stroke: var(--text-muted);
  fill: none;
  display: block;
  margin: 0 auto;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-circle:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px var(--primary-glow);
}

.social-circle:hover svg {
  stroke: #ffffff;
  transform: scale(1.05);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-legal-inline a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-inline a:hover {
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary-glow);
}

.footer-legal-inline .separator {
  color: var(--border-color);
  user-select: none;
}

@media (max-width: 768px) {
  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal-inline {
    justify-content: center;
  }
}


/* ==========================================================================
   BLOG / SINGLE / PAGE
   ========================================================================== */
.page-wrapper {
  padding-top: 120px;
  padding-bottom: var(--sp-xl);
  min-height: 60vh;
}

.page-wrapper .container {
  max-width: 800px;
}

.page-wrapper article {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  margin-bottom: var(--sp-md);
}

.page-wrapper article .entry-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.page-wrapper article .entry-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.page-wrapper article .entry-title a:hover {
  color: var(--primary);
}

.page-wrapper article .entry-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.page-wrapper article .entry-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.howto-step.reveal:nth-child(1) { transition-delay: 0s; }
.howto-step.reveal:nth-child(2) { transition-delay: 0.1s; }
.howto-step.reveal:nth-child(3) { transition-delay: 0.2s; }
.howto-step.reveal:nth-child(4) { transition-delay: 0.3s; }

.font-card.reveal:nth-child(1) { transition-delay: 0s; }
.font-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.font-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.font-card.reveal:nth-child(4) { transition-delay: 0.3s; }

.tool-card.reveal:nth-child(1) { transition-delay: 0s; }
.tool-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.tool-card.reveal:nth-child(3) { transition-delay: 0.3s; }

@keyframes stepPulse {
  0%, 100% {
    opacity: 0;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.1);
  }
}

.mobile-download-btn {
  display: none !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .timeline-line {
    left: 28px;
  }

  .timeline-item,
  .timeline-item.right-align {
    width: 100%;
    left: 0;
    padding-left: 72px;
    padding-right: 0;
    transform: translateY(20px);
  }

  .timeline-item.visible,
  .timeline-item.right-align.visible {
    transform: translateY(0);
  }

  .timeline-dot,
  .timeline-item.right-align .timeline-dot {
    left: 20px !important;
    right: auto !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
    z-index: 1005;
    position: relative;
  }

  body.nav-open .site-header {
    z-index: 1004;
  }

  .header-search-container {
    display: none !important;
  }

  .nav-toggle {
    order: 3;
    margin-left: 0.25rem;
  }

  .mobile-download-btn {
    display: none !important;
  }

  .search-active .logo,
  .search-active .nav-toggle,
  .search-active .mobile-download-btn {
    display: none !important;
  }

  .search-active .header-search-container {
    flex: 1;
    width: 100%;
    justify-content: space-between;
  }

  .search-active .header-search-form {
    display: flex;
    flex: 1;
    margin-right: 0.5rem;
  }

  .search-active .header-search-form input.search-field {
    width: 100%;
  }

  .header-container {
    padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
  }

  body.nav-open .header-search-container,
  body.nav-open .search-btn-icon,
  body.nav-open .search-close-icon {
    display: none !important;
  }

  body.nav-open .nav-toggle {
    position: fixed;
    top: max(0.85rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
    z-index: 1006;
    width: 38px;
    height: 38px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
  }

  .logo {
    min-width: 0;
    flex: 0 1 auto;
    margin-right: auto;
    overflow: hidden;
    order: 1;
  }

  .logo span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    min-height: 100dvh;
    background: #ffffff;
    padding: calc(var(--site-header-height, 4.5rem) + 0.5rem) max(1.35rem, env(safe-area-inset-right)) 2rem max(1.35rem, env(safe-area-inset-left));
    gap: 0;
    overflow-y: auto;
    z-index: 1002;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    animation: fadeInNav 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes fadeInNav {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .admin-bar .main-nav.open {
    padding-top: calc(var(--site-header-height, 4.5rem) + 46px + 1rem);
  }

  .main-nav.open ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-nav.open ul li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .main-nav.open ul li a,
  .main-nav.open a {
    display: block;
    padding: 1.1rem 0.75rem;
    color: var(--text-primary) !important;
    font-size: 1.05rem;
    font-weight: 700;
    border-bottom: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  .main-nav.open ul li a:hover,
  .main-nav.open a:hover {
    color: var(--primary) !important;
    padding-left: 0.75rem;
  }

  .main-nav.open ul li a::after,
  .main-nav.open a::after {
    display: none;
  }

  .main-nav.open ul li.current-menu-item > a {
    color: var(--primary) !important;
  }

  .main-nav.open ul li .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0 0 1rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    list-style: none;
  }

  .main-nav.open ul li.dropdown-active .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .main-nav.open ul li .sub-menu li {
    border-bottom: none;
  }

  .main-nav.open ul li .sub-menu li a {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    color: var(--text-muted) !important;
  }

  .main-nav.open ul li .sub-menu li a:hover {
    color: var(--primary) !important;
  }

  .main-nav.open ul li.nav-btn-item {
    border-bottom: none;
    margin-top: 0.5rem;
  }

  .main-nav.open ul li a.nav-btn {
    background: var(--primary);
    color: #fff !important;
    text-align: center;
    border-radius: var(--radius-full);
    padding: 0.85rem 1.5rem;
    margin-top: 0.5rem;
  }

  .main-nav.open ul li a.nav-btn:hover {
    background: var(--primary-hover);
    color: #fff !important;
    padding-left: 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --sp-xl: 4rem;
    --sp-lg: 2.5rem;
  }

  .howto-steps-container {
    gap: 2.5rem;
    margin-top: 2rem;
  }

  .howto-row,
  .howto-row.reverse {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }

  .howto-content-col {
    order: 1;
  }

  .howto-image-col {
    order: 2;
  }

  .howto-content-col h3 {
    font-size: 1.35rem;
  }

  .howto-content-col p {
    font-size: 0.95rem;
  }

  .window-body {
    padding: 1.5rem;
    min-height: 160px;
  }

  .mindmap-wrapper {
    height: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    background: var(--bg-deeper);
  }

  .mindmap-lines {
    display: none;
  }

  .node {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100%;
    max-width: none;
    white-space: normal;
    text-align: left;
    margin: 0;
  }

  .center-node {
    transform: none !important;
    text-align: center;
    margin-bottom: 1.25rem;
    order: 0;
  }

  .main-branch.left {
    order: 1;
    margin-top: 0.5rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-left: 4px solid var(--success) !important;
  }

  .sub-node.left-1 { order: 2; border-radius: 0; }
  .sub-node.left-2 { order: 3; border-radius: 0; }
  .sub-node.left-3 {
    order: 4;
    margin-bottom: 1.25rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .main-branch.right {
    order: 5;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-right: 4px solid #ef4444 !important;
  }

  .sub-node.right-1 { order: 6; border-radius: 0; }
  .sub-node.right-2 { order: 7; border-radius: 0; }
  .sub-node.right-3 {
    order: 8;
    margin-bottom: 0.75rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .sub-node.left-1,
  .sub-node.left-2,
  .sub-node.left-3,
  .sub-node.right-1,
  .sub-node.right-2,
  .sub-node.right-3 {
    margin-left: 0.75rem;
    width: calc(100% - 0.75rem);
    border-left: 2px solid var(--border-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  }

  .tooltip-card {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    margin-top: 0.75rem;
    order: 9;
  }

  .flow-steps {
    flex-direction: column;
    gap: 0.5rem;
  }

  .flow-step {
    min-width: 100%;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .stats-bar {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-item {
    min-width: 90px;
    padding: 0.45rem 0.75rem;
    flex: 1 1 auto;
  }

  .sim-display-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
  }

  .sim-display-grid .display-panel {
    padding: 0.65rem 0.35rem !important;
    border-radius: var(--radius-sm) !important;
  }

  .sim-display-grid .display-label {
    font-size: 0.58rem !important;
    letter-spacing: 0.2px !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.2 !important;
  }

  .sim-display-grid .display-box-screen {
    font-size: 1.35rem !important;
    height: 38px !important;
  }

  .key-simulation-container {
    padding: 1.25rem;
    overflow-x: hidden;
  }

  .sim-keyboard-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .mapping-compare-row {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
  }

  .mapping-compare-card {
    flex: 1 1 45% !important;
    max-width: 170px !important;
    padding: 0.75rem 0.5rem !important;
    border-radius: var(--radius-sm) !important;
  }

  .mapping-compare-label {
    font-size: 0.58rem !important;
    letter-spacing: 0.3px !important;
    margin-bottom: 0.3rem !important;
  }

  .mapping-compare-char {
    font-size: 1.35rem !important;
  }

  .mapping-krutidev .mapping-compare-char {
    font-size: 1.25rem !important;
  }

  .mapping-compare-code {
    font-size: 0.72rem !important;
  }

  .mapping-compare-arrow {
    transform: rotate(0deg) !important;
    font-size: 1.1rem !important;
  }

  .mapping-simpler-panel {
    padding: 1.25rem;
  }

  .table-wrapper {
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius-sm);
  }

  .data-table th {
    white-space: normal;
    font-size: 0.68rem;
    padding: 0.65rem 0.5rem;
    line-height: 1.3;
    letter-spacing: 0.3px;
  }

  .mapping-table,
  .compare-table {
    min-width: 0;
  }

  .mapping-table thead th,
  .compare-table thead th {
    white-space: normal;
    font-size: 0.62rem;
    padding: 0.65rem 0.5rem;
    line-height: 1.3;
    letter-spacing: 0.3px;
  }

  .data-table td {
    padding: 0.65rem 0.5rem;
    font-size: 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    grid-column: 1 / -1;
  }

  .footer-links-duo .footer-links h3 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .footer-links-duo .footer-links ul li a {
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: max(1.35rem, env(safe-area-inset-left)) max(1.35rem, env(safe-area-inset-right));
  }

  .header-container {
    padding-inline: max(1.1rem, env(safe-area-inset-left)) max(1.1rem, env(safe-area-inset-right));
  }

  .hero-section {
    padding-top: calc(var(--site-header-height, 4.5rem) + 0.5rem);
    padding-bottom: 0.75rem;
  }

  .container:has(> .breadcrumbs) + main .hero-section,
  [class*="page-template-page-krutidev"] .hero-section {
    padding-top: 0 !important;
  }

  .hero-content {
    margin-top: 0.25rem;
    margin-bottom: 0.4rem;
  }

  .hero-content h1 {
    font-size: 1.2rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .tool-wrapper {
    padding: 0.6rem 0.65rem;
  }

  .hero-badge {
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
  }

  .howto-grid {
    grid-template-columns: 1fr;
  }

  .font-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   NEW PREMIUM CONTENT LAYOUT STYLES
   ========================================================================== */

/* Definition Cards */
.definition-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
  position: relative;
}

.definition-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.definition-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.definition-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
}

.definition-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.definition-inline-callout {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 102, 0, 0.06);
  border: 1px solid var(--primary-border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.definition-inline-callout strong {
  color: var(--text-primary);
}

.definition-meta {
  background: var(--bg-deeper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}

.definition-meta li {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.definition-meta li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.definition-meta li strong {
  color: var(--text-primary);
  text-align: right;
}

/* Feature Comparison Cards (Side-by-Side) */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2.5rem 0;
}

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: var(--transition);
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.comparison-card.unicode-card {
  border-top: 4px solid var(--success);
}

.comparison-card.krutidev-card {
  border-top: 4px solid var(--primary);
}

.comparison-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.comparison-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0;
}

.comparison-list li {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
  padding-left: 1.75rem;
  position: relative;
}

.comparison-list li::before {
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-weight: 700;
}

.unicode-card .comparison-list li::before {
  content: "✓";
  color: var(--success);
}

.krutidev-card .comparison-list li::before {
  content: "—";
  color: var(--primary);
}

/* Audience Grid */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.audience-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.audience-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.audience-card p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Error/Troubleshooting Section */
.error-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2.5rem 0;
}

.error-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid #ef4444;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.error-card:hover {
  border-color: rgba(255, 102, 0, 0.18);
  box-shadow: var(--shadow-glow);
}

.error-card[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.error-summary {
  padding: 1.5rem 2rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 4.5rem;
  user-select: none;
}

.error-summary::-webkit-details-marker {
  display: none;
}

.error-summary h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.error-summary:hover h3, .error-card[open] .error-summary h3 {
  color: var(--primary);
}

.error-summary::after {
  content: '';
  position: absolute;
  right: 2rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-card[open] .error-summary::after {
  transform: translateY(-35%) rotate(-135deg);
}

.error-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 0 2rem 2rem 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  background: rgba(255, 102, 0, 0.005);
}

.error-cause, .error-fix {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.error-cause strong {
  color: #ef4444;
  display: block;
  margin-bottom: 0.25rem;
}

.error-fix strong {
  color: var(--success);
  display: block;
  margin-bottom: 0.25rem;
}

/* Conversion Flow Diagram (Horizontal scrolling visual list) */
.conversion-flow-diagram {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

.flow-node {
  background: var(--bg-deeper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  min-width: 160px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  flex-shrink: 0;
}

.flow-node:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.flow-node-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.75px;
  font-weight: 700;
}

.flow-node-detail {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  font-weight: normal;
}

.flow-arrow-next {
  color: var(--primary);
  font-size: 1.75rem;
  font-weight: 700;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Callout Box Overrides */
.callout-box {
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.callout-box.callout-green {
  border-left-color: var(--success);
  background: var(--success-soft);
}

.callout-icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* Media Queries for New Content */
@media (max-width: 900px) {
  .conversion-flow-diagram {
    flex-direction: column;
    gap: 1.5rem;
    overflow-x: visible;
  }
  .flow-arrow-next {
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  .definition-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .error-detail {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Unicode Guide Premium Upgrades */
.featured-snippet-box {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.02) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.75rem 2.25rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-soft);
}

.featured-snippet-box p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 0;
  font-weight: 500;
}

.capacity-comparison {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.capacity-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.capacity-bar-wrapper {
  margin-bottom: 0.85rem;
}

.bar-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.capacity-bar-bg {
  height: 8px;
  background: var(--bg-deeper);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.2rem;
}

.capacity-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 1.8s cubic-bezier(0.1, 1, 0.1, 1);
}

.ascii-fill {
  background: var(--text-dim);
}

.unicode-fill {
  background: linear-gradient(90deg, var(--primary), #ffaa00);
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.3);
}

.bar-value {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
}

.unicode-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

/* Two explanatory cards side by side */
.unicode-features-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0 1.5rem;
}

@media (max-width: 768px) {
  .unicode-features-duo {
    grid-template-columns: 1fr;
  }
}

.u-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 102, 0, 0.1);
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Key Facts — full-width panel below the duo cards */
.unicode-key-facts-panel {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.04) 0%, var(--bg-card) 60%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin: 0 0 2.5rem;
  box-shadow: var(--shadow-card);
}

.unicode-key-facts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.unicode-key-facts-header h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.unicode-key-facts-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  background: rgba(255, 102, 0, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-border);
}

.unicode-key-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem 1.5rem;
}

.unicode-key-facts-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.unicode-key-facts-list li:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-soft);
}

.unicode-key-facts-list .fact-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary);
}

.unicode-key-facts-list .fact-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.45;
}

.u-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.u-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.u-feature-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.u-feature-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Vertical Explanation Timeline */
.vertical-explanation-timeline {
  position: relative;
  max-width: 860px;
  margin: 3rem auto;
  padding: 1.5rem 0;
}

.v-timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--border-color) 0%, var(--primary) 50%, var(--border-color) 100%);
  transform: translateX(-50%);
}

.v-timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  width: 100%;
  display: flex;
}

.v-timeline-item:last-child {
  margin-bottom: 0;
}

/* Odd items (1st, 3rd) appear on the left side of center timeline line */
.v-timeline-item:nth-child(odd) {
  justify-content: flex-start;
}

/* Even items (2nd) appear on the right side of center timeline line */
.v-timeline-item:nth-child(even) {
  justify-content: flex-end;
}

/* Dot strictly centered on the timeline axis */
.v-timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px; /* Align vertically with first row of card */
  width: 14px;
  height: 14px;
  background: var(--bg-alt);
  border: 3px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-glow);
  z-index: 2;
  transform: translate(-50%, -50%);
}

.v-timeline-content {
  width: 46%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  opacity: 0;
  transform: perspective(1000px) rotateX(-90deg);
  transform-origin: top center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  backface-visibility: hidden;
}

.v-timeline-item.visible .v-timeline-content {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg);
}

/* Arrow indicator triangles pointing to the center vertical line */
.v-timeline-item:nth-child(odd) .v-timeline-content::after {
  content: '';
  position: absolute;
  top: 15px;
  right: -10px;
  border-width: 10px 0 10px 10px;
  border-style: solid;
  border-color: transparent transparent transparent var(--border-color);
}
.v-timeline-item:nth-child(odd) .v-timeline-content::before {
  content: '';
  position: absolute;
  top: 15px;
  right: -9px;
  border-width: 10px 0 10px 10px;
  border-style: solid;
  border-color: transparent transparent transparent var(--bg-card);
  z-index: 2;
}

.v-timeline-item:nth-child(even) .v-timeline-content::after {
  content: '';
  position: absolute;
  top: 15px;
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-style: solid;
  border-color: transparent var(--border-color) transparent transparent;
}
.v-timeline-item:nth-child(even) .v-timeline-content::before {
  content: '';
  position: absolute;
  top: 15px;
  left: -9px;
  border-width: 10px 10px 10px 0;
  border-style: solid;
  border-color: transparent var(--bg-card) transparent transparent;
  z-index: 2;
}

.v-timeline-content:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.v-timeline-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.v-timeline-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Mobile responsive alignment */
@media (max-width: 600px) {
  .v-timeline-line {
    left: 20px;
    transform: none;
  }
  .v-timeline-item:nth-child(odd),
  .v-timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 55px;
  }
  .v-timeline-dot {
    left: 20px;
    top: 24px;
    transform: translate(-50%, -50%);
  }
  .v-timeline-content {
    width: 100%;
  }
  .v-timeline-content::after,
  .v-timeline-content::before {
    display: none !important;
  }
}

/* Key Visualizer Simulation */
.key-simulation-container {
  max-width: 750px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.sim-keyboard-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.sim-key {
  background: var(--bg-deeper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.03);
  transition: var(--transition);
}

.sim-key:hover, .sim-key.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px var(--primary-glow);
}

.sim-display-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.display-panel {
  background: var(--bg-deeper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.display-panel.primary-highlight-panel {
  border-color: var(--primary-border);
  background: var(--primary-soft);
}

.display-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.display-box-screen {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-description-panel {
  background: var(--bg-deeper);
  border-left: 3px solid var(--primary);
  padding: 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Horizontal Scroll Catalog */
.scroll-catalog-outer {
  width: 100%;
  overflow-x: auto;
  padding: 1rem 0;
  margin: 1.5rem 0 2.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.scroll-catalog-wrapper {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 0.5rem;
}

.catalog-card {
  flex: 0 0 160px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.catalog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.cat-character {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 10px var(--primary-glow);
}

.cat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.cat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.cat-value:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   PREMIUM TABLES
   ========================================================================== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  margin: 2.5rem 0;
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.data-table thead {
  background: rgba(255, 102, 0, 0.02);
  border-bottom: 2px solid rgba(255, 102, 0, 0.15);
}

.data-table th {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--primary);
}

.data-table td {
  padding: 1.15rem 1.5rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
  transition: all 0.2s ease;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  transition: all 0.2s ease;
}

.data-table tbody tr:hover {
  background-color: rgba(255, 102, 0, 0.015);
}

.data-table tbody tr:hover td {
  color: var(--text-primary);
}

.data-table td a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  transition: all 0.2s ease;
}

.data-table td a:hover {
  color: #e05300;
  text-shadow: 0 0 8px var(--primary-glow);
}

.data-table td strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ==========================================================================
   ROBLOX HEADER LAYOUT UPGRADES
   ========================================================================== */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.main-nav {
  margin-left: auto;
  margin-right: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2.25rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-nav ul li a {
  position: relative;
  padding: 0.5rem 0.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.main-nav ul li a:hover {
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary-glow);
}

.main-nav ul li.current-menu-item a,
.main-nav ul li.current_page_item a,
.main-nav ul li.current-menu-ancestor a,
.main-nav ul li.current-page-ancestor a,
.main-nav ul li.current_page_parent a {
  color: var(--primary) !important;
}

.main-nav ul li.current-menu-item a::after,
.main-nav ul li.current_page_item a::after,
.main-nav ul li.current-menu-ancestor a::after,
.main-nav ul li.current-page-ancestor a::after,
.main-nav ul li.current_page_parent a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100% !important;
  height: 3px;
  background: var(--primary) !important;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px var(--primary-glow);
  opacity: 1 !important;
  visibility: visible !important;
}

/* Nav Pill Download Button */
.main-nav ul li.nav-btn-item {
  margin-left: 0.5rem;
}

.main-nav ul li a.nav-btn {
  background: var(--primary);
  color: #ffffff !important;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.main-nav ul li a.nav-btn::after {
  display: none !important;
}

.main-nav ul li a.nav-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3);
  transform: translateY(-1px);
}

/* Search Container */
.header-search-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
}

.header-search-form {
  display: none;
  align-items: center;
  position: relative;
}

.search-active .header-search-form {
  display: flex;
  animation: slideInSearch 0.25s ease forwards;
}

@keyframes slideInSearch {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.header-search-form input.search-field {
  padding: 0.45rem 2.25rem 0.45rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-ui);
  font-weight: 500;
  width: 180px;
  outline: none;
  transition: var(--transition);
}

.header-search-form input.search-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-submit-btn {
  position: absolute;
  right: 6px;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.search-btn-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
  padding: 0;
}

.search-btn-icon:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--primary-glow);
}

.search-close-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
  padding: 0;
}

.search-close-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

/* ==========================================================================
   GLOWING SECTION HEADINGS WITH UNDERLINES
   ========================================================================== */
.section-heading {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.section-heading:hover {
  color: var(--primary);
  text-shadow: 0 0 12px var(--primary-glow);
}

.section-heading::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: var(--primary);
  margin: 0.85rem auto 0 auto;
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px var(--primary-glow);
  transition: width 0.3s ease;
}

.section-heading:hover::after {
  width: 100px;
}

/* ==========================================================================
   INLINE RECOMMENDATION CARD WIDGETS
   ========================================================================== */
.inline-resource-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.02) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
}

.inline-resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(255, 102, 0, 0.1), 0 0 15px var(--primary-glow);
}

.inline-card-content {
  text-align: left;
}

.inline-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.inline-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.inline-card-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.2s ease;
  font-weight: bold;
}

.inline-resource-card:hover .inline-card-arrow {
  transform: translateX(6px);
}

/* ==========================================================================
   TABLE OF CONTENTS (TOC) — COLLAPSIBLE BAR
   ========================================================================== */
.toc-section {
  background: var(--bg-dark);
  padding: 2rem 0;
}

.toc-wrapper-collapsible {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toc-wrapper-collapsible:hover {
  border-color: rgba(255, 102, 0, 0.18);
  box-shadow: var(--shadow-glow);
}

.toc-wrapper-collapsible[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.toc-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.toc-summary-bar::-webkit-details-marker {
  display: none;
}

.toc-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toc-toggle-icon::before,
.toc-toggle-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Horizontal line */
.toc-toggle-icon::before {
  width: 12px;
  height: 2px;
}

/* Vertical line */
.toc-toggle-icon::after {
  width: 2px;
  height: 12px;
}

/* Toggle transitions to minus sign */
.toc-wrapper-collapsible[open] .toc-toggle-icon::after {
  height: 0;
  transform: rotate(90deg);
}

.toc-wrapper-collapsible[open] .toc-toggle-icon {
  transform: rotate(180deg);
  background: rgba(255, 102, 0, 0.12);
}

.toc-content-list {
  padding: 0 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  background: rgba(255, 102, 0, 0.005);
}

.toc-link-item {
  display: block;
  padding: 1rem 1.5rem;
  background: #faf8f5;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--primary) !important;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.toc-link-item:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.05), 0 0 10px var(--primary-glow);
}

/* ==========================================================================
   INTERACTIVE TOOL FEATURES GUIDE
   ========================================================================== */
.features-guide-section {
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--border-color);
}

.features-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 900px) {
  .features-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-guide-grid {
    grid-template-columns: 1fr;
  }
}

.f-guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: help;
}

.f-guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 25px rgba(255, 102, 0, 0.08), 0 0 15px var(--primary-glow);
}

.f-guide-icon-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
  height: 36px;
}

.f-guide-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 4px;
}

.f-guide-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.f-guide-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Feature Previews inside cards */
.kdc-switch-preview {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  background: var(--primary);
  border-radius: 34px;
}

.kdc-slider-preview {
  position: absolute;
  height: 14px;
  width: 14px;
  right: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
}

.kdc-btn-preview {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, #CC5500 100%);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ==========================================================================
   REDESIGNED PARAGRAPH SUMMARY CARD
   ========================================================================== */
.paragraph-summary-card {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  margin: 2.5rem auto;
  max-width: 900px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.paragraph-summary-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(255, 102, 0, 0.08), 0 0 15px var(--primary-glow);
}

.paragraph-summary-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.paragraph-summary-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Tool Wrapper Container padding spacing */
.tool-wrapper {
  padding: 1.5rem;
  width: 100%;
}

/* ==========================================================================
   PREMIUM GOVERNMENT EXPLANATION SECTION
   ========================================================================== */
.gov-explanation-box {
  display: flex;
  gap: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-card);
  align-items: center;
}

.gov-explanation-left {
  flex: 2;
}

.gov-explanation-left h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 1rem;
}

.gov-explanation-left p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.gov-explanation-left p:last-child {
  margin-bottom: 0;
}

.gov-explanation-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.official-policy-badge {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  max-width: 260px;
}

.policy-badge-title {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.policy-badge-content strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.policy-badge-content span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Takeaways and PDF grid */
.gov-takeaways-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .gov-explanation-box {
    flex-direction: column;
    padding: 1.75rem;
  }
  
  .gov-takeaways-layout {
    grid-template-columns: 1fr;
  }
}

.takeaways-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
}

.takeaways-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.takeaways-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.takeaways-list li {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
  position: relative;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.takeaway-check {
  color: var(--success);
  font-weight: 900;
  flex-shrink: 0;
}

.pdf-download-card {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
}

.pdf-download-card:hover {
  border-style: solid;
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(255, 102, 0, 0.06);
}

.pdf-download-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.pdf-icon {
  color: var(--primary);
}

.pdf-download-header h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.pdf-download-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.pdf-download-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.88rem !important;
  padding: 0.65rem 1.25rem !important;
}

/* ==========================================================================
   DROPDOWN & SUBMENU NAVIGATION STYLES
   ========================================================================== */
.main-nav ul li {
  position: relative;
}

.main-nav ul li .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 0.75rem 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1100;
  backdrop-filter: blur(12px);
}

.main-nav ul li:hover .sub-menu,
.main-nav ul li.dropdown-active .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

.main-nav ul li .sub-menu li {
  width: 100%;
}

.main-nav ul li .sub-menu li a {
  display: block;
  padding: 0.6rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.main-nav ul li .sub-menu li a::after {
  display: none !important; /* No bottom underline indicator inside submenus */
}

.main-nav ul li .sub-menu li a:hover {
  background: var(--primary-soft);
  color: var(--primary) !important;
  padding-left: 1.75rem;
}

/* Indicators for dropdown nodes */
.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kdc-chevron {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-bottom: 3px;
  transition: transform 0.2s ease;
}

.main-nav ul li:hover .kdc-chevron,
.main-nav ul li.dropdown-active .kdc-chevron {
  transform: rotate(-135deg);
  margin-bottom: -1px;
}

/* ==========================================================================
   PREMIUM DARK MOD-STYLE AUDIENCE GRID
   ========================================================================== */
.section-dark-premium {
  background: #0f172a !important; /* Premium Slate-900 */
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid rgba(255, 102, 0, 0.1);
}

.section-dark-premium .section-heading {
  color: #ffffff !important;
}

.section-dark-premium .section-heading .highlight {
  color: var(--primary) !important;
  text-shadow: 0 0 15px rgba(255, 102, 0, 0.3);
}

.audience-card-premium {
  background: #1e293b; /* Premium Slate-800 */
  border: 1px solid rgba(255, 102, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.audience-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  opacity: 0.8;
}

.audience-image-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.audience-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 102, 0, 0.03) 0%, transparent 70%);
}

.audience-card-premium h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary) !important; /* Saffron header color matching screenshot */
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.2px;
}

.audience-card-premium p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #cbd5e1 !important; /* Soft light slate text matching screenshot */
  margin-bottom: 0;
}

.audience-card-premium:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(255, 102, 0, 0.15), 0 0 15px rgba(255, 102, 0, 0.1);
}

.audience-card-premium:hover .audience-top-accent {
  opacity: 1;
}

.audience-card-premium:hover .audience-image-box {
  border-color: rgba(255, 102, 0, 0.3);
}

/* ==========================================================================
   CALLOUT BOXES
   ========================================================================== */
.callout-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.65;
}

.callout-orange {
  background: rgba(255, 102, 0, 0.08);
  border-left: 4px solid var(--primary);
  color: var(--text-primary);
}

.callout-neutral {
  background: var(--surface-elevated);
  border-left: 4px solid var(--border-color);
  color: var(--text-muted);
}

/* ==========================================================================
   DATA TABLE — CHARACTER MAPPING
   ========================================================================== */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.mapping-table thead {
  background: linear-gradient(135deg, var(--primary) 0%, #e05300 100%);
}

.mapping-table thead th {
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  padding: 1rem 1.25rem;
  text-align: left;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 0.8rem;
  border-bottom: none;
  white-space: nowrap;
}

.compare-table thead {
  background: linear-gradient(135deg, var(--primary) 0%, #e05300 100%);
}

.compare-table thead th {
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 700;
  padding: 1rem 1.25rem;
  text-align: left;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 0.8rem;
  border-bottom: none;
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table tbody tr:nth-child(even) {
  background: var(--surface-elevated);
}

.data-table tbody tr:hover {
  background: rgba(255, 102, 0, 0.06);
}

.data-table td {
  padding: 0.65rem 1rem;
  color: var(--text-muted);
}

.mapping-table td:first-child {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 700;
}

/* ==========================================================================
   MINI FLOWCHART — QUICK ANSWER HOW THIS WORKS
   ========================================================================== */
.mini-flow-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 102, 0, 0.12);
}

.flow-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  max-width: 160px;
  flex: 1;
  min-width: 110px;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
  flex-shrink: 0;
}

.flow-step-node .step-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.flow-step-node .step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.flow-line-connector {
  display: flex;
  align-items: center;
  padding-top: 12px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .mini-flow-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .flow-line-connector {
    transform: rotate(90deg);
    padding-top: 0;
  }
}

/* ==========================================================================
   KRUTIDEV EXPLAINER — WHAT IS KRUTIDEV SECTION
   ========================================================================== */
.krutidev-explainer-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
}

.krutidev-intro-block {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.krutidev-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0;
}

.krutidev-lead-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0.75rem 0 0;
  font-weight: 600;
}

.krutidev-why-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-card);
}

.krutidev-why-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.krutidev-why-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.krutidev-why-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  background: rgba(255, 102, 0, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-border);
}

.krutidev-why-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.krutidev-why-body p:last-child {
  margin-bottom: 0;
}

.migration-reasons-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.krutidev-explainer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .krutidev-explainer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.explainer-col {
  display: flex;
  flex-direction: column;
}

.encoding-compare-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.encoding-compare-cards.encoding-compare-row {
  flex-direction: row;
  margin-top: 0;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .encoding-compare-cards.encoding-compare-row {
    flex-direction: row !important;
    gap: 0.5rem !important;
  }
  .encoding-compare-row .enc-card {
    padding: 0.75rem 0.5rem !important;
  }
  .enc-card-label--lg {
    font-size: 0.8rem !important;
  }
  .enc-card-desc {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
  }
}

.encoding-compare-row .enc-card {
  flex: 1;
  padding: 1.5rem;
}

.enc-card {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border-left: 4px solid;
  transition: transform 0.2s ease;
}

.enc-card:hover {
  transform: translateX(4px);
}

.enc-card-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.enc-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.enc-unicode {
  background: rgba(34, 197, 94, 0.08);
  border-color: #22c55e;
}

.enc-unicode .enc-card-label {
  color: #22c55e;
}

.enc-krutidev {
  background: rgba(255, 102, 0, 0.08);
  border-color: var(--primary);
}

.enc-krutidev .enc-card-label {
  color: var(--primary);
}

.migration-reasons {
  margin-top: 1.5rem;
  background: rgba(255, 102, 0, 0.03);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   WHY GOVT OFFICES USE KRUTIDEV — NARRATIVE TIMELINE
   ========================================================================== */
.why-govt-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2rem;
}

.why-govt-timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), rgba(255,102,0,0.15));
  border-radius: 2px;
}

.wgt-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  position: relative;
}

.wgt-item::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 1.85rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.25);
  flex-shrink: 0;
}

.wgt-marker {
  min-width: 80px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary);
  padding-top: 0.25rem;
  flex-shrink: 0;
}

.wgt-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.wgt-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 600px) {
  .wgt-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  .wgt-marker {
    min-width: unset;
  }
}

/* ==========================================================================
   TOOL FEATURES GUIDE GRID
   ========================================================================== */
.features-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-guide-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-guide-card:hover {
  border-color: rgba(255, 102, 0, 0.35);
  transform: translateY(-2px);
}

.fg-card-wide {
  grid-column: span 3;
  background: rgba(255, 102, 0, 0.04);
  border-color: rgba(255, 102, 0, 0.2);
}

.fg-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 102, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-guide-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.feature-guide-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 900px) {
  .features-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fg-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .features-guide-grid {
    grid-template-columns: 1fr;
  }
  .fg-card-wide {
    grid-column: span 1;
  }
}

/* ==========================================================================
   TOOL META BADGES — ABOUT SECTION
   ========================================================================== */
.tool-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tool-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 102, 0, 0.08);
  border: 1px solid rgba(255, 102, 0, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.2px;
}

/* ==========================================================================
   MOBILE ENHANCEMENTS — Tables, scroll lock, section polish
   ========================================================================== */
main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.site-header,
.site-footer {
  max-width: 100%;
  overflow-x: clip;
}

html.nav-open,
body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.table-wrapper {
  position: relative;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.table-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(to right, transparent, var(--bg-card));
  pointer-events: none;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .section-heading {
    font-size: clamp(1.25rem, 4.5vw, 1.65rem);
  }

  .section-desc {
    font-size: 0.9rem;
  }

  .premium-content-block {
    margin-top: 2rem;
  }

  .premium-block-card {
    padding: 1.15rem;
  }

  .error-panel summary {
    font-size: 0.92rem;
    padding: 0.85rem 1rem;
  }

  .display-box-screen {
    font-size: 1.75rem;
    height: 50px;
  }

  .display-label {
    font-size: 0.68rem;
    letter-spacing: 0.4px;
  }
}

@media (max-width: 480px) {
  .footer-links-duo {
    gap: 1.25rem 1.5rem;
  }

  .footer-links-duo .footer-links h3 {
    font-size: 0.9rem;
  }

  .mapping-table,
  .compare-table {
    min-width: 0;
  }
}

/* Real-Time Typing Simulator Styling */
.realtime-typing-simulator {
  background: var(--bg-deeper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  font-family: var(--font-primary);
  text-align: left;
}

.sim-header {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .sim-grid {
    grid-template-columns: 1fr;
  }
}

.sim-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sim-box-label {
  background: var(--bg-alt);
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
}

.sim-box-textarea {
  min-height: 80px;
  padding: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: transparent;
  outline: none;
  border: none;
  resize: none;
  font-family: inherit;
  white-space: pre-wrap;
  word-break: break-word;
}

.sim-box-footer {
  border-top: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: right;
  background: var(--bg-alt);
}

/* ==========================================
   Floating Font Download Widget
   ========================================== */
#floating-download-widget {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  left: max(1.25rem, env(safe-area-inset-left));
  z-index: 9999;
}

.floating-download-label {
  position: absolute;
  left: 64px;
  top: 12px;
  background: var(--primary);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-15px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-download-label::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 6px 6px 0;
  border-style: solid;
  border-color: transparent var(--primary) transparent transparent;
}

.floating-download-label.label-active {
  opacity: 1;
  transform: translateX(0);
}

#floating-download-trigger {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(224, 149, 58, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
  text-decoration: none;
}

#floating-download-trigger:hover {
  transform: scale(1.08);
  background: #f0a34b;
}

@media (max-width: 768px) {
  #floating-download-widget {
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    left: max(1.25rem, env(safe-area-inset-left));
  }
  #floating-download-trigger {
    width: 48px;
    height: 48px;
  }
  .floating-download-label {
    left: 54px;
    top: 12px;
    font-size: 0.7rem !important;
  }
}

/* ==========================================
   Floating Remington Keyboard Helper Widget
   ========================================== */
#floating-kbd-widget {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  right: max(1.25rem, env(safe-area-inset-right));
  z-index: 9999;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-kbd-label {
  position: absolute;
  right: 64px;
  top: 12px;
  background: var(--primary);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25);
  pointer-events: none;
  opacity: 0;
  transform: translateX(15px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-kbd-label::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--primary);
}

.floating-kbd-label.label-active {
  opacity: 1;
  transform: translateX(0);
}

#floating-kbd-trigger {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(224, 149, 58, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
}

#floating-kbd-trigger:hover {
  transform: scale(1.08);
  background: #f0a34b;
}

#floating-kbd-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: min(480px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-kbd-open #floating-kbd-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-kbd-open #floating-kbd-trigger {
  transform: scale(0.9);
  background: var(--text-dim);
}

.kbd-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

#floating-kbd-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

#floating-kbd-close:hover {
  color: var(--text-primary);
}

.kbd-panel-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kbd-row {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
}

.kbd-row kbd {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 38px;
  user-select: none;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}

.kbd-row kbd span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}

.kbd-row kbd.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(0.92);
}

.kbd-row kbd.active span {
  color: #fff;
}

.kbd-panel-footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 0.5rem;
}

/* Verified Badge Tooltip */
.verified-badge-wrapper:hover .verified-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-5px);
}

/* ==========================================================================
   UNIVERSAL BLOG & SINGLE ARTICLE THEME STYLING
   ========================================================================== */
.entry-content {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 1.05rem;
}

.entry-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--text-primary);
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.entry-content h1 {
  font-size: 2.2rem;
}

.entry-content h2 {
  font-size: 1.8rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.entry-content h3 {
  font-size: 1.4rem;
  position: relative;
  padding-left: 0.75rem;
}

.entry-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.entry-content a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.entry-content a:hover {
  color: var(--border-active);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content blockquote {
  background: rgba(255, 102, 0, 0.04);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-primary);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.entry-content th,
.entry-content td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.entry-content th {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--text-primary);
}

.entry-content tr:hover {
  background: rgba(255, 102, 0, 0.02);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

/* Editorial layout — Pages & blog posts written in WordPress */
.editorial-page {
  background: var(--bg-dark);
}

.editorial-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--site-header-height, 4.5rem) + 2rem) 0 2rem;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border-color);
}

.editorial-hero-compact {
  padding-bottom: 1.25rem;
}

.editorial-hero .orb-1 {
  width: 500px;
  height: 500px;
  top: -20%;
  right: -10%;
  left: auto;
}

.editorial-hero .orb-2 {
  width: 350px;
  height: 350px;
  bottom: -20%;
  left: -5%;
}

.editorial-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.editorial-title {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.editorial-title .highlight {
  color: var(--primary);
}

.editorial-lead {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 720px;
  margin: 0.75rem auto 0;
}

.editorial-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

.editorial-meta a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.editorial-meta a:hover {
  text-decoration: underline;
}

.meta-sep {
  color: var(--border-active);
}

.editorial-body {
  padding: var(--sp-md) 0 var(--sp-xl);
}

.editorial-container {
  max-width: 860px;
}

.editorial-article {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  margin-bottom: var(--sp-md);
}

.editorial-featured-image {
  margin: -0.5rem -0.5rem 1.75rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.editorial-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border: none;
  border-radius: 0;
}

.editorial-tags {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.editorial-tags a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.editorial-tags a:hover {
  text-decoration: underline;
}

.tags-label {
  font-weight: 700;
  color: var(--text-primary);
  margin-right: 0.35rem;
}

.editorial-comments {
  padding: 1.5rem 2rem;
  margin-top: 1rem;
}

.editorial-comments .comments-title,
.editorial-comments .comment-reply-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.editorial-comments .comment-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.editorial-comments .comment-list .children {
  list-style: none;
  margin: 1rem 0 0 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border-color);
}

.editorial-comments .comment-body {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.editorial-comments .comment-author {
  font-weight: 700;
  color: var(--text-primary);
}

.editorial-comments .comment-author a {
  color: var(--text-primary);
  text-decoration: none;
}

.editorial-comments .comment-metadata {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0.25rem 0 0.75rem;
}

.editorial-comments .comment-metadata a {
  color: var(--text-dim);
  text-decoration: none;
}

.editorial-comments .comment-content {
  color: var(--text-muted);
  line-height: 1.65;
}

.editorial-comments .comment-content p:last-child {
  margin-bottom: 0;
}

.editorial-comments .comment-respond {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.editorial-comments label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.editorial-comments input[type="text"],
.editorial-comments input[type="email"],
.editorial-comments input[type="url"],
.editorial-comments textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.editorial-comments textarea {
  min-height: 120px;
  resize: vertical;
}

.editorial-comments input[type="submit"],
.editorial-comments .submit {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.editorial-comments input[type="submit"]:hover {
  background: var(--primary-hover);
}

.editorial-post-grid {
  display: grid;
  gap: 1.5rem;
}

.editorial-post-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
  transition: var(--transition);
}

.editorial-post-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.editorial-post-thumb {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.editorial-post-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin: 0;
  border: none;
  border-radius: 0;
  transition: transform 0.35s ease;
}

.editorial-post-card:hover .editorial-post-thumb img {
  transform: scale(1.03);
}

.editorial-post-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.editorial-post-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.editorial-post-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.editorial-post-title a:hover {
  color: var(--primary);
}

.editorial-excerpt p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.editorial-read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.editorial-read-more:hover {
  color: var(--primary-hover);
}

.editorial-pagination {
  margin-top: 2rem;
}

.editorial-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.editorial-pagination a,
.editorial-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.editorial-pagination a:hover,
.editorial-pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.entry-pagination {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.entry-pagination a {
  color: var(--primary);
  font-weight: 600;
  margin: 0 0.25rem;
}

/* Gutenberg blocks inside .entry-content — auto-themed */
.entry-content .wp-block-button__link {
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.entry-content .wp-block-button__link:hover {
  background: var(--primary-hover);
  color: #fff !important;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
}

.entry-content .wp-block-buttons {
  margin: 1.5rem 0 2rem;
  gap: 0.75rem;
}

.entry-content .wp-block-group,
.entry-content .wp-block-group.is-style-kdd-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.75rem 0;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.entry-content .wp-block-group.has-primary-background-color {
  background: var(--primary-soft) !important;
  border-color: var(--primary-border);
}

.entry-content .wp-block-group.has-bg-deeper-background-color {
  background: var(--bg-deeper) !important;
}

.entry-content .wp-block-columns {
  gap: 1.5rem;
  margin: 1.75rem 0;
}

.entry-content .wp-block-column {
  min-width: 0;
}

.entry-content .wp-block-separator {
  border-color: var(--border-color);
  margin: 2.5rem auto;
  max-width: 120px;
}

.entry-content .wp-block-separator.is-style-wide {
  max-width: none;
}

.entry-content .wp-block-separator.is-style-dots::before {
  color: var(--primary);
}

.entry-content .wp-block-code,
.entry-content .wp-block-preformatted,
.entry-content pre {
  background: var(--bg-deeper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.entry-content .wp-block-pullquote {
  border-top: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
  padding: 1.5rem 0;
  margin: 2rem 0;
  text-align: center;
}

.entry-content .wp-block-pullquote blockquote {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-style: italic;
}

.entry-content .wp-block-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 2rem 0;
  min-height: 280px;
}

.entry-content .wp-block-image figcaption,
.entry-content .wp-element-caption {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.5rem;
}

.entry-content .wp-block-gallery {
  margin: 2rem 0;
}

.entry-content .wp-block-gallery .blocks-gallery-item img,
.entry-content .wp-block-gallery .wp-block-image img {
  border-radius: var(--radius-sm);
}

.entry-content mark,
.entry-content .has-primary-color {
  color: var(--primary) !important;
}

.entry-content .has-primary-background-color {
  background-color: var(--primary-soft) !important;
}

.entry-content .has-gold-color {
  color: var(--accent-gold) !important;
}

.entry-content .has-text-primary-color {
  color: var(--text-primary) !important;
}

.entry-content .has-text-muted-color {
  color: var(--text-muted) !important;
}

.entry-content .alignwide {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content .alignfull {
  max-width: none;
  width: 100%;
}

.content-prose > *:first-child {
  margin-top: 0;
}

.content-prose > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .container {
    padding-inline: max(1.25rem, env(safe-area-inset-left)) max(1.25rem, env(safe-area-inset-right));
  }

  .home-page-content .container,
  .home-page-content .wp-block-group.alignwide,
  .home-page-content .wp-block-group.alignfull {
    padding-inline: max(1.25rem, env(safe-area-inset-left)) max(1.25rem, env(safe-area-inset-right));
  }

  .editorial-hero {
    padding-top: calc(var(--site-header-height, 4.5rem) + 1.25rem);
    padding-bottom: 1.5rem;
  }

  .editorial-article {
    padding: 1.15rem;
  }

  .editorial-post-body {
    padding: 1.15rem;
  }

  .entry-content .wp-block-columns {
    flex-direction: column;
  }
}

/* Verification banner — directly below converter tool */
.verification-inline {
  width: 100%;
  max-width: 800px;
  margin: 1.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.verification-banner {
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.verification-banner__headline {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.verification-banner__title {
  color: #22c55e;
  font-size: 1.1rem;
}

.verification-banner__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-mini-faq {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 800px;
  margin: 1.5rem auto 0;
  text-align: left;
}

/* Toolbar icon feature cards */
.tool-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.tool-feature-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.tool-feature-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}

.tool-feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.tool-feature-card__desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.breadcrumbs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  scrollbar-width: none;
}

.breadcrumbs::-webkit-scrollbar {
  display: none;
}

.takeaways-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

@media (max-width: 900px) {
  .mindmap-wrapper {
    height: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    background: var(--bg-deeper);
  }

  .mindmap-lines {
    display: none;
  }

  .mindmap-wrapper .node {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100%;
    max-width: none;
    white-space: normal;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .section-heading {
    margin-bottom: 2rem;
  }

  .inline-resource-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .verification-statement-section .glass-card > div:first-child,
  .verification-banner__headline {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .footer-btn {
    white-space: normal !important;
    height: auto !important;
    min-height: 40px;
  }

  .logo {
    font-size: 1rem;
    gap: 6px;
  }

  .logo img {
    height: 30px;
    width: auto;
  }

  #floating-kbd-widget {
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    right: max(1.25rem, env(safe-area-inset-right));
  }

  #floating-kbd-trigger {
    width: 48px;
    height: 48px;
  }

  .floating-kbd-label {
    right: 54px;
    top: 10px;
  }

  #floating-kbd-panel {
    width: min(480px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    right: 0;
  }

  .kbd-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
  }

  .kbd-row kbd {
    min-width: 32px;
    padding: 0.35rem 0.45rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 640px) {
  .scenario-card__body {
    min-width: 0;
  }

  .scenario-card {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .error-panel-content {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 992px) {
  html {
    scroll-behavior: auto;
  }

  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }

  .reveal,
  .faq-item,
  .error-panel,
  .v-timeline-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .branch-line {
    animation: none;
  }

  .main-nav.open {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .faq-item,
  .error-panel,
  .v-timeline-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .branch-line {
    animation: none;
  }

  .main-nav.open {
    animation: none;
  }
}

/* ==========================================================================
   KRUTIDEV TO UNICODE PAGE — SEMANTIC UTILITY CLASSES
   ========================================================================== */

.content-prose--left {
  text-align: left;
}

.content-prose--spaced-top {
  margin-top: 2rem;
}

.takeaways-faq-grid--spaced {
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

.takeaways-faq-grid--spaced-bottom-tight {
  margin-bottom: 2rem;
}

.glass-card--lg {
  padding: 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  text-align: left;
}

.glass-card--mt {
  margin-top: 2.5rem;
}

.glass-card--enc {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-top: 3px solid var(--primary);
}

.glass-card--sim {
  padding: 2rem;
  border-radius: var(--radius-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.glass-card--problem {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
}

.glass-card--myth {
  padding: 2rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.section-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.accent-bar {
  display: inline-block;
  width: 4px;
  height: 20px;
  border-radius: 2px;
  flex-shrink: 0;
}

.accent-bar--primary {
  background: var(--primary);
}

.accent-bar--orange {
  background: #e0953a;
}

.section-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-answer-list--stacked {
  margin: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-answer-list--mt {
  margin-top: 1rem;
  text-align: left;
}

.link-primary-bold {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

.faq-accordion--compact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.faq-accordion--spaced {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
  text-align: left;
}

.faq-accordion--mt {
  margin-top: 2rem;
  text-align: left;
}

.faq-item--bordered {
  border-color: var(--border-color);
}

.faq-summary--sm {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1rem;
}

.faq-summary--md {
  font-weight: 700;
  padding: 0.85rem 1rem;
}

.faq-content--padded {
  padding: 0 1rem 1rem;
}

.faq-answer--sm {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.faq-answer--md {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.faq-answer--lg {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
}

.krutidev-explainer-layout--left {
  text-align: left;
  margin-top: 2rem;
}

.krutidev-lead--emphasis {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.krutidev-lead-sub--primary {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 700;
  margin-top: 0.5rem;
}

.encoding-compare-row--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.enc-card-label--lg {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.enc-card-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-subheading {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.section-subheading--timeline {
  margin-top: 3.5rem;
  margin-bottom: 2rem;
}

.section-subheading--sim {
  margin-top: 4.5rem;
  margin-bottom: 1rem;
}

.section-subheading--catalog {
  margin-top: 4.5rem;
  margin-bottom: 0.5rem;
}

.timeline--left {
  margin-top: 2rem;
  text-align: left;
}

.section-desc--center {
  text-align: center;
}

.section-desc--mb-lg {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.section-desc--mb-catalog {
  margin-bottom: 2.25rem;
  font-size: 0.95rem;
}

.section-desc--narrow {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

.section-desc--emphasis {
  font-weight: 600;
  color: var(--text-primary);
}

.sim-keyboard-row--compact {
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.display-panel--compact {
  background: var(--bg-alt);
  padding: 1rem;
  border-radius: 8px;
}

.display-panel.primary-highlight-panel.display-panel--compact {
  background: rgba(255, 102, 0, 0.05);
  border: 1px solid rgba(255, 102, 0, 0.2);
}

.display-label--compact {
  font-size: 0.8rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.display-label--compact:not(.display-label--primary) {
  color: var(--text-dim);
}

.display-label--primary {
  color: var(--primary);
}

.display-box-screen--compact {
  font-size: 1.5rem;
  font-weight: 800;
  height: auto;
}

.display-box-screen--primary {
  color: var(--primary);
}

.sim-description-panel--compact {
  background: var(--bg-alt);
  padding: 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: left;
  border-left: none;
}

.reference-footnote {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 2rem;
}

.container--center {
  text-align: center;
}

.subsection-heading--accuracy {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 auto 0.75rem;
  text-align: center;
}

.section-desc--compact {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.table-wrapper--narrow {
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.text-success-bold {
  color: #22c55e;
  font-weight: 700;
}

.callout-box--narrow {
  margin-top: 1.5rem;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.callout-box--mt {
  margin-top: 2rem;
  text-align: left;
}

.callout-box--mt-sm {
  margin-top: 1.5rem;
  text-align: left;
}

.callout-box--mt-xs {
  margin-top: 1rem;
  text-align: left;
}

.callout-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.callout-meta {
  margin: 0.5rem 0 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.problem-card-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
  text-align: left;
}

.problem-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.problem-card-label {
  color: var(--primary);
}

.problem-card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.problem-card-text--spaced {
  margin-bottom: 1.5rem;
}

.problem-card-ref {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

.audience-showcase-grid--fluid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  text-align: left;
}

.audience-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.audience-showcase-card.glass-card--lg .audience-card-title {
  margin: 0 0 0.75rem;
}

.audience-showcase-card.glass-card--lg .audience-card-text {
  margin: 0;
}

.audience-card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.audience-card-text--mt {
  margin-top: 0.75rem;
}

.why-govt-timeline--spaced {
  margin-top: 3rem;
  text-align: left;
}

.wgt-content-spaced {
  margin-top: 0.75rem;
}

.migration-reasons--spaced {
  margin-top: 3rem;
  text-align: left;
}

.migration-reasons-title--lg {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.scenario-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.scenario-card {
  padding: 1.25rem 2rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: left;
}

.scenario-card__body {
  flex: 1;
  min-width: 250px;
}

.scenario-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.scenario-card__desc {
  margin: 0.25rem 0 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.badge--convert {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.badge--keep {
  background: rgba(255, 102, 0, 0.1);
  border: 1px solid rgba(255, 102, 0, 0.2);
  color: var(--primary);
}

.myth-card-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: left;
}

.myth-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.myth-card-label {
  color: var(--primary);
}

.error-panel-section--padded {
  padding: 4rem 0;
}

.error-panel-list--narrow {
  max-width: 800px;
  margin: 2rem auto 0 auto;
  gap: 1rem;
  text-align: left;
}

.error-panel--bordered {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  opacity: 1;
  transform: none;
}

.error-panel-summary {
  font-weight: 700;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.error-panel-content--padded {
  padding: 1rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-color);
}

.error-cause-heading {
  font-weight: 700;
  color: #e0953a;
  margin-top: 0;
}

.error-fix-heading {
  font-weight: 700;
  color: #22c55e;
  margin-top: 0;
}

.error-panel-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.about-section {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0;
}

.about-section__container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.about-section__heading {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: left;
}

.about-section__prose {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-section__subheading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.about-section__list {
  margin: 0;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-section__meta {
  margin-top: 1rem;
}

.about-section__callout {
  background: var(--bg-alt);
  padding: 1.25rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  margin: 0;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.related-tool-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.2s;
}

.related-tool-card:hover {
  transform: translateY(-4px);
}

.related-tool-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.related-tool-card__desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.related-tool-card__link {
  color: var(--primary);
  font-weight: 700;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.references-heading {
  font-size: 1.6rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.references-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: left;
}

@media (max-width: 768px) {
  /* Table wrapper - no forced horizontal scroll, all columns fit */
  .table-wrapper {
    overflow-x: hidden;
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
  }

  /* Tables stretch to full width, columns auto-distribute */
  .table-wrapper table,
  .data-table,
  .compare-table,
  .mapping-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  /* Compact header cells — allow text to wrap so columns can be narrow */
  .table-wrapper th,
  .data-table th,
  .compare-table th,
  .mapping-table th {
    padding: 0.5rem 0.3rem !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.2px !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.3 !important;
    vertical-align: bottom !important;
  }

  /* Compact body cells */
  .table-wrapper td,
  .data-table td,
  .compare-table td,
  .mapping-table td {
    padding: 0.5rem 0.3rem !important;
    font-size: 0.72rem !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
  }

  /* Hindi character column stays readable */
  .data-table .hindi-cell {
    font-size: 1rem !important;
  }

  /* Code cells */
  .data-table .code-cell {
    font-size: 0.68rem !important;
  }
}

.definition-card--krutidev::before {
  background: linear-gradient(90deg, var(--primary), #b45309);
}

/* KrutiDev encoding demo strip */
.kd-encoding-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0;
  padding: 1.25rem 1rem;
  background: var(--bg-deeper);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.kd-encoding-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 88px;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-align: center;
}

.kd-encoding-step--highlight {
  background: rgba(255, 102, 0, 0.06);
  border-color: var(--primary-border);
}

.kd-encoding-step__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
}

.kd-encoding-step__value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.kd-encoding-step__value--mono {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.kd-encoding-step__value--hindi {
  font-family: var(--font-hindi);
  font-size: 2rem;
  color: var(--primary);
}

.kd-encoding-arrow {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.7;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .kd-encoding-demo {
    flex-direction: column;
    gap: 0.5rem;
  }

  .kd-encoding-arrow {
    transform: rotate(90deg);
  }
}

#what-is-krutidev-summary .encoding-compare-row--grid {
  margin: 0 0 2.5rem;
}

#what-is-krutidev-summary .key-facts-panel {
  margin-bottom: 2rem;
}

/* Limitations callout — stack meta below body text */
.callout-limitations {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  text-align: left;
}

.callout-limitations__body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.callout-limitations .callout-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

/* Myth cards — themed saffron palette */
.myth-card-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: left;
}

.glass-card--myth {
  padding: 2rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  text-align: left;
}

.glass-card--myth-mid {
  border-left-color: #b45309;
}

.glass-card--myth-deep {
  border-left-color: var(--primary-hover);
}

.myth-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.myth-card-label {
  color: var(--primary);
}

.myth-card-label--gold {
  color: #b45309;
}

.myth-card-label--deep {
  color: var(--primary-hover);
}

.myth-card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* Unicode Rajbhasha themed panel */
.rajbhasha-panel {
  margin-top: 4rem;
  text-align: left;
}

.rajbhasha-panel__title {
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.rajbhasha-panel__intro {
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.rajbhasha-panel__intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.rajbhasha-panel__intro p:last-child {
  margin-bottom: 0;
}

.rajbhasha-panel__ref {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 1.25rem;
}

.rajbhasha-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
}

.rajbhasha-feature-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-top: 3px solid var(--primary);
}

.rajbhasha-feature-card--gold {
  border-top-color: #b45309;
}

.rajbhasha-feature-card--muted {
  border-top-color: var(--primary-hover);
}

.rajbhasha-feature-card__title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 700;
}

.rajbhasha-feature-card__desc {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ==========================================================================
   HOMEPAGE EDITORIAL CONTENT (Pages → Home)
   ========================================================================== */
.home-page-content.editorial-home {
  width: 100%;
}

.home-page-content.editorial-home > .wp-block-group.home-section,
.home-page-content.editorial-home > .wp-block-group.content-block {
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--border-color);
}

.home-page-content.editorial-home .section-heading,
.home-page-content.editorial-home .wp-block-heading.section-heading {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 1.25rem;
  line-height: 1.25;
}

.home-page-content.editorial-home .section-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.home-page-content.editorial-home .premium-block-grid {
  gap: 1.25rem;
}

.home-page-content.editorial-home .premium-block-card,
.home-page-content.editorial-home .is-style-kdd-card {
  height: 100%;
}

.home-page-content.editorial-home .wp-block-group.section-dark,
.home-page-content.editorial-home .home-section.section-dark {
  background: radial-gradient(circle at 10% 20%, rgba(217, 79, 0, 0.025) 0%, var(--bg-dark) 55%);
}

.home-page-content.editorial-home .wp-block-group.section-alt,
.home-page-content.editorial-home .home-section.section-alt {
  background: radial-gradient(circle at 90% 80%, rgba(217, 79, 0, 0.025) 0%, var(--bg-alt) 55%);
}

.home-page-content.editorial-home > *:first-child {
  margin-top: 0;
}

.home-page-content.editorial-home .wp-block-group.alignwide,
.home-page-content.editorial-home .wp-block-group.alignfull {
  max-width: var(--container-max);
  margin-inline: auto;
}

.home-page-content.editorial-home .has-primary-color,
.home-page-content.editorial-home mark.has-primary-color {
  color: var(--primary) !important;
  background: transparent !important;
}

/* ==========================================================================
   CUSTOM HTML PAGES (Pages → Custom HTML block / Custom HTML template)
   ========================================================================== */
.kdd-page-html,
.kdd-custom-page .kdd-page-html {
  width: 100%;
}

.kdd-page-html .wp-block-html {
  margin: 0;
  padding: 0;
}

.kdd-page-html .wp-block-html > section,
.kdd-page-html > section,
.kdd-page-html section.content-block,
.kdd-page-html section.howto-section,
.kdd-page-html section.faq-section,
.kdd-page-html section.mindmap-section,
.kdd-page-html section.flow-section {
  margin: 0;
}

.kdd-page-html .wp-block-shortcode {
  margin: 0;
}

.kdd-page-html .callout-box.callout-orange {
  margin-top: 4rem;
}

.kdd-custom-page .kdd-page-html {
  padding-bottom: 2rem;
}

