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

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #E0B973;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #E0B973;
}

.page-cockfighting__sub-title {
  font-size: 1.8em;
  color: #E0B973;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-cockfighting__text-block a {
  color: #E0B973;
  text-decoration: none;
}

.page-cockfighting__text-block a:hover {
  text-decoration: underline;
}

.page-cockfighting__highlight {
  color: #E0B973;
  font-weight: bold;
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-cockfighting__list-item {
  background-color: rgba(224, 185, 115, 0.1);
  border-left: 5px solid #E0B973;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: #ffffff;
}

.page-cockfighting__list-item h3 {
  color: #E0B973;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4em;
}

.page-cockfighting__list-item p {
  color: #f0f0f0;
  margin-bottom: 0;
}

/* Buttons */
.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: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-cockfighting__btn-primary {
  background-color: #E0B973;
  color: #0A1931;
  border: 2px solid #E0B973;
}

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

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

.page-cockfighting__btn-secondary:hover {
  background-color: #E0B973;
  color: #0A1931;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  overflow: hidden;
}

.page-cockfighting__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5); /* Darken image for text contrast */
}

.page-cockfighting__hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
  color: #ffffff;
  padding: 20px;
}

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

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

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

/* Sections General */
.page-cockfighting__introduction-section,
.page-cockfighting__types-section,
.page-cockfighting__rules-betting-section,
.page-cockfighting__advantages-section,
.page-cockfighting__strategies-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
  padding: 80px 0;
}

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

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

.page-cockfighting__light-bg .page-cockfighting__text-block,
.page-cockfighting__light-bg .page-cockfighting__list-item p {
  color: #333333;
}

.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__sub-title {
  color: #0A1931;
}

.page-cockfighting__light-bg .page-cockfighting__highlight {
  color: #0A1931;
}

.page-cockfighting__medium-bg {
  background-color: #E0B973;
  color: #0A1931;
}

.page-cockfighting__medium-bg .page-cockfighting__section-title,
.page-cockfighting__medium-bg .page-cockfighting__sub-title,
.page-cockfighting__medium-bg .page-cockfighting__text-block,
.page-cockfighting__medium-bg .page-cockfighting__highlight {
  color: #0A1931;
}

/* Content Images */
.page-cockfighting__content-image {
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__advantage-card {
  background-color: rgba(224, 185, 115, 0.2); /* Lighter gold for card background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #ffffff; /* Text color for dark background */
}

.page-cockfighting__advantage-card:hover {
  transform: translateY(-10px);
  background-color: rgba(224, 185, 115, 0.3);
}

.page-cockfighting__advantage-card .page-cockfighting__card-title {
  font-size: 1.6em;
  color: #E0B973;
  margin-bottom: 15px;
}

.page-cockfighting__advantage-card p {
  color: #f0f0f0;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #0A1931;
  color: #E0B973;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(224, 185, 115, 0.2);
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-question h3 {
  margin: 0;
  color: #E0B973;
  font-size: 1em; /* Adjust to fit parent font-size */
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #E0B973;
}

.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;
  background-color: rgba(224, 185, 115, 0.05);
}

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

.page-cockfighting__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

/* CTA Section */
.page-cockfighting__cta-section {
  text-align: center;
  padding: 60px 0;
}

.page-cockfighting__cta-section .page-cockfighting__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #0A1931;
}

.page-cockfighting__cta-section .page-cockfighting__text-block a {
  color: #0A1931;
  font-weight: bold;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 3em;
  }
  .page-cockfighting__hero-description {
    font-size: 1.2em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__hero-section {
    min-height: 400px;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header spacing */
  }
  .page-cockfighting__hero-title {
    font-size: 2.2em;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-cockfighting__sub-title {
    font-size: 1.3em;
  }
  .page-cockfighting__introduction-section,
  .page-cockfighting__types-section,
  .page-cockfighting__rules-betting-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__strategies-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 50px 0;
  }
  .page-cockfighting__container {
    padding: 0 15px;
  }

  /* Mobile image responsiveness */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__advantages-grid {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 1.8em;
  }
  .page-cockfighting__hero-description {
    font-size: 0.9em;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px 20px;
  }
}