/* style/aw8-cockfighting-match-analysis.css */

/* Base styles for the page */
.page-aw8-cockfighting-match-analysis {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is #121212 from shared.css */
}

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

.page-aw8-cockfighting-match-analysis__section {
  padding: 60px 0;
}

/* Color contrast classes */
.page-aw8-cockfighting-match-analysis__dark-bg {
  background-color: #1A202C;
  color: #ffffff;
}

.page-aw8-cockfighting-match-analysis__light-bg {
  background-color: #f8f9fa;
  color: #1A202C;
}

/* Hero Content Section */
.page-aw8-cockfighting-match-analysis__hero-content {
  text-align: center;
  padding-top: 120px; /* Fixed header spacing */
  padding-bottom: 80px;
  background: linear-gradient(135deg, #1A202C 0%, #0d0d0d 100%);
}

.page-aw8-cockfighting-match-analysis__title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-aw8-cockfighting-match-analysis__subtitle {
  font-size: 18px;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-aw8-cockfighting-match-analysis__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-aw8-cockfighting-match-analysis__cta-buttons--center {
  justify-content: center;
  margin-top: 40px;
}

.page-aw8-cockfighting-match-analysis__btn-primary,
.page-aw8-cockfighting-match-analysis__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-aw8-cockfighting-match-analysis__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

.page-aw8-cockfighting-match-analysis__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-aw8-cockfighting-match-analysis__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-aw8-cockfighting-match-analysis__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

/* Headings and Paragraphs */
.page-aw8-cockfighting-match-analysis__heading {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700;
}

.page-aw8-cockfighting-match-analysis__sub-heading {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-aw8-cockfighting-match-analysis__paragraph {
  font-size: 16px;
  margin-bottom: 20px;
}

/* Grid Layouts */
.page-aw8-cockfighting-match-analysis__grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

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

.page-aw8-cockfighting-match-analysis__strategy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

/* Image Styling */
.page-aw8-cockfighting-match-analysis__image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-aw8-cockfighting-match-analysis__image-wrapper--full-width {
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-aw8-cockfighting-match-analysis__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* List Styles */
.page-aw8-cockfighting-match-analysis__list {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.page-aw8-cockfighting-match-analysis__list-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 16px;
}

.page-aw8-cockfighting-match-analysis__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #FFD700;
  font-weight: bold;
}

/* Card Styles */
.page-aw8-cockfighting-match-analysis__factor-card,
.page-aw8-cockfighting-match-analysis__step-card,
.page-aw8-cockfighting-match-analysis__strategy-card,
.page-aw8-cockfighting-match-analysis__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible on dark body bg */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  box-sizing: border-box;
}

.page-aw8-cockfighting-match-analysis__factor-card:hover,
.page-aw8-cockfighting-match-analysis__step-card:hover,
.page-aw8-cockfighting-match-analysis__strategy-card:hover,
.page-aw8-cockfighting-match-analysis__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-aw8-cockfighting-match-analysis__card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-aw8-cockfighting-match-analysis__factor-card .page-aw8-cockfighting-match-analysis__card-image {
  margin-bottom: 15px;
  border-radius: 6px;
}

/* FAQ Section */
.page-aw8-cockfighting-match-analysis__faq-list {
  margin-top: 40px;
}

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

/* FAQ默认状态 - 答案隐藏 */
.page-aw8-cockfighting-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 15px;
  opacity: 0;
  color: #1A202C;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-aw8-cockfighting-match-analysis__faq-item.active .page-aw8-cockfighting-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 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-aw8-cockfighting-match-analysis__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A202C;
  border: 1px solid #FFD700;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-aw8-cockfighting-match-analysis__faq-question:hover {
  background: #2a3440;
  border-color: #FFD700;
}

.page-aw8-cockfighting-match-analysis__faq-question:active {
  background: #0d0d0d;
}

/* 问题标题样式 */
.page-aw8-cockfighting-match-analysis__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #ffffff;
}

/* 切换图标 */
.page-aw8-cockfighting-match-analysis__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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-aw8-cockfighting-match-analysis__faq-item.active .page-aw8-cockfighting-match-analysis__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-aw8-cockfighting-match-analysis__title {
    font-size: 36px;
  }
  .page-aw8-cockfighting-match-analysis__heading {
    font-size: 30px;
  }
  .page-aw8-cockfighting-match-analysis__grid-2-cols {
    grid-template-columns: 1fr;
  }
  .page-aw8-cockfighting-match-analysis__image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-aw8-cockfighting-match-analysis__hero-content {
    padding-top: 100px; /* Mobile fixed header spacing */
    padding-bottom: 60px;
  }
  .page-aw8-cockfighting-match-analysis__title {
    font-size: 28px;
  }
  .page-aw8-cockfighting-match-analysis__subtitle {
    font-size: 16px;
  }
  .page-aw8-cockfighting-match-analysis__heading {
    font-size: 24px;
  }
  .page-aw8-cockfighting-match-analysis__sub-heading {
    font-size: 20px;
  }
  .page-aw8-cockfighting-match-analysis__section {
    padding: 40px 0;
  }
  .page-aw8-cockfighting-match-analysis__container {
    padding: 0 15px;
  }
  .page-aw8-cockfighting-match-analysis__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-aw8-cockfighting-match-analysis__btn-primary,
  .page-aw8-cockfighting-match-analysis__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }
  .page-aw8-cockfighting-match-analysis__paragraph {
    font-size: 15px;
  }
  .page-aw8-cockfighting-match-analysis__list-item {
    font-size: 15px;
  }
  .page-aw8-cockfighting-match-analysis__factor-grid,
  .page-aw8-cockfighting-match-analysis__steps-grid,
  .page-aw8-cockfighting-match-analysis__strategy-cards,
  .page-aw8-cockfighting-match-analysis__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-aw8-cockfighting-match-analysis__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-aw8-cockfighting-match-analysis__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-aw8-cockfighting-match-analysis__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-aw8-cockfighting-match-analysis__faq-answer {
    padding: 0 15px;
  }
  .page-aw8-cockfighting-match-analysis__faq-item.active .page-aw8-cockfighting-match-analysis__faq-answer {
    padding: 15px !important;
  }
  /* Mobile image responsiveness */
  .page-aw8-cockfighting-match-analysis img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-aw8-cockfighting-match-analysis__section,
  .page-aw8-cockfighting-match-analysis__card,
  .page-aw8-cockfighting-match-analysis__container,
  .page-aw8-cockfighting-match-analysis__image-wrapper,
  .page-aw8-cockfighting-match-analysis__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-aw8-cockfighting-match-analysis__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }
}