/* style/cockfighting.css */

:root {
  --primary-color: #002060;
  --accent-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0d0d0d;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
}

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark (#0d0d0d), so text should be light */
  background-color: var(--bg-dark);
}

.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--accent-color);
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-cockfighting__paragraph {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-light);
}

.page-cockfighting__paragraph strong {
  color: var(--accent-color);
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.page-cockfighting__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Common image styles */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* HERO Section */
.page-cockfighting__hero-section {
  position: relative;
  padding-top: 0; /* shared already sets padding-top on body */
  padding-bottom: 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-cockfishing__dark-bg {
  background-color: var(--primary-color);
}

.page-cockfighting__hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px;
}

.page-cockfighting__hero-content {
  flex: 1;
  max-width: 50%;
  text-align: left;
  z-index: 1;
}

.page-cockfighting__hero-title {
  font-size: 52px;
  color: var(--accent-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
}

.page-cockfighting__hero-cta-buttons {
  display: flex;
  gap: 20px;
}

.page-cockfighting__hero-image {
  flex: 1;
  max-width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__hero-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

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

.page-cockfighting__feature-card {
  background-color: var(--card-bg-dark-mode);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-light);
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-10px);
}

.page-cockfighting__feature-card img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting__feature-card h3 {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.page-cockfighting__feature-card p {
  font-size: 16px;
  color: var(--text-light);
}

/* Bet Types Section */
.page-cockfighting__bet-types-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

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

.page-cockfighting__bet-type-card {
  background-color: var(--card-bg-dark-mode);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.page-cockfighting__bet-type-card h3 {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.page-cockfighting__bet-type-card p {
  font-size: 16px;
}

/* Guide Section */
.page-cockfighting__guide-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-step;
}

.page-cockfighting__guide-list li {
  background-color: var(--card-bg-dark-mode);
  margin-bottom: 25px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-left: 80px;
  color: var(--text-light);
}

.page-cockfighting__guide-list li::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 30px;
  top: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
}

.page-cockfighting__guide-list li h3 {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.page-cockfighting__guide-list li p {
  font-size: 16px;
}

.page-cockfighting__guide-list li a {
  color: var(--accent-color);
  text-decoration: underline;
}

.page-cockfighting__guide-list li a:hover {
  color: #e6c200;
}

.page-cockfighting__guide-cta {
  text-align: center;
  margin-top: 50px;
}

/* Strategies Section */
.page-cockfighting__strategies-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

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

.page-cockfighting__strategy-card {
  background-color: var(--card-bg-dark-mode);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.page-cockfighting__strategy-card h3 {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.page-cockfighting__strategy-card p {
  font-size: 16px;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.page-cockfighting__promotion-list {
  list-style: disc;
  padding-left: 40px;
  margin-top: 30px;
  color: var(--text-light);
  font-size: 18px;
}

.page-cockfighting__promotion-list li {
  margin-bottom: 15px;
  line-height: 1.8;
}

.page-cockfighting__promotion-list li strong {
  color: var(--accent-color);
}

.page-cockfighting__promotions-cta {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

.page-cockfighting__faq-list {
  margin-top: 40px;
}

/* FAQ容器样式 */
.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: var(--card-bg-dark-mode);
}

/* FAQ默认状态 - 答案隐藏 */
.page-cockfighting__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: var(--text-light);
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-cockfighting__faq-item.active .page-cockfighting__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 30px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 30px;
  background: rgba(255, 255, 255, 0.1);
  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-light);
}

.page-cockfighting__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-color);
}

.page-cockfighting__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

/* 问题标题样式 */
.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--text-light);
}

/* 切换图标 */
.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--accent-color);
  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: 32px;
  height: 32px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: var(--accent-color);
  transform: rotate(45deg);
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  text-align: center;
}

.page-cockfighting__conclusion-cta {
  margin-top: 50px;
}

.page-cockfighting__conclusion-section .page-cockfighting__paragraph {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------- */
/* Mobile Responsive Styles (max-width: 768px) */
/* ---------------------------------- */
@media (max-width: 1024px) {
  .page-cockfighting__hero-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-cockfighting__hero-content,
  .page-cockfighting__hero-image {
    max-width: 100%;
  }

  .page-cockfighting__hero-cta-buttons {
    justify-content: center;
  }

  .page-cockfighting__hero-title {
    font-size: 44px;
  }

  .page-cockfighting__hero-description {
    font-size: 18px;
  }

  .page-cockfighting__section-title {
    font-size: 30px;
  }

  .page-cockfighting__paragraph {
    font-size: 16px;
  }

  .page-cockfighting__feature-cards,
  .page-cockfighting__bet-type-grid,
  .page-cockfighting__strategy-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-cockfighting__guide-list li {
    padding-left: 60px;
  }

  .page-cockfighting__guide-list li::before {
    left: 20px;
    top: 25px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .page-cockfighting__guide-list li h3 {
    font-size: 20px;
  }

  .page-cockfighting__promotion-list {
    font-size: 16px;
  }

  .page-cockfighting__faq-question h3 {
    font-size: 17px;
  }

  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-cockfighting__hero-section {
    padding-top: 0 !important; /* shared already sets padding-top on body */
    padding-bottom: 60px;
  }

  .page-cockfighting__hero-container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__hero-title {
    font-size: 36px !important;
    text-align: center;
  }

  .page-cockfighting__hero-description {
    font-size: 16px !important;
    text-align: center;
  }

  .page-cockfighting__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* General content area, images, and containers */
  .page-cockfighting__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__section-title {
    font-size: 26px !important;
    margin-bottom: 30px;
  }

  .page-cockfighting__paragraph {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  /* Buttons and button containers */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  .page-cockfighting__hero-cta-buttons,
  .page-cockfighting__guide-cta,
  .page-cockfighting__promotions-cta,
  .page-cockfighting__conclusion-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  /* Introduction Section */
  .page-cockfighting__introduction-section {
    padding: 60px 0;
  }

  .page-cockfighting__feature-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-card {
    padding: 25px;
  }

  .page-cockfighting__feature-card h3 {
    font-size: 20px;
  }

  /* Bet Types Section */
  .page-cockfighting__bet-types-section {
    padding: 60px 0;
  }

  .page-cockfighting__bet-type-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__bet-type-card h3 {
    font-size: 20px;
  }

  /* Guide Section */
  .page-cockfighting__guide-section {
    padding: 60px 0;
  }

  .page-cockfighting__guide-list li {
    padding: 25px 15px 25px 60px;
    font-size: 15px;
  }

  .page-cockfighting__guide-list li::before {
    left: 15px;
    top: 20px;
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .page-cockfighting__guide-list li h3 {
    font-size: 18px;
  }

  /* Strategies Section */
  .page-cockfighting__strategies-section {
    padding: 60px 0;
  }

  .page-cockfighting__strategy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__strategy-card h3 {
    font-size: 20px;
  }

  /* Promotions Section */
  .page-cockfighting__promotions-section {
    padding: 60px 0;
  }

  .page-cockfighting__promotion-list {
    padding-left: 25px;
    font-size: 15px;
  }

  /* FAQ Section */
  .page-cockfighting__faq-section {
    padding: 60px 0;
  }

  .page-cockfighting__faq-question {
    padding: 15px 20px;
  }

  .page-cockfighting__faq-question h3 {
    font-size: 16px !important;
  }

  .page-cockfighting__faq-toggle {
    font-size: 22px !important;
    width: 26px !important;
    height: 26px !important;
  }

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

  /* Conclusion Section */
  .page-cockfighting__conclusion-section {
    padding: 60px 0;
  }
}