/* style/cockfighting.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */

/* Base Styles for Page Cockfighting */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Màu chữ mặc định từ bảng màu tùy chỉnh */
  background-color: var(--bg-color, #08160F); /* Màu nền mặc định từ bảng màu tùy chỉnh */
}

/* Section Styling */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Hình ảnh trên văn bản */
  align-items: center;
  padding: 10px 0 60px 0; /* Đệm trên nhỏ, đệm dưới lớn hơn */
  text-align: center;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  /* Duy trì tỷ lệ khung hình */
  padding-bottom: 56.25%; /* Tỷ lệ khung hình 16:9 */
  height: 0;
}

.page-cockfighting__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-cockfighting__hero-content {
  position: relative; /* Đảm bảo nội dung nằm trên bất kỳ nền nào */
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  margin-top: -80px; /* Hơi chồng lên hình ảnh để tạo luồng thị giác */
  background: var(--card-bg, #11271B); /* Nền tối cho nội dung */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__main-title {
  font-size: 2.5rem;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-cockfighting__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

.page-cockfighting__cta-button--final {
  margin-top: 30px;
}

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

.page-cockfighting__dark-bg {
  background-color: var(--bg-color, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__light-bg {
  background-color: var(--card-bg, #11271B); /* Sử dụng Card BG làm nền sáng hơn cho các phần tương phản */
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__section-title {
  font-size: 2.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__section-title--dark {
  color: var(--text-main, #F2FFF6); /* Đảm bảo chữ sáng trên nền tối */
}

.page-cockfighting__description--dark {
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-cockfighting__text-block {
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: justify;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  color: var(--text-secondary, #A7D9B8);
}

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

.page-cockfighting__card {
  background: var(--card-bg, #11271B); /* Nền thẻ tối hơn */
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__card-image {
  width: 100%;
  height: auto;
  max-height: 225px; /* Giới hạn chiều cao để nhất quán */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

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

.page-cockfighting__card--dark {
  background: var(--bg-color, #08160F); /* Nền thẻ thậm chí tối hơn cho một số thẻ */
  border-color: var(--divider, #1E3A2A);
}

.page-cockfighting__card-title--light {
  color: var(--text-main, #F2FFF6);
}

/* Step-by-Step Guide */
.page-cockfighting__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__step-card {
  text-align: left;
  padding: 30px;
}

.page-cockfighting__step-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-cockfighting__step-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__step-list li strong {
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__step-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  font-weight: bold;
}

/* Call to Action Wrapper */
.page-cockfighting__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  background: var(--deep-green, #0A4B2C); /* Nền tối hơn cho câu hỏi */
  color: var(--text-main, #F2FFF6);
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-cockfighting__faq-question:hover {
  background: var(--glow, #57E38D); /* Xanh lá nhạt hơn khi di chuột */
  color: #08160F; /* Chữ tối trên nền sáng hơn khi di chuột */
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  background: var(--card-bg, #11271B);
}

/* Reset default details/summary styling */
.page-cockfighting__faq-item summary {
  list-style: none; /* Xóa dấu mặc định */
}
.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none; /* Xóa dấu mặc định cho trình duyệt Webkit */
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-cockfighting__hero-content {
    margin-top: -60px;
    padding: 15px;
    border-radius: 8px;
  }

  .page-cockfighting__main-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-cockfighting__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-cockfighting__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  .page-cockfighting__content-area {
    padding: 40px 15px;
  }

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

  .page-cockfighting__description--dark {
    margin-bottom: 30px;
  }

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

  .page-cockfighting__card {
    padding: 20px;
  }

  .page-cockfighting__card-image {
    max-height: 180px; /* Điều chỉnh cho di động */
  }

  .page-cockfighting__card-title {
    font-size: 1.3rem;
  }

  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

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

  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Containers for images/videos/buttons */
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__content-area,
  .page-cockfighting__features-grid,
  .page-cockfighting__game-types-grid,
  .page-cockfighting__tips-grid,
  .page-cockfighting__step-by-step,
  .page-cockfighting__step-card,
  .page-cockfighting__feature-card,
  .page-cockfighting__game-card,
  .page-cockfighting__tip-card,
  .page-cockfighting__faq-list,
  .page-cockfighting__faq-item,
  .page-cockfighting__cta-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-cockfighting__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-cockfighting__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .page-cockfighting__hero-content {
    padding-left: 15px;
    padding-right: 15px;
    max-width: calc(100% - 30px); /* Điều chỉnh max-width cho padding */
  }
}