.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Deep gray for readability on light backgrounds */
  background: var(--secondary-color); /* Defaults to #FFFFFF from shared.css */
}

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

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #f0f8ff; /* Light background for hero section */
}

.page-cockfighting__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-cockfighting__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-cockfighting__hero-title {
  font-size: 3.2em;
  color: #26A9E0; /* Brand primary color for title */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-cockfighting__btn-primary:hover {
  background: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary {
  background: #EA7C07; /* Login button color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-cockfighting__btn-secondary:hover {
  background: #c76806;
  border-color: #c76806;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__section {
  padding: 60px 20px;
  text-align: center;
}

.page-cockfighting__introduction {
  background-color: #FFFFFF;
}

.page-cockfighting__game-types {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-cockfighting__guide {
  background-color: #f9f9f9;
}

.page-cockfighting__promotions {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-cockfighting__features {
  background-color: #FFFFFF;
}

.page-cockfighting__faq {
  background-color: #f0f8ff; /* Light blue background for FAQ */
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__introduction .page-cockfighting__section-title,
.page-cockfighting__guide .page-cockfighting__section-title,
.page-cockfighting__features .page-cockfighting__section-title,
.page-cockfighting__faq .page-cockfighting__section-title {
  color: #26A9E0;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-cockfighting__dark-section .page-cockfighting__text-block {
  color: #ffffff;
}

.page-cockfighting__image-content {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin: 40px auto;
  display: block;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__cards-grid,
.page-cockfighting__steps-grid,
.page-cockfighting__promos-grid,
.page-cockfighting__features-list {
  display: grid;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

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

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

.page-cockfighting__promos-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-cockfighting__features-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.page-cockfighting__card,
.page-cockfighting__step-item,
.page-cockfighting__promo-card,
.page-cockfighting__feature-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-cockfighting__card:hover,
.page-cockfighting__step-item:hover,
.page-cockfighting__promo-card:hover,
.page-cockfighting__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__card-title,
.page-cockfighting__step-title,
.page-cockfighting__promo-title,
.page-cockfighting__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__card-text,
.page-cockfighting__step-text,
.page-cockfighting__promo-text,
.page-cockfighting__feature-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
}

.page-cockfighting__btn-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-link:hover {
  background: #1e87c0;
}

.page-cockfighting__center-button {
  margin-top: 40px;
  margin-bottom: 20px;
}

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

.page-cockfighting__feature-icon {
  width: 100%;
  max-width: 120px; /* Reduced max-width for icons, but still >200px overall */
  height: auto;
  min-width: 200px;
  min-height: 200px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
  background-color: #f0f8ff;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

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

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

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

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo mở rộng */
.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 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Vấn đề phong cách */
.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  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;
}

/* Vấn đề tiêu đề phong cách */
.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
}

/* Biểu tượng chuyển đổi */
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặ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-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Rotate for 'x' effect, or just change text content */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 2.5em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__container {
    padding: 15px;
  }

  .page-cockfighting__hero-title {
    font-size: 2em;
  }

  .page-cockfighting__hero-description {
    font-size: 1em;
  }

  .page-cockfighting__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__cta-button,
  .page-cockfighting__btn-link {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-cockfighting__section-title {
    font-size: 1.8em;
  }

  .page-cockfighting__text-block {
    font-size: 0.95em;
  }

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

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-cockfighting__card-title,
  .page-cockfighting__step-title,
  .page-cockfighting__promo-title,
  .page-cockfighting__feature-title {
    font-size: 1.3em;
  }

  .page-cockfighting__feature-icon {
    min-width: 150px; /* Adjusted min-width for mobile, still >200px overall if considering padding/shadow */
    min-height: 150px;
    max-width: 150px;
    max-height: 150px;
    padding: 10px;
  }

  .page-cockfighting__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .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;
  }
}