/* ============================================
   CramForce - Consolidated Stylesheet
   ============================================ */

/* ============================================
   CSS Variables - Modern Design System
   Matching Cramforce 2025 Logo Theme
   ============================================ */
:root {
  /* Primary Brand Colors - Navy Blue Theme */
  --primary-color: #1e3a5f;
  --primary-dark: #0f2744;
  --primary-light: #2d5a87;

  /* Accent & Semantic Colors - Cyan/Turquoise & Orange */
  --accent-color: #5dd3d8;
  --accent-light: #7de8ed;
  --accent-orange: #f97316;
  --success-color: #10b981;
  --success-hover: #059669;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #5dd3d8;

  /* Text Colors */
  --text-dark: #1e293b;
  --text-medium: #475569;
  --text-light: #94a3b8;
  --text-muted: #cbd5e1;

  /* Background Colors */
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #0f172a;
  --bg-card: #ffffff;
  --bg-navy: #1a365d;

  /* Border & Shadow */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Gradients - Matching Logo */
  --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
  --gradient-hero: linear-gradient(135deg, #0f2744 0%, #1a365d 50%, #2d5a87 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-accent: linear-gradient(135deg, #5dd3d8 0%, #7de8ed 100%);
  --gradient-cta: linear-gradient(135deg, #f97316 0%, #fb923c 100%);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   Base Styles
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
}

p {
  color: var(--text-medium);
}

/* ============================================
   Header Styles
   ============================================ */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-xl);
  height: 70px;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 100;
}

#logo-and-name {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

#logo-and-name a {
  display: flex;
  align-items: center;
}

#logo {
  width: 50px;
  height: 50px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  object-fit: cover;
}

#logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(93, 211, 216, 0.5);
}

#site-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

/* Navigation - Modern Style */
#quiz-nav,
#hamburger-menu {
  position: relative;
  margin-left: auto;
  margin-right: 16px;
}

#quiz-menu-button,
#hamburger-menu-button {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

#quiz-menu-button:hover,
#hamburger-menu-button:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

#quiz-menu-button::after {
  content: "▼";
  font-size: 10px;
}

#quiz-menu-content,
#hamburger-menu-content {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  min-width: 180px;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  padding: 8px;
  overflow: hidden;
}

#quiz-menu-content a,
#hamburger-menu-content a {
  color: #334155;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

#quiz-menu-content a:hover,
#hamburger-menu-content a:hover {
  background-color: #f1f5f9;
  color: var(--primary-color);
  text-decoration: none;
}

/* Hamburger Menu */
#hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 1.875rem;
  height: 1.5625rem;
  cursor: pointer;
  padding-right: 0.625rem;
}

.bar {
  height: 0.25rem;
  width: 100%;
  background-color: white;
  border-radius: 0.625rem;
  margin: 0.3125rem 0;
}

/* Auth Section */
#auth-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* User Display - Logged In State */
#user-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s;
}

#user-display:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

#user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  font-size: 14px;
}

#user-name {
  color: white;
  font-weight: 500;
  font-size: 14px;
}

#dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: white;
  min-width: 180px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 12px;
  border-radius: 12px;
}

#user-role-display {
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}

.role-label {
  color: #64748b;
}

#user-role-text {
  font-weight: 600;
  color: #6366f1;
}

#btn-logout {
  width: 100%;
  padding: 10px;
  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

#btn-logout:hover {
  background: #ef4444;
  color: white;
}

/* Login Button - Prominent when logged out */
#btn-login {
  padding: 10px 20px;
  background: white;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  display: block;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Utility Classes */
.hidden,
#user-display.hidden {
  display: none;
}

.show,
#hamburger-menu.show,
#hamburger-menu-content.show,
#dropdown-menu.show,
#quiz-menu-content.show {
  display: block;
}

/* ============================================
   Page Container
   ============================================ */
#page-container {
  margin: 0;
}

/* ============================================
   Hero Section - Modern Navy Blue Design
   Matching Cramforce 2025 Logo
   ============================================ */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: var(--space-2xl) 5vw;
  background: var(--gradient-hero);
  min-height: 70vh;
  position: relative;
  overflow: hidden;
}

/* Subtle glow effect like the logo */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(93, 211, 216, 0.15) 0%, transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-text {
  flex: 1;
  max-width: 55%;
  position: relative;
  z-index: 1;
}

.hero-img-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 40%;
  position: relative;
  z-index: 1;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(93, 211, 216, 0.3), var(--shadow-xl);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid rgba(93, 211, 216, 0.3);
}

.hero-image:hover {
  transform: scale(1.02);
  box-shadow: 0 0 80px rgba(93, 211, 216, 0.4), var(--shadow-xl);
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.hero-headline span {
  color: var(--accent-color);
}

.hero-subhead {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero-cta {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--gradient-cta);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.hero-results {
  font-size: 1rem;
  list-style: none;
  padding: 0;
  text-align: left;
  margin: var(--space-xl) 0 0 0;
}

.hero-results li {
  position: relative;
  padding-left: 32px;
  margin-bottom: var(--space-sm);
  color: rgba(255, 255, 255, 0.9);
}

.hero-results li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--accent-color);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* ============================================
   Problem Solution Section
   ============================================ */
.problem-solution-section {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  padding-top: 120px;
  gap: 20px;
}

.media-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  max-width: 50%;
}

