/* ============================================
   HARDWARE DETAIL PAGES - PREMIUM GROUPED SPECS
   ============================================ */

/* Spec Groups Container */
.spec-groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Individual Spec Group Card */
.spec-group {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  width: 100%;
  box-sizing: border-box;
}

.spec-group:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* Ensure all spec-group children stay within bounds */
.spec-group > * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Group Header with Icon */
.spec-group-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--color-background-secondary) 0%, var(--color-surface) 100%);
  border-bottom: 1px solid var(--color-border);
}

.spec-group-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

/* SVG Icon variant - no background, icon fills the space */
.spec-group-icon.spec-group-icon-svg {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.spec-group-icon.spec-group-icon-svg svg {
  width: 100%;
  height: 100%;
}

.spec-group-title {
  font-size: var(--text-h4);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin: 0;
}

.spec-group-subtitle {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Spec Group Description - SEO Content */
.spec-group-description {
  padding: var(--space-md) var(--space-lg);
  margin: 0;
  font-size: var(--text-small);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  max-width: 100% !important;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Spec Grid inside Group */
.spec-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--color-border);
}

/* Individual Spec Card */
.spec-card {
  background: var(--color-surface);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: all var(--transition-base);
  position: relative;
}

.spec-card:hover {
  background: var(--color-surface-hover);
}

.spec-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.spec-card:hover::before {
  opacity: 1;
}

.spec-card-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-card-value {
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  word-break: break-word;
}

.spec-card-value.highlight {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.spec-card-value.mono {
  font-family: var(--font-mono);
}

/* Empty/NA Value */
.spec-card-value.na {
  color: var(--color-text-muted);
  font-style: italic;
}

/* Responsive Grid */
@media (min-width: 1200px) {
  .spec-group-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .spec-group-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .spec-group-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .spec-group-grid {
    grid-template-columns: 1fr;
  }
  
  .spec-group-header {
    flex-direction: column;
    text-align: center;
  }
}

/* Features/Instruction Set Grid */
.spec-group-grid.features-grid {
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-sm);
  background: var(--color-surface);
  padding: var(--space-md);
}

.feature-badge-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md) !important;
  text-align: center;
  transition: all var(--transition-base);
  overflow: hidden;
}

.feature-badge-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.15);
}

.feature-badge-card::before {
  display: none;
}

.feature-tag {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Color coding for specific feature types */
.feature-badge-card:has(.feature-tag:is([data-feature*="AVX-512"])) {
  border-color: var(--color-success);
  background: rgba(var(--color-success-rgb), 0.1);
}

@media (max-width: 767px) {
  .spec-group-grid.features-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
}

@media (max-width: 479px) {
  .spec-group-grid.features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   HERO QUICK STATS - ENHANCED
   ============================================ */

.detail-quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.quick-stat {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  min-width: 100px;
  transition: all var(--transition-base);
}

[data-theme="dark"] .quick-stat {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

.quick-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.quick-stat-value {
  font-size: var(--text-h3);
  font-weight: var(--font-weight-extrabold);
  color: white;
  line-height: 1.2;
}

.quick-stat-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ============================================
   FEATURE BADGES
   ============================================ */

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-success-light);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-success);
}

.feature-badge.warning {
  background: var(--color-warning-light);
  border-color: var(--color-warning);
  color: var(--color-warning);
}

.feature-badge.info {
  background: var(--color-info-light);
  border-color: var(--color-info);
  color: var(--color-info);
}

.feature-badge-icon {
  font-size: 1rem;
}

/* ============================================
   NOTES SECTION - AI CONTENT
   ============================================ */

.notes-section {
  margin-top: var(--space-2xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
}

.notes-section h2 {
  padding: var(--space-lg);
  margin: 0;
  background: linear-gradient(135deg, var(--color-background-secondary) 0%, var(--color-surface) 100%);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-h4);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.notes-section h2::before {
  content: '📝';
  font-size: 1.5rem;
}

.notes-content {
  padding: var(--space-xl);
  font-size: var(--text-body);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  max-width: 100%;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Override any inline styles from content */
.notes-content * {
  max-width: 100% !important;
  width: auto !important;
}

.notes-content p {
  margin-bottom: var(--space-md);
  max-width: 100% !important;
  width: 100% !important;
}

.notes-content p:last-child {
  margin-bottom: 0;
}

.notes-content ul,
.notes-content ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
  max-width: 100% !important;
  width: 100% !important;
}

.notes-content li {
  margin-bottom: var(--space-sm);
  max-width: 100% !important;
}

.notes-content ul li {
  list-style: disc;
}

.notes-content ol li {
  list-style: decimal;
}

/* Ensure headings in notes are styled */
.notes-content h3,
.notes-content h4 {
  color: var(--color-text-primary);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-weight: var(--font-weight-semibold);
}

.notes-content h3 {
  font-size: var(--text-h5);
}

.notes-content h4 {
  font-size: var(--text-body);
}

/* ============================================
   COMPARE CTA SECTION
   ============================================ */

.compare-section {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.compare-section h2 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-sm);
}

