.page-sports-match-analysis {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: var(--dark-bg-1);
}

.page-sports-match-analysis__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-sports-match-analysis__light-bg {
  background-color: #ffffff; /* Brand auxiliary color */
  color: #333333;
}

.page-sports-match-analysis__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-sports-match-analysis__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 500px;
  padding: 80px 20px; /* Adjusted padding, header offset handled by JS/body padding */
  overflow: hidden;
  color: #ffffff;
}

.page-sports-match-analysis__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.7;
}

.page-sports-match-analysis__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

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

.page-sports-match-analysis__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  color: inherit; /* Inherit color from parent section */
}

.page-sports-match-analysis__content-section {
  padding: 60px 0;
}

.page-sports-match-analysis__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  color: inherit;
}

.page-sports-match-analysis__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports-match-analysis__image--center {
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports-match-analysis__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports-match-analysis__light-bg .page-sports-match-analysis__card {
  background-color: #f9f9f9;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-sports-match-analysis__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-sports-match-analysis__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: inherit;
}

.page-sports-match-analysis__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: inherit;
}

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

.page-sports-match-analysis__ordered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-top: 30px;
}

.page-sports-match-analysis__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: inherit;
}

.page-sports-match-analysis__light-bg .page-sports-match-analysis__list-item {
  background-color: #f0f0f0;
  color: #333333;
}

.page-sports-match-analysis__list-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: inherit;
}

.page-sports-match-analysis__list-text {
  font-size: 1em;
  line-height: 1.6;
  color: inherit;
}

.page-sports-match-analysis__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Login/Register color */
  color: #FFFF00; /* Login/Register font color */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-sports-match-analysis__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-sports-match-analysis__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-sports-match-analysis__cta-section {
  text-align: center;
  padding: 80px 0;
}

.page-sports-match-analysis__faq-list {
  margin-top: 40px;
}

.page-sports-match-analysis__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #333333;
}

.page-sports-match-analysis__dark-bg .page-sports-match-analysis__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

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

.page-sports-match-analysis__dark-bg .page-sports-match-analysis__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

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

.page-sports-match-analysis__dark-bg .page-sports-match-analysis__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-sports-match-analysis__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-sports-match-analysis__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1.1em;
  line-height: 1.7;
  color: #555555;
}

.page-sports-match-analysis__dark-bg .page-sports-match-analysis__faq-answer {
  color: #f0f0f0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports-match-analysis__hero-title {
    font-size: 2.5em;
  }
  .page-sports-match-analysis__section-title {
    font-size: 2em;
  }
  .page-sports-match-analysis__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-sports-match-analysis__hero-section {
    min-height: 400px;
    padding: 60px 15px;
  }
  .page-sports-match-analysis__hero-title {
    font-size: 2em;
  }
  .page-sports-match-analysis__hero-description {
    font-size: 1em;
  }
  .page-sports-match-analysis__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-sports-match-analysis__content-section {
    padding: 40px 0;
  }
  .page-sports-match-analysis__paragraph,
  .page-sports-match-analysis__card-text,
  .page-sports-match-analysis__list-text,
  .page-sports-match-analysis__faq-answer p {
    font-size: 0.95em;
  }
  .page-sports-match-analysis__card-title {
    font-size: 1.3em;
  }
  .page-sports-match-analysis__list-title {
    font-size: 1.2em;
  }
  .page-sports-match-analysis__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-sports-match-analysis__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  
  /* Mobile image responsiveness */
  .page-sports-match-analysis img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile container padding and overflow */
  .page-sports-match-analysis__container,
  .page-sports-match-analysis__hero-section,
  .page-sports-match-analysis__content-section,
  .page-sports-match-analysis__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Ensure grid items stack or wrap */
  .page-sports-match-analysis__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* FAQ specific mobile adjustments */
  .page-sports-match-analysis__faq-question {
    font-size: 1.1em;
  }
  .page-sports-match-analysis__faq-answer {
    padding: 0 15px;
  }
  .page-sports-match-analysis__faq-item.active .page-sports-match-analysis__faq-answer {
    padding: 15px;
  }

  /* Button group for multiple buttons */
  .page-sports-match-analysis__button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-sports-match-analysis__hero-title {
    font-size: 1.8em;
  }
  .page-sports-match-analysis__section-title {
    font-size: 1.6em;
  }
  .page-sports-match-analysis__btn-primary {
    font-size: 0.9em;
    padding: 10px 20px;
  }
  .page-sports-match-analysis__btn-large {
    font-size: 1em;
    padding: 12px 25px;
  }
}