/* style/cockfighting.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000000;
  --bg-light: #f8f9fa;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--bg-dark);
  padding-top: 120px; /* Desktop: Fixed nav bar spacing */
}

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

.page-cockfighting__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-cockfighting__hero-section {
  padding-top: 10px; /* Override for video/hero section as per instructions */
  padding-bottom: 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: var(--text-light);
}

.page-cockfighting__hero-section .page-cockfighting__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-cockfighting__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.page-cockfighting__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__cta-button--primary {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-cockfighting__cta-button--primary:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-button--secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-cockfighting__cta-button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__section-title--light {
  color: var(--text-light);
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

.page-cockfighting__text-block--light {
  color: rgba(255, 255, 255, 0.9);
}

.page-cockfighting__features-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

.page-cockfighting__card {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-cockfighting__card-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-cockfighting__card-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

.page-cockfighting__how-to-section {
  background: linear-gradient(135deg, #0d0d0d 0%, var(--bg-dark) 100%);
  color: var(--text-light);
}

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

.page-cockfighting__step-item {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__step-icon {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--secondary-color);
  background-color: var(--primary-color);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-cockfighting__step-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-cockfighting__step-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__step-button:hover {
  background-color: #0056b3;
}

.page-cockfighting__bet-types-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

.page-cockfighting__bet-type-card {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__bet-type-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  text-align: center;
}

.page-cockfighting__bet-type-description {
  font-size: 1.05em;
  color: rgba(255, 255, 255, 0.8);
}

.page-cockfighting__promotions-section {
  background: linear-gradient(135deg, #0056b3 0%, var(--primary-color) 100%);
  color: var(--text-light);
}

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

.page-cockfighting__promotion-card {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__promotion-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-cockfighting__promotion-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
}

.page-cockfighting__promotion-button {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__promotion-button:hover {
  background-color: #e0a800;
}

.page-cockfighting__faq-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

/* FAQ容器样式 */
.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 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 25px;
  opacity: 0;
}

/* 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 25px !important;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* FAQ Answer Text */
.page-cockfighting__faq-answer p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* 问题样式 */
.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: var(--primary-color);
  border-radius: 8px;
  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-item.active .page-cockfighting__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-cockfighting__faq-question:hover {
  background-color: #0056b3;
}

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

/* 问题标题样式 */
.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  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(--secondary-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(--text-light);
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-cockfighting__responsible-gambling-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: var(--text-light);
}

.page-cockfighting__responsible-list {
  list-style: disc inside;
  font-size: 1.1em;
  max-width: 800px;
  margin: 30px auto 40px auto;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.page-cockfighting__responsible-list--light li {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.page-cockfighting__conclusion-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
}

/* -------------------------------------- */
/* Responsive Design */
/* -------------------------------------- */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 2.8em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__description,
  .page-cockfighting__text-block,
  .page-cockfighting__card-text,
  .page-cockfighting__step-text,
  .page-cockfighting__bet-type-description,
  .page-cockfighting__promotion-text,
  .page-cockfighting__faq-answer p,
  .page-cockfighting__responsible-list {
    font-size: 1em;
  }
  .page-cockfighting__card-title,
  .page-cockfighting__step-title,
  .page-cockfighting__bet-type-title,
  .page-cockfighting__promotion-title {
    font-size: 1.4em;
  }
  .page-cockfighting__step-icon {
    width: 60px;
    height: 60px;
    font-size: 2em;
  }
  .page-cockfighting__cta-button,
  .page-cockfighting__step-button,
  .page-cockfighting__promotion-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 1.1em;
  }
  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    padding-top: 100px !important; /* Mobile: Fixed nav bar spacing */
    font-size: 15px;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__section {
    padding: 40px 0;
  }

  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Mobile: Fixed nav bar spacing for hero */
    padding-bottom: 60px;
  }

  .page-cockfighting__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-cockfighting__description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

  .page-cockfighting__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-cockfighting__grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__bet-types-grid,
  .page-cockfighting__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card,
  .page-cockfighting__step-item,
  .page-cockfighting__bet-type-card,
  .page-cockfighting__promotion-card {
    padding: 20px;
  }

  .page-cockfighting__card-image {
    max-height: 150px;
  }

  .page-cockfighting__card-title,
  .page-cockfighting__step-title,
  .page-cockfighting__bet-type-title,
  .page-cockfighting__promotion-title {
    font-size: 1.2em;
  }

  .page-cockfighting__step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-cockfighting__step-button,
  .page-cockfighting__promotion-button {
    padding: 10px 20px;
    font-size: 0.9em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-cockfighting__faq-question h3 {
    font-size: 1em;
  }

  .page-cockfighting__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }

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

  .page-cockfighting__responsible-list {
    font-size: 0.95em;
    padding-left: 15px;
  }

  /* Ensure all images are responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__steps-grid,
  .page-cockfighting__bet-types-grid,
  .page-cockfighting__promotions-grid,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-cockfighting__hero-section .page-cockfighting__container {
    padding-left: 0;
    padding-right: 0;
  }
}