/* ==========================================
   PLANET QUIZ PATENTE — WordPress Theme CSS
   Namespaced under .pqp-theme for Elementor compatibility
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg-dark: #0a0e1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2235;
  --bg-surface: #151b2d;
  --bg-nav: rgba(10, 14, 26, 0.92);
  --text-primary: #f0f2f8;
  --text-secondary: #8b95b0;
  --text-muted: #5a6480;
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.3);
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.25);
  --accent-purple: #8b5cf6;
  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.25);
  --accent-amber: #f59e0b;
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(59, 130, 246, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow-blue: 0 0 40px rgba(59, 130, 246, 0.15);
  --shadow-glow-green: 0 0 40px rgba(16, 185, 129, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset & Base (scoped to theme) ---------- */
body.pqp-theme {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

body.pqp-theme *,
body.pqp-theme *::before,
body.pqp-theme *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.pqp-theme a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition);
}

body.pqp-theme a:hover {
  color: var(--accent-purple);
}

body.pqp-theme img {
  max-width: 100%;
  height: auto;
}

body.pqp-theme button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
}

/* ---------- Navigation ---------- */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border-color);
  padding: 0 1.5rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.nav-logo:hover {
  color: var(--text-primary);
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
}

.nav-links a {
  display: block;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

.nav-toggle {
  display: none;
  background: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-active);
}

.btn-success {
  background: var(--gradient-green);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-danger {
  background: var(--accent-red);
  color: #fff;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.82rem;
}

.btn-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

.btn-icon {
  font-size: 1.1em;
}

@keyframes glow {
  from {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  }

  to {
    box-shadow: 0 4px 30px rgba(59, 130, 246, 0.55), 0 0 60px rgba(139, 92, 246, 0.15);
  }
}

/* ---------- Page System ---------- */
section.page {
  display: none;
  padding-top: 64px;
  min-height: 100vh;
  animation: fadeIn 0.4s ease;
}

section.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 1.5rem 60px;
  text-align: center;
  background: var(--gradient-hero);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Semi-transparent overlay on hero background image */
.hero[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.75);
  z-index: 1;
}

.hero[style*="background-image"] .hero-bg,
.hero[style*="background-image"] .hero-content,
.hero[style*="background-image"] .hero-slides {
  position: relative;
  z-index: 2;
}

/* Nav Logo Image */
.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* Hero Slide Images */
.hero-slides {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-slide-img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.hero-slide-img:hover {
  transform: scale(1.08);
  border-color: var(--accent-blue);
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.3);
}

/* Feature Card Icons (archived images) */
.feature-icon-img {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.2));
}

/* Banner Section */
.pqp-banner-section {
  text-align: center;
  padding: 24px 1.5rem;
}

.pqp-banner-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 28px 1.5rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 1.5rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: 1rem;
}

/* ---------- Feature Cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-blue);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-link {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Chapters Grid ---------- */
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.chapter-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: var(--transition);
  cursor: pointer;
}

.chapter-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.chapter-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.chapter-card-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.chapter-card-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- Chapters List (Apprendimento/Test) ---------- */
.chapters-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chapter-list-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: var(--transition);
  cursor: pointer;
}

.chapter-list-item:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow-blue);
}

.chapter-list-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.chapter-list-info {
  flex: 1;
}

.chapter-list-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.chapter-list-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.chapter-list-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* ---------- Page Header ---------- */
.page-header {
  padding: 40px 1.5rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--accent-blue);
  font-weight: 500;
  font-size: 0.9rem;
}

.breadcrumb span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---------- Quiz Card ---------- */
.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.3s ease;
}

.quiz-image {
  text-align: center;
  margin-bottom: 24px;
}

.quiz-image img {
  max-width: 200px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  background: #fff;
  padding: 8px;
}

.quiz-question {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.quiz-id {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.quiz-answer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.quiz-answer-badge.vero {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.quiz-answer-badge.falso {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.quiz-motivation {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.quiz-motivation-label {
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* ---------- Quiz Nav ---------- */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 16px;
}

.quiz-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  margin-bottom: 12px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.quiz-counter {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
  font-weight: 500;
}

/* ---------- Test Mode Buttons ---------- */
.test-answer-buttons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.test-btn-vero,
.test-btn-falso {
  flex: 1;
  padding: 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid;
  transition: var(--transition);
}

.test-btn-vero {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
}

.test-btn-vero:hover {
  background: rgba(16, 185, 129, 0.2);
  transform: scale(1.02);
}

.test-btn-falso {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--accent-red);
}

.test-btn-falso:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.02);
}

.test-feedback {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  animation: fadeIn 0.3s ease;
}

.test-feedback.correct {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
}

.test-feedback.wrong {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--accent-red);
}

.test-next-btn {
  margin-top: 16px;
}

.test-score-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 16px;
  margin-bottom: 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.score-correct {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1.1rem;
}

.score-wrong {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 1.1rem;
}

.score-remaining {
  color: var(--text-muted);
  font-weight: 600;
}

/* ---------- Simulation ---------- */
.sim-intro-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.sim-intro-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.sim-intro-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.sim-rules {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
}

.sim-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.sim-rule span {
  font-size: 1.3rem;
}

.sim-exam-list {
  margin-top: 40px;
  text-align: left;
}

.sim-exam-list h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-align: center;
}

