.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text on light body background */
  background-color: #ffffff;
}

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

.page-cockfighting__hero-section {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('[GALLERY:bg:1920x1080:cockfighting,arena,crowd,excitement,23win_hero]') center/cover no-repeat;
  color: #ffffff;
  text-align: center;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px;
}

.page-cockfighting__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-tertiary,
.page-cockfighting__btn-small {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
  background-color: #e02a2a;
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-cockfighting__btn-tertiary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-cockfighting__btn-tertiary:hover {
  background-color: #005f2f;
}

.page-cockfighting__btn-small {
  background-color: #017439;
  color: #FFFFFF;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.85em;
}

.page-cockfighting__btn-small:hover {
  background-color: #005f2f;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  margin-top: 60px;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-cockfighting__video-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 30px;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__video-link-overlay {
  display: block;
  position: relative;
  cursor: pointer;
}

.page-cockfighting__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting__video-caption {
  font-style: italic;
  color: #777;
  margin-top: 10px;
}

.page-cockfighting__introduction-section,
.page-cockfighting__gameplay-section,
.page-cockfighting__conclusion-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #333333;
  text-align: justify;
}

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

.page-cockfighting__image-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-width: 200px; /* Min size constraint */
  min-height: 200px; /* Min size constraint */
}

.page-cockfighting__image-wrapper--center {
  text-align: center;
  margin: 40px 0;
}

.page-cockfighting__benefits-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-cockfighting__benefits-section .page-cockfighting__section-title {
  color: #ffffff;
}

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

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

.page-cockfighting__benefit-card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight color for titles in dark section */
}

.page-cockfighting__card-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-cockfighting__step-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  counter-reset: step-counter;
}

.page-cockfighting__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 20px;
}

.page-cockfighting__step-item::before {
  counter-increment: step-counter;
  content: "0" counter(step-counter);
  font-size: 2em;
  font-weight: bold;
  color: #017439;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #017439;
  border-radius: 50%;
}

.page-cockfighting__step-title {
  font-size: 1.4em;
  color: #017439;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting__step-description {
  font-size: 1em;
  color: #555555;
}

.page-cockfighting__promotions-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  text-align: center;
}

.page-cockfighting__promotions-section .page-cockfighting__section-title {
  color: #ffffff;
}

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

.page-cockfighting__card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__card .page-cockfighting__card-title {
  color: #017439;
  font-size: 1.4em;
}

.page-cockfighting__card .page-cockfighting__card-description {
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-cockfighting__card a.page-cockfighting__btn-tertiary {
  align-self: flex-start;
}

.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-cockfighting__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  font-weight: bold;
  font-size: 1.1em;
  color: #017439;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  margin-left: 10px;
  color: #C30808;
}

.page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

.page-cockfighting__conclusion-section {
  padding: 80px 0;
  text-align: center;
  background-color: #ffffff;
}

/* Common button group styling */
.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 2.8em;
  }

  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }

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

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

  .page-cockfighting__hero-section {
    padding: 80px 15px;
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-cockfighting__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-tertiary,
  .page-cockfighting__btn-small,
  .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 !important;
    padding-right: 15px !important;
  }

  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

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

  .page-cockfighting__section-description,
  .page-cockfighting__text-block {
    font-size: 0.95em;
    text-align: left;
  }

  .page-cockfighting__video-section {
    padding: 40px 0;
  }
  
  .page-cockfighting__video-wrapper,
  .page-cockfighting__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0 15px;
  }

  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__gameplay-section,
  .page-cockfighting__conclusion-section,
  .page-cockfighting__benefits-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section {
    padding: 40px 0;
  }

  .page-cockfighting__image-row {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__content-image {
    width: 100%;
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-cockfighting__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .page-cockfighting__step-title {
    font-size: 1.2em;
  }

  .page-cockfighting__promotion-cards {
    flex-direction: column;
  }

  .page-cockfighting__card {
    margin: 0 15px;
  }

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

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

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