/* style/cockfighting.css */

/* Variables */
:root {
  --e2betvip-gold: #FFD700;
  --e2betvip-dark-blue: #1A2B3C;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-light: #f8f8f8;
  --border-light: #e0e0e0;
}

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default to light text on dark body background */
  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: 700;
  color: var(--e2betvip-gold);
  text-align: center;
  margin-bottom: 30px;
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background-color: var(--e2betvip-gold);
  color: var(--e2betvip-dark-blue);
  border: 2px solid var(--e2betvip-gold);
}

.page-cockfighting__btn-primary:hover {
  background-color: darken(var(--e2betvip-gold), 10%); /* Placeholder for darken */
  color: var(--text-light);
  border-color: darken(var(--e2betvip-gold), 10%); /* Placeholder for darken */
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--e2betvip-gold);
  border: 2px solid var(--e2betvip-gold);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--e2betvip-gold);
  color: var(--e2betvip-dark-blue);
}

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  background-color: var(--e2betvip-gold);
  color: var(--e2betvip-dark-blue);
  border: none;
}

.page-cockfighting__btn-small:hover {
  background-color: darken(var(--e2betvip-gold), 10%); /* Placeholder for darken */
  color: var(--text-light);
}

/* Hero Banner Section */
.page-cockfighting__hero-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: var(--header-offset, 120px) 0 60px; /* Use header offset if body padding is not set */
  background: var(--e2betvip-dark-blue);
  overflow: hidden;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin-bottom: 40px;
  padding: 0 20px;
}

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

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

.page-cockfighting__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Intro Section */
.page-cockfighting__intro-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-cockfighting__intro-section .page-cockfighting__section-title {
  color: var(--e2betvip-dark-blue);
}

.page-cockfighting__intro-section .page-cockfighting__paragraph {
  color: var(--text-dark);
}

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

.page-cockfighting__feature-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

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

.page-cockfighting__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--e2betvip-dark-blue);
  margin-bottom: 10px;
}

.page-cockfighting__feature-description {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.7;
}

/* Game Types Section */
.page-cockfighting__game-types {
  padding: 80px 0;
  background-color: var(--e2betvip-dark-blue);
  color: var(--text-light);
}

.page-cockfighting__game-types .page-cockfighting__section-title {
  color: var(--e2betvip-gold);
}

.page-cockfighting__game-types .page-cockfighting__paragraph {
  color: var(--text-light);
}

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

.page-cockfighting__type-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.page-cockfighting__type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.page-cockfighting__type-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-cockfighting__type-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--e2betvip-gold);
  padding: 20px 20px 10px;
}

.page-cockfighting__type-description {
  font-size: 16px;
  color: var(--text-light);
  padding: 0 20px 20px;
}

/* How To Play Section */
.page-cockfighting__how-to-play {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-cockfighting__how-to-play .page-cockfighting__section-title {
  color: var(--e2betvip-dark-blue);
}

.page-cockfighting__how-to-play .page-cockfighting__paragraph {
  color: var(--text-dark);
}

.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.page-cockfighting__step-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative;
}

.page-cockfighting__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  top: -20px;
  left: 20px;
  background: var(--e2betvip-gold);
  color: var(--e2betvip-dark-blue);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.page-cockfighting__step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--e2betvip-dark-blue);
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-cockfighting__step-description {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.7;
}

.page-cockfighting__cta-group--center {
  margin-top: 50px;
  text-align: center;
}

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

.page-cockfighting__promotions-section .page-cockfighting__section-title {
  color: var(--e2betvip-gold);
}

.page-cockfighting__promotions-section .page-cockfighting__paragraph {
  color: var(--text-light);
}

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

.page-cockfighting__promo-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.page-cockfighting__promo-card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__promo-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--e2betvip-gold);
  margin-bottom: 15px;
}

.page-cockfighting__promo-description {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.7;
}

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

.page-cockfighting__faq-section .page-cockfighting__section-title {
  color: var(--e2betvip-dark-blue);
}

.page-cockfighting__faq-list {
  max-width: 800px;
  margin: 50px auto 0;
}

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

/* 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 20px;
  opacity: 0;
  color: var(--text-dark);
}

/* 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 !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.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(--e2betvip-dark-blue);
}

/* 切换图标 */
.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--e2betvip-gold);
  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(--e2betvip-dark-blue);
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

/* Call to Action Section */
.page-cockfighting__cta-section {
  padding: 80px 0;
  background-color: var(--e2betvip-dark-blue);
  color: var(--text-light);
  text-align: center;
}

.page-cockfighting__cta-content {
  max-width: 900px;
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
  color: var(--e2betvip-gold);
}

.page-cockfighting__cta-section .page-cockfighting__paragraph {
  color: var(--text-light);
  margin-bottom: 40px;
}

.page-cockfighting__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 44px;
  }

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

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

  .page-cockfighting__feature-grid,
  .page-cockfighting__type-grid,
  .page-cockfighting__steps-list,
  .page-cockfighting__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-cockfighting__hero-banner {
    padding: var(--header-offset-mobile, 80px) 0 40px; /* Adjust for mobile header offset */
    min-height: 450px;
  }

  .page-cockfighting__hero-content {
    padding: 0 15px;
  }

  .page-cockfighting__hero-title {
    font-size: 32px !important;
    margin-bottom: 15px;
  }

  .page-cockfighting__hero-description {
    font-size: 16px !important;
    margin-bottom: 20px;
  }

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

  .page-cockfighting__hero-image-wrapper {
    opacity: 0.2;
  }

  /* 通用图片与容器 */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* 按钮与按钮容器 */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 16px;
  }

  .page-cockfighting__cta-group,
  .page-cockfighting__cta-group--center {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden;
  }

  /* 其他内容模块 */
  .page-cockfighting__intro-section,
  .page-cockfighting__game-types,
  .page-cockfighting__how-to-play,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 40px 0;
  }

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

  .page-cockfighting__paragraph {
    font-size: 15px !important;
    margin-bottom: 15px;
  }

  .page-cockfighting__feature-grid,
  .page-cockfighting__type-grid,
  .page-cockfighting__steps-list,
  .page-cockfighting__promo-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    margin-top: 30px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__type-card,
  .page-cockfighting__step-item,
  .page-cockfighting__promo-card {
    padding: 20px;
  }

  .page-cockfighting__feature-title,
  .page-cockfighting__type-title,
  .page-cockfighting__step-title,
  .page-cockfighting__promo-title {
    font-size: 20px !important;
  }

  .page-cockfighting__feature-description,
  .page-cockfighting__type-description,
  .page-cockfighting__step-description,
  .page-cockfighting__promo-description {
    font-size: 14px !important;
  }

  /* FAQ 移动端适配 */
  .page-cockfighting__faq-question {
    padding: 15px;
    flex-wrap: wrap;
    border-radius: 8px;
  }
  
  .page-cockfighting__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-cockfighting__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-cockfighting__faq-answer {
    padding: 0 15px;
  }
  
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }

  .page-cockfighting__faq-item {
    border-radius: 8px;
  }

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