/* style/resources-latest-matches-analysis.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --register-login-text: #FFFF00;
  --default-background: #FFFFFF;
  --default-text-color: #333333;
}

.page-resources-latest-matches-analysis {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--default-text-color);
  background-color: var(--default-background);
}

.page-resources-latest-matches-analysis a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources-latest-matches-analysis a:hover {
  text-decoration: underline;
}

/* Color Contrast Classes */
.page-resources-latest-matches-analysis__dark-bg {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-resources-latest-matches-analysis__light-bg {
  background: var(--default-background);
  color: var(--default-text-color);
}

/* Hero Section */
.page-resources-latest-matches-analysis__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
}

.page-resources-latest-matches-analysis__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.page-resources-latest-matches-analysis__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-resources-latest-matches-analysis__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources-latest-matches-analysis__hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
}

.page-resources-latest-matches-analysis__hero-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-latest-matches-analysis__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--secondary-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources-latest-matches-analysis__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  border: none;
}

.page-resources-latest-matches-analysis__btn-register {
  background: var(--register-button-bg);
  color: var(--register-login-text);
}

.page-resources-latest-matches-analysis__btn-register:hover {
  background: #a40707;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-latest-matches-analysis__btn-login {
  background: var(--login-button-bg);
  color: var(--register-login-text);
}

.page-resources-latest-matches-analysis__btn-login:hover {
  background: #a40707;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-resources-latest-matches-analysis__section {
  padding: 80px 20px;
  text-align: center;
}

.page-resources-latest-matches-analysis__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-resources-latest-matches-analysis__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  font-weight: bold;
  color: var(--primary-color);
}

.page-resources-latest-matches-analysis__dark-bg .page-resources-latest-matches-analysis__section-title {
  color: var(--secondary-color);
}

.page-resources-latest-matches-analysis__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-resources-latest-matches-analysis__image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 40px auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Grid for Key Factors */
.page-resources-latest-matches-analysis__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-latest-matches-analysis__card {
  background: var(--secondary-color);
  color: var(--default-text-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-resources-latest-matches-analysis__card:hover {
  transform: translateY(-5px);
}

.page-resources-latest-matches-analysis__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources-latest-matches-analysis__card p {
  font-size: 1em;
  line-height: 1.7;
}

/* Lists */
.page-resources-latest-matches-analysis__list {
  list-style: disc inside;
  text-align: left;
  max-width: 900px;
  margin: 20px auto;
  padding-left: 20px;
}

.page-resources-latest-matches-analysis__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-resources-latest-matches-analysis__expert-tips {
  text-align: left;
  max-width: 900px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  color: var(--secondary-color);
}

.page-resources-latest-matches-analysis__expert-subtitle {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-resources-latest-matches-analysis__expert-tips .page-resources-latest-matches-analysis__list {
  color: var(--secondary-color);
  list-style: circle inside;
  padding-left: 0;
}

.page-resources-latest-matches-analysis__expert-tips .page-resources-latest-matches-analysis__list li {
  color: var(--secondary-color);
}

/* FAQ Section */
.page-resources-latest-matches-analysis__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-resources-latest-matches-analysis__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

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

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

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

.page-resources-latest-matches-analysis__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-latest-matches-analysis__faq-question:active {
  background: #eeeeee;
}

.page-resources-latest-matches-analysis__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--default-text-color);
}

.page-resources-latest-matches-analysis__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-resources-latest-matches-analysis__faq-item.active .page-resources-latest-matches-analysis__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* Related Articles */
.page-resources-latest-matches-analysis__related-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-latest-matches-analysis__article-card {
  background: var(--secondary-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-resources-latest-matches-analysis__article-card:hover {
  transform: translateY(-5px);
}

.page-resources-latest-matches-analysis__article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-resources-latest-matches-analysis__article-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-resources-latest-matches-analysis__article-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources-latest-matches-analysis__article-title a:hover {
  text-decoration: underline;
}

.page-resources-latest-matches-analysis__article-summary {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 15px;
}

.page-resources-latest-matches-analysis__read-more {
  display: inline-block;
  padding: 8px 15px;
  background: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources-latest-matches-analysis__read-more:hover {
  background: #005a2e;
  text-decoration: none;
}

.page-resources-latest-matches-analysis__cta-bottom {
  margin-top: 60px;
  text-align: center;
}

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

  .page-resources-latest-matches-analysis__section-title {
    font-size: 2.2em;
  }
}

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

  .page-resources-latest-matches-analysis__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-resources-latest-matches-analysis__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-resources-latest-matches-analysis__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-resources-latest-matches-analysis__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-resources-latest-matches-analysis__section {
    padding: 40px 15px;
  }

  .page-resources-latest-matches-analysis__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-latest-matches-analysis__text-block,
  .page-resources-latest-matches-analysis__list li,
  .page-resources-latest-matches-analysis__card p {
    font-size: 1em;
  }

  .page-resources-latest-matches-analysis__image {
    margin: 30px auto;
  }

  .page-resources-latest-matches-analysis__grid,
  .page-resources-latest-matches-analysis__related-articles {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-latest-matches-analysis__card {
    padding: 20px;
  }

  .page-resources-latest-matches-analysis__card-title {
    font-size: 1.2em;
  }

  .page-resources-latest-matches-analysis__expert-tips {
    padding: 20px;
    margin: 30px auto;
  }

  .page-resources-latest-matches-analysis__expert-subtitle {
    font-size: 1.3em;
  }

  .page-resources-latest-matches-analysis__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources-latest-matches-analysis__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources-latest-matches-analysis__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-resources-latest-matches-analysis__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources-latest-matches-analysis__faq-item.active .page-resources-latest-matches-analysis__faq-answer {
    padding: 15px !important;
  }

  .page-resources-latest-matches-analysis__article-image {
    height: 180px;
  }

  .page-resources-latest-matches-analysis__article-title {
    font-size: 1.1em;
  }

  .page-resources-latest-matches-analysis__read-more {
    padding: 6px 12px;
    font-size: 0.85em;
  }

  .page-resources-latest-matches-analysis__cta-bottom {
    margin-top: 40px;
  }

  /* Ensure all images are responsive */
  .page-resources-latest-matches-analysis img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources-latest-matches-analysis__section,
  .page-resources-latest-matches-analysis__card,
  .page-resources-latest-matches-analysis__container,
  .page-resources-latest-matches-analysis__cta-buttons,
  .page-resources-latest-matches-analysis__button-group,
  .page-resources-latest-matches-analysis__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-latest-matches-analysis__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-resources-latest-matches-analysis__cta-buttons > a {
    width: 100%;
  }
}