.page-cockfighting {
  color: #ffffff; /* Body background is dark, so use light text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: #0a0a0a; /* Ensure dark background for hero */
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px; /* Space between image and content */
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 15px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small,
.page-cockfighting__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background-color: #EA7C07; /* Custom color for Login */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-cockfighting__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-cockfighting__btn-small {
  padding: 8px 15px;
  font-size: 0.9rem;
  background-color: #26A9E0;
  color: #ffffff;
  border: 1px solid #26A9E0;
  margin-top: 10px;
}

.page-cockfighting__btn-small:hover {
  background-color: #1f8ec7;
  border-color: #1f8ec7;
}

.page-cockfighting__btn-link {
  color: #26A9E0;
  background: none;
  border: none;
  padding: 0;
  font-weight: normal;
  text-decoration: underline;
}

.page-cockfighting__btn-link:hover {
  color: #1f8ec7;
}

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

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-cockfighting__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #f0f0f0; /* Default for dark sections */
}

/* Section backgrounds */
.page-cockfighting__dark-bg {
  background-color: #0a0a0a;
  color: #f0f0f0;
  padding-bottom: 60px;
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding-bottom: 60px;
}

.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__text-block,
.page-cockfighting__light-bg .page-cockfighting__feature-title,
.page-cockfighting__light-bg .page-cockfighting__feature-description,
.page-cockfighting__light-bg .page-cockfighting__step-title,
.page-cockfighting__light-bg .page-cockfighting__faq-qtext,
.page-cockfighting__light-bg .page-cockfighting__faq-answer {
  color: #333333;
}

.page-cockfighting__about-section {
  padding-top: 60px;
}

.page-cockfighting__features-section {
  padding-top: 60px;
}

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

.page-cockfighting__feature-card,
.page-cockfighting__promo-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark bg */
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 350px; /* Ensure cards have some height */
}

.page-cockfighting__feature-image,
.page-cockfighting__promo-image {
  width: 600px;
  height: 400px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-cockfighting__feature-title,
.page-cockfighting__promo-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__feature-description,
.page-cockfighting__promo-description {
  font-size: 1rem;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-cockfighting__how-to-play {
  padding-top: 60px;
}

.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-cockfighting__steps-list li {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  margin-bottom: 20px;
  padding: 20px;
  position: relative;
  border-radius: 5px;
  color: #333333;
}

.page-cockfighting__steps-list li::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  position: absolute;
  top: -15px;
  left: 20px;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 0.9rem;
}

.page-cockfighting__step-title {
  font-size: 1.3rem;
  color: #26A9E0;
  margin-top: 10px;
  margin-bottom: 10px;
}

.page-cockfighting__promotions-section {
  padding-top: 60px;
}

.page-cockfighting__cta-view-all {
  text-align: center;
  margin-top: 40px;
}

.page-cockfighting__faq-section {
  padding-top: 60px;
}

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

.page-cockfighting__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 5px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf7fd;
  border-bottom: 1px solid #e0e0e0;
  list-style: none;
}

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

.page-cockfighting__faq-question:hover {
  background-color: #dcf2fa;
}

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

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

.page-cockfighting__faq-answer {
  padding: 15px 20px;
  font-size: 1rem;
  color: #333333;
}

.page-cockfighting__cta-bottom {
  padding-top: 60px;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-image {
    width: 1000px;
    height: 563px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__about-section,
  .page-cockfighting__features-section,
  .page-cockfighting__how-to-play,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-bottom: 40px;
  }

  .page-cockfighting__main-title {
    font-size: 2rem; /* Adjusted for smaller screens */
  }

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

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small,
  .page-cockfighting__btn-link,
  .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;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__promotions-grid {
    grid-template-columns: 1fr;
  }

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

  .page-cockfighting__feature-card,
  .page-cockfighting__promo-card {
    min-height: auto;
  }

  .page-cockfighting__steps-list li::before {
    top: -10px;
    left: 10px;
  }

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

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

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

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

  .page-cockfighting__feature-title,
  .page-cockfighting__promo-title {
    font-size: 1.3rem;
  }
}