.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#0d0d0d) */
}

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

/* Color Contrast Fixes */
.page-cockfighting__dark-bg {
  background-color: #1A202C;
  color: #ffffff;
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: bold;
}

.page-cockfighting__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Hero Section */
.page-cockfighting__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  min-height: 70vh;
  position: relative;
  overflow: hidden;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
}

.page-cockfighting__hero-content {
  flex: 1;
  padding-right: 40px;
  z-index: 1;
  text-align: left;
  max-width: 60%;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

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

.page-cockfighting__cta-buttons--center {
  justify-content: center;
  margin-top: 30px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping for desktop */
  box-sizing: border-box;
}

.page-cockfighting__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

.page-cockfighting__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-cockfighting__btn-tertiary {
  background-color: #1A202C;
  color: #FFD700;
  border: 1px solid #FFD700;
  font-size: 0.9em;
  padding: 10px 20px;
}

.page-cockfighting__btn-tertiary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-cockfighting__hero-image-wrapper {
  flex: 1;
  text-align: right;
  z-index: 0;
  max-width: 40%;
}

.page-cockfighting__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block;
}

/* General Section Styles */
.page-cockfighting__intro-section,
.page-cockfighting__rules-tips-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__faq-section {
  padding: 80px 0;
}

.page-cockfighting__types-section,
.page-cockfighting__advantages-section,
.page-cockfighting__video-section {
  padding: 80px 0;
}

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

.page-cockfighting__content-flex-reverse {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 40px;
}

.page-cockfighting__text-block {
  flex: 1;
}

.page-cockfighting__image-block {
  flex: 1;
  text-align: center;
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

/* Card Grid */
.page-cockfighting__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-cockfighting__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__card-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__card-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-cockfighting__card-title a:hover {
  text-decoration: underline;
}

.page-cockfighting__card-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Rules & Tips Section */
.page-cockfighting__content-wrapper {
  display: flex;
  gap: 40px;
}

.page-cockfighting__text-column {
  flex: 1;
}

.page-cockfighting__sub-title {
  font-size: 1.8em;
  color: #1A202C;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-cockfighting__list li {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #333333;
}

.page-cockfighting__list-advantages {
  list-style-type: none;
  padding: 0;
}

.page-cockfighting__list-advantages li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-left: 4px solid #FFD700;
  border-radius: 5px;
  font-size: 1.05em;
  color: #ffffff;
}

.page-cockfighting__list-advantages li strong {
  color: #FFD700;
}

/* How to Play Section */
.page-cockfighting__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting__step-item {
  background-color: #f5f5f5;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-cockfighting__step-title {
  font-size: 1.5em;
  color: #1A202C;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__step-item p {
  margin-bottom: 20px;
}

/* Video Section */
.page-cockfighting__video-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

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

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #eee;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: #e0e0e0;
}

.page-cockfighting__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #1A202C;
  font-weight: bold;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

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

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 3em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__hero-content {
    max-width: 55%;
  }
  .page-cockfighting__hero-image-wrapper {
    max-width: 45%;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: var(--header-offset, 120px) !important; /* Apply offset on mobile */
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-content {
    padding-right: 0;
    max-width: 100%;
    margin-bottom: 30px;
  }

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

  .page-cockfighting__hero-image-wrapper {
    max-width: 100%;
    order: -1; /* Move image above content on mobile */
    margin-bottom: 30px;
  }

  .page-cockfighting__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-tertiary {
    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__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

  .page-cockfighting__section-subtitle {
    font-size: 1em;
  }

  .page-cockfighting__card-grid,
  .page-cockfighting__steps-grid {
    grid-template-columns: 1fr;
  }

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

  .page-cockfighting__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

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

  /* Video specific mobile styles */
  .page-cockfighting__video-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 2em;
  }
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__list li,
  .page-cockfighting__list-advantages li,
  .page-cockfighting__text-block p,
  .page-cockfighting__card-description,
  .page-cockfighting__step-item p {
    font-size: 0.95em;
  }
}