.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

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

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over image slightly for visual effect, but not overlapping text */
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, var(--background) 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-secondary {
  background: var(--card-b-g);
  color: var(--text-main);
  border: 2px solid var(--border);
}

.page-cockfighting__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(30, 58, 42, 0.4);
}

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__subsection-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--gold);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting__text-block {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 30px 0;
  object-fit: cover;
}

.page-cockfighting__dark-section {
  background-color: var(--deep-green);
  padding: 60px 20px;
}

.page-cockfighting__about-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__register-login-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-bottom-section {
  padding: 60px 0;
}

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

.page-cockfighting__feature-card {
  background-color: var(--card-b-g);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  border: 1px solid var(--divider);
}

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

.page-cockfighting__card-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.page-cockfighting__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-cockfighting__list-item {
  color: var(--text-secondary);
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-cockfighting__list-item::before {
  content: '✔';
  color: var(--glow);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.page-cockfighting__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.page-cockfighting__faq-item {
  background-color: var(--card-b-g);
  border-radius: 10px;
  border: 1px solid var(--divider);
  color: var(--text-main);
  padding: 20px;
  overflow: hidden;
}

.page-cockfighting__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-main);
}

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

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

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: var(--glow);
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  padding-top: 15px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-top: 1px dashed var(--divider);
  margin-top: 15px;
}

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

  .page-cockfighting__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
  }

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

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

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

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

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

  .page-cockfighting__text-block {
    font-size: 0.9rem;
  }

  .page-cockfighting__about-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__register-login-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-bottom-section {
    padding: 40px 0;
  }

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

  .page-cockfighting__feature-card {
    padding: 20px;
  }

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

  .page-cockfighting__card-description {
    font-size: 0.85rem;
  }

  /* Image responsiveness */
  .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__why-choose-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__register-login-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

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

  .page-cockfighting__faq-qtext {
    font-size: 1rem;
  }

  .page-cockfighting__faq-answer {
    font-size: 0.9rem;
  }
}