/* style/cockfighting.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không thêm vào đây để tránh trùng lặp */

:root {
  --pu88win-primary: #26A9E0;
  --pu88win-secondary: #FFFFFF;
  --pu88win-dark-bg: #0a0a0a;
  --pu88win-text-light: #ffffff;
  --pu88win-text-dark: #333333;
  --pu88win-login-btn: #EA7C07;
}

.page-cockfighting {
  color: var(--pu88win-text-light); /* Toàn bộ trang dùng chữ sáng trên nền tối của body */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-cockfighting__section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--pu88win-dark-bg);
  color: var(--pu88win-text-light);
}

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

.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Thêm padding ngang cho container */
  box-sizing: border-box;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--pu88win-primary);
  font-weight: bold;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--pu88win-text-light);
}

.page-cockfighting__text-block--center {
  text-align: center;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0; /* padding-top 10px được áp dụng cho hero-content */
  min-height: 600px;
  text-align: center;
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.4; /* Làm mờ ảnh nền để chữ dễ đọc */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 10px 20px 60px; /* padding-top 10px, padding-bottom 60px */
  box-sizing: border-box;
  color: var(--pu88win-text-light);
}

.page-cockfighting__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--pu88win-secondary);
  font-size: clamp(2em, 4vw, 3.5em); /* H1 font-size với clamp */
}

.page-cockfighting__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--pu88win-text-light);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Đảm bảo nút không tràn */
  white-space: normal; /* Cho phép chữ xuống dòng */
  word-wrap: break-word;
}

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

.page-cockfighting__btn-primary:hover {
  background-color: #1e87b6;
  border-color: #1e87b6;
}

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

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

/* Intro Section */
.page-cockfighting__intro-section {
  background-color: #1a1a1a; /* Nền tối hơn cho phần giới thiệu */
  color: var(--pu88win-text-light);
}

/* Game Types Section */
.page-cockfighting__game-types-section {
  background-color: var(--pu88win-dark-bg);
}

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

.page-cockfighting__card {
  background: rgba(255, 255, 255, 0.08); /* Nền thẻ hơi trong suốt */
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: var(--pu88win-text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-cockfighting__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--pu88win-primary);
  font-weight: bold;
}

.page-cockfighting__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Guide Section */
.page-cockfighting__guide-section {
  background-color: #1a1a1a;
  color: var(--pu88win-text-light);
}

.page-cockfighting__guide-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-cockfighting__guide-steps {
  flex: 1;
}

.page-cockfighting__step-item {
  margin-bottom: 30px;
}

.page-cockfighting__step-title {
  font-size: 1.6em;
  color: var(--pu88win-primary);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__guide-image-wrapper {
  flex: 1;
  min-width: 400px; /* Đảm bảo hình ảnh có kích thước tối thiểu */
}

.page-cockfighting__guide-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Strategy Section */
.page-cockfighting__strategy-section {
  background-color: var(--pu88win-dark-bg);
}

.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting__strategy-list li {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 5px solid var(--pu88win-primary);
  color: var(--pu88win-text-light);
}

.page-cockfighting__strategy-item-title {
  font-size: 1.4em;
  color: var(--pu88win-primary);
  margin-bottom: 10px;
  font-weight: bold;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  background-color: #1a1a1a;
  color: var(--pu88win-text-light);
}

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

/* Security Section */
.page-cockfighting__security-section {
  background-color: var(--pu88win-dark-bg);
}

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

.page-cockfighting__feature-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--pu88win-text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__feature-title {
  font-size: 1.4em;
  color: var(--pu88win-primary);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__feature-text {
  font-size: 1em;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: #1a1a1a;
  color: var(--pu88win-text-light);
}

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

.page-cockfighting__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--pu88win-text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-item summary {
  list-style: none;
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--pu88win-primary);
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-cockfighting__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--pu88win-text-light);
}

.page-cockfighting__faq-answer p {
  margin-bottom: 10px;
}

.page-cockfighting__faq-link {
  color: var(--pu88win-primary);
  text-decoration: underline;
}

.page-cockfighting__faq-link:hover {
  color: var(--pu88win-secondary);
}

/* CTA Banner Section */
.page-cockfighting__cta-banner-section {
  background-color: var(--pu88win-primary);
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  color: var(--pu88win-text-light);
}

.page-cockfighting__cta-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-cockfighting__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--pu88win-secondary);
  font-weight: bold;
}

.page-cockfighting__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 600px;
}

.page-cockfighting__cta-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  display: block;
}

.page-cockfighting__btn-primary--large {
  padding: 18px 35px;
  font-size: 1.2em;
  background-color: var(--pu88win-login-btn); /* Màu cam cho nút đăng ký nổi bật */
  border-color: var(--pu88win-login-btn);
}

.page-cockfighting__btn-primary--large:hover {
  background-color: #c76706;
  border-color: #c76706;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__guide-flex {
    flex-direction: column;
    text-align: center;
  }

  .page-cockfighting__guide-image-wrapper {
    min-width: unset;
    margin-top: 30px;
  }

  .page-cockfighting__cta-banner-section {
    flex-direction: column;
    text-align: center;
  }

  .page-cockfighting__cta-content {
    text-align: center;
  }

  .page-cockfighting__cta-text {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section,
  .page-cockfighting__hero-section {
    padding: 40px 15px;
  }

  .page-cockfighting__hero-content {
    padding: 10px 15px 40px;
  }

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

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

  .page-cockfighting__grid,
  .page-cockfighting__promotion-grid,
  .page-cockfighting__security-features {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__card,
  .page-cockfighting__feature-item,
  .page-cockfighting__faq-item {
    padding: 20px;
  }

  .page-cockfighting__card-image,
  .page-cockfighting__guide-image,
  .page-cockfighting__cta-image,
  .page-cockfighting__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__intro-section,
  .page-cockfighting__game-types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__security-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-banner-section,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }

  .page-cockfighting__card-title,
  .page-cockfighting__step-title,
  .page-cockfighting__feature-title,
  .page-cockfighting__faq-question {
    font-size: 1.1em;
  }

  .page-cockfighting__cta-title {
    font-size: 1.8em;
  }

  .page-cockfighting__btn-primary--large {
    font-size: 1.1em;
    padding: 15px 25px;
  }
}