/* style/cockfighting.css */

:root {
  --primary-color: #0A2239;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f8f9fa;
  --background-dark: #0A2239;
  --border-color: #e0e0e0;
  --primary-color-rgb: 10, 34, 57;
  --secondary-color-rgb: 255, 215, 0;
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Body background is dark blue, so text should be light */
  background-color: var(--background-dark);
}

/* --- Hero Section --- */
.page-cockfighting__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* Assuming shared.css sets body padding-top */
  margin-top: 0;
  background-color: var(--background-dark);
}

.page-cockfighting__hero-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
}

.page-cockfighting__hero-image {
  width: 100%;
  margin: 0;
}

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

/* --- General Section Styling --- */
.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-cockfighting__section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-cockfighting__section-description {
  font-size: 18px;
  color: var(--text-light);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

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

.page-cockfighting__main-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-cockfighting__intro-text {
  font-size: 20px;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--text-light);
}

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

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

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

.page-cockfighting__btn-primary:hover {
  background-color: #e6b800; /* Darken secondary color */
  color: var(--primary-color);
}

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

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

.page-cockfighting__cta-buttons--center {
  margin: 50px auto 0 auto;
}

/* --- Why Choose Us Section --- */
.page-cockfighting__why-choose-us-section {
  background-color: var(--background-dark);
  padding: 80px 0;
}

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

.page-cockfighting__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for contrast */
  padding: 30px;
  border-radius: 10px;
  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__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Slightly brighten icons for visibility on dark bg */
}

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

.page-cockfighting__card-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light);
}

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

.page-cockfighting__game-types-section .page-cockfighting__section-title {
  color: var(--primary-color);
}

.page-cockfighting__game-types-section .page-cockfighting__section-description {
  color: var(--text-dark);
}

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

.page-cockfighting__game-type-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.page-cockfighting__game-type-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__game-type-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Example max-width, adjust as needed */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
}

.page-cockfighting__game-type-card .page-cockfighting__card-title {
  color: var(--primary-color);
}

.page-cockfighting__game-type-card .page-cockfighting__card-description {
  color: var(--text-dark);
}

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

.page-cockfighting__guide-section .page-cockfighting__section-title {
  color: var(--secondary-color);
}

.page-cockfighting__guide-section .page-cockfighting__section-description {
  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 {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__step-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1;
}

.page-cockfighting__step-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 15px;
}

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

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

.page-cockfighting__tips-section .page-cockfighting__section-title {
  color: var(--primary-color);
}

.page-cockfighting__tips-section .page-cockfighting__section-description {
  color: var(--text-dark);
}

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

.page-cockfighting__tip-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.page-cockfighting__tip-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__tip-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Example max-width, adjust as needed */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
}

.page-cockfighting__tip-card .page-cockfighting__card-title {
  color: var(--primary-color);
}

.page-cockfighting__tip-card .page-cockfighting__card-description {
  color: var(--text-dark);
}

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

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

.page-cockfighting__promotions-section .page-cockfighting__section-description {
  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__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  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__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__promo-image {
  width: 100%;
  height: auto;
  max-width: 600px; /* Example max-width, adjust as needed */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
}

.page-cockfighting__promo-card .page-cockfighting__card-title {
  color: var(--secondary-color);
}

.page-cockfighting__promo-card .page-cockfighting__card-description {
  color: var(--text-light);
}

.page-cockfighting__btn-promo {
  margin-top: 25px;
  display: block;
}

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

.page-cockfighting__faq-section .page-cockfighting__section-title {
  color: var(--primary-color);
}

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

/* FAQ容器样式 */
.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 2px 5px 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 15px;
  opacity: 0;
  color: var(--text-dark);
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể 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;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* Vấn đề kiểu dáng */
.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;
  color: var(--primary-color);
}

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

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

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

/* Chuyển đổi biểu tượng */
.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; /* 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: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(var(--secondary-color-rgb), 0.1);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Tùy chọn: xoay để tạo hiệu ứng 'X' */
  background-color: rgba(var(--primary-color-rgb), 0.1);
}

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

.page-cockfighting__conclusion-section .page-cockfighting__section-title {
  color: var(--secondary-color);
}

.page-cockfighting__conclusion-section .page-cockfighting__section-description {
  color: var(--text-light);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 42px;
  }
  .page-cockfighting__section-title {
    font-size: 32px;
  }
  .page-cockfighting__intro-text {
    font-size: 18px;
  }
  .page-cockfighting__btn-primary, .page-cockfighting__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 40px 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .page-cockfighting__hero-section {
    padding-top: 0 !important; /* Ensure no double padding on mobile */
  }

  .page-cockfighting__main-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

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

  .page-cockfighting__intro-text,
  .page-cockfighting__section-description,
  .page-cockfighting__card-description,
  .page-cockfighting__step-description {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__game-types-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__tips-grid,
  .page-cockfighting__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}