.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--background-color); /* #08160F from shared.css */
}

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

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
}

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

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(17, 39, 27, 0.7); /* Card BG #11271B with transparency */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 20px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__description {
  font-size: 1.1em;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
}

.page-cockfighting__cta-button {
  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: #ffffff;
  border: none;
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.3);
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--gold); /* #F2C14E */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-cockfighting__introduction-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__advantages-section,
.page-cockfighting__faq-section,
.page-cockfighting__final-cta-section {
  padding: 60px 0;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-cockfighting__step-card,
.page-cockfighting__advantage-card {
  background: var(--card-bg); /* #11271B */
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__step-card:hover,
.page-cockfighting__advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__step-image,
.page-cockfighting__advantage-icon {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__step-title,
.page-cockfighting__advantage-title {
  font-size: 1.5em;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 15px;
}

.page-cockfighting__step-description,
.page-cockfighting__advantage-description {
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-cockfighting__step-description a {
  color: var(--gold); /* #F2C14E */
  text-decoration: none;
}

.page-cockfighting__step-description a:hover {
  text-decoration: underline;
}

.page-cockfighting__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-cockfighting__video-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--deep-green); /* #0A4B2C */
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  margin: 0 auto 30px auto;
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  min-width: 200px;
  min-height: 112px; /* For 16:9 aspect ratio, min-width 200px means min-height 112.5px */
}

.page-cockfighting__video-description {
  color: var(--text-secondary); /* #A7D9B8 */
  font-style: italic;
  margin-top: 15px;
}

.page-cockfighting__bet-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__bet-item {
  background: var(--card-bg); /* #11271B */
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__bet-type-title {
  font-size: 1.6em;
  color: var(--glow); /* #57E38D */
  margin-bottom: 15px;
}

.page-cockfighting__bet-type-description {
  color: var(--text-secondary); /* #A7D9B8 */
}

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

.page-cockfighting__faq-item {
  background: var(--card-bg); /* #11271B */
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main); /* #F2FFF6 */
  cursor: pointer;
  background: var(--card-bg); /* #11271B */
  transition: background-color 0.3s ease;
  list-style: none;
  position: relative;
}

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

.page-cockfighting__faq-question:hover {
  background-color: var(--deep-green); /* #0A4B2C */
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--glow); /* #57E38D */
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--text-secondary); /* #A7D9B8 */
  font-size: 1em;
  border-top: 1px solid var(--divider); /* #1E3A2A */
}

.page-cockfighting__faq-answer p {
  margin-top: 15px;
  margin-bottom: 0;
}

.page-cockfighting__final-cta-section {
  text-align: center;
  background-color: var(--deep-green); /* #0A4B2C */
  padding: 80px 0;
}

.page-cockfighting__final-cta-section .page-cockfighting__description {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 2.5em;
  }

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

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-cockfighting__hero-section {
    padding: 10px 0 40px 0;
  }

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

  .page-cockfighting__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-cockfighting__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-cockfighting__cta-button {
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-cockfighting__introduction-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__final-cta-section {
    padding: 40px 0;
  }

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

  .page-cockfighting__steps-grid,
  .page-cockfighting__advantages-grid,
  .page-cockfighting__bet-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__step-card,
  .page-cockfighting__advantage-card,
  .page-cockfighting__bet-item {
    padding: 20px;
  }

  .page-cockfighting__step-image,
  .page-cockfighting__advantage-icon {
    min-width: 200px;
    min-height: 200px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 112px;
  }

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

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

  .page-cockfighting__final-cta-section {
    padding: 60px 0;
  }

  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Ensure all images inside page-cockfighting are responsive */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color Contrast Adjustments for elements not explicitly covered by custom palette */
.page-cockfighting h1, .page-cockfighting h2, .page-cockfighting h3, .page-cockfighting h4, .page-cockfighting h5, .page-cockfighting h6 {
  color: var(--text-main); /* Default to main text color for general headings */
}

.page-cockfighting__section-title {
  color: var(--gold); /* Specific override for section titles */
}

.page-cockfighting a {
  color: var(--glow); /* Link color */
}

.page-cockfighting a:hover {
  color: var(--gold); /* Hover color */
}

/* Ensure min-width/height for content images/videos/buttons */
.page-cockfighting__hero-image,
.page-cockfighting__step-image,
.page-cockfighting__advantage-icon,
.page-cockfighting__video {
  min-width: 200px;
  min-height: 112px; /* Adjusted for 16:9 video aspect ratio, matching min-width 200px */
}

.page-cockfighting__cta-button {
  min-width: 150px; /* Example, adjust as needed but keep >= 200px equivalent */
  min-height: 48px; /* Standard button height */
}