.media-image {
  width: 40%;
  height: auto;
  border-radius: 10%;
}

.content-container {
  flex: 1;
  max-width: 50%;
}

.content-container h2,
.content-container p {
  margin-bottom: 15px;
}

.content-container .highlight {
  font-weight: bold;
  color: var(--accent-orange);
}

/* ============================================
   Benefits Section
   ============================================ */
.benefits-section {
  text-align: center;
  padding: 20px;
  background-color: var(--bg-light);
  padding-top: 120px;
}

.benefits-section h2 {
  color: var(--primary-color);
  margin-bottom: 30px;
}

.benefits-container {
  display: flex;
  justify-content: space-around;
  align-items: start;
}

.benefit-item {
  width: 30%;
  padding: 10px;
}

.benefit-icon {
  max-width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.benefit-item h3 {
  color: var(--text-dark);
  margin-bottom: 10px;
}

.benefit-item p {
  color: var(--text-medium);
  font-size: 0.9rem;
}

/* ============================================
   Plans / Pricing Comparison Section
   ============================================ */
.plans {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.plans h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-xl);
}

.pricing-table {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.pricing-table table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  word-wrap: break-word;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
}

.pricing-table th:first-child,
.pricing-table td:first-child {
  width: 25%;
  text-align: left;
  padding-left: var(--space-lg);
  font-weight: 500;
  color: var(--text-dark);
}

.pricing-table thead th {
  background: var(--gradient-primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: var(--space-lg) var(--space-sm);
  position: relative;
}

.pricing-table thead th:first-child {
  background: var(--primary-dark);
}

/* Plan column highlighting */
.pricing-table thead th:nth-child(2) {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.pricing-table thead th:nth-child(3) {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.pricing-table thead th:nth-child(4) {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.pricing-table thead th:nth-child(5) {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.pricing-table tbody tr {
  transition: background-color 0.2s ease;
}

.pricing-table tbody tr:hover {
  background-color: rgba(93, 211, 216, 0.05);
}

.pricing-table tbody tr:nth-child(even) {
  background-color: var(--bg-light);
}

.pricing-table tbody tr:nth-child(even):hover {
  background-color: rgba(93, 211, 216, 0.08);
}

.pricing-table td {
  color: var(--text-medium);
}

/* Last row (CTA row) styling */
.pricing-table tbody tr:last-child {
  background: linear-gradient(135deg, rgba(93, 211, 216, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
}

.pricing-table tbody tr:last-child td {
  padding: var(--space-lg) var(--space-sm);
  font-weight: 600;
  color: var(--primary-color);
}

.pricing-table tbody tr:last-child td a {
  color: var(--accent-orange);
  text-decoration: underline;
}

.pricing-table tbody tr:last-child td a:hover {
  color: var(--primary-color);
}

/* Feature checkmarks styling */
.pricing-table td:not(:first-child) {
  font-size: 0.85rem;
}

/* Get Started CTA Section */
.offer {
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(93, 211, 216, 0.1) 0%, rgba(249, 115, 22, 0.08) 100%);
  text-align: center;
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.offer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-cta);
  border-radius: 0 0 4px 4px;
}

.offer h2 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.offer p {
  color: var(--text-medium);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.offer .start-quiz-btn {
  background: var(--gradient-cta);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.offer .start-quiz-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* ============================================
   Quiz Page Styles
   ============================================ */
#content-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl) var(--space-lg);
  min-height: calc(100vh - 70px - 200px);
}

/* Quiz Page Layout Wrapper */
.quiz-page-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-xl);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.quiz-main {
  flex: 1;
  max-width: 700px;
  min-width: 0;
}

.quiz-sidebar {
  flex-shrink: 0;
  width: 280px;
  position: sticky;
  top: 90px;
}

#tabs-and-content {
  display: flex;
  flex-direction: column;
  width: 60%;
}

#tabs {
  display: flex;
  justify-content: space-between;
  align-items: left;
  padding: 0;
  margin-right: 1.25rem;
}

.tab-buttons {
  display: flex;
  align-items: baseline;
  padding: 0;
}

.tab-button {
  padding: 12px 24px;
  border: none;
  background-color: #e2e8f0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
  margin-right: 4px;
  border-radius: 12px 12px 0 0;
}

.tab-button:hover {
  background-color: #cbd5e1;
  color: #334155;
}

.tab-button.active {
  background: linear-gradient(135deg, var(--primary-color), #3b82f6);
  color: white;
  box-shadow: 0 -2px 10px rgba(74, 182, 255, 0.3);
}

.tab-content {
  display: none;
  padding: 0.625rem;
  background-color: white;
  border: 0.0625rem solid var(--border-color);
}

#quiz-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
}

/* Quiz Fixed Layout */
.quiz-layout {
  display: flex;
  flex-direction: column;
  min-height: 450px;
}

.quiz-header {
  margin-bottom: var(--space-md);
}

.question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-sm);
  padding: var(--space-sm) 0;
}

.question-number {
  font-weight: 600;
  color: var(--text-dark);
}

.question-difficulty {
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-light);
  color: var(--text-medium);
}

