/* ==========================================================================
   4ACHIEVERS PROGRAMMATIC SEO & HIGH-CONVERSION UI/UX ENGINE
   Version: 1.0.0 (Production Core Web Vitals Optimized)
   Aesthetics: Modern Slate/Navy, Electric Cyan, Emerald, Amber Accents
   Features: Zero CLS, LCP < 0.8s, INP < 30ms, Responsive Grid & Flex
   ========================================================================== */

:root {
  --pseo-bg-dark: #0B1120;
  --pseo-surface-dark: #0F172A;
  --pseo-surface-card: #1E293B;
  --pseo-border-dark: rgba(255, 255, 255, 0.08);
  --pseo-border-focus: #2563EB;
  
  --pseo-text-white: #F8FAFC;
  --pseo-text-muted: #94A3B8;
  --pseo-text-dim: #64748B;
  
  --pseo-blue-primary: #2563EB;
  --pseo-blue-hover: #1D4ED8;
  --pseo-blue-light: #EFF6FF;
  --pseo-cyan: #06B6D4;
  --pseo-emerald: #10B981;
  --pseo-amber: #F59E0B;
  --pseo-rose: #F43F5E;
  
  --pseo-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --pseo-font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  
  --pseo-radius-sm: 8px;
  --pseo-radius-md: 12px;
  --pseo-radius-lg: 16px;
  --pseo-radius-full: 9999px;
  
  --pseo-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --pseo-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --pseo-shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  --pseo-shadow-glow: 0 0 30px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   0. ROOT VIEWPORT & SCROLLING ENGINE (20-YEAR VETERAN RESILIENT ARCHITECTURE)
   ========================================================================== */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  height: auto;
}

body {
  overflow-x: clip;
  min-height: 100vh;
  position: relative;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 74px !important; /* Preserves footer visibility above fixed dock */
  }
}

/* Base Container & Typography */
.pseo-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .pseo-container {
    padding: 0 16px;
  }
}

/* ==========================================================================
   1. BREADCRUMBS & SNIPPET-BAIT HERO SECTION
   ========================================================================== */
.pseo-hero-section {
  position: relative;
  background: linear-gradient(135deg, #090E17 0%, #0F172A 50%, #131E35 100%);
  color: var(--pseo-text-white);
  padding: 44px 0 52px;
  border-bottom: 1px solid var(--pseo-border-dark);
  overflow: hidden;
}

.pseo-hero-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.pseo-hero-section::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(6, 182, 212, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.pseo-hero-content {
  position: relative;
  z-index: 1;
}

/* 2-Column Hero Grid (Top-Left Content + Top-Right Lead Form) */
.pseo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 36px;
  align-items: stretch;
}

@media (max-width: 991px) {
  .pseo-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.pseo-hero-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pseo-hero-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Top-Right Lead Generation Card */
.pseo-top-lead-card {
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.97) 0%, rgba(30, 41, 59, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--pseo-radius-lg);
  padding: 24px 22px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.pseo-top-lead-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38BDF8, #818CF8, #34D399);
}

.pseo-top-lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--pseo-radius-full);
  margin-bottom: 10px;
  align-self: flex-start;
}

.pseo-top-lead-badge .dot-pulse {
  width: 7px;
  height: 7px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34D399;
  animation: pseoPulse 1.8s infinite;
}

@keyframes pseoPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.pseo-top-lead-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 18.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.pseo-top-lead-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: #94A3B8;
  margin: 0 0 14px 0;
}

.pseo-top-lead-card .pseo-form-group {
  position: relative;
  margin-bottom: 10px;
}

.pseo-top-lead-card .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #64748B;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.pseo-top-lead-card .pseo-form-input {
  width: 100%;
  padding: 10px 14px 10px 34px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #334155;
  border-radius: var(--pseo-radius-sm);
  color: #FFFFFF;
  font-size: 13px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
}

.pseo-top-lead-card .pseo-form-input:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
  background: rgba(15, 23, 42, 0.95);
}

.pseo-top-lead-card select.pseo-form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.pseo-top-lead-submit {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--pseo-radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  transition: all 0.2s ease;
  margin-top: 4px;
  margin-bottom: 8px;
}

.pseo-top-lead-submit:hover {
  background: linear-gradient(135deg, #0369A1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
}

.pseo-lead-trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #94A3B8;
  padding: 8px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pseo-lead-quick-call {
  font-size: 11px;
  color: #94A3B8;
  text-align: center;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 6px;
  padding: 5px 8px;
  margin-top: 4px;
}

.pseo-lead-quick-call a {
  color: #38BDF8;
  text-decoration: none;
  font-weight: 600;
}

.pseo-lead-quick-call a:hover {
  text-decoration: underline;
}

/* Breadcrumb Trail */
.pseo-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--pseo-text-muted);
  margin-bottom: 20px;
}

