/* style/sports-match-analysis-tips.css */

:root {
    --primary-color: #CC0000;
    --secondary-color: #FFD700;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --card-bg-light: #ffffff;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.page-sports-match-analysis-tips {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-light-bg); /* Default text color for light sections */
    background-color: #000000; /* Body background is dark, but sections will have their own background */
}

/* 🚨 固定导航栏间距要求 */
.page-sports-match-analysis-tips__hero-section {
    padding-top: 120px; /* Desktop: Adjust based on actual header height */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, darken(var(--primary-color), 15%) 100%);
    color: var(--text-color-dark-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-sports-match-analysis-tips__hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-sports-match-analysis-tips__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-sports-match-analysis-tips__hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.page-sports-match-analysis-tips__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-sports-match-analysis-tips__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-sports-match-analysis-tips__cta-button--primary {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
    border: 2px solid var(--secondary-color);
}

.page-sports-match-analysis-tips__cta-button--primary:hover {
    background-color: darken(var(--secondary-color), 10%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-sports-match-analysis-tips__cta-button--secondary {
    background-color: transparent;
    color: var(--text-color-dark-bg);
    border: 2px solid var(--text-color-dark-bg);
}

.page-sports-match-analysis-tips__cta-button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-sports-match-analysis-tips__cta-center {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-sports-match-analysis-tips__content-section {
    padding: 60px 20px;
    background-color: var(--card-bg-light);
    color: var(--text-color-light-bg);
}

.page-sports-match-analysis-tips__dark-bg {
    background-color: #0d0d0d;
    color: var(--text-color-dark-bg);
}

.page-sports-match-analysis-tips__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-sports-match-analysis-tips__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-sports-match-analysis-tips__dark-bg .page-sports-match-analysis-tips__section-title {
    color: var(--secondary-color);
}

.page-sports-match-analysis-tips__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
}

.page-sports-match-analysis-tips__text-block p {
    margin-bottom: 15px;
}

.page-sports-match-analysis-tips__text-block strong.highlight {
    color: var(--primary-color);
}

.page-sports-match-analysis-tips__dark-bg .page-sports-match-analysis-tips__text-block strong.highlight {
    color: var(--secondary-color);
}

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

.page-sports-match-analysis-tips__grid-layout--small-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-sports-match-analysis-tips__card {
    background: var(--card-bg-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-color);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-color-light-bg);
}

.page-sports-match-analysis-tips__dark-bg .page-sports-match-analysis-tips__card {
    background: var(--card-bg-dark);
    color: var(--text-color-dark-bg);
}

.page-sports-match-analysis-tips__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-sports-match-analysis-tips__card-image {
    max-width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-sports-match-analysis-tips__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports-match-analysis-tips__dark-bg .page-sports-match-analysis-tips__card-title {
    color: var(--secondary-color);
}

.page-sports-match-analysis-tips__card-text {
    font-size: 1em;
    line-height: 1.7;
    flex-grow: 1;
}

.page-sports-match-analysis-tips__card-text .highlight {
    color: var(--primary-color);
}

.page-sports-match-analysis-tips__dark-bg .page-sports-match-analysis-tips__card-text .highlight {
    color: var(--secondary-color);
}

.page-sports-match-analysis-tips__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.page-sports-match-analysis-tips__list li {
    margin-bottom: 10px;
}

.page-sports-match-analysis-tips__list strong {
    color: var(--primary-color);
}

.page-sports-match-analysis-tips__dark-bg .page-sports-match-analysis-tips__list strong {
    color: var(--secondary-color);
}

.page-sports-match-analysis-tips__card--small {
    padding: 20px;
}

.page-sports-match-analysis-tips__card--small .page-sports-match-analysis-tips__card-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

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

.page-sports-match-analysis-tips__feature-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-sports-match-analysis-tips__feature-item:hover {
    transform: translateY(-5px);
}

.page-sports-match-analysis-tips__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-sports-match-analysis-tips__feature-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports-match-analysis-tips__feature-description {
    font-size: 0.95em;
    opacity: 0.8;
}

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

.page-sports-match-analysis-tips__step-item {
    background: var(--card-bg-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-color);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--text-color-light-bg);
}

.page-sports-match-analysis-tips__step-number {
    background: var(--primary-color);
    color: var(--text-color-dark-bg);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-sports-match-analysis-tips__step-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports-match-analysis-tips__step-description {
    font-size: 1em;
    line-height: 1.7;
}

.page-sports-match-analysis-tips__step-description a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-sports-match-analysis-tips__step-description a:hover {
    color: darken(var(--primary-color), 10%);
}

.page-sports-match-analysis-tips__faq-list {
    margin-top: 30px;
}

/* FAQ容器样式 */
.page-sports-match-analysis-tips__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ mặc định - ẩn câu trả lời */
.page-sports-match-analysis-tips__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ trạng thái mở rộng - 🚨 Sử dụng !important và max-height đủ lớn để đảm bảo mở rộng */
.page-sports-match-analysis-tips__faq-item.active .page-sports-match-analysis-tips__faq-answer {
  max-height: 2000px !important; /* 🚨 Đảm bảo ưu tiên, giá trị đủ lớn cho mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--card-bg-dark);
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark-bg);
}

/* Kiểu dáng câu hỏi */
.page-sports-match-analysis-tips__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-color-dark-bg);
}

.page-sports-match-analysis-tips__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-sports-match-analysis-tips__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

/* Kiểu dáng tiêu đề câu hỏi */
.page-sports-match-analysis-tips__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
  color: var(--text-color-dark-bg);
}

/* Biểu tượng chuyển đổi */
.page-sports-match-analysis-tips__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  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 nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-sports-match-analysis-tips__faq-item.active .page-sports-match-analysis-tips__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Thêm hiệu ứng xoay khi mở */
}

