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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #FAF9F5;
  color: #000;
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: #000;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.beta-badge {
  display: block;
  align-items: center;
  color: #1e3a8a;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.25rem 0.25rem;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.beta-badge svg {
  width: 20px;
  height: 20px;
  margin-right: 0.2rem;
}

.subtitle {
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.subtext {
  font-size: 0.9rem;
  color: #6b7280;
  display: none;;
}

.category-card {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.category-card-badge {
  width: 64px;
  height: 64px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-card-badge.blue {
  background: #dbeafe;
  color: #1e40af;
}

.category-card-badge.teal {
  background: #ccfbf1;
  color: #115e59;
}

.category-card-badge.orange {
  background: #fed7aa;
  color: #9a3412;
}

.category-card-badge.purple {
  background: #e9d5ff;
  color: #6b21a8;
}

.category-card-badge.green {
  background: #d1fae5;
  color: #065f46;
}

.category-card-badge.red {
  background: #fee2e2;
  color: #991b1b;
}

.category-card-badge.yellow {
  background: #fef3c7;
  color: #92400e;
}

.category-card-badge.indigo {
  background: #e0e7ff;
  color: #3730a3;
}

.category-card-content {
  flex: 1;
}

.category-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #000;
}

.category-card-subtitle {
  color: #000;
  font-size: 0.95rem;
}

.module-header {
  margin: 2rem 0 1rem 0;
}

.module-header:first-child {
  margin-top: 0;
}

.module-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.lesson-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lesson-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.lesson-card-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.lesson-card-content {
  flex: 1;
}

.lesson-card-title {
  font-weight: 600;
  color: #000;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.lesson-card-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

.icon-wrapper {
  width: 40px;
  height: 40px;
  background: #f0ede8;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon {
  width: 24px;
  height: 24px;
  color: #374151;
  flex-shrink: 0;
}

.footer {
  text-align: center;
  margin-top: 4rem;
  color: #6b7280;
  font-size: 0.875rem;
}

svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden {
  display: none !important;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: #f7f6f2;
  border-color: #d1d5db;
}

.back-button .icon {
  width: 20px;
  height: 20px;
}

.lesson-content {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.lesson-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #000;
}

.lesson-content li {
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.8;
  color: #000;
}

.quiz-container {
  margin-bottom: 2rem;
}

.question-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.question-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  color: #000;
  width: 100%;
  font-family: inherit;
  user-select: none;
  -webkit-tap-highlight-color: transparent; 
}

.option:hover:not(:disabled) {
}

.option.selected {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
}

.option.correct {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}

.option.incorrect {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

.option:disabled {
  cursor: not-allowed;
}

.option-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.check-icon {
  color: #10b981;
  flex-shrink: 0;
}

.x-icon {
  color: #ef4444;
  flex-shrink: 0;
}

.submit-button {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
  font-family: inherit;
}

.submit-button:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-2px);
}

.submit-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.results {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  text-align: center;
}

.score {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.score.perfect {
  color: #10b981;
}

.score.good {
  color: #3b82f6;
}

.score.needs-work {
  color: #f59e0b;
}

.results-message {
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.6;
}

.results-message.perfect {
  color: #065f46;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .lessons-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 1rem;
  }
}

.lesson-content li {
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.8;
  color: #000;
}

/* Enhanced content formatting */
.content-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin: 1.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.content-section h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #374151;
  margin: 1.25rem 0 0.75rem 0;
}

.content-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4b5563;
  margin: 0.75rem 0 0.5rem 0;
}

.domain-breakdown {
  margin: 1.5rem 0;
}

.domain-card {
  background: #f7f6f2;
  border: 1px solid #ebe9e3;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.domain-card h4 {
  color: #000;
  margin-top: 0;
}

.highlight-list {
  background: #f7f6f2;
  border: 1px solid #ebe9e3;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

.success-factor {
  background: #f7f6f2;
  border: 1px solid #ebe9e3;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1rem 0;
}

.success-factor h4 {
  color: #000;
  margin-top: 0;
}

.key-insight {
  background: #f7f6f2;
  border: 1px solid #ebe9e3;
  border-radius: 0.375rem;
  padding: 0.75rem;
  margin: 0.75rem 0;
  font-weight: 500;
}

.strategy-list {
  background: #f7f6f2;
  border: 1px solid #ebe9e3;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1rem 0;
}

.strategy-list li {
  margin-bottom: 0.75rem;
}

.principle-card {
  background: #f7f6f2;
  border: 1px solid #ebe9e3;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.principle-card h4 {
  color: #000;
  margin-top: 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comparison-table th {
  background: #f7f6f2;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

.comparison-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

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

.tip-box {
  background: #f7f6f2;
  border: 1px solid #ebe9e3;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

.tip-box strong {
  color: #000;
}

.example-box {
  background: #f7f6f2;
  border: 1px solid #ebe9e3;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

.warning-box {
  background: #f7f6f2;
  border: 1px solid #ebe9e3;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

.faq-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
}

.faq-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2rem;
  text-align: center;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.faq-answer {
  color: #4b5563;
  line-height: 1.6;
}

.faq-answer ul {
  margin-top: 0.5rem;
  margin-left: 1.5rem;
}

.faq-answer li {
  margin-bottom: 0.25rem;
}