.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Ensures consistency with body background */
}

.page-cockfighting__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  min-height: 600px;
  overflow: hidden;
}

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

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

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

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

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-cockfighting__cta-buttons--centered {
  margin-top: 40px;
}

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

.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: #E00A0A;
  border-color: #E00A0A;
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section (dark/light bg) */
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

.page-cockfighting__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-cockfighting__features-section,
.page-cockfighting__download-guide,
.page-cockfighting__video-section,
.page-cockfighting__game-types,
.page-cockfighting__rules-strategy,
.page-cockfighting__promotions-section,
.page-cockfighting__security-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final {
  padding: 80px 20px;
}

.page-cockfighting__features-grid,
.page-cockfighting__steps-grid,
.page-cockfighting__types-grid,
.page-cockfighting__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-cockfighting__feature-item,
.page-cockfighting__step-item,
.page-cockfighting__type-item,
.page-cockfighting__promotion-card,
.page-cockfighting__security-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 450px; /* Ensure cards have similar height */
}

.page-cockfighting__dark-bg .page-cockfighting__feature-item,
.page-cockfighting__dark-bg .page-cockfighting__step-item,
.page-cockfighting__dark-bg .page-cockfighting__type-item,
.page-cockfighting__dark-bg .page-cockfighting__promotion-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-cockfighting__dark-bg .page-cockfighting__feature-title,
.page-cockfighting__dark-bg .page-cockfighting__step-title,
.page-cockfighting__dark-bg .page-cockfighting__type-title,
.page-cockfighting__dark-bg .page-cockfighting__promotion-title {
  color: #ffffff;
}

.page-cockfighting__dark-bg .page-cockfighting__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border-color: #017439;
}

.page-cockfighting__dark-bg .page-cockfighting__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
}

.page-cockfighting__feature-image,
.page-cockfighting__step-image,
.page-cockfighting__type-image,
.page-cockfighting__promotion-image,
.page-cockfighting__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-cockfighting__feature-title,
.page-cockfighting__step-title,
.page-cockfighting__type-title,
.page-cockfighting__promotion-title,
.page-cockfighting__security-title {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-cockfighting__feature-description,
.page-cockfighting__step-description,
.page-cockfighting__type-description,
.page-cockfighting__promotion-description,
.page-cockfighting__security-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__video-wrapper {
  max-width: 1000px;
  margin: 0 auto 20px auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__video-caption {
  text-align: center;
  font-style: italic;
  color: #666666;
  margin-top: 10px;
}

.page-cockfighting__security-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-cockfighting__security-item {
  flex: 1 1 calc(50% - 30px);
  max-width: calc(50% - 30px);
}

.page-cockfighting__rules-strategy .page-cockfighting__content-block {
  max-width: 900px;
  margin: 40px auto;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__list {
  list-style-type: disc;
  padding-left: 25px;
  margin-top: 15px;
}

.page-cockfighting__list-item {
  margin-bottom: 10px;
}

.page-cockfighting__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.page-cockfighting__faq-question-title {
  margin: 0;
  font-size: 1.2em;
  color: inherit;
}

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Change to '−' */
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #ffffff;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px;
}

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

.page-cockfighting__cta-final {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 2.8em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__security-item {
    flex: 1 1 calc(100% - 30px);
    max-width: calc(100% - 30px);
  }
}

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

  .page-cockfighting__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    min-height: 500px;
  }

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

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

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .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-section,
  .page-cockfighting__download-guide,
  .page-cockfighting__video-section,
  .page-cockfighting__game-types,
  .page-cockfighting__rules-strategy,
  .page-cockfighting__promotions-section,
  .page-cockfighting__security-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final {
    padding: 40px 15px;
  }

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

  .page-cockfighting__section-description {
    font-size: 0.95em;
  }

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

  .page-cockfighting__feature-item,
  .page-cockfighting__step-item,
  .page-cockfighting__type-item,
  .page-cockfighting__promotion-card,
  .page-cockfighting__security-item {
    padding: 20px;
    min-height: auto;
  }

  .page-cockfighting__feature-image,
  .page-cockfighting__step-image,
  .page-cockfighting__type-image,
  .page-cockfighting__promotion-image,
  .page-cockfighting__security-image {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !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,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__rules-strategy .page-cockfighting__content-block {
    padding: 20px;
  }

  .page-cockfighting__faq-question {
    padding: 15px;
  }

  .page-cockfighting__faq-question-title {
    font-size: 1em;
  }

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

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }
}