/* style/comparison-tool.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #E3B505;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark-1: #0d0d0d; /* Assuming from shared.css dark-bg-1 */
  --bg-light-1: #f1f3f5;
  --border-color: #e0e0e0;
}

.page-comparison-tool {
  padding-top: 120px; /* Desktop padding-top for fixed header */
  color: var(--text-light); /* Light text for dark body background */
  background-color: var(--bg-dark-1);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-comparison-tool__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-comparison-tool__light-bg {
  background-color: var(--bg-light-1);
  color: var(--text-dark);
}

.page-comparison-tool__main-title {
  font-size: 3.2em;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-comparison-tool__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-comparison-tool__section-title:first-of-type {
  color: var(--text-light);
}

.page-comparison-tool__light-bg .page-comparison-tool__section-title {
  color: var(--primary-color);
}

.page-comparison-tool__intro-section,
.page-comparison-tool__criteria-section,
.page-comparison-tool__evaluation-section,
.page-comparison-tool__featured-platforms-section,
.page-comparison-tool__safety-tips-section,
.page-comparison-tool__faq-section {
  padding: 60px 0;
}

.page-comparison-tool__intro-text,
.page-comparison-tool__section-description {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-comparison-tool__intro-text a,
.page-comparison-tool__section-description a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-comparison-tool__intro-text a:hover,
.page-comparison-tool__section-description a:hover {
  text-decoration: underline;
}

.page-comparison-tool__cta-button {
  display: block;
  width: fit-content;
  margin: 30px auto 0;
  padding: 15px 30px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-comparison-tool__cta-button:hover {
  background-color: #ffc107;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-comparison-tool__cta-button--secondary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-comparison-tool__cta-button--secondary:hover {
  background-color: #1a3a77;
}

.page-comparison-tool__cta-button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 15px;
}

.page-comparison-tool__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-comparison-tool__criterion-card {
  background-color: #ffffff;
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-comparison-tool__criterion-icon {
  width: 150px; /* Minimum 200x200px requirement, but for a card icon, a visual representation, 150px is fine for display, actual image is larger */
  height: auto;
  margin-bottom: 20px;
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.page-comparison-tool__criterion-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-comparison-tool__criterion-text {
  font-size: 1em;
  line-height: 1.6;
  text-align: justify;
}

.page-comparison-tool__criterion-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-comparison-tool__criterion-text a:hover {
  text-decoration: underline;
}

.page-comparison-tool__evaluation-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-comparison-tool__evaluation-list li {
  background-color: var(--bg-light-1);
  color: var(--text-dark);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.page-comparison-tool__list-title {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-comparison-tool__evaluation-list p {
  font-size: 1em;
  line-height: 1.6;
  text-align: justify;
  color: var(--text-dark);
}

.page-comparison-tool__evaluation-list p a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-comparison-tool__evaluation-list p a:hover {
  text-decoration: underline;
}

.page-comparison-tool__platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-comparison-tool__platform-card {
  background-color: #ffffff;
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-comparison-tool__platform-title {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: center;
}

.page-comparison-tool__platform-text {
  font-size: 1em;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 20px;
}

.page-comparison-tool__platform-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-comparison-tool__platform-text a:hover {
  text-decoration: underline;
}

.page-comparison-tool__read-more-link {
  display: block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
  transition: color 0.3s ease;
}

.page-comparison-tool__read-more-link:hover {
  color: #ffc107;
  text-decoration: underline;
}

.page-comparison-tool__section-description--note {
  font-style: italic;
  text-align: center;
  margin-top: 40px;
  font-size: 0.95em;
}

.page-comparison-tool__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-comparison-tool__tips-list li {
  background-color: var(--bg-dark-1);
  color: var(--text-light);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-comparison-tool__tips-list p {
  color: var(--text-light);
}

.page-comparison-tool__tips-list p a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-comparison-tool__tips-list p a:hover {
  text-decoration: underline;
}

.page-comparison-tool__safety-image {
  display: block;
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section Styles */
.page-comparison-tool__faq-list {
  margin-top: 40px;
}

.page-comparison-tool__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-comparison-tool__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-comparison-tool__faq-item.active .page-comparison-tool__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-comparison-tool__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-comparison-tool__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-comparison-tool__faq-question:active {
  background: #eeeeee;
}

.page-comparison-tool__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-comparison-tool__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-comparison-tool__faq-item.active .page-comparison-tool__faq-toggle {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-comparison-tool__main-title {
    font-size: 2.8em;
  }

  .page-comparison-tool__section-title {
    font-size: 2em;
  }

  .page-comparison-tool__grid,
  .page-comparison-tool__platform-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-comparison-tool__criterion-card,
  .page-comparison-tool__platform-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-comparison-tool {
    padding-top: 100px !important; /* Mobile padding-top */
  }

  .page-comparison-tool__container {
    padding: 0 15px;
  }

  .page-comparison-tool__main-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-comparison-tool__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-comparison-tool__intro-section,
  .page-comparison-tool__criteria-section,
  .page-comparison-tool__evaluation-section,
  .page-comparison-tool__featured-platforms-section,
  .page-comparison-tool__safety-tips-section,
  .page-comparison-tool__faq-section {
    padding: 40px 0;
  }

  .page-comparison-tool__intro-text,
  .page-comparison-tool__section-description,
  .page-comparison-tool__criterion-text,
  .page-comparison-tool__evaluation-list p,
  .page-comparison-tool__platform-text,
  .page-comparison-tool__tips-list p,
  .page-comparison-tool__faq-answer p {
    font-size: 0.95em;
  }

  .page-comparison-tool__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    margin-top: 20px;
  }

  .page-comparison-tool__criterion-icon {
    width: 120px;
  }

  .page-comparison-tool__criterion-title {
    font-size: 1.3em;
  }

  .page-comparison-tool__list-title {
    font-size: 1.2em;
  }

  .page-comparison-tool__platform-title {
    font-size: 1.4em;
  }

  .page-comparison-tool__safety-image {
    max-width: 100%;
  }

  .page-comparison-tool__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-comparison-tool__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-comparison-tool__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-comparison-tool__faq-answer {
    padding: 0 15px;
  }
  
  .page-comparison-tool__faq-item.active .page-comparison-tool__faq-answer {
    padding: 15px !important;
  }
  
  /* Mobile image adaptive styles */
  .page-comparison-tool img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-comparison-tool__section,
  .page-comparison-tool__card,
  .page-comparison-tool__container,
  .page-comparison-tool__criterion-card,
  .page-comparison-tool__platform-card,
  .page-comparison-tool__evaluation-list li,
  .page-comparison-tool__tips-list li {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-comparison-tool__platform-card {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}