.page-match-analysis {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
}

.page-match-analysis__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #003366;
  color: #ffffff;
  padding-top: var(--header-offset, 120px);
}

.page-match-analysis__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
}

.page-match-analysis__hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-match-analysis__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-match-analysis__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFCC00;
  line-height: 1.2;
}

.page-match-analysis__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-match-analysis__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-match-analysis__btn-primary,
.page-match-analysis__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-match-analysis__btn-primary {
  background-color: #FFCC00;
  color: #003366;
  border: 2px solid #FFCC00;
}

.page-match-analysis__btn-primary:hover {
  background-color: #e6b800;
  border-color: #e6b800;
}

.page-match-analysis__btn-secondary {
  background-color: transparent;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

.page-match-analysis__btn-secondary:hover {
  background-color: #FFCC00;
  color: #003366;
}

.page-match-analysis__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #1a202c; /* Slightly lighter dark background for content sections */
  color: #ffffff;
}

.page-match-analysis__dark-section {
  background-color: #003366;
  color: #ffffff;
}

.page-match-analysis__section-title {
  font-size: 2.2em;
  color: #FFCC00;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-match-analysis__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFCC00;
  border-radius: 2px;
}

.page-match-analysis__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-match-analysis__highlight {
  color: #FFCC00;
  font-weight: bold;
}

.page-match-analysis__link {
  color: #FFCC00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-match-analysis__link:hover {
  color: #e6b800;
  text-decoration: underline;
}

.page-match-analysis__list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
}

.page-match-analysis__list-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-left: 5px solid #FFCC00;
}

.page-match-analysis__list-title {
  color: #FFCC00;
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-match-analysis__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 40px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block;
}

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

.page-match-analysis__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-match-analysis__feature-card:hover {
  transform: translateY(-10px);
}

.page-match-analysis__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-match-analysis__card-title {
  font-size: 1.5em;
  color: #FFCC00;
  margin-bottom: 15px;
}

.page-match-analysis__faq-section {
  padding: 60px 20px;
}

.page-match-analysis__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-match-analysis__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-match-analysis__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #003366;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-match-analysis__faq-question:hover {
  background-color: #004488;
}

.page-match-analysis__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

.page-match-analysis__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFCC00;
  transition: transform 0.3s ease;
}

.page-match-analysis__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  text-align: justify;
}

.page-match-analysis__faq-answer p {
  margin-top: 10px;
  margin-bottom: 10px;
}

.page-match-analysis__faq-item.active .page-match-analysis__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px;
}

.page-match-analysis__faq-item.active .page-match-analysis__faq-toggle {
  transform: rotate(45deg);
}

.page-match-analysis__cta-bottom {
  text-align: center;
  padding: 80px 20px;
  background-color: #003366;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-match-analysis__hero-title {
    font-size: 2.2em;
  }

  .page-match-analysis__hero-description {
    font-size: 1em;
  }

  .page-match-analysis__section-title {
    font-size: 1.8em;
  }

  .page-match-analysis__list-title {
    font-size: 1.2em;
  }

  .page-match-analysis__card-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-match-analysis {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-match-analysis__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-match-analysis__hero-title {
    font-size: 1.8em;
  }

  .page-match-analysis__hero-description {
    font-size: 0.95em;
  }

  .page-match-analysis__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-match-analysis__btn-primary,
  .page-match-analysis__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-match-analysis__content-area {
    padding: 40px 15px;
  }

  .page-match-analysis__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }

  .page-match-analysis__text-block {
    font-size: 1em;
  }

  .page-match-analysis__list-item,
  .page-match-analysis__feature-card,
  .page-match-analysis__faq-item {
    padding: 20px;
  }

  .page-match-analysis__card-image {
    height: 180px;
  }

  .page-match-analysis__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-match-analysis__faq-answer {
    padding: 0 20px;
  }

  .page-match-analysis__faq-item.active .page-match-analysis__faq-answer {
    padding: 15px 20px;
  }

  /* Images in content area */
  .page-match-analysis img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-match-analysis__section,
  .page-match-analysis__card,
  .page-match-analysis__container,
  .page-match-analysis__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-match-analysis__cta-bottom {
    padding: 60px 15px;
  }

  .page-match-analysis__features-grid {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .page-match-analysis__hero-title {
    font-size: 1.5em;
  }

  .page-match-analysis__section-title {
    font-size: 1.4em;
  }

  .page-match-analysis__list-title {
    font-size: 1.1em;
  }
}