.quiz-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.question-text {
  margin-bottom: var(--space-md);
}

.question-text h4 {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-dark);
  margin: 0;
}

/* Result Indicator */
.result-indicator {
  display: none;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  animation: slideIn 0.3s ease;
}

.result-indicator.show {
  display: flex;
}

.result-indicator.correct {
  background: #dcfce7;
  border: 1px solid #86efac;
}

.result-indicator.incorrect {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.result-icon {
  font-size: 1.5rem;
  font-weight: bold;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.result-icon.correct {
  background: #22c55e;
  color: white;
}

.result-icon.incorrect {
  background: #ef4444;
  color: white;
}

.correct-answer-text {
  font-size: 0.95rem;
  color: var(--text-medium);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Quiz Footer - Fixed */
.quiz-footer {
  margin-top: auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}

#question-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

/* Expert Help Modal */
.expert-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: var(--space-lg);
}

.expert-modal-content {
  background: white;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

/* Fixed header at top of modal */
.expert-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gradient-primary);
  padding: var(--space-md) var(--space-lg);
}

.expert-modal-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.expert-modal-icon {
  font-size: 1.5rem;
}

.expert-modal-title h3 {
  color: white;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.expert-modal-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.expert-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.expert-modal-close-btn .close-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: white;
  line-height: 1;
}

/* Scrollable content area */
#expert-help-content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: var(--space-xl);
}

/* Expert Help Card - content wrapper */
.expert-help-card {
  background: white;
}

.expert-help-content {
  padding: 0;
}

/* Footer with close button */
.expert-help-footer {
  flex-shrink: 0;
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.expert-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

.expert-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.expert-explanation {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: var(--space-lg);
}

.expert-explanation p {
  margin-bottom: var(--space-md);
}

.expert-links-section {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
}

.expert-links-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.expert-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

/* Quiz Controls - Modern Card Style */
.tab-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 400px;
  margin: 20px auto;
  border: 1px solid #e2e8f0;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-group label {
  font-weight: 600;
  font-size: 13px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.control-group select {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background-color: white;
  font-size: 15px;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.control-group select:hover {
  border-color: var(--primary-color);
}

.control-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 182, 255, 0.2);
}

.tab-controls button#fetchquiz {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--success-color), #16a34a);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.tab-controls button#fetchquiz:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.tab-controls button#fetchquiz:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

#categoryInput,
#difficultyInput,
button {
  margin-left: 0.625rem;
}

/* Quiz Results */
#quiz-results {
  font-size: 1.5rem;
  font-weight: bold;
  color: #005a9c;
  text-align: center;
  margin-top: 1.375rem;
  padding-bottom: 0.25rem;
}

/* Answer Section */
#answer-section {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.125rem;
  padding: 0.1rem;
}

.question-btn {
  display: inline-block;
  margin: 0.3125rem;
  padding: 0.625rem 1.25rem;
  border: 0.0625rem solid var(--border-color);
  border-radius: 0.3125rem;
  background-color: #f8f8f8;
  cursor: pointer;
  transition: all 0.3s ease;
}

.question-btn:hover {
  background-color: #e0e0e0;
}

input[type="checkbox"]:checked + label {
  background-color: var(--success-color);
  color: white;
}

input[type="checkbox"] {
  display: none;
}

#question-header {
  text-align: left;
}

#top-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

#header-text {
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: auto;
  margin-right: 20px;
  color: var(--primary-color);
  font-size: 18px;
}

#feedback-buttons {
  display: block;
  text-align: center;
}

#feedback-buttons button {
  background-color: #f0f0f0;
  color: var(--text-dark);
  border: 1px solid #ddd;
  padding: 0.2rem 0.4rem;
  margin: 0.2rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

#feedback-buttons button:hover {
  background-color: #e0e0e0;
}

/* Question Actions */
#question-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
}

#submit-answer,
#next-question,
#start-over,
#new-quiz,
#past-results {
  font-size: 1rem;
  background-color: var(--success-color);
  color: white;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 0.3125rem;
  cursor: pointer;
}

#submit-answer:hover,
#next-question:hover,
#start-over:hover,
#new-quiz:hover {
  background-color: var(--success-hover);
}

#next-question {
  background-color: #6babd6;
}

#next-question:hover {
  background-color: #488fbe;
}