.pseo-breadcrumbs a {
  color: var(--pseo-cyan);
  text-decoration: none;
  transition: color 0.15s ease;
}

.pseo-breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.pseo-breadcrumbs .sep {
  opacity: 0.5;
}

/* Hero Badge */
.pseo-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.pseo-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--pseo-radius-full);
}

.pseo-freshness-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FBBF24;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--pseo-radius-full);
}

/* Hero Title */
.pseo-hero-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.pseo-hero-title span.highlight {
  background: linear-gradient(90deg, #38BDF8 0%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pseo-hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--pseo-text-muted);
  max-width: 820px;
  margin: 0 0 24px 0;
}

/* Snippet Bait / Quick Answer Box */
.pseo-snippet-box {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-left: 4px solid #38BDF8;
  border-radius: var(--pseo-radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.pseo-snippet-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38BDF8;
  margin-bottom: 8px;
}

.pseo-snippet-text {
  font-size: 15px;
  line-height: 1.65;
  color: #E2E8F0;
  margin: 0;
}

.pseo-snippet-text strong {
  color: #FFFFFF;
}

/* At-a-Glance Metric Strip */
.pseo-metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.pseo-metric-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--pseo-border-dark);
  border-radius: var(--pseo-radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pseo-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
}

.pseo-metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.pseo-metric-info {
  display: flex;
  flex-direction: column;
}

.pseo-metric-label {
  font-size: 12px;
  color: var(--pseo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.pseo-metric-val {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
}

/* ==========================================================================
   2. STICKY JUMP-TO-SECTION TABLE OF CONTENTS (TOC)
   ========================================================================== */
.pseo-toc-nav {
  position: sticky;
  top: 72px;
  z-index: 90;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 12px 0;
  transition: top 0.2s ease;
}

.pseo-toc-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pseo-toc-wrapper::-webkit-scrollbar {
  display: none;
}

.pseo-toc-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  flex-shrink: 0;
}

.pseo-toc-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.pseo-toc-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--pseo-radius-full);
  background: #F1F5F9;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pseo-toc-link:hover,
.pseo-toc-link.active {
  background: #2563EB;
  color: #FFFFFF;
}

/* ==========================================================================
   3. MAIN CONTENT 2-COLUMN LAYOUT
   ========================================================================== */
.pseo-main-layout {
  padding: 44px 0 60px;
  background: #F8FAFC;
}

.pseo-grid-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1023px) {
  .pseo-grid-2col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.pseo-article-body {
  min-width: 0;
}

/* Section Wrapper */
.pseo-content-block {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--pseo-radius-lg);
  padding: 32px 36px;
  margin-bottom: 32px;
  box-shadow: var(--pseo-shadow-sm);
  scroll-margin-top: 140px;
}

@media (max-width: 768px) {
  .pseo-content-block {
    padding: 22px 18px;
    border-radius: var(--pseo-radius-md);
  }
}

.pseo-section-h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pseo-section-h2 .icon {
  font-size: 24px;
}

.pseo-section-intro {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 24px;
}

/* ==========================================================================
   4. INTERACTIVE DWELL-TIME TOOLS (CALCULATOR & READINESS TEST)
   ========================================================================== */
.pseo-tool-card {
  background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--pseo-radius-lg);
  padding: 28px 32px;
  color: #FFFFFF;
  box-shadow: var(--pseo-shadow-md);
  margin-bottom: 30px;
}

.pseo-tool-header {
  margin-bottom: 22px;
}

.pseo-tool-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pseo-tool-sub {
  font-size: 14px;
  color: var(--pseo-text-muted);
  margin: 0;
}

/* Salary Slider Controls */
.pseo-slider-group {
  margin-bottom: 22px;
}

.pseo-slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.pseo-slider-label {
  font-size: 14px;
  font-weight: 600;
  color: #E2E8F0;
}

.pseo-slider-value-display {
  font-size: 22px;
  font-weight: 800;
  color: #38BDF8;
  font-family: var(--pseo-font-mono);
}

.pseo-range-input {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #334155;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.pseo-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #38BDF8;
  border: 3px solid #0F172A;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  cursor: pointer;
}

.pseo-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--pseo-radius-md);
  padding: 20px;
  margin-top: 20px;
}

.pseo-calc-item {
  display: flex;
  flex-direction: column;
}

.pseo-calc-item-label {
  font-size: 12px;
  color: var(--pseo-text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pseo-calc-item-val {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}

.pseo-calc-item.highlight .pseo-calc-item-val {
  color: #34D399;
}

/* Interactive Quiz / Readiness Checker */
.pseo-quiz-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pseo-quiz-qbox {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--pseo-radius-md);
  padding: 16px 20px;
}

.pseo-quiz-qtitle {
  font-size: 15px;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 12px;
}

.pseo-quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 600px) {
  .pseo-quiz-options {
    grid-template-columns: 1fr;
  }
}

