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

.page-cockfighting__dark-section {
  background-color: #017439; /* Primary brand color for dark sections */
  color: #ffffff;
  padding: 60px 20px;
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 20px;
}

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

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px;
  overflow: hidden;
}

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

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

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-cockfighting__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-cockfighting__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

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

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

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

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

.page-cockfighting__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #333333;
}

.page-cockfighting__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
}

.page-cockfighting__content-area p,
.page-cockfighting__text-block p {
  font-size: 1.05em;
  margin-bottom: 1em;
  color: #333333;
}

.page-cockfighting__features-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-cockfighting__feature-item {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__feature-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-cockfighting__feature-item p {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-cockfighting__how-to-play {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  color: #333333;
}

.page-cockfighting__guide-grid {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
}

.page-cockfighting__guide-text {
  flex: 1;
}

.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-cockfighting__guide-list li {
  margin-bottom: 25px;
  padding-left: 0;
}

.page-cockfighting__guide-list h3 {
  font-size: 1.3em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-cockfighting__guide-list p {
  font-size: 1em;
  color: #555555;
}

.page-cockfighting__guide-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
}

.page-cockfighting__guide-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-cockfighting__btn-full-width {
  width: 100%;
  margin-top: 30px;
}

.page-cockfighting__advantages-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-cockfighting__advantage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-cockfighting__advantage-item {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__advantage-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-cockfighting__advantage-item p {
  font-size: 1em;
  color: #f0f0f0;
}

.page-cockfighting__strategies-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  color: #333333;
}

.page-cockfighting__strategy-grid {
  display: flex;
  flex-direction: row-reverse; /* Image on right */
  gap: 40px;
  align-items: flex-start;
}

.page-cockfighting__strategy-text {
  flex: 1;
}

.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-cockfighting__strategy-list li {
  margin-bottom: 25px;
  padding-left: 0;
}

.page-cockfighting__strategy-list h3 {
  font-size: 1.3em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-cockfighting__strategy-list p {
  font-size: 1em;
  color: #555555;
}

.page-cockfighting__strategy-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
}

.page-cockfighting__strategy-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-cockfighting__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

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

.page-cockfighting__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: #FFFF00; /* FAQ question color */
  background-color: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.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;
  line-height: 1;
  margin-left: 15px;
}

.page-cockfighting__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
  background-color: rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-section {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  color: #333333;
}

.page-cockfighting__cta-section .page-cockfighting__description {
  color: #555555;
}

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

  .page-cockfighting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-cockfighting__description {
    font-size: 1em;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 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__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-cockfighting__feature-item,
  .page-cockfighting__advantage-item {
    padding: 20px;
  }

  .page-cockfighting__guide-grid,
  .page-cockfighting__strategy-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__guide-image-wrapper,
  .page-cockfighting__strategy-image-wrapper {
    max-width: 100%;
    min-width: unset;
  }

  .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__content-area,
  .page-cockfighting__features-section,
  .page-cockfighting__how-to-play,
  .page-cockfighting__advantages-section,
  .page-cockfighting__strategies-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .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__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

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

@media (min-width: 769px) {
  .page-cockfighting__guide-grid,
  .page-cockfighting__strategy-grid {
    align-items: center;
  }

  .page-cockfighting__btn-full-width {
    width: auto; /* Revert to auto width on desktop */
  }

  .page-cockfighting__hero-image {
    width: 100%; /* Ensure desktop hero image scales */
    height: 675px; /* Maintain aspect ratio for hero */
  }

  .page-cockfighting__video-container {
    width: 100%;
  }
}