/* style/cockfighting.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm padding-top cho main hoặc section đầu tiên */
.page-cockfighting {
  color: var(--text-main, #F2FFF6);
  background-color: var(--background-color-page, #08160F); /* Màu nền riêng của trang */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Đảm bảo có khoảng trống phía trên footer */
}

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

/* Hero Section */
.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: 10px; /* Khoảng cách nhỏ từ phía trên, body đã xử lý bù trừ header */
  background-color: var(--card-bg, #11271B); /* Sử dụng màu nền tối từ bảng màu tùy chỉnh */
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Giới hạn chiều cao */
  overflow: hidden;
  margin-bottom: 30px; /* Khoảng cách giữa hình ảnh và nội dung */
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-main, #F2FFF6);
  max-width: 800px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Kích thước H1 đáp ứng */
  font-weight: 700;
  color: var(--gold-color, #F2C14E); /* Sử dụng màu vàng cho tiêu đề chính */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Cho phép xuống dòng trên màn hình nhỏ */
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 500px; /* Giới hạn chiều rộng nhóm nút */
  margin: 0 auto;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Đảm bảo padding được tính vào chiều rộng */
  max-width: 100%; /* Đảm bảo các nút không bị tràn */
  white-space: normal; /* Cho phép văn bản xuống dòng */
  word-wrap: break-word; /* Cho phép từ dài xuống dòng */
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main, #F2FFF6);
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4); /* Màu glow */
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--main-color, #11A84E);
  border: 2px solid var(--main-color, #11A84E);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--main-color, #11A84E);
  color: var(--text-main, #F2FFF6);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

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

/* Phong cách chung cho các section */
.page-cockfighting__intro-section,
.page-cockfighting__features-section,
.page-cockfighting__guide-section,
.page-cockfighting__video-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__call-to-action {
  padding: 80px 0;
}

.page-cockfighting__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color, #F2C14E); /* Sử dụng màu vàng cho tiêu đề section */
}

.page-cockfighting__light-bg {
  background-color: var(--background-color-page, #08160F); /* Sử dụng màu nền trang */
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__dark-bg {
  background-color: var(--card-bg, #11271B); /* Sử dụng màu nền tối hơn cho độ tương phản */
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__content-image,
.page-cockfighting__promo-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-cockfighting__card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main, #F2FFF6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold-color, #F2C14E);
}

.page-cockfighting__card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary, #A7D9B8);
}

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

.page-cockfighting__guide-step {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__step-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold-color, #F2C14E);
}

/* Video Section */
.page-cockfighting__video-section .page-cockfighting__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%; /* Đảm bảo nó chiếm toàn bộ chiều rộng của container */
  padding-bottom: 56.25%; /* Tỷ lệ khung hình 16:9 */
  height: 0;
  overflow: hidden;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__video-link-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5; /* Đảm bảo liên kết có thể nhấp được trên video */
  cursor: pointer;
  display: block; /* Biến nó thành một phần tử block */
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: none; /* Vô hiệu hóa sự kiện con trỏ trên chính video */
}

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

.page-cockfighting__promo-card {
  text-align: left;
}

.page-cockfighting__promo-card .page-cockfighting__card-title {
  margin-top: 15px;
  text-align: left;
}

.page-cockfighting__promo-card p {
  text-align: left;
  margin-bottom: 20px;
}

.page-cockfighting__card-link {
  display: inline-block;
  color: var(--main-color, #11A84E);
  text-decoration: none;
  font-weight: 600;
  margin-top: auto; /* Đẩy liên kết xuống dưới cùng */
  transition: color 0.3s ease;
}

.page-cockfighting__card-link:hover {
  color: var(--gold-color, #F2C14E);
  text-decoration: underline;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__faq-item summary {
  list-style: none; /* Ẩn dấu mặc định */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-color, #F2C14E);
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none; /* Ẩn dấu mặc định cho trình duyệt webkit */
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  width: 20px;
  text-align: center;
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary, #A7D9B8);
  text-align: justify;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: '−'; /* Thay đổi thành dấu trừ khi mở */
}

/* Call to Action Section */
.page-cockfighting__cta-wrapper {
  text-align: center;
  padding: 50px 20px;
  background-color: var(--card-bg, #11271B); /* Sử dụng màu nền tối hơn cho độ tương phản */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-wrapper .page-cockfighting__section-title {
  color: var(--gold-color, #F2C14E);
  margin-bottom: 20px;
}

.page-cockfighting__cta-wrapper .page-cockfighting__text-block {
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-secondary, #A7D9B8);
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-cockfighting__section-title {
    font-size: 2rem;
  }

  .page-cockfighting__hero-section,
  .page-cockfighting__intro-section,
  .page-cockfighting__features-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__video-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__call-to-action {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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

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

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Thêm padding cho các nút trên di động */
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important; /* Buộc toàn bộ chiều rộng trên di động */
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }

  .page-cockfighting__feature-grid,
  .page-cockfighting__guide-steps,
  .page-cockfighting__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__hero-section,
  .page-cockfighting__intro-section,
  .page-cockfighting__features-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__call-to-action {
    padding: 40px 0;
  }

  .page-cockfighting__video-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
    padding-bottom: 40px;
  }

  /* Responsive hình ảnh */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Tất cả các container chứa hình ảnh/video/nút */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ngăn cuộn ngang */
  }

  .page-cockfighting__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
  }

  .page-cockfighting__cta-wrapper {
    padding: 30px 15px;
  }
}