.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, ensure contrast */
  padding-top: 0; /* shared.css is assumed to handle body padding-top */
}

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

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

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

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from section for contrast */
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  margin: 0 20px;
}

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

.page-cockfighting__hero-description {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 30px;
}

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

.page-cockfighting__hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7); /* Darken image for text readability */
}

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

.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: 18px;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background-color: #FFD700;
  color: #333333;
  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: #333333;
}

.page-cockfighting__why-choose-us,
.page-cockfighting__game-types,
.page-cockfighting__how-to-play,
.page-cockfighting__strategies,
.page-cockfighting__promotions,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final {
  padding: 60px 0;
}

.page-cockfighting__features-grid,
.page-cockfighting__type-cards-grid,
.page-cockfighting__steps-grid,
.page-cockfighting__strategy-cards-grid,
.page-cockfighting__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting__feature-item,
.page-cockfighting__type-card,
.page-cockfighting__strategy-card,
.page-cockfighting__promo-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__light-bg .page-cockfighting__feature-item,
.page-cockfighting__light-bg .page-cockfighting__promo-item {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__feature-item:hover,
.page-cockfighting__type-card:hover,
.page-cockfighting__strategy-card:hover,
.page-cockfighting__promo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__feature-item img,
.page-cockfighting__type-card img,
.page-cockfighting__strategy-card img,
.page-cockfighting__promo-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  width: 100%;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
  object-fit: cover;
}

.page-cockfighting__feature-title,
.page-cockfighting__type-title,
.page-cockfighting__strategy-title,
.page-cockfighting__promo-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-cockfighting__light-bg .page-cockfighting__feature-title,
.page-cockfighting__light-bg .page-cockfighting__promo-title {
  color: #003366;
}

.page-cockfighting__feature-description,
.page-cockfighting__type-description,
.page-cockfighting__strategy-description,
.page-cockfighting__promo-description {
  font-size: 16px;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-cockfighting__light-bg .page-cockfighting__feature-description,
.page-cockfighting__light-bg .page-cockfighting__promo-description {
  color: #555555;
}

.page-cockfighting__steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-cockfighting__step-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #333333;
  position: relative;
  padding-top: 60px;
}

.page-cockfighting__step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #003366;
  color: #FFD700;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  border: 2px solid #FFD700;
}

.page-cockfighting__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #003366;
}

.page-cockfighting__step-description {
  font-size: 15px;
  color: #555555;
}

.page-cockfighting__how-to-play-cta {
  margin-top: 40px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
}

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

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #f0f0f0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #004488; /* Darker blue for contrast */
  border: 1px solid #0055aa;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: #0055aa;
  border-color: #0066bb;
}

.page-cockfighting__faq-question:active {
  background: #0066bb;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

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

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

.page-cockfighting__final-description {
  font-size: 18px;
  max-width: 800px;
  margin: 20px auto 40px auto;
  color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 40px;
  }
  .page-cockfighting__section-title {
    font-size: 30px;
  }
  .page-cockfighting__feature-title,
  .page-cockfighting__type-title,
  .page-cockfighting__strategy-title,
  .page-cockfighting__promo-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__container {
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .page-cockfighting__hero-section {
    padding: 60px 0;
    min-height: 400px;
    padding-top: 0 !important; /* Ensure no double padding from shared.css */
  }
  .page-cockfighting__hero-content {
    padding: 15px;
    margin: 0 15px;
  }
  .page-cockfighting__hero-title {
    font-size: 32px;
  }
  .page-cockfighting__hero-description {
    font-size: 16px;
  }
  .page-cockfighting__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto; /* Center buttons */
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__type-cards-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__strategy-cards-grid,
  .page-cockfighting__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-item,
  .page-cockfighting__type-card,
  .page-cockfighting__strategy-card,
  .page-cockfighting__promo-item {
    padding: 20px;
  }
  .page-cockfighting__feature-item img,
  .page-cockfighting__type-card img,
  .page-cockfighting__strategy-card img,
  .page-cockfighting__promo-item img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-cockfighting__step-item {
    padding: 50px 20px 20px;
  }
  .page-cockfighting__step-number {
    width: 35px;
    height: 35px;
    font-size: 20px;
    top: 10px;
  }

  .page-cockfighting__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-cockfighting__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 15px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }

  .page-cockfighting__final-description {
    font-size: 16px;
    margin: 15px auto 30px auto;
  }
}