.compare-section p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  max-width: none;
}

/* ============================================
   BENCHMARK SECTION ENHANCEMENTS
   ============================================ */

.benchmark-section {
  margin-top: var(--space-2xl);
}

.benchmark-section > h2 {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.benchmark-section > h2::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Benchmark Source Description */
.benchmark-source-description {
  padding: var(--space-md) var(--space-lg);
  margin: 0;
  font-size: var(--text-small);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  background: var(--color-background-secondary);
  border-bottom: 1px solid var(--color-border);
  max-width: 100% !important;
  width: 100%;
  box-sizing: border-box;
}

/* No Benchmark Message */
.no-benchmarks {
  padding: var(--space-2xl);
  text-align: center;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
}

.no-benchmarks-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

/* ============================================
   PREMIUM SPEC GRID (LEGACY SUPPORT)
   ============================================ */

.specs-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.spec-card-premium {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.spec-card-premium:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.spec-card-premium .spec-card-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.spec-card-premium .spec-card-value {
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}


/* ============================================
   BENCHMARK V2 - STATE OF ART VISUALIZATION
   ============================================ */

.benchmark-chart-item-v2 {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.benchmark-chart-item-v2:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.benchmark-chart-item-v2:last-child {
  margin-bottom: 0;
}

/* Header with name, rank, and score */
.benchmark-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
  gap: var(--space-md);
}

.benchmark-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.benchmark-item-name {
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.benchmark-item-rank {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  background: var(--color-background-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.benchmark-item-score {
  text-align: right;
  flex-shrink: 0;
}

.benchmark-item-score .score-value {
  font-size: var(--text-h4);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  font-family: var(--font-mono);
}

.benchmark-item-score .score-unit {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-left: 4px;
}

/* Dual-color progress bar */
.benchmark-bar-v2 {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.benchmark-bar-track-v2 {
  flex: 1;
  height: 28px;
  background: var(--color-background-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-border);
}

.benchmark-bar-fill-v2 {
  height: 100%;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-sm);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-width: 40px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  /* Default fallback - should be overridden by perf classes */
  background: linear-gradient(90deg, #6b7280 0%, #9ca3af 100%);
}

/* Performance-based colors for main bar - using !important to ensure override */
.benchmark-bar-fill-v2.perf-low {
  background: linear-gradient(90deg, #ef4444 0%, #f97316 100%) !important;
}
.benchmark-bar-fill-v2.perf-mid {
  background: linear-gradient(90deg, #f97316 0%, #eab308 100%) !important;
}
.benchmark-bar-fill-v2.perf-good {
  background: linear-gradient(90deg, #22c55e 0%, #06b6d4 100%) !important;
}
.benchmark-bar-fill-v2.perf-excellent {
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%) !important;
}

.benchmark-bar-fill-v2::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.benchmark-bar-percent {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}

.benchmark-bar-max {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Comparison section (always visible) */
.benchmark-comparison-details {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
}

.benchmark-comparison-expanded .benchmark-comparison-content {
  display: block;
}

.benchmark-comparison-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  font-weight: var(--font-weight-medium);
}

.benchmark-comparison-header .compare-chart-icon {
  transform: scale(1.1);
}

.benchmark-comparison-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  padding: var(--space-sm) 0;
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-base);
  list-style: none;
}

.benchmark-comparison-toggle::-webkit-details-marker {
  display: none;
}

.benchmark-comparison-toggle:hover {
  color: var(--color-primary);
}

.toggle-icon {
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3D Compare Chart SVG Icon */
.compare-chart-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.benchmark-comparison-toggle:hover .compare-chart-icon {
  transform: scale(1.15) translateY(-1px);
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.4));
}

details[open] .compare-chart-icon {
  transform: scale(1.1);
}

.toggle-text {
  flex: 1;
}

.toggle-arrow {
  font-size: 0.7rem;
  transition: transform var(--transition-base);
}

details[open] .toggle-arrow {
  transform: rotate(180deg);
}

.benchmark-comparison-content {
  padding-top: var(--space-lg);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Comparison sections */
.comparison-section {
  margin-bottom: var(--space-xl);
}

.comparison-section:last-child {
  margin-bottom: 0;
}

.comparison-section-title {
  font-size: var(--text-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Comparison chart rows */
.comparison-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.comparison-row {
  display: grid;
  grid-template-columns: 50px 1fr 2fr 80px;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-background-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.comparison-row:hover {
  background: var(--color-surface-hover);
}

.comparison-row.is-current {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid var(--color-primary);
}

.comparison-rank {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-muted);
  text-align: center;
}

.comparison-row:nth-child(1) .comparison-rank { color: #fbbf24; }
.comparison-row:nth-child(2) .comparison-rank { color: #9ca3af; }
.comparison-row:nth-child(3) .comparison-rank { color: #cd7f32; }

.comparison-name {
  font-size: var(--text-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-base);
}

.comparison-name:hover {
  color: var(--color-primary);
}

.comparison-name.current-cpu {
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.current-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: var(--font-weight-bold);
  color: white;
  background: var(--gradient-primary);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  margin-left: var(--space-xs);
  vertical-align: middle;
}

.comparison-bar-container {
  height: 20px;
  background: var(--color-background-tertiary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.comparison-bar {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 4px;
  position: relative;
  /* Default fallback */
  background: linear-gradient(90deg, #6b7280 0%, #9ca3af 100%);
}

/* Performance-based colors for comparison bars - using !important */
.comparison-bar.perf-low {
  background: linear-gradient(90deg, #ef4444 0%, #f97316 100%) !important;
}
.comparison-bar.perf-mid {
  background: linear-gradient(90deg, #f97316 0%, #eab308 100%) !important;
}
.comparison-bar.perf-good {
  background: linear-gradient(90deg, #22c55e 0%, #06b6d4 100%) !important;
}
.comparison-bar.perf-excellent {
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%) !important;
}

.comparison-bar.current-bar {
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%) !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.comparison-score {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .comparison-row {
    grid-template-columns: 40px 1fr 60px;
  }
  
  .comparison-bar-container {
    display: none;
  }
  
  .benchmark-item-header {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .benchmark-item-score {
    text-align: left;
  }
  
  .benchmark-bar-v2 {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
  }
  
  .benchmark-bar-max {
    text-align: right;
  }
}

/* Dark mode enhancements */
[data-theme="dark"] .benchmark-bar-track-v2 {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .comparison-row {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .comparison-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .comparison-row.is-current {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
}


/* ============================================
   SECTION H2 TITLES - SEO FRIENDLY STYLING
   ============================================ */

/* All main section h2 titles on detail pages */
.specs-section > h2,
.benchmark-section > h2,
.notes-section > h2,
.compare-section > h2 {
  font-size: var(--text-h2) !important;
  font-weight: var(--font-weight-bold) !important;
  text-align: center !important;
  margin-top: var(--space-3xl) !important;
  margin-bottom: var(--space-xl) !important;
  color: var(--color-text-primary) !important;
  position: relative !important;
  padding-bottom: var(--space-md) !important;
  display: block !important;
  width: 100% !important;
}

/* Decorative underline for section titles */
.specs-section > h2::after,
.benchmark-section > h2::after,
.notes-section > h2::after,
.compare-section > h2::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 80px !important;
  height: 4px !important;
  background: var(--gradient-primary) !important;
  border-radius: var(--radius-full) !important;
}

/* First section needs less top margin (after hero) */
.specs-section > h2 {
  margin-top: var(--space-2xl) !important;
}

/* Override existing benchmark section h2 styles */
.benchmark-section > h2 {
  justify-content: center !important;
}

.benchmark-section > h2::before {
  display: none !important;
}

/* Override notes section h2 */
.notes-section h2 {
  background: transparent !important;
  border-bottom: none !important;
  justify-content: center !important;
}

.notes-section h2::before {
  display: none !important;
}

/* Responsive adjustments for section titles */
@media (max-width: 768px) {
  .specs-section > h2,
  .benchmark-section > h2,
  .notes-section > h2,
  .compare-section > h2 {
    font-size: var(--text-h3) !important;
    margin-top: var(--space-2xl) !important;
    margin-bottom: var(--space-lg) !important;
  }
}

@media (max-width: 480px) {
  .specs-section > h2,
  .benchmark-section > h2,
  .notes-section > h2,
  .compare-section > h2 {
    font-size: var(--text-h4) !important;
    margin-top: var(--space-xl) !important;
  }
}


/* ============================================
   COMPETITOR EQUIVALENT SECTION
   ============================================ */

.competitor-section {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.competitor-section h2 {
  font-size: var(--text-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  text-align: center;
}

.competitor-description {
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--line-height-relaxed);
}

.competitor-card {
  background: linear-gradient(135deg, var(--color-background-secondary) 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.competitor-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.competitor-card-content {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.competitor-info {
  flex: 1;
  min-width: 200px;
}

.competitor-name {
  font-size: var(--text-h4);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-xs) 0;
}

.competitor-meta {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin: 0;
}

.competitor-card-content .btn {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .competitor-card-content {
    flex-direction: column;
    text-align: center;
  }
  
  .competitor-info {
    width: 100%;
  }
  
  .competitor-card-content .btn {
    width: 100%;
  }
}

/* ============================================
   POPULAR COMPARISONS SECTION
   ============================================ */

.comparisons-section {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.comparisons-section h2 {
  font-size: var(--text-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  text-align: center;
}

.comparisons-description {
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--line-height-relaxed);
}

/* Uses .hp-compare-grid and .hp-compare-card from homepage-sections.css */

