/* Compare Page Styles */

/* Hero Section */
.compare-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 80px 24px 60px;
  text-align: center;
}
.compare-hero .breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  font-family: "SF-Pro-Regular-Text", sans-serif;
}
.compare-hero .breadcrumb-nav a {
  color: #cdced9;
  text-decoration: none;
}
.compare-hero .breadcrumb-nav a:hover {
  color: #fb5650;
}
.compare-hero .breadcrumb-nav span {
  color: #cdced9;
}
.compare-hero .breadcrumb-nav .current {
  color: #fff;
}
.compare-hero h1 {
  font-family: "SF-Pro-Bold-Text", sans-serif;
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.compare-hero p {
  font-family: "SF-Pro-Regular-Text", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #cdced9;
  max-width: 680px;
  margin: 0 auto;
}

/* Content Container */
.compare-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Styling */
.compare-section {
  padding: 60px 0;
}
.compare-section h2 {
  font-family: "SF-Pro-Bold-Text", sans-serif;
  font-size: 32px;
  color: #1a1a2e;
  margin: 0 0 12px;
  text-align: center;
}
.compare-section .section-subtitle {
  font-family: "SF-Pro-Regular-Text", sans-serif;
  font-size: 16px;
  color: #6b7280;
  text-align: center;
  margin: 0 0 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.compare-section hr.section-divider {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, transparent, #fb5650, transparent);
  max-width: 120px;
  margin: 0 auto 40px;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -24px;
  padding: 0 24px;
}
.comparison-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  font-family: "SF-Pro-Regular-Text", sans-serif;
  font-size: 14px;
}
.comparison-table thead th {
  background: #1a1a2e;
  color: #fff;
  font-family: "SF-Pro-Semi-Bold-Text", sans-serif;
  font-size: 15px;
  padding: 16px 14px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  white-space: nowrap;
}
.comparison-table thead th:first-child {
  text-align: left;
  border-radius: 8px 0 0 0;
  position: sticky;
  left: 0;
  z-index: 11;
  background: #1a1a2e;
  min-width: 160px;
}
.comparison-table thead th:last-child {
  border-radius: 0 8px 0 0;
}
.comparison-table thead th a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.4);
}
.comparison-table thead th a:hover {
  color: #fb5650;
  border-bottom-color: #fb5650;
}
.comparison-table thead th small {
  display: block;
  font-family: "SF-Pro-Regular-Text", sans-serif;
  font-size: 11px;
  font-weight: normal;
  color: #cdced9;
  margin-top: 2px;
}
.comparison-table tbody td {
  padding: 14px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  line-height: 1.4;
}
.comparison-table tbody td:first-child {
  text-align: left;
  font-family: "SF-Pro-Semi-Bold-Text", sans-serif;
  color: #1a1a2e;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 5;
  min-width: 160px;
}
.comparison-table tbody tr:nth-child(even) td {
  background: #f9fafb;
}
.comparison-table tbody tr:nth-child(even) td:first-child {
  background: #f9fafb;
}
.comparison-table tbody tr:hover td {
  background: #fef2f2;
}
.comparison-table tbody tr:hover td:first-child {
  background: #fef2f2;
}
.comparison-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 8px;
}
.comparison-table tbody tr:last-child td:last-child {
  border-radius: 0 0 8px 0;
}

/* Price tags */
.price-low {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-family: "SF-Pro-Semi-Bold-Text", sans-serif;
}
.price-medium {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-family: "SF-Pro-Semi-Bold-Text", sans-serif;
}
.price-high {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-family: "SF-Pro-Semi-Bold-Text", sans-serif;
}

/* Scroll hint for mobile */
.scroll-hint {
  display: none;
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 12px;
  font-family: "SF-Pro-Regular-Text", sans-serif;
}