.sim-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
}

.sim-list-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

.sim-list-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Sim Header Bar */
.sim-header-bar {
  position: sticky;
  top: 64px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.sim-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sim-timer.warning {
  color: var(--accent-amber);
}

.sim-timer.danger {
  color: var(--accent-red);
  animation: pulse 1s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.sim-exam-progress {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Sim Question List */
.sim-questions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 80px;
}

.sim-question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.sim-question-card.answered {
  border-color: rgba(59, 130, 246, 0.3);
}

.sim-q-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sim-q-num {
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sim-q-chapter {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sim-q-text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 16px;
}

.sim-q-image {
  text-align: center;
  margin-bottom: 16px;
}

.sim-q-image img {
  max-width: 160px;
  background: #fff;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.sim-q-buttons {
  display: flex;
  gap: 12px;
}

.sim-q-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid;
  transition: var(--transition);
}

.sim-q-btn-vero {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}

.sim-q-btn-vero:hover {
  background: rgba(16, 185, 129, 0.15);
}

.sim-q-btn-vero.selected {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--accent-green);
}

.sim-q-btn-falso {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}

.sim-q-btn-falso:hover {
  background: rgba(239, 68, 68, 0.15);
}

.sim-q-btn-falso.selected {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--accent-red);
}

.sim-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  text-align: center;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
}

/* ---------- Results ---------- */
.results-card {
  max-width: 700px;
  margin: 40px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
}

.results-icon {
  font-size: 5rem;
  margin-bottom: 16px;
}

.results-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.results-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.results-score-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  border: 6px solid;
}

.results-score-circle.pass {
  border-color: var(--accent-green);
}

.results-score-circle.fail {
  border-color: var(--accent-red);
}

.results-score-number {
  font-size: 3rem;
  font-weight: 900;
}

.results-score-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.results-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
}

.results-stat {
  text-align: center;
}

.results-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
}

.results-stat-value.green {
  color: var(--accent-green);
}

.results-stat-value.red {
  color: var(--accent-red);
}

.results-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.results-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.results-review {
  text-align: left;
  margin-top: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.results-review h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.review-item {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.review-item.correct {
  border-left: 4px solid var(--accent-green);
}

.review-item.wrong {
  border-left: 4px solid var(--accent-red);
}

.review-q-text {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.review-answer {
  font-size: 0.82rem;
}

/* ---------- Footer ---------- */
#main-footer {
  padding: 32px 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-sub {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 4px;
}

/* ---------- Confetti ---------- */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall 3s ease-in forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ---------- Image Placeholder ---------- */
.image-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- Chapter Badge ---------- */
.chapter-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 8px;
}

.chapter-badge.pass {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.chapter-badge.fail {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 12px;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 50px 1.5rem 40px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .stats-bar {
    gap: 24px;
  }

  .feature-card {
    padding: 24px;
  }

  .quiz-card {
    padding: 24px;
  }

  .sim-intro-card {
    padding: 28px;
  }

  .sim-header-bar {
    padding: 10px 16px;
  }

  .results-card {
    padding: 28px;
  }

  .results-stats {
    gap: 20px;
  }

  .chapters-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .test-answer-buttons {
    flex-direction: column;
  }

  .sim-q-buttons {
    flex-direction: column;
  }
}

/* ==========================================
   WORDPRESS-SPECIFIC STYLES
   ========================================== */

/* ---------- WP Admin Bar Offset ---------- */
body.pqp-theme.admin-bar #main-nav {
  top: 32px;
}

@media (max-width: 782px) {
  body.pqp-theme.admin-bar #main-nav {
    top: 46px;
  }
}

/* ---------- WP Page Content ---------- */
.pqp-page-content {
  padding-top: 64px;
  min-height: 70vh;
}

.entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--text-primary);
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.entry-content p {
  margin-bottom: 1.2em;
}

