/* ═══════════════════════════════════════════════════
   HEALTH TEACHING PAGE — App-like Design
   ═══════════════════════════════════════════════════ */

/* ── Page Header ── */
.health-teaching-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.health-teaching-header .icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  background: var(--accent-primary-light);
}

.health-teaching-header .icon-wrapper i {
  width: 32px;
  height: 32px;
  color: var(--accent-primary);
}

.health-teaching-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.health-teaching-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Section Cards (Accordion style) ── */
.ht-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.ht-section-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
}

.ht-section-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.ht-section-card:hover {
  border-color: rgba(233, 69, 96, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Section toggle button */
.ht-section-toggle {
  width: 100%;
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  text-align: inherit;
  color: var(--text-primary);
  transition: background 0.2s;
}

.ht-section-toggle:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ht-section-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.ht-section-icon i {
  width: 22px;
  height: 22px;
}

.ht-section-title-group {
  flex: 1;
}

.ht-section-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.ht-section-chevron {
  transition: transform 0.3s ease;
  color: var(--text-tertiary);
}

.ht-section-card.active .ht-section-chevron {
  transform: rotate(180deg);
}

[dir="rtl"] .ht-section-card.active .ht-section-chevron {
  transform: rotate(180deg);
}

/* Section body */
.ht-section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ht-section-card.active .ht-section-body {
  max-height: 20000px;
}

.ht-section-content {
  padding: 0 var(--space-lg) var(--space-lg);
}

/* ── Intro Card Styles ── */
.ht-intro-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.ht-highlight {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.08), rgba(233, 69, 96, 0.04));
  border-radius: 12px;
  padding: var(--space-md) var(--space-lg);
  border-inline-start: 3px solid var(--accent-primary);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

/* ── Comparison Table ── */
.ht-comparison-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.ht-comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.ht-comparison-table thead th {
  background: rgba(233, 69, 96, 0.08);
  padding: var(--space-md);
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-primary);
  text-align: center;
}

.ht-comparison-table tbody td {
  padding: var(--space-md);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  line-height: 1.6;
  vertical-align: top;
}

.ht-comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.ht-comparison-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* ── Symptom Categories ── */
.ht-symptoms-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.ht-symptom-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ht-symptom-cat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: var(--space-lg);
  transition: all 0.3s;
}

.ht-symptom-cat:hover {
  border-color: rgba(233, 69, 96, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ht-symptom-cat-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.ht-symptom-cat-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ht-symptom-cat-icon i {
  width: 18px;
  height: 18px;
}

.ht-symptom-cat-header h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.ht-symptom-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.ht-symptom-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
}

.ht-symptom-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  margin-top: 8px;
  background: var(--accent-primary);
  opacity: 0.6;
}

/* ── Prevention Strategies ── */
.ht-prevention-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.ht-strategies {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.ht-strategy-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: var(--space-lg);
  transition: all 0.3s;
}

.ht-strategy-card:hover {
  border-color: rgba(233, 69, 96, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ht-strategy-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.ht-strategy-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ht-strategy-icon i {
  width: 20px;
  height: 20px;
}

.ht-strategy-header h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.ht-strategy-subtitle {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
  padding-inline-start: 52px;
}

.ht-tips {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-inline-start: 4px;
}

.ht-tip {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.ht-tip:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-color);
}

.ht-tip-bullet {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

.ht-tip-content h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px;
}

.ht-tip-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ── Final Note ── */
.ht-final-note {
  text-align: center;
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.08), rgba(46, 204, 113, 0.08));
  border-radius: 16px;
  margin-top: var(--space-lg);
}

.ht-final-note .ht-final-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ht-final-note .ht-final-icon i {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
}

.ht-final-note p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 500;
}

/* ── Navigation ── */
.ht-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}

/* ═══════════════════════════════════════════════════
   NEW ASSESSMENT — App-like Design
   ═══════════════════════════════════════════════════ */

/* ── Dimension Progress Indicator ── */
.assessment-dimension-progress {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  padding: var(--space-sm) 0;
}

.dim-progress-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border-color);
  transition: all 0.3s;
  position: relative;
}