.page-sports-match-analysis-tips__conclusion-block {
    text-align: center;
}

.page-sports-match-analysis-tips__conclusion-block p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.page-sports-match-analysis-tips__conclusion-block .highlight {
    color: var(--primary-color);
}

/* 🚨 Tất cả hình ảnh phải có kích thước tối thiểu và đáp ứng */
.page-sports-match-analysis-tips img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports-match-analysis-tips__hero-title {
        font-size: 2.8em;
    }
    .page-sports-match-analysis-tips__hero-subtitle {
        font-size: 1.2em;
    }
    .page-sports-match-analysis-tips__section-title {
        font-size: 2em;
    }
    .page-sports-match-analysis-tips__grid-layout {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-sports-match-analysis-tips__features-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-sports-match-analysis-tips__steps-guide {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* 🚨 Mobile padding-top for fixed header */
    .page-sports-match-analysis-tips__hero-section {
        padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
        padding-bottom: 40px;
    }

    .page-sports-match-analysis-tips__hero-title {
        font-size: 2.2em;
    }
    .page-sports-match-analysis-tips__hero-subtitle {
        font-size: 1em;
    }
    .page-sports-match-analysis-tips__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports-match-analysis-tips__cta-button {
        width: 100%;
        max-width: 300px; /* Limit button width on small screens if flex-direction column */
        margin: 0 auto;
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-sports-match-analysis-tips__cta-center {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports-match-analysis-tips__content-section {
        padding: 40px 15px;
    }
    .page-sports-match-analysis-tips__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-sports-match-analysis-tips__text-block {
        font-size: 1em;
    }
    .page-sports-match-analysis-tips__list {
        font-size: 1em;
        margin-left: 15px;
    }
    .page-sports-match-analysis-tips__card-image {
        height: 200px; /* Adjust image height for mobile cards */
    }

    /* 🚨 Mobile image and container responsiveness */
    .page-sports-match-analysis-tips img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-sports-match-analysis-tips__container,
    .page-sports-match-analysis-tips__grid-layout,
    .page-sports-match-analysis-tips__card,
    .page-sports-match-analysis-tips__features-list,
    .page-sports-match-analysis-tips__feature-item,
    .page-sports-match-analysis-tips__steps-guide,
    .page-sports-match-analysis-tips__step-item,
    .page-sports-match-analysis-tips__faq-list,
    .page-sports-match-analysis-tips__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-sports-match-analysis-tips__card {
        padding: 20px;
    }
    .page-sports-match-analysis-tips__card--small {
        padding: 15px;
    }
    
    /* FAQ mobile */
    .page-sports-match-analysis-tips__faq-question {
      padding: 15px;
      flex-wrap: wrap;
    }
    
    .page-sports-match-analysis-tips__faq-question h3 {
      font-size: 1em;
      margin-bottom: 0;
      width: calc(100% - 40px);
    }
    
    .page-sports-match-analysis-tips__faq-toggle {
      margin-left: 10px;
      width: 24px;
      height: 24px;
      font-size: 20px;
    }
    
    .page-sports-match-analysis-tips__faq-answer {
      padding: 0 15px;
    }
    
    .page-sports-match-analysis-tips__faq-item.active .page-sports-match-analysis-tips__faq-answer {
      padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-sports-match-analysis-tips__hero-title {
        font-size: 1.8em;
    }
    .page-sports-match-analysis-tips__hero-subtitle {
        font-size: 0.9em;
    }
    .page-sports-match-analysis-tips__section-title {
        font-size: 1.5em;
    }
    .page-sports-match-analysis-tips__cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}