/* Fundraising Card / Sidebar */
#google-ads.fundraising-card {
  width: 100%;
  background: var(--bg-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.fundraising-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--danger-color);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.fundraising-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.fundraising-text {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.fundraising-btn {
  display: inline-block;
  background: var(--gradient-success);
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.fundraising-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   Flag Popup
   ============================================ */
#flagPopup,
#resultsPopup {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
  justify-content: center;
  align-items: center;
}

#flagPopup form,
#resultsPopup form {
  background-color: #fefefe;
  padding: 1.25rem;
  border: 0.0625rem solid #888;
  width: 80%;
  max-width: 25rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.5rem 0 var(--shadow-medium), 0 0.375rem 1.25rem 0 rgba(0, 0, 0, 0.19);
}

#commentBox {
  width: 100%;
  height: 6.25rem;
  padding: 0.75rem 1.25rem;
  margin: 0.5rem 0;
  border: 0.0625rem solid var(--border-color);
  box-sizing: border-box;
  resize: vertical;
}

.buttons-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

#flagForm button {
  background-color: var(--success-color);
  color: white;
  padding: 0.625rem 1.25rem;
  border: none;
  cursor: pointer;
  flex: 0 1 auto;
}

#cancelButton {
  background-color: var(--danger-color);
}

#flagForm button:hover {
  opacity: 0.8;
}

/* Results Popup */
#resultsPopup {
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.5);
}

#resultsDetail {
  width: 80%;
  max-height: 80%;
  margin: 5% auto;
  background-color: white;
  overflow: auto;
  padding: 1.25rem;
  box-shadow: 0 0 0.625rem 0 rgba(0, 0, 0, 0.5);
}

#closePopupBtn {
  display: inline-block;
  margin: 0.625rem;
  padding: 0.3125rem 0.625rem;
  background-color: var(--danger-color);
  color: white;
  border: none;
  border-radius: 0.3125rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#closePopupBtn:hover {
  background-color: #ff7575;
}

/* ============================================
   Tables
   ============================================ */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 0.0625rem solid black;
  padding: 0.5rem;
  text-align: left;
}

th {
  cursor: pointer;
}

/* ============================================
   Disclaimer - Centered Modal
   ============================================ */
#disclaimer {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  padding: 1rem;
  box-sizing: border-box;
  overflow-y: auto;
}

/* Prevent body scroll and layout shift when modal is open */
body.modal-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0);
}

.disclaimer-card {
  background: white;
  border-radius: 20px;
  padding: 32px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.disclaimer-icon {
  font-size: 56px;
  margin-bottom: 12px;
  display: block;
}

.disclaimer-card h3 {
  color: var(--text-dark);
  margin: 0 0 16px 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.disclaimer-card p {
  color: var(--text-medium);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 24px 0;
}

.accept-btn {
  background: var(--gradient-success);
  color: white;
  border: none;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.accept-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5);
}

#fetchquiz:disabled {
  color: var(--text-light);
  background-color: #ddd;
  cursor: not-allowed;
}

/* ============================================
   Fundraising Styles
   ============================================ */
#fund-raiser {
  padding-top: 0.325rem;
  font-size: 1rem;
  text-align: left;
  background-color: var(--bg-light);
  border: 0.0625rem solid var(--border-color);
  margin: 0.625rem 0;
  padding: 0.5375rem;
  box-shadow: 0 0.125rem 0.25rem var(--shadow-light);
}

#fund-raiser a {
  color: #0000EE;
  text-decoration: underline;
}

.custom-list {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style-type: none;
  margin-right: 0.7rem;
  text-align: left;
  padding-left: 1rem;
  padding-right: 1rem;
  margin: 0.825rem 0;
}

.custom-list li {
  margin-bottom: 0.3125rem;
  text-align: left;
  list-style-type: disc;
}

.list-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  padding: 0.5rem;
}

.image-container {
  width: 30%;
  height: 30%;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#fundraising-container {
  max-width: 50rem;
  margin: auto;
  padding: 1.25rem;
  font-family: Arial, sans-serif;
}

#fundraising-container h1,
#fundraising-container h2,
#fundraising-container h3 {
  color: var(--primary-color);
  text-align: center;
}

#fundraising-container p {
  color: var(--text-medium);
  line-height: 1.6;
  text-align: justify;
}

.donate-button,
.justgiving-link {
  text-align: center;
  margin: 1.25rem 0;
}

.donate-button a,
.justgiving-link a {
  padding: 0.625rem 1.25rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 0.3125rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.donate-button a:hover,
.justgiving-link a:hover {
  background-color: var(--primary-dark);
}

/* ============================================
   About Page Styles
   ============================================ */
#about-container {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

#about-container h1 {
  text-align: center;
  color: var(--primary-color);
}

#about-container section {
  margin-bottom: 40px;
}

#about-container h2 {
  color: var(--text-dark);
  margin-bottom: 10px;
}

#about-container p {
  color: var(--text-medium);
  line-height: 1.6;
}

/* ============================================
   Expert Help Links - Modern Style
   ============================================ */
