/* style/match-analysis.css */

/* Base styles for the page */
.page-match-analysis {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default background */
}

/* Hero Section */
.page-match-analysis__hero-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 80px 40px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #017439;
  color: #FFFFFF;
  gap: 40px;
}

.page-match-analysis__hero-content {
  flex: 1;
  max-width: 600px;
}

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

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

.page-match-analysis__hero-cta-buttons {
  display: flex;
  gap: 15px;
}

.page-match-analysis__hero-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
}

.page-match-analysis__hero-image {
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
  display: block;
}

/* General Section Styles */
.page-match-analysis__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-match-analysis__section-title {
  font-size: 2.2em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-match-analysis__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-match-analysis__dark-section .page-match-analysis__section-title,
.page-match-analysis__dark-section .page-match-analysis__section-description {
  color: #FFFFFF;
}

/* Intro Section */
.page-match-analysis__intro-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

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

.page-match-analysis__grid-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-match-analysis__grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-match-analysis__grid-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-match-analysis__grid-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-match-analysis__grid-text {
  color: #666666;
  font-size: 0.95em;
}

/* Analysis Guide Section */
.page-match-analysis__analysis-guide-section {
  padding: 80px 0;
  background-color: #017439;
}

.page-match-analysis__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.page-match-analysis__step-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-match-analysis__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #C30808; /* Register/Login color */
  margin-bottom: 15px;
  background-color: #FFFF00; /* Register/Login font color */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-match-analysis__step-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-match-analysis__step-text {
  color: #666666;
  font-size: 0.95em;
}

/* Strategy Section */
.page-match-analysis__strategy-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-match-analysis__card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-match-analysis__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-match-analysis__card-title {
  font-size: 1.4em;
  color: #017439;
  margin: 20px 20px 10px 20px;
  font-weight: bold;
}

.page-match-analysis__card-text {
  color: #666666;
  font-size: 0.95em;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-match-analysis__card-link {
  display: inline-block;
  background-color: #C30808;
  color: #FFFF00;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px 20px;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-match-analysis__card-link:hover {
  background-color: #a00606;
}

/* Responsible Gambling Section */
.page-match-analysis__responsible-gambling-section {
  padding: 80px 0;
  background-color: #017439;
}

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

.page-match-analysis__info-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-match-analysis__info-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #FFFF00;
}

.page-match-analysis__info-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-match-analysis__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-match-analysis__faq-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-match-analysis__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

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

.page-match-analysis__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #C30808;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

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

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

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

.page-match-analysis__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-match-analysis__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-match-analysis__faq-answer a:hover {
  color: #005a2d;
}

/* CTA Section at bottom */
.page-match-analysis__cta-section {
  padding: 80px 0;
  background-color: #017439;
  text-align: center;
}

.page-match-analysis__cta-section .page-match-analysis__section-title,
.page-match-analysis__cta-section .page-match-analysis__section-description {
  color: #FFFFFF;
}

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

/* Buttons */
.page-match-analysis__btn-primary,
.page-match-analysis__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-match-analysis__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-match-analysis__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
  border-color: #005a2d;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-match-analysis__hero-section {
    flex-direction: column;
    padding: 60px 20px;
    text-align: center;
  }

  .page-match-analysis__hero-content {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .page-match-analysis__hero-image-container {
    max-width: 80%;
  }

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

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

@media (max-width: 768px) {
  .page-match-analysis__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-match-analysis__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-match-analysis__btn-primary,
  .page-match-analysis__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-match-analysis__container {
    padding: 20px 15px;
  }

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

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

  .page-match-analysis__content-grid,
  .page-match-analysis__steps-grid,
  .page-match-analysis__strategy-grid,
  .page-match-analysis__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-match-analysis img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-match-analysis__section,
  .page-match-analysis__card,
  .page-match-analysis__container,
  .page-match-analysis__hero-section,
  .page-match-analysis__intro-section,
  .page-match-analysis__analysis-guide-section,
  .page-match-analysis__strategy-section,
  .page-match-analysis__responsible-gambling-section,
  .page-match-analysis__faq-section,
  .page-match-analysis__cta-section,
  .page-match-analysis__hero-cta-buttons,
  .page-match-analysis__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

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

  .page-match-analysis__faq-answer {
    padding: 10px 15px;
  }

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