/* style/cockfighting.css */
/* body đã padding-top: var(--header-offset)；trang này không được thêm lại biến đó */
.page-cockfighting {
  background-color: #08160F; /* Nền tối theo tùy chỉnh */
  color: #F2FFF6; /* Văn bản chính màu sáng */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Buộc hình ảnh trên, nội dung dưới */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Chỉ một khoảng đệm nhỏ, không dùng var(--header-offset) */
  box-sizing: border-box;
  text-align: center;
}

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

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

.page-cockfighting__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Sử dụng clamp cho tiêu đề chính */
  font-weight: bold;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__intro-text {
  font-size: 1.2rem;
  color: #A7D9B8;
  margin-bottom: 30px;
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên di động */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Cho phép văn bản nút xuống dòng */
  word-wrap: break-word; /* Cho phép từ xuống dòng */
  max-width: 100%;
  width: auto; /* Mặc định tự động điều chỉnh */
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #2AD16F;
  color: #F2FFF6;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-link {
  background-color: transparent;
  color: #57E38D; /* Màu Glow */
  border: 1px solid #57E38D;
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 15px;
}

.page-cockfighting__btn-link:hover {
  background-color: #57E38D;
  color: #08160F;
}

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

.page-cockfighting__dark-section {
  background-color: #11271B; /* Màu Card B G */
  color: #F2FFF6; /* Văn bản chính màu sáng */
  padding: 60px 0;
}

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
  line-height: 1.3;
}

.page-cockfighting__section-description {
  font-size: 1.1rem;
  color: #A7D9B8;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__feature-card {
  background-color: #0A4B2C; /* Deep Green */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-cockfighting__feature-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__feature-text {
  font-size: 1rem;
  color: #A7D9B8;
}

/* How To Play Section */
.page-cockfighting__how-to-play-section {
  padding: 60px 0;
  background-color: #08160F; /* Nền tối */
}

.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-cockfighting__step-item {
  background-color: #11271B; /* Card B G */
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E;
}

.page-cockfighting__step-title {
  font-size: 1.6rem;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__step-text {
  font-size: 1.1rem;
  color: #F2FFF6;
}

/* Live Matches Section */
.page-cockfighting__live-matches-section {
  padding: 60px 0;
  background-color: #11271B; /* Card B G */
}

.page-cockfighting__video-container {
  position: relative;
  width: 100%;
  max-width: 1280px; /* Video max width */
  margin: 40px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  background-color: #000; /* Đảm bảo nền đen nếu video chưa tải */
}

/* Video wrapper to maintain aspect ratio */
.page-cockfighting__video-link {
  display: block; /* Đảm bảo liên kết bao phủ toàn bộ video */
  cursor: pointer;
}

.page-cockfighting__video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: none;
}

.page-cockfighting__video-caption {
  text-align: center;
  color: #A7D9B8;
  font-size: 1rem;
  margin-top: 15px;
  margin-bottom: 30px;
}

.page-cockfighting__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: #08160F; /* Nền tối */
}

.page-cockfighting__faq-list {
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-item summary {
  list-style: none; /* Ẩn dấu mũi tên mặc định của details */
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  font-size: 1.2rem;
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none; /* Ẩn dấu mũi tên cho Chrome/Safari */
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #F2FFF6;
}

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

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  font-size: 1.1rem;
  color: #A7D9B8;
  background-color: #11271B;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body đã xử lý --header-offset, chỉ dùng padding nhỏ */
  }

  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__video-container,
  .page-cockfighting__container,
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__faq-list,
  .page-cockfighting__features-grid,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__live-matches-section,
  .page-cockfighting__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Ngăn chặn tràn ngang */
  }

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

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-link,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important; /* Chiếm toàn bộ chiều rộng có sẵn */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 10px; /* Khoảng cách giữa các nút */
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group {
    flex-direction: column !important; /* Xếp chồng các nút theo chiều dọc */
    gap: 10px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__step-item {
    margin-bottom: 20px;
  }

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

  .page-cockfighting__intro-text {
    font-size: 1rem;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .page-cockfighting__section-description,
  .page-cockfighting__feature-text,
  .page-cockfighting__step-text,
  .page-cockfighting__video-caption,
  .page-cockfighting__faq-answer {
    font-size: 0.95rem;
  }
  
  .page-cockfighting__faq-item summary {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-cockfighting__faq-toggle {
    font-size: 1.5rem;
  }
}

/* Global image style rules, ensuring minimum size and no small icons */
.page-cockfighting img:not(.page-cockfighting__logo, .page-cockfighting__social-icon, .page-cockfighting__payment-icon, .page-cockfighting__game-provider-icon) {
  min-width: 200px;
  min-height: 200px;
}
/* Ensure no CSS filters are used on images */
.page-cockfighting img {
  filter: none !important;
}

/* Ensure content area images maintain minimum size on desktop */
.page-cockfighting__content-area img,
.page-cockfighting__about-section img,
.page-cockfighting__how-to-play-section img,
.page-cockfighting__faq-section img {
  min-width: 200px;
  min-height: 200px;
}

/* Overwrite potential small icon sizes for content images */
.page-cockfighting img {
  width: auto; /* Allow auto width for larger images */
  height: auto; /* Allow auto height for larger images */
}

/* Specific rule to ensure content images are not shrunk by other rules */
.page-cockfighting__content-image,
.page-cockfighting__hero-image {
  max-width: 100%;
  height: auto;
}