.expert-link-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.expert-link-card:hover {
  background: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.expert-link-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.expert-link-text {
  flex: 1;
  min-width: 0;
}

.expert-link-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expert-link-url {
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expert-link-arrow {
  color: var(--text-light);
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.expert-link-card:hover .expert-link-arrow {
  color: var(--primary-color);
  transform: translateX(4px);
}

/* Legacy support for old format */
#expLinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.hyperlinkButton {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.hyperlinkButton:hover {
  background: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.contentWrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.siteIcon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
}

.siteTitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   Footer Styles
   ============================================ */
#page-footer {
  background: var(--gradient-hero);
  color: white;
  text-align: center;
  padding: 2rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-evenly;
  align-items: top;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-section {
  flex: 1;
  min-width: 12.5rem;
  padding: 0 1.25rem;
  text-align: left;
}

.footer-section h3 {
  margin-bottom: 0.625rem;
  color: var(--accent-color);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--accent-color);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  border-top: 1px solid rgba(93, 211, 216, 0.2);
  padding-top: 1rem;
  margin-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Tablet breakpoint */
@media (max-width: 992px) {
  .quiz-page-wrapper {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }

  .quiz-main {
    max-width: 100%;
    width: 100%;
  }

  .quiz-sidebar {
    width: 100%;
    max-width: 500px;
    position: static;
  }

  #quiz-container {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  #content-area {
    padding: var(--space-md);
  }

  .quiz-page-wrapper {
    gap: var(--space-md);
  }

  #quiz-container {
    padding: var(--space-md);
    border-radius: var(--radius-md);
  }

  #quiz-container h3 {
    font-size: 1.1rem;
    padding: var(--space-md) var(--space-md) 0;
  }

  .tab-controls {
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .control-group label {
    font-size: 12px;
  }

  .control-group select {
    padding: 10px 12px;
    font-size: 14px;
  }

  .tab-controls button#fetchquiz {
    padding: 12px 20px;
    font-size: 15px;
  }

  .quiz-sidebar {
    max-width: 100%;
  }

  #google-ads.fundraising-card {
    padding: var(--space-md);
  }

  .fundraising-title {
    font-size: 1rem;
  }

  .fundraising-text {
    font-size: 0.85rem;
  }

  #question-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #question-header #header-text {
    font-size: 1rem;
  }

  #feedback-buttons button {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  #additional-info p {
    font-size: 0.8rem;
  }

  #answer-section label {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }

  #question-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: 0.8rem;
  }

  #question-actions button {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .feedback-buttons-row {
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-sm);
  }

  .feedback-btn {
    padding: var(--space-sm) var(--space-md);
    min-width: 100%;
    flex-direction: row;
    justify-content: center;
  }

  .rating-buttons-group {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-left: 0;
    padding-top: var(--space-sm);
    margin-left: 0;
    margin-top: var(--space-sm);
    justify-content: center;
    width: 100%;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text,
  .hero-img-container {
    max-width: 100%;
  }

  .problem-solution-section {
    flex-direction: column;
    padding-top: 40px;
  }

  .media-container,
  .content-container {
    max-width: 100%;
  }

  .benefits-container {
    flex-direction: column;
    align-items: center;
  }

  .benefit-item {
    width: 80%;
  }

  .pricing-table {
    overflow-x: auto;
    margin: 0 -20px;
  }

  table {
    min-width: 600px;
  }

  /* Quiz layout responsive adjustments */
  .quiz-layout {
    min-height: auto;
  }

  .question-text h4 {
    font-size: 1rem;
  }

  .result-indicator {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  #content-area {
    padding: var(--space-sm);
  }

  #quiz-container {
    padding: var(--space-sm);
  }

  .tab-controls {
    padding: var(--space-sm);
  }

  .control-group select {
    padding: 8px 10px;
    font-size: 13px;
  }

  .tab-controls button#fetchquiz {
    padding: 10px 16px;
    font-size: 14px;
  }

  .question-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  #question-actions button {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    flex: 1;
    min-width: 100px;
  }

  .fundraising-icon {
    font-size: 2rem;
  }

  .fundraising-title {
    font-size: 0.95rem;
  }

  .fundraising-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Header mobile responsiveness */
@media (max-width: 768px) {
  #header {
    padding: 0 var(--space-md);
  }

  #site-name {
    font-size: 1.2rem;
  }

  #logo {
    width: 40px;
    height: 40px;
  }

  #quiz-nav {
    display: none;
  }

  #hamburger-menu {
    display: flex;
  }

  #hamburger-menu-content {
    top: 60px;
    right: var(--space-md);
  }

  #user-name {
    display: none;
  }

  #user-display {
    padding: 4px 8px;
  }

  #btn-login {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  #header {
    padding: 0 var(--space-sm);
    height: 60px;
  }

  #logo {
    width: 36px;
    height: 36px;
  }

  #site-name {
    font-size: 1rem;
  }

  #logo-and-name {
    gap: var(--space-sm);
  }
}

