/* style/cockfighting.css */

:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --background-dark: #0A2463;
  --border-color: #e0e0e0;
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #ffffff; /* Default body background is white */
}

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

/* Ensure content is not hidden by fixed header */
.page-cockfighting__padding-top-desktop {
  padding-top: 120px; /* Adjust based on actual header height */
}

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

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
}

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

.page-cockfighting__section-subtitle {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 40px;
}

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

.page-cockfighting__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #061536 100%);
  color: var(--text-light);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-cockfighting__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-cockfighting__cta-center {
  margin-top: 40px;
}

.page-cockfighting__cta-button,
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__card-button,
.page-cockfighting__promo-button,
.page-cockfighting__faq-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-cockfighting__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__intro-section {
  background-color: var(--background-light);
}

.page-cockfighting__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-cockfighting__text-block {
  flex: 1;
  font-size: 17px;
  line-height: 1.7;
}

.page-cockfighting__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

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

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

.page-cockfighting__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__card--light-bg {
  background-color: #ffffff;
  color: var(--text-dark);
}

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

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

.page-cockfighting__card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-cockfighting__card-description {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__card-button {
  margin-top: auto;
}

.page-cockfighting__benefits-section {
  background-color: #ffffff;
}

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

.page-cockfighting__benefit-item {
  background: var(--background-light);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-cockfighting__benefit-item:hover {
  transform: translateY(-5px);
}

.page-cockfighting__benefit-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__benefit-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-cockfighting__benefit-description {
  font-size: 16px;
  line-height: 1.6;
}

.page-cockfighting__guide-section {
  background-color: var(--background-light);
}

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

.page-cockfighting__step-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
  padding-top: 60px; /* Space for step number */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--secondary-color);
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-cockfighting__step-description {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__step-button {
  margin-top: auto;
}

.page-cockfighting__tips-section {
  background-color: #ffffff;
}

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

.page-cockfighting__tip-item {
  background: var(--background-light);
  border-left: 5px solid var(--secondary-color);
  border-radius: 5px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__tip-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-cockfighting__tip-description {
  font-size: 16px;
  line-height: 1.6;
}

.page-cockfighting__promotions-section {
  background-color: var(--background-dark);
}

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

.page-cockfighting__promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

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

.page-cockfighting__promo-description {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__promo-button {
  margin-top: auto;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: #ffffff;
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  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, opacity 0.4s ease;
  padding: 0 15px;
  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 15px !important;
  opacity: 1;
  background: var(--background-light);
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  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;
}

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

/* 切换图标 */
.page-cockfighting__faq-toggle {
  font-size: 28px;
  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; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

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

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-cockfighting__faq-button {
  margin-top: 20px;
  display: block;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__conclusion-section {
  background: linear-gradient(135deg, #061536 0%, var(--primary-color) 100%);
  color: var(--text-light);
  padding: 80px 0;
}

.page-cockfighting__conclusion-text {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 42px;
  }
  .page-cockfighting__section-title {
    font-size: 32px;
  }
  .page-cockfighting__hero-description {
    font-size: 18px;
  }
  .page-cockfighting__card-title {
    font-size: 22px;
  }
  .page-cockfighting__benefit-title {
    font-size: 18px;
  }
  .page-cockfighting__step-title {
    font-size: 20px;
  }
  .page-cockfighting__promo-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__padding-top-desktop {
    padding-top: 100px !important; /* Mobile adjust */
  }
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__hero-section {
    padding: 60px 0 40px;
  }
  .page-cockfighting__main-title {
    font-size: 36px;
  }
  .page-cockfighting__section-title {
    font-size: 28px;
  }
  .page-cockfighting__hero-description {
    font-size: 16px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__cta-button,
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__card-button,
  .page-cockfighting__promo-button,
  .page-cockfighting__faq-button {
    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__content-wrapper {
    flex-direction: column;
  }
  .page-cockfighting__text-block, .page-cockfighting__image-block {
    flex: none;
    width: 100%;
  }
  .page-cockfighting__image {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__card-image, .page-cockfighting__promo-image {
    height: 180px;
  }
  .page-cockfighting__benefit-icon {
    width: 60px;
    height: 60px;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 16px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 10px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px 10px !important;
  }
  .page-cockfighting__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__benefit-item,
  .page-cockfighting__step-item,
  .page-cockfighting__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__grid-cards,
  .page-cockfighting__grid-benefits,
  .page-cockfighting__guide-steps,
  .page-cockfighting__tips-grid,
  .page-cockfighting__promotion-cards {
    gap: 20px;
    margin-top: 20px;
  }
  .page-cockfighting__faq-list {
    margin-top: 20px;
  }
  .page-cockfighting__faq-button {
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: 32px;
  }
  .page-cockfighting__section-title {
    font-size: 24px;
  }
  .page-cockfighting__hero-description {
    font-size: 15px;
  }
  .page-cockfighting__cta-buttons {
    gap: 10px;
  }
  .page-cockfighting__cta-button,
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__card-button,
  .page-cockfighting__promo-button,
  .page-cockfighting__faq-button {
    padding: 10px 20px;
    font-size: 15px;
  }
  .page-cockfighting__card-title,
  .page-cockfighting__promo-title {
    font-size: 20px;
  }
  .page-cockfighting__benefit-title,
  .page-cockfighting__step-title,
  .page-cockfighting__tip-title {
    font-size: 18px;
  }
  .page-cockfighting__card-description,
  .page-cockfighting__benefit-description,
  .page-cockfighting__step-description,
  .page-cockfighting__tip-description,
  .page-cockfighting__promo-description,
  .page-cockfighting__faq-answer p {
    font-size: 15px;
  }
  .page-cockfighting__conclusion-text {
    font-size: 16px;
  }
}