.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;
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--card-bg);
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background-color: var(--card-bg); /* Use card background for content overlay */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-top: -80px; /* Pull content up slightly over the image for visual flow */
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.2;
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  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: #ffffff;
  border: none;
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--deep-green);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-cockfighting__sub-title {
  font-size: 1.8em;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-cockfighting__text-block {
  font-size: 1.05em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

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

.page-cockfighting__introduction-section,
.page-cockfighting__game-types-section,
.page-cockfighting__rules-safety-section,
.page-cockfighting__tips-strategies-section,
.page-cockfighting__promotions-section,
.page-cockfighting__registration-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
  padding: 60px 0;
}

.page-cockfighting__introduction-section,
.page-cockfighting__rules-safety-section,
.page-cockfighting__registration-section {
  background-color: var(--background);
}

.page-cockfighting__game-types-section,
.page-cockfighting__tips-strategies-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
  background-color: var(--card-bg);
}

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

.page-cockfighting__card {
  background-color: var(--background);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

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

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

.page-cockfighting__card-text {
  color: var(--text-secondary);
  font-size: 1em;
}

.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list,
.page-cockfighting__promo-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-cockfighting__ordered-list li,
.page-cockfighting__unordered-list li,
.page-cockfighting__promo-list li {
  background-color: var(--background);
  border-left: 5px solid var(--glow);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 1.05em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__ordered-list li strong {
  color: var(--gold);
}

.page-cockfighting__promo-list li {
  border-left-color: var(--gold);
}

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

.page-cockfighting__strategy-item {
  background-color: var(--background);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.page-cockfighting__strategy-item:hover {
  transform: translateY(-5px);
}

.page-cockfighting__strategy-title {
  font-size: 1.4em;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__strategy-text {
  color: var(--text-secondary);
  font-size: 0.95em;
}

.page-cockfighting__registration-section .page-cockfighting__text-block {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__step-by-step-guide {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
}

.page-cockfighting__step-item {
  background-color: var(--background);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  flex: 1 1 calc(33% - 25px);
  min-width: 280px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.page-cockfighting__step-item:hover {
  transform: translateY(-5px);
}

.page-cockfighting__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  box-shadow: 0 0 15px var(--glow);
}

.page-cockfighting__step-title {
  font-size: 1.3em;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__step-text {
  color: var(--text-secondary);
  font-size: 0.95em;
}

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

.page-cockfighting__faq-item {
  background-color: var(--background);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15em;
  color: var(--text-main);
  font-weight: 600;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-question:hover {
  background-color: var(--deep-green);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--glow);
  margin-left: 15px;
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.7;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: '−';
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -60px;
  }

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

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

  .page-cockfighting__step-item {
    flex: 1 1 calc(50% - 25px);
  }
}

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

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

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

  .page-cockfighting__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .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;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-cockfighting__sub-title {
    font-size: 1.5em;
  }

  .page-cockfighting__text-block {
    font-size: 0.95em;
  }

  .page-cockfighting__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .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-image-wrapper,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__card-grid,
  .page-cockfighting__strategy-grid,
  .page-cockfighting__step-by-step-guide,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-cockfighting__hero-section {
    padding-top: 10px !important;
  }

  .page-cockfighting__card-title,
  .page-cockfighting__strategy-title,
  .page-cockfighting__step-title {
    font-size: 1.3em;
  }

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

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

  .page-cockfighting__step-item {
    flex: 1 1 100%;
  }

  .page-cockfighting__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-cockfighting__video-section {
    padding-top: 10px !important;
  }

  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-content {
    margin-top: -30px;
  }

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

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

  .page-cockfighting__step-item {
    min-width: unset;
  }
}

/* Color Contrast Fixes (applied automatically based on detected background luminosity) */
.page-cockfighting {
  color: #F2FFF6; /* Text Main */
}

.page-cockfighting__card {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

.page-cockfighting__btn-primary {
  color: #ffffff;
}

.page-cockfighting__btn-secondary {
  color: #F2FFF6;
}

.page-cockfighting__faq-question {
  color: #F2FFF6;
}

.page-cockfighting__faq-answer {
  color: #A7D9B8;
}

.page-cockfighting__ordered-list li,
.page-cockfighting__unordered-list li,
.page-cockfighting__promo-list li {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-cockfighting__text-block {
  color: #A7D9B8; /* Text Secondary */
}

.page-cockfighting__card-text {
  color: #A7D9B8;
}

.page-cockfighting__strategy-text {
  color: #A7D9B8;
}

.page-cockfighting__step-text {
  color: #A7D9B8;
}