.dim-progress-dot.active {
  background: var(--accent-primary);
}

.dim-progress-dot.completed {
  background: var(--accent-green);
}

/* ── Dimension Header Badge ── */
.assessment-dim-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(233, 69, 96, 0.08);
  border-radius: 12px;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(233, 69, 96, 0.15);
}

.assessment-dim-badge .dim-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.assessment-dim-badge .dim-badge-icon i {
  width: 16px;
  height: 16px;
}

.assessment-dim-badge .dim-badge-text {
  flex: 1;
}

.assessment-dim-badge .dim-badge-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

.assessment-dim-badge .dim-badge-text p {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0;
}

/* ── Question Card (New) ── */
.new-question-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: var(--space-xl);
  margin-bottom: var(--space-md);
  animation: scaleIn 0.3s ease;
}

.new-question-subtitle {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.new-question-subtitle i {
  width: 14px;
  height: 14px;
}

.new-question-text {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

/* ── Custom Answer Options ── */
.new-response-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.new-response-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: inherit;
  width: 100%;
}

.new-response-option:hover {
  background: rgba(233, 69, 96, 0.05);
  border-color: rgba(233, 69, 96, 0.3);
  color: var(--text-primary);
}

.new-response-option.selected {
  background: rgba(233, 69, 96, 0.1);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.new-response-option .option-radio {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.new-response-option.selected .option-radio {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
}

.new-response-option.selected .option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

/* ── Question Counter ── */
.new-question-counter {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

/* ═══════════════════════════════════════════════════
   NEW RESULTS — Per-dimension advice cards
   ═══════════════════════════════════════════════════ */

.new-results-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.dim-result-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: var(--space-xl);
  animation: scaleIn 0.4s ease;
}

.dim-result-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.dim-result-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dim-result-icon i {
  width: 24px;
  height: 24px;
}

.dim-result-info h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.dim-result-info .dim-result-level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.dim-result-info .dim-result-level i {
  width: 12px;
  height: 12px;
}

/* Score bar */
.dim-score-bar {
  margin-bottom: var(--space-lg);
}

.dim-score-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
  font-size: 0.85rem;
}

.dim-score-bar-header .score-label {
  color: var(--text-tertiary);
}

.dim-score-bar-header .score-value {
  font-weight: 600;
}

.dim-score-bar-track {
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.dim-score-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Advice list */
.dim-advice-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.dim-advice-section h4 i {
  width: 16px;
  height: 16px;
}

.dim-advice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.dim-advice-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.dim-advice-list li:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-color);
}

.dim-advice-list li .advice-bullet {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.dim-advice-list li .advice-bullet i {
  width: 12px;
  height: 12px;
}

/* ── Overall Score Summary ── */
.overall-score-summary {
  text-align: center;
  padding: var(--space-xl);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: var(--space-xl);
}

.overall-score-ring-wrapper {
  margin: var(--space-lg) 0;
}

.overall-score-label {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-xs);
}

.overall-score-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
}

.overall-score-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: var(--space-md);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .ht-section-toggle {
    padding: var(--space-md);
  }
  
  .ht-section-content {
    padding: 0 var(--space-md) var(--space-md);
  }
  
  .ht-comparison-table {
    font-size: 0.85rem;
  }
  
  .ht-comparison-table thead th,
  .ht-comparison-table tbody td {
    padding: var(--space-sm);
  }
  
  .ht-strategy-subtitle {
    padding-inline-start: 0;
  }
  
  .new-question-card {
    padding: var(--space-lg);
  }
  
  .dim-result-card {
    padding: var(--space-lg);
  }
}

/* ── Gallery & Video ── */
.ht-gallery-intro,
.ht-video-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.ht-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.ht-gallery-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
}

.ht-gallery-card:hover {
  border-color: rgba(233, 69, 96, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.ht-gallery-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.ht-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ht-gallery-card-content {
  padding: var(--space-md) var(--space-lg);
}

.ht-gallery-card-content h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs);
}

.ht-gallery-card-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.ht-video-wrapper {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}

.ht-video-player {
  width: 100%;
  display: block;
}
