.page-expert-match-analysis {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text on light body */
  background-color: #FFFFFF;
}

.page-expert-match-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;
  color: #ffffff;
  background: linear-gradient(135deg, #26A9E0, #1a7bb0);
}

.page-expert-match-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-expert-match-analysis__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-expert-match-analysis__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-expert-match-analysis__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-expert-match-analysis__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.page-expert-match-analysis__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-expert-match-analysis__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Use Login color for CTA */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-expert-match-analysis__cta-button:hover {
  background: #d46b00;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-expert-match-analysis__section {
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-expert-match-analysis__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #26A9E0;
  font-weight: 700;
}

.page-expert-match-analysis__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
  color: #555555;
}

.page-expert-match-analysis__why-trust-us .page-expert-match-analysis__section-description {
  margin-bottom: 70px;
}

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

.page-expert-match-analysis__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-expert-match-analysis__feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-expert-match-analysis__feature-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-expert-match-analysis__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-expert-match-analysis__feature-text {
  font-size: 1em;
  line-height: 1.7;
  color: #666666;
}

.page-expert-match-analysis__analysis-content {
  background-color: #f9f9f9;
  color: #333333;
}

.page-expert-match-analysis__content-block {
  text-align: left;
  margin-bottom: 60px;
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-expert-match-analysis__content-block:last-child {
  margin-bottom: 0;
}

.page-expert-match-analysis__content-subtitle {
  font-size: 2em;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 25px;
  font-weight: 600;
}

.page-expert-match-analysis__content-block p {
  font-size: 1.1em;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 25px;
}

.page-expert-match-analysis__content-block img {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-expert-match-analysis__leagues-covered {
  background: #26A9E0;
  color: #ffffff;
}

.page-expert-match-analysis__leagues-covered .page-expert-match-analysis__section-title {
  color: #ffffff;
}

.page-expert-match-analysis__leagues-covered .page-expert-match-analysis__section-description {
  color: #f0f0f0;
}

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

.page-expert-match-analysis__league-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-expert-match-analysis__league-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.page-expert-match-analysis__league-name {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-expert-match-analysis__league-item p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-expert-match-analysis__cta-bottom {
  background-color: #ffffff;
  color: #333333;
}

.page-expert-match-analysis__cta-bottom .page-expert-match-analysis__section-title {
  color: #26A9E0;
}

.page-expert-match-analysis__cta-bottom .page-expert-match-analysis__section-description {
  color: #555555;
}

.page-expert-match-analysis__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-expert-match-analysis__btn-primary,
.page-expert-match-analysis__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 17px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-expert-match-analysis__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-expert-match-analysis__btn-primary:hover {
  background: #1a7bb0;
  border-color: #1a7bb0;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-expert-match-analysis__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-expert-match-analysis__btn-secondary:hover {
  background: #f0f8ff;
  color: #1a7bb0;
  border-color: #1a7bb0;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-expert-match-analysis__faq-section {
  background-color: #f0f5f9;
  color: #333333;
}

.page-expert-match-analysis__faq-section .page-expert-match-analysis__section-title {
  color: #26A9E0;
}

.page-expert-match-analysis__faq-list {
  margin-top: 40px;
  text-align: left;
}

/* FAQ容器样式 */
.page-expert-match-analysis__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-expert-match-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 25px;
  opacity: 0;
  color: #444444;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-expert-match-analysis__faq-item.active .page-expert-match-analysis__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 25px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #e0e0e0;
}

/* Vấn đề kiểu dáng */
.page-expert-match-analysis__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-expert-match-analysis__faq-question:hover {
  background: #e9e9e9;
  border-color: #d0d0d0;
}

.page-expert-match-analysis__faq-question:active {
  background: #e0e0e0;
}

/* Kiểu dáng tiêu đề câu hỏi */
.page-expert-match-analysis__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện click */
  color: #333333;
}

/* Chuyển đổi biểu tượng */
.page-expert-match-analysis__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-expert-match-analysis__faq-item.active .page-expert-match-analysis__faq-toggle {
  color: #EA7C07;
  transform: rotate(45deg); /* Thêm hiệu ứng xoay cho dấu cộng thành dấu x */
}

/* 智能文字颜色选择器 */
.page-expert-match-analysis__dark-section {
  color: #ffffff; /* Deep background with light text */
  background: #26A9E0;
}

.page-expert-match-analysis__light-bg {
  color: #333333; /* Light background with dark text */
  background: #ffffff;
}

.page-expert-match-analysis__medium-bg {
  color: #000000; /* Default dark text */
  background: #FFFFFF;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .page-expert-match-analysis {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-expert-match-analysis__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-expert-match-analysis__hero-title {
    font-size: 2.2em;
  }

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

  .page-expert-match-analysis__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-expert-match-analysis__section {
    padding: 40px 15px;
  }

  .page-expert-match-analysis__container {
    padding: 0;
  }

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

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

  .page-expert-match-analysis__features-grid,
  .page-expert-match-analysis__league-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-expert-match-analysis__feature-item,
  .page-expert-match-analysis__league-item {
    padding: 20px;
  }

  .page-expert-match-analysis__content-block {
    padding: 25px;
    margin-bottom: 40px;
  }

  .page-expert-match-analysis__content-subtitle {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .page-expert-match-analysis__content-block p {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-expert-match-analysis__content-block img {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-expert-match-analysis__button-group {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-expert-match-analysis__btn-primary,
  .page-expert-match-analysis__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-expert-match-analysis__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

  /* All images */
  .page-expert-match-analysis img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-expert-match-analysis__section,
  .page-expert-match-analysis__card,
  .page-expert-match-analysis__container,
  .page-expert-match-analysis__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}