/* Footer mobile responsiveness */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }

  .footer-section {
    min-width: 100%;
    text-align: center;
  }

  .footer-section h3 {
    display: block;
    margin-bottom: var(--space-sm);
  }

  .footer-section ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm) var(--space-md);
  }

  .footer-section ul li {
    margin-bottom: 0;
  }

  #page-footer {
    padding: var(--space-xl) var(--space-md) var(--space-md);
  }
}

@media screen and (max-width: 768px) {
  .pricing-table {
    overflow-x: auto;
  }

  table {
    min-width: 600px;
  }
}

/* ============================================
   Toast Notifications
   ============================================ */
#toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  max-width: 400px;
  animation: slideIn 0.3s ease;
}

.toast-info {
  background-color: #3b82f6;
  color: white;
}

.toast-success {
  background-color: #22c55e;
  color: white;
}

.toast-warning {
  background-color: #f59e0b;
  color: white;
}

.toast-error {
  background-color: #ef4444;
  color: white;
}

.toast-message {
  flex: 1;
  margin-right: 12px;
}

.toast-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.8;
}

.toast-close:hover {
  opacity: 1;
}

.toast-fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ============================================
   Loading Spinner
   ============================================ */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   Progress Bar
   ============================================ */
.progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 3px;
  margin-bottom: 20px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ============================================
   Button Styles
   ============================================ */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background-color: #f1f5f9;
  color: var(--text-dark);
  padding: 12px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-success {
  background-color: var(--success-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-success:hover {
  background-color: var(--success-hover);
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  opacity: 0.9;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.875rem;
}

/* ============================================
   Answer Highlighting
   ============================================ */
.correct-answer {
  background-color: #dcfce7 !important;
  border-color: #22c55e !important;
  color: #166534 !important;
}

.incorrect-answer {
  background-color: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

.result-correct {
  color: #22c55e;
  font-weight: bold;
  font-size: 1.2rem;
}

.result-incorrect {
  color: #ef4444;
  font-weight: bold;
}

/* ============================================
   Score Display
   ============================================ */
#quiz-results {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  margin: 20px 0;
}

#quiz-results.score-high {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border: 2px solid #22c55e;
}

#quiz-results.score-medium {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
}

#quiz-results.score-low {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border: 2px solid #ef4444;
}

.score-display {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.score-high .score-display { color: #166534; }
.score-medium .score-display { color: #92400e; }
.score-low .score-display { color: #991b1b; }

.score-details {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 8px;
}

.score-message {
  font-size: 1.25rem;
  font-weight: 600;
}

/* ============================================
   Admin Panel Styles
   ============================================ */
.admin-panel {
  background: linear-gradient(135deg, #6200EA, #7c3aed);
  color: white;
  border-radius: 12px;
  padding: 20px;
}

.admin-panel h3 {
  margin: 0 0 16px 0;
  font-size: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 8px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
}

.stat-label {
  opacity: 0.8;
}

.stat-value {
  font-weight: 600;
}

.stat-value.success { color: #86efac; }
.stat-value.danger { color: #fca5a5; }
.stat-value.warning { color: #fde047; }

.admin-badge {
  background: linear-gradient(135deg, #6200EA, #7c3aed);
  color: white;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

/* ============================================
   Popup Improvements
   ============================================ */
.popup-close {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--danger-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: background-color 0.2s;
}

.popup-close:hover {
  background-color: #dc2626;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.data-table th {
  background-color: var(--primary-color);
  color: white;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.data-table th:hover {
  background-color: var(--primary-dark);
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.data-table tbody tr:hover {
  background-color: #f8fafc;
}

/* ============================================
   No Explanation Message
   ============================================ */
.no-explanation {
  color: var(--text-medium);
  font-style: italic;
  text-align: center;
  padding: 40px;
}

/* ============================================
   Admin Navigation Links
   ============================================ */
/* Admin link in nav dropdown */
.admin-nav-link {
  display: block;
  padding: 12px 16px !important;
  margin-top: 8px;
  background: var(--gradient-accent) !important;
  color: white !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s ease;
}

.admin-nav-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  text-decoration: none;
}

/* Admin link in user dropdown */
.admin-dropdown-link {
  display: block;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: var(--gradient-accent);
  color: white !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}

.admin-dropdown-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  text-decoration: none;
}

/* Admin badge in header */
.admin-header-badge {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.9);
  color: white !important;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.admin-header-badge:hover {
  background: rgba(139, 92, 246, 1);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Legacy support */
#admin-link {
  display: block;
  padding: 12px 16px;
  margin-top: 8px;
  background: var(--gradient-accent);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s ease;
}

#admin-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  text-decoration: none;
}

/* ============================================
   Footer - Modern Design
   ============================================ */
#page-footer {
  background: var(--bg-dark);
  color: white;
  padding: var(--space-2xl) var(--space-xl) var(--space-lg);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: var(--space-xl);
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.footer-section p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer-section ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ============================================
   Rating Buttons (Thumbs Up/Down)
   ============================================ */
.rating-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0 4px;
}

.rating-btn:hover:not(.disabled) {
  transform: scale(1.1);
}

#likeButton:hover:not(.disabled) {
  border-color: var(--success-color);
  background: rgba(16, 185, 129, 0.1);
}

#dislikeButton:hover:not(.disabled) {
  border-color: var(--danger-color);
  background: rgba(239, 68, 68, 0.1);
}

.rating-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rating-btn.rated#likeButton {
  background: var(--success-color);
  border-color: var(--success-color);
  opacity: 1;
}

.rating-btn.rated#dislikeButton {
  background: var(--danger-color);
  border-color: var(--danger-color);
  opacity: 1;
}

/* ============================================
   Feedback Buttons (Quiz Actions)
   ============================================ */
.feedback-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: var(--space-md);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
}

.feedback-btn-link {
  text-decoration: none;
}

.feedback-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--space-md) var(--space-lg);
  min-width: 80px;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.feedback-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feedback-btn:hover:not(:disabled) .feedback-btn-text {
  color: white;
}

.feedback-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feedback-btn.flagged {
  border-color: var(--success-color);
  background: rgba(16, 185, 129, 0.1);
}

.feedback-btn-icon {
  font-size: 1.25rem;
}

.feedback-btn-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rating-buttons-group {
  display: flex;
  gap: var(--space-sm);
  padding-left: var(--space-md);
  border-left: 1px solid var(--border-color);
  margin-left: var(--space-sm);
}

/* ============================================
   Profile Dropdown Link
   ============================================ */
.profile-dropdown-link {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--bg-light);
  color: var(--text-dark) !important;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
}

.profile-dropdown-link:hover {
  background: var(--primary-color);
  color: white !important;
  text-decoration: none;
}

/* ============================================
   Page Hero Headers - Reusable
   ============================================ */
.page-hero {
  background: var(--gradient-hero);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(93, 211, 216, 0.1) 0%, transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.page-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ============================================
   Content Sections - Card Based
   ============================================ */
.content-section {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
}

.section-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.section-card h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--accent-color);
  display: inline-block;
}