.pseo-quiz-btn {
  background: #1E293B;
  border: 1px solid #334155;
  color: #E2E8F0;
  padding: 10px 14px;
  border-radius: var(--pseo-radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pseo-quiz-btn:hover {
  background: #334155;
  border-color: #64748B;
}

.pseo-quiz-btn.selected {
  background: #2563EB;
  border-color: #60A5FA;
  color: #FFFFFF;
}

/* ==========================================================================
   5. RESPONSIVE STRUCTURED COMPARISON & PATTERN MATRIX TABLE
   ========================================================================== */
.pseo-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #E2E8F0;
  border-radius: var(--pseo-radius-md);
  margin: 20px 0;
  background: #FFFFFF;
  box-shadow: var(--pseo-shadow-sm);
}

.pseo-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
  min-width: 600px;
}

.pseo-data-table th {
  background: #F8FAFC;
  color: #0F172A;
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid #E2E8F0;
  white-space: nowrap;
}

.pseo-data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #F1F5F9;
  color: #334155;
  vertical-align: middle;
}

.pseo-data-table tr:last-child td {
  border-bottom: none;
}

.pseo-data-table tr:hover td {
  background: #F8FAFC;
}

.pseo-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--pseo-radius-full);
}

.pseo-status-badge.green {
  background: #DCFCE7;
  color: #15803D;
}

.pseo-status-badge.amber {
  background: #FEF3C7;
  color: #B45309;
}

.pseo-status-badge.blue {
  background: #DBEAFE;
  color: #1D4ED8;
}

/* ==========================================================================
   6. CODE & PROBLEM SANDBOX TABS
   ========================================================================== */
.pseo-code-card {
  background: #0F172A;
  border-radius: var(--pseo-radius-md);
  overflow: hidden;
  margin: 24px 0;
  border: 1px solid #334155;
}

.pseo-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1E293B;
  padding: 10px 16px;
  border-bottom: 1px solid #334155;
}

.pseo-code-tabs {
  display: flex;
  gap: 8px;
}

.pseo-code-tab {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--pseo-radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pseo-code-tab.active {
  background: #0F172A;
  color: #38BDF8;
}

.pseo-code-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: var(--pseo-radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pseo-code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.pseo-code-pre {
  margin: 0;
  padding: 18px 20px;
  color: #F8FAFC;
  font-family: var(--pseo-font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  overflow-x: auto;
}

/* ==========================================================================
   7. DYNAMIC FAQ ACCORDION (JSON-LD BACKED)
   ========================================================================== */
.pseo-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.pseo-faq-item {
  border: 1px solid #E2E8F0;
  border-radius: var(--pseo-radius-md);
  background: #FFFFFF;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pseo-faq-item:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.pseo-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  text-align: left;
  cursor: pointer;
  gap: 16px;
}

.pseo-faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563EB;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.pseo-faq-item.open .pseo-faq-icon {
  transform: rotate(45deg);
  background: #DBEAFE;
}

.pseo-faq-answer {
  display: none;
  padding: 0 22px 20px 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
}

.pseo-faq-item.open .pseo-faq-answer {
  display: block;
}

/* ==========================================================================
   8. RIGHT SIDEBAR (HIGH-CONVERSION DOCK WITH SMOOTH INDEPENDENT SCROLL)
   ========================================================================== */
.pseo-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 136px; /* Header (72px) + TOC (52px) + 12px breathing room */
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: auto; /* CRITICAL: Never locks or traps window scroll */
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  z-index: 20;
}

.pseo-sidebar::-webkit-scrollbar {
  width: 4px;
}

.pseo-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.pseo-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.pseo-sidebar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

@media (max-width: 1023px) {
  .pseo-sidebar {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
    width: 100% !important;
    margin-top: 32px !important;
  }
}

.pseo-sidebar-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--pseo-radius-lg);
  padding: 18px 18px;
  box-shadow: var(--pseo-shadow-sm);
  box-sizing: border-box;
}

.pseo-sidebar-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sidebar Featured Courses List */
.pseo-sidebar-courses-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pseo-sidebar-course-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.pseo-sidebar-course-item:hover {
  border-color: #0284C7;
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.pseo-sidebar-course-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pseo-sidebar-course-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #0284C7;
  background: #E0F2FE;
  padding: 2px 7px;
  border-radius: 4px;
}

.pseo-sidebar-course-rating {
  font-size: 11px;
  font-weight: 700;
  color: #D97706;
}

.pseo-sidebar-course-title {
  font-size: 13.5px;
  font-weight: 750;
  color: #0F172A;
  margin: 0;
  line-height: 1.35;
}