.entry-content a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.entry-content img {
  border-radius: var(--radius-md);
  margin: 1em 0;
}

/* ---------- Blog Posts Grid ---------- */
.pqp-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.pqp-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.pqp-post-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow-blue);
}

.pqp-post-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pqp-post-title a {
  color: var(--text-primary);
}

.pqp-post-title a:hover {
  color: var(--accent-blue);
}

.pqp-post-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pqp-post-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.pqp-pagination {
  margin-top: 40px;
  text-align: center;
}

.pqp-pagination .nav-links a,
.pqp-pagination .nav-links span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
}

.pqp-pagination .nav-links .current {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

/* ---------- Elementor Compatibility ---------- */
body.pqp-theme.elementor-page .pqp-page-content {
  padding-top: 0;
}

body.pqp-theme.elementor-page #main-nav {
  position: relative;
}

/* ---------- WP Menu Item Classes ---------- */
.nav-links .menu-item a {
  display: block;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-links .menu-item a:hover,
.nav-links .current-menu-item a {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links .current-menu-item a {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

/* ==============================
   BLOG — Archive Grid
   ============================== */
.pqp-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.pqp-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.pqp-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
  border-color: var(--accent-blue);
}

.pqp-blog-card-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--glass-bg);
}

.pqp-blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pqp-blog-card:hover .pqp-blog-card-thumb img {
  transform: scale(1.06);
}

.pqp-blog-card-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  font-size: 3rem;
}

.pqp-blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pqp-blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.pqp-blog-card-date {
  color: var(--text-muted);
}

.pqp-blog-card-cat {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pqp-blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.pqp-blog-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.pqp-blog-card-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.9rem;
}

.pqp-blog-card:hover .pqp-blog-card-link {
  text-decoration: underline;
}

/* Blog Pagination */
.pqp-blog-pagination {
  margin-top: 48px;
  text-align: center;
}

.pqp-blog-pagination .page-numbers {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.pqp-blog-pagination a,
.pqp-blog-pagination span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.pqp-blog-pagination a:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.pqp-blog-pagination .current {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

/* Blog Empty State */
.pqp-blog-empty {
  text-align: center;
  padding: 80px 20px;
}

.pqp-blog-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.pqp-blog-empty h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pqp-blog-empty p {
  color: var(--text-secondary);
}

/* ==============================
   BLOG — Homepage 3-Card Row
   ============================== */
.pqp-home-blog-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.pqp-home-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.pqp-home-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
  border-color: var(--accent-blue);
}

.pqp-home-blog-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--glass-bg);
}

.pqp-home-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pqp-home-blog-card:hover .pqp-home-blog-thumb img {
  transform: scale(1.06);
}

.pqp-home-blog-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  font-size: 2.5rem;
}

.pqp-home-blog-body {
  padding: 20px;
}

.pqp-home-blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pqp-home-blog-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 8px 0;
  line-height: 1.4;
}

.pqp-home-blog-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==============================
   BLOG — Single Post
   ============================== */
.pqp-single-post {
  max-width: 800px;
  margin: 0 auto;
}

.pqp-single-thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.pqp-single-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.pqp-single-header {
  margin-bottom: 32px;
}

.pqp-single-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 16px;
}

.pqp-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pqp-single-meta a {
  color: var(--accent-blue);
  text-decoration: none;
}

.pqp-single-meta a:hover {
  text-decoration: underline;
}

.pqp-single-content {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.pqp-single-content h2,
.pqp-single-content h3,
.pqp-single-content h4 {
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 16px;
}

.pqp-single-content p {
  margin-bottom: 16px;
}

.pqp-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 16px 0;
}

.pqp-single-content ul,
.pqp-single-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.pqp-single-content blockquote {
  border-left: 4px solid var(--accent-blue);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--glass-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Post Navigation */
.pqp-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
}

.pqp-post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.pqp-post-nav-link:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.08);
}

.pqp-post-nav-next {
  text-align: right;
}

.pqp-post-nav-label {
  font-size: 0.8rem;
  color: var(--accent-blue);
  font-weight: 600;
}

.pqp-post-nav-title {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
}

/* ==============================
   BLOG — Responsive
   ============================== */
@media (max-width: 768px) {
  .pqp-blog-grid {
    grid-template-columns: 1fr;
  }

  .pqp-home-blog-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pqp-single-title {
    font-size: 1.5rem;
  }

  .pqp-post-nav {
    grid-template-columns: 1fr;
  }

  .pqp-post-nav-next {
    text-align: left;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .pqp-home-blog-row {
    grid-template-columns: repeat(2, 1fr);
  }
}