.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text is light */
  background-color: #1a1a1a; /* Inherited from shared.css, explicitly set for context */
}

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

.page-cockfighting__section-title {
  font-size: 2.5rem;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #f0f0f0;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 80px 20px;
  min-height: 70vh;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background-color: #017439; /* Brand primary color for hero */
}

.page-cockfighting__hero-image-wrapper {
  flex: 1 1 50%;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

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

.page-cockfighting__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  padding: 20px;
  text-align: left;
}

.page-cockfighting__hero-title {
  font-size: 3.5rem;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 900;
}

.page-cockfighting__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-cockfighting__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  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: #a00606;
  border-color: #a00606;
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439;
}

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-cockfighting__btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

/* Intro Section */
.page-cockfighting__intro-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-cockfighting__intro-section .page-cockfighting__section-title {
  color: #017439;
}

.page-cockfighting__intro-section .page-cockfighting__text-block {
  color: #333333;
}

.page-cockfighting__image-content-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-cockfighting__content-image {
  flex: 1 1 45%;
  min-width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-cockfighting__feature-list {
  flex: 1 1 45%;
  min-width: 300px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-cockfighting__feature-item {
  background-color: #f8f8f8;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 5px solid #017439;
  border-radius: 5px;
  font-size: 1rem;
  color: #333333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Types Section */
.page-cockfighting__types-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-cockfighting__types-section .page-cockfighting__section-title {
  color: #FFFFFF;
}

.page-cockfighting__types-section .page-cockfighting__text-block {
  color: #f0f0f0;
}

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

.page-cockfighting__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  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;
}

.page-cockfighting__card-title {
  font-size: 1.8rem;
  color: #FFFFFF;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__card-description {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* How-To-Play Section */
.page-cockfighting__how-to-play-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-cockfighting__how-to-play-section .page-cockfighting__section-title {
  color: #017439;
}

.page-cockfighting__how-to-play-section .page-cockfighting__text-block {
  color: #333333;
}

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

.page-cockfighting__step-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 70px;
  min-height: 50px;
  color: #333333;
}

.page-cockfighting__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #017439;
  color: #FFFFFF;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
}

.page-cockfighting__step-title {
  font-size: 1.5rem;
  color: #017439;
  margin-bottom: 10px;
}

.page-cockfighting__step-item p {
  margin-bottom: 15px;
  color: #333333;
}

/* Tips Section */
.page-cockfighting__tips-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-cockfighting__tips-section .page-cockfighting__section-title {
  color: #FFFFFF;
}

.page-cockfighting__tips-section .page-cockfighting__text-block {
  color: #f0f0f0;
}

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

.page-cockfighting__tip-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-cockfighting__tip-title {
  font-size: 1.4rem;
  color: #FFFFFF;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__tip-description {
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.6;
  flex-grow: 1;
}

/* Advantages Section */
.page-cockfighting__advantages-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-cockfighting__advantages-section .page-cockfighting__section-title {
  color: #017439;
}

.page-cockfighting__advantages-section .page-cockfighting__text-block {
  color: #333333;
}

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

.page-cockfighting__advantage-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__advantage-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__advantage-title {
  font-size: 1.5rem;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__advantage-description {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.6;
  flex-grow: 1;
}

/* Video Section */
.page-cockfighting__video-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-cockfighting__video-section .page-cockfighting__section-title {
  color: #FFFFFF;
}

.page-cockfighting__video-section .page-cockfighting__text-block {
  color: #f0f0f0;
}

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

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

.page-cockfighting__video-overlay-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #C30808;
  color: #FFFF00;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 10;
  font-size: 1.1rem;
  border: 2px solid #C30808;
}

.page-cockfighting__video-overlay-button:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-cockfighting__faq-section .page-cockfighting__section-title {
  color: #017439;
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #e6f7ed;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #017439;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 20px;
  padding-top: 0;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  line-height: 1.7;
  color: #555555;
}

/* CTA Section */
.page-cockfighting__cta-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
  color: #FFFFFF;
}

.page-cockfighting__cta-section .page-cockfighting__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin: 20px auto 40px auto;
}

/* Dark/Light Background Helpers */
.page-cockfighting__dark-section {
  background-color: #017439;
  color: #ffffff;
}

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

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

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

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

  .page-cockfighting__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 15px;
  }

  .page-cockfighting__hero-content {
    order: 2;
    padding: 15px;
  }

  .page-cockfighting__hero-image-wrapper {
    order: 1;
    padding: 15px;
  }

  .page-cockfighting__hero-title {
    font-size: 2.5rem;
    text-align: center;
  }

  .page-cockfighting__hero-description {
    font-size: 1rem;
    text-align: center;
  }

  .page-cockfighting__hero-buttons {
    justify-content: center;
    flex-direction: column;
    gap: 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.8rem;
  }

  .page-cockfighting__intro-section,
  .page-cockfighting__types-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__video-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 40px 0;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__image-content-flex {
    flex-direction: column;
    gap: 20px;
  }

  .page-cockfighting__content-image {
    min-width: unset;
  }

  .page-cockfighting__feature-list {
    min-width: unset;
  }

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

  .page-cockfighting__step-item {
    padding-left: 60px;
    min-height: 40px;
  }

  .page-cockfighting__step-item::before {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .page-cockfighting__step-title {
    font-size: 1.3rem;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper,
  .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;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-cockfighting__video-overlay-button {
    font-size: 1rem;
    padding: 12px 25px;
  }
}

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

  .page-cockfighting__hero-description {
    font-size: 0.9rem;
  }

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

  .page-cockfighting__text-block {
    font-size: 1rem;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    font-size: 0.9rem;
    padding: 12px 25px;
  }

  .page-cockfighting__card-title {
    font-size: 1.5rem;
  }

  .page-cockfighting__tip-title,
  .page-cockfighting__advantage-title {
    font-size: 1.3rem;
  }
}