.pseo-sidebar-course-meta {
  font-size: 11.5px;
  color: #64748B;
}

.pseo-sidebar-course-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed #E2E8F0;
}

.pseo-sidebar-course-action span.action-btn {
  font-size: 12px;
  font-weight: 700;
  color: #0284C7;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Sidebar Quick Nav Links */
.pseo-sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pseo-sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.pseo-sidebar-nav-item:hover {
  background: #EFF6FF;
  color: #0284C7;
  transform: translateX(2px);
}

/* Contextual In-Article Course Recommendation Banner */
.pseo-context-course-banner {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  border: 1px solid #BAE6FD;
  border-left: 5px solid #0284C7;
  border-radius: var(--pseo-radius-md);
  padding: 22px 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.06);
}

@media (max-width: 768px) {
  .pseo-context-course-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
    gap: 14px;
  }
}

.pseo-context-banner-content {
  flex: 1;
}

.pseo-context-banner-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #0369A1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.pseo-context-banner-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.pseo-context-banner-desc {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

.pseo-context-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pseo-context-banner-actions {
    width: 100%;
    flex-direction: row;
  }
}

.pseo-btn-explore-course {
  background: #0284C7;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pseo-btn-explore-course:hover {
  background: #0369A1;
  transform: translateY(-1px);
}

.pseo-btn-demo-course {
  background: #FFFFFF;
  color: #0369A1;
  border: 1px solid #BAE6FD;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
  transition: all 0.15s ease;
  cursor: pointer;
}

.pseo-btn-demo-course:hover {
  background: #F0F9FF;
  border-color: #0284C7;
}

/* Dedicated Block 5: Related Recommended Courses Grid */
.pseo-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 20px;
  margin-top: 20px;
}

.pseo-course-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--pseo-radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.pseo-course-card:hover {
  border-color: #0284C7;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.1);
}

.pseo-course-card-badge {
  display: inline-block;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--pseo-radius-full);
  margin-bottom: 10px;
  align-self: flex-start;
}

.pseo-course-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.pseo-course-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748B;
  margin-bottom: 12px;
}

.pseo-course-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.pseo-skill-pill {
  background: #F1F5F9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.pseo-course-card-stats {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}

.pseo-stat-col {
  display: flex;
  flex-direction: column;
}

.pseo-stat-col .lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
}

.pseo-stat-col .val {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
}

.pseo-course-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.pseo-btn-enroll {
  flex: 1;
  background: #0284C7;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.pseo-btn-enroll:hover {
  background: #0369A1;
}

.pseo-btn-curriculum {
  background: #F1F5F9;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pseo-btn-curriculum:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* ==========================================================================
   9. STICKY MOBILE CONVERSION DOCK (Zero CLS)
   ========================================================================== */
.pseo-mobile-dock {
  display: none;
}

@media (max-width: 768px) {
  .pseo-mobile-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 14px;
    align-items: center;
    gap: 10px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
    animation: pseoSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .pseo-dock-btn-pdf {
    flex: 1;
    background: #2563EB;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: var(--pseo-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
  }

  .pseo-dock-btn-whatsapp {
    background: #10B981;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: var(--pseo-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
  }
}

@keyframes pseoSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ==========================================================================
   10. INTERNAL LINKING MESH / RELATED HUBS
   ========================================================================== */
.pseo-mesh-section {
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  padding: 44px 0 54px;
}

.pseo-mesh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.pseo-mesh-card {
  border: 1px solid #E2E8F0;
  border-radius: var(--pseo-radius-md);
  padding: 20px;
  background: #F8FAFC;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.pseo-mesh-card:hover {
  border-color: #2563EB;
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--pseo-shadow-md);
}

.pseo-mesh-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px 0;
}

.pseo-mesh-desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   11. pSEO AUTHORITY HUB CARDS & RESPONSIVE GRID
   ========================================================================== */
.pseo-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.pseo-company-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.pseo-company-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.pseo-company-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pseo-company-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284C7, #0369A1);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pseo-company-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.pseo-company-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pseo-track-pill {
  font-size: 11px;
  font-weight: 700;
  background: #F1F5F9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 6px;
}

.pseo-company-desc {
  font-size: 13.5px;
  color: #64748B;
  line-height: 1.55;
  margin: 0 0 16px 0;
  word-break: break-word;
}

.pseo-company-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #F8FAFC;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  margin-bottom: 18px;
}

.pseo-comp-meta-item .lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  display: block;
}

.pseo-comp-meta-item .val {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pseo-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pseo-card-btn:hover {
  background: #15803D;
  color: #FFFFFF;
}

@media (max-width: 480px) {
  .pseo-company-card {
    padding: 16px;
  }
  .pseo-company-meta-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

