/* Base styles for the cockfighting page */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--page-bg, #F5F7FA); /* Use shared body background or fallback */
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-cockfighting__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 50px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-align: center;
}

.page-cockfighting__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
  z-index: 1;
}

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

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  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;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid #FF5A4F;
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
}

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

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

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
  overflow: hidden;
}

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

.page-cockfighting__intro-section,
.page-cockfighting__rules-section,
.page-cockfighting__live-section,
.page-cockfighting__registration-section {
  padding: 60px 0;
  background-color: #F5F7FA; /* Light background */
  color: #333333;
}

.page-cockfighting__bet-types-section,
.page-cockfighting__strategy-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__outro-cta {
  padding: 60px 0;
  background-color: #E53935; /* Dark background */
  color: #ffffff;
}

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

.page-cockfighting__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__content-wrapper--reverse {
  flex-direction: row-reverse;
}

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

.page-cockfighting__text-block p {
  margin-bottom: 15px;
}

.page-cockfighting__image-block {
  flex: 1;
  min-width: 300px;
  overflow: hidden;
}

.page-cockfighting__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-cockfighting__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.05em;
}

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

.page-cockfighting__list ol {
  list-style: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.05em;
}

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

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

.page-cockfighting__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  line-height: 1.7;
}

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

.page-cockfighting__outro-cta {
  padding: 80px 0;
  text-align: center;
}

.page-cockfighting__outro-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #ffffff;
}

/* Universal image responsive styles */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__container {
    padding: 15px;
  }

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

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

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

  .page-cockfighting__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-cockfighting__text-block,
  .page-cockfighting__image-block {
    flex: none;
    width: 100%;
  }

  .page-cockfighting__faq-item summary {
    font-size: 1.1em;
    padding: 18px 20px;
  }

  .page-cockfighting__faq-answer {
    font-size: 1em;
    padding: 0 20px 18px;
  }

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

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

  .page-cockfighting__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-cockfighting__hero-section {
    flex-direction: column;
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

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

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

  .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: 12px 20px; /* Adjust padding for smaller screens */
  }

  .page-cockfighting__hero-image-wrapper {
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-cockfighting__hero-image {
    object-fit: contain !important; /* Contain for mobile hero */
    aspect-ratio: unset !important;
    max-height: none !important;
  }

  /* General Image and Container Adaption */
  .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__content-wrapper,
  .page-cockfighting__text-block,
  .page-cockfighting__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-cockfighting__intro-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__rules-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__live-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__registration-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__outro-cta {
    padding: 40px 0;
  }

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

  .page-cockfighting__text-block,
  .page-cockfighting__list li,
  .page-cockfighting__faq-answer p {
    font-size: 1em;
  }

  /* FAQ Section */
  .page-cockfighting__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

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

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

  /* No game-grid or winner-list in this page, so skipping those specific mobile styles. */
}