.section-card p {
  color: var(--text-medium);
  line-height: 1.8;
}

.section-card a {
  color: var(--accent-orange);
  font-weight: 500;
}

.section-card a:hover {
  text-decoration: underline;
}

/* ============================================
   About Page Enhanced Styles
   ============================================ */
#about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
}

#about-container section {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#about-container section:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

#about-container h1 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: var(--space-2xl);
}

#about-container h2 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--accent-color);
  display: inline-block;
}

#about-container p {
  color: var(--text-medium);
  line-height: 1.8;
  font-size: 1rem;
}

#about-container a {
  color: var(--accent-orange);
  font-weight: 500;
}

/* ============================================
   Fundraising Page Enhanced Styles
   ============================================ */
#fundraising-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
}

#fundraising-container h1 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
}

#fundraising-container h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

#fundraising-container h3 {
  color: var(--text-dark);
  font-size: 1.25rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

#fundraising-container p {
  color: var(--text-medium);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

#fundraising-container a {
  color: var(--accent-orange);
  font-weight: 500;
}

.donate-button {
  text-align: center;
  margin: var(--space-2xl) 0;
}

.donate-button a {
  display: inline-block;
  padding: var(--space-md) var(--space-2xl);
  background: var(--gradient-cta);
  color: white !important;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.donate-button a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
  text-decoration: none;
}

/* ============================================
   Quiz Page Enhanced Styles
   ============================================ */
#quiz-container {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

#quiz-container h3 {
  color: var(--primary-color);
  text-align: center;
  padding: var(--space-lg) var(--space-lg) 0;
}

.tab-controls {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: none;
  border: none;
  padding: var(--space-xl);
}

.tab-button.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 -2px 10px rgba(30, 58, 95, 0.3);
}

.tab-controls button#fetchquiz {
  background: var(--gradient-cta);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.tab-controls button#fetchquiz:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

/* Quiz result styles */
.quiz-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: var(--space-md);
}