/* Decision Guide Cards */
.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.decision-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.decision-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: #fb5650;
}
.decision-card h3 {
  font-family: "SF-Pro-Semi-Bold-Text", sans-serif;
  font-size: 18px;
  color: #1a1a2e;
  margin: 0 0 12px;
}
.decision-card .recommended-tech {
  display: inline-block;
  background: #fb5650;
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-family: "SF-Pro-Semi-Bold-Text", sans-serif;
  font-size: 14px;
  margin-bottom: 8px;
}
.decision-card .alt-tech {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  padding: 4px 12px;
  border-radius: 6px;
  font-family: "SF-Pro-Semi-Bold-Text", sans-serif;
  font-size: 13px;
  margin-left: 8px;
  margin-bottom: 8px;
}
.decision-card p {
  font-family: "SF-Pro-Regular-Text", sans-serif;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin: 8px 0 0;
}

/* Technology Detail Cards */
.tech-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.tech-detail-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow 0.2s ease;
}
.tech-detail-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.tech-detail-card h3 {
  font-family: "SF-Pro-Bold-Text", sans-serif;
  font-size: 20px;
  color: #fb5650;
  margin: 0 0 4px;
}
.tech-detail-card h3 a {
  color: #fb5650;
  text-decoration: none;
}
.tech-detail-card h3 a:hover {
  text-decoration: underline;
}
.tech-detail-card .tech-full-name {
  font-family: "SF-Pro-Regular-Text", sans-serif;
  font-size: 13px;
  color: #9ca3af;
  margin: 0 0 14px;
}
.tech-detail-card .strengths,
.tech-detail-card .limitations {
  margin: 0 0 12px;
}
.tech-detail-card .strengths h4,
.tech-detail-card .limitations h4 {
  font-family: "SF-Pro-Semi-Bold-Text", sans-serif;
  font-size: 14px;
  margin: 0 0 6px;
}
.tech-detail-card .strengths h4 {
  color: #166534;
}
.tech-detail-card .limitations h4 {
  color: #991b1b;
}
.tech-detail-card .strengths p,
.tech-detail-card .limitations p {
  font-family: "SF-Pro-Regular-Text", sans-serif;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
  margin: 0;
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 0;
}
.faq-item summary {
  font-family: "SF-Pro-Semi-Bold-Text", sans-serif;
  font-size: 16px;
  color: #1a1a2e;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: #fb5650;
  font-weight: bold;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "-";
}
.faq-item .faq-answer {
  font-family: "SF-Pro-Regular-Text", sans-serif;
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
  padding: 0 0 20px;
  margin: 0;
}