.question-difficulty.easy {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.question-difficulty.medium {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.question-difficulty.hard {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

/* Fundraising sidebar card enhanced */
.quiz-sidebar #google-ads.fundraising-card {
  background: white;
  border: 2px solid var(--accent-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(93, 211, 216, 0.15);
}

.fundraising-card .fundraising-icon {
  color: var(--accent-orange);
}

.fundraising-card .fundraising-btn {
  background: var(--gradient-cta);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.fundraising-card .fundraising-btn:hover {
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

/* ============================================
   Profile/Dashboard Enhanced Styles
   ============================================ */
.profile-avatar {
  background: var(--gradient-primary) !important;
}

.profile-badge {
  background: var(--gradient-accent) !important;
}

.stat-card .stat-value {
  color: var(--primary-color);
}

.stat-card.accent .stat-value {
  color: var(--accent-color);
}

.section-title {
  border-bottom-color: var(--accent-color);
}

/* ============================================
   CTA Buttons Enhanced
   ============================================ */
.btn-cta {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--gradient-cta);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
  text-decoration: none;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
  color: white;
  text-decoration: none;
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

.feature-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card .feature-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto var(--space-lg);
}

.feature-card h3 {
  color: var(--text-dark);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.feature-card p {
  color: var(--text-medium);
  line-height: 1.6;
}

/* ============================================
   Highlight Box
   ============================================ */
.highlight-box {
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  margin: var(--space-xl) 0;
}

.highlight-box h3 {
  color: white;
  margin-bottom: var(--space-md);
}

.highlight-box p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
}

/* ============================================
   Section Badge - Reusable Component
   ============================================ */
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(93, 211, 216, 0.15);
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

/* ============================================
   Why CramForce Section
   ============================================ */
.why-cramforce {
  padding: 80px 5vw;
  background: var(--bg-white);
}

.why-cramforce-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-cramforce-content {
  flex: 1;
}

.why-cramforce-content h2 {
  font-size: 2.25rem;
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
}

.why-cramforce-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.ai-highlight {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(93, 211, 216, 0.1), rgba(30, 58, 95, 0.05));
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--accent-color);
  margin-top: var(--space-xl);
}

.ai-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.ai-highlight strong {
  color: var(--primary-color);
  font-size: 1.1rem;
  display: block;
  margin-bottom: var(--space-sm);
}

.ai-highlight p {
  margin: 0;
  font-size: 1rem;
}

.why-cramforce-image {
  flex: 0 0 380px;
}

.why-cramforce-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* ============================================
   Features Section - Redesigned
   ============================================ */
.features-section {
  padding: 80px 5vw;
  background: var(--bg-light);
}

.features-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.features-header h2 {
  font-size: 2.25rem;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.features-header p {
  font-size: 1.1rem;
  color: var(--text-medium);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card-new {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card-new:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card-new h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.feature-card-new p {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ============================================
   Pricing Section - Modern Cards
   ============================================ */
.pricing-section {
  padding: 80px 5vw;
  background: var(--bg-white);
}

.pricing-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.pricing-header h2 {
  font-size: 2.25rem;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.pricing-header p {
  font-size: 1.1rem;
  color: var(--text-medium);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-cta);
  color: white;
  padding: 6px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.pricing-card-featured {
  border-color: var(--accent-orange);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.2);
}

.pricing-card-featured .pricing-card-header {
  background: linear-gradient(135deg, var(--accent-orange), #fb923c);
}

.pricing-card-featured .pricing-card-header h3,
.pricing-card-featured .pricing-card-header .pricing-tagline {
  color: white;
}

.pricing-card-premium {
  border-color: #8b5cf6;
}

.pricing-card-premium .pricing-card-header {
  background: linear-gradient(135deg, #6200EA, #8b5cf6);
}

.pricing-card-premium .pricing-card-header h3,
.pricing-card-premium .pricing-card-header .pricing-tagline {
  color: white;
}

.pricing-card-header {
  padding: var(--space-lg);
  background: var(--bg-light);
  text-align: center;
}

.pricing-card-header h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.pricing-tagline {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin: 0;
}

.pricing-card-body {
  padding: var(--space-lg);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-medium);
  border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .check {
  color: var(--success-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.pricing-features .cross {
  color: var(--text-light);
  font-size: 1.1rem;
}

.pricing-cta {
  text-align: center;
}

.pricing-btn {
  display: inline-block;
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--gradient-primary);
  color: white;
}

.pricing-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pricing-btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.pricing-btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

.pricing-btn-featured {
  background: var(--gradient-cta);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.pricing-btn-featured:hover {
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.pricing-btn-premium {
  background: linear-gradient(135deg, #6200EA, #8b5cf6);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.pricing-btn-premium:hover {
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding: 80px 5vw;
  background: var(--gradient-hero);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.25rem;
  color: white;
  margin-bottom: var(--space-md);
}

.cta-section p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
}

/* ============================================
   Responsive - New Sections
   ============================================ */
@media (max-width: 1024px) {
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card-featured {
    order: -1;
  }
}

@media (max-width: 900px) {
  .why-cramforce-container {
    flex-direction: column;
    text-align: center;
  }

  .why-cramforce-image {
    flex: 0 0 auto;
    max-width: 300px;
    order: -1;
  }

  .ai-highlight {
    flex-direction: column;
    text-align: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card-featured {
    order: 0;
  }

  .why-cramforce,
  .features-section,
  .pricing-section,
  .cta-section {
    padding: 60px 20px;
  }

  .why-cramforce-content h2,
  .features-header h2,
  .pricing-header h2,
  .cta-section h2 {
    font-size: 1.75rem;
  }
}

/* ============================================
   Footer Enhanced - Navy Theme
   ============================================ */
#page-footer {
  background: var(--gradient-hero);
  color: white;
}

.footer-section h3 {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.footer-section ul li a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top-color: rgba(93, 211, 216, 0.2);
}