/* CTA Section */
.compare-cta {
  background: linear-gradient(135deg, #fb5650 0%, #e63946 100%);
  padding: 60px 24px;
  text-align: center;
  color: #fff;
}
.compare-cta h2 {
  font-family: "SF-Pro-Bold-Text", sans-serif;
  font-size: 32px;
  color: #fff;
  margin: 0 0 12px;
}
.compare-cta p {
  font-family: "SF-Pro-Regular-Text", sans-serif;
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin: 0 0 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.compare-cta .cta-button {
  display: inline-block;
  background: #fff;
  color: #fb5650;
  font-family: "SF-Pro-Semi-Bold-Text", sans-serif;
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.compare-cta .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Internal links section */
.tech-links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}
.tech-links-bar a {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  font-family: "SF-Pro-Semi-Bold-Text", sans-serif;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tech-links-bar a:hover {
  background: #fb5650;
  color: #fff;
  border-color: #fb5650;
}

/* Head-to-Head Comparison Cards */
.h2h-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
}
.h2h-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px 28px;
  transition: box-shadow 0.2s ease;
}
.h2h-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.h2h-card h3 {
  font-family: "SF-Pro-Bold-Text", sans-serif;
  font-size: 22px;
  color: #1a1a2e;
  margin: 0 0 4px;
}
.h2h-card .h2h-tagline {
  font-family: "SF-Pro-Regular-Text", sans-serif;
  font-size: 14px;
  color: #9ca3af;
  margin: 0 0 20px;
}
.h2h-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}
.h2h-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: "SF-Pro-Regular-Text", sans-serif;
  font-size: 14px;
}
.h2h-table thead th {
  background: #f3f4f6;
  color: #1a1a2e;
  font-family: "SF-Pro-Semi-Bold-Text", sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  text-align: center;
  border-bottom: 2px solid #e5e7eb;
}
.h2h-table thead th:first-child {
  text-align: left;
  border-radius: 8px 0 0 0;
}
.h2h-table thead th:last-child {
  border-radius: 0 8px 0 0;
}
.h2h-table thead th a {
  color: #fb5650;
  text-decoration: none;
  font-size: 15px;
}
.h2h-table thead th a:hover {
  text-decoration: underline;
}
.h2h-table tbody td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  line-height: 1.4;
}
.h2h-table tbody td:first-child {
  text-align: left;
  font-family: "SF-Pro-Semi-Bold-Text", sans-serif;
  color: #1a1a2e;
}
.h2h-table tbody td a {
  color: #fb5650;
  text-decoration: none;
}
.h2h-table tbody td a:hover {
  text-decoration: underline;
}
.h2h-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 8px;
}
.h2h-table tbody tr:last-child td:last-child {
  border-radius: 0 0 8px 0;
}
.h2h-verdict {
  font-family: "SF-Pro-Regular-Text", sans-serif;
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid #f3f4f6;
}
.h2h-verdict strong {
  color: #1a1a2e;
  font-family: "SF-Pro-Semi-Bold-Text", sans-serif;
}
.h2h-verdict a {
  color: #fb5650;
  text-decoration: none;
}
.h2h-verdict a:hover {
  text-decoration: underline;
}

/* Materials Quick-Reference Section */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 40px;
}
.material-group {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
}
.material-group h3 {
  font-family: "SF-Pro-Semi-Bold-Text", sans-serif;
  font-size: 16px;
  color: #1a1a2e;
  margin: 0 0 14px;
}
.material-group h3 a {
  color: #fb5650;
  text-decoration: none;
}
.material-group h3 a:hover {
  text-decoration: underline;
}
.material-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.material-group ul li {
  font-family: "SF-Pro-Regular-Text", sans-serif;
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
}
.material-group ul li:last-child {
  border-bottom: none;
}
.material-group ul li a {
  color: #fb5650;
  text-decoration: none;
  font-family: "SF-Pro-Semi-Bold-Text", sans-serif;
}
.material-group ul li a:hover {
  text-decoration: underline;
}

/* CTA sub link */
.cta-sub-link {
  font-family: "SF-Pro-Regular-Text", sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-top: 16px;
}
.cta-contact-link {
  color: #fff;
  text-decoration: underline;
}
.cta-contact-link:hover {
  color: #fff;
  text-decoration: none;
}

/* Comparison table material links */
.comparison-table tbody td a {
  color: #fb5650;
  text-decoration: none;
}
.comparison-table tbody td a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .compare-hero {
    padding: 60px 16px 40px;
  }
  .compare-hero h1 {
    font-size: 28px;
  }
  .compare-hero p {
    font-size: 15px;
  }
  .compare-content {
    padding: 0 16px;
  }
  .compare-section {
    padding: 40px 0;
  }
  .compare-section h2 {
    font-size: 24px;
  }
  .scroll-hint {
    display: block;
  }
  .decision-grid {
    grid-template-columns: 1fr;
  }
  .tech-details-grid {
    grid-template-columns: 1fr;
  }
  .compare-cta h2 {
    font-size: 24px;
  }
  .comparison-table-wrapper {
    margin: 0 -16px;
    padding: 0 16px;
  }
  .h2h-card {
    padding: 24px 16px;
  }
  .h2h-card h3 {
    font-size: 18px;
  }
  .materials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .compare-hero h1 {
    font-size: 24px;
  }
  .comparison-table {
    font-size: 13px;
  }
  .comparison-table thead th {
    padding: 12px 10px;
    font-size: 13px;
  }
  .comparison-table tbody td {
    padding: 10px;
  }
}
