.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff; /* Default light background */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  padding: 100px 0 60px; /* Adjust for header offset */
  padding-top: var(--header-offset, 120px);
  text-align: center;
  color: #ffffff; /* White text for dark background */
  background: linear-gradient(135deg, #017439, #005f2e); /* Dark green gradient */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.2; /* Subtle overlay */
}

.page-cockfighting__hero-section .page-cockfighting__container {
  position: relative;
  z-index: 1;
}

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

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

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

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

.page-cockfighting__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Primary brand color */
  border: 2px solid #017439;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
}

/* Section Titles */
.page-cockfighting__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #017439; /* Primary brand color for titles */
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
  color: #ffffff; /* White for dark backgrounds */
}

/* Text Blocks */
.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Section Styling */
.page-cockfighting__introduction-section,
.page-cockfighting__betting-guide-section,
.page-cockfighting__security-section,
.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-cockfighting__types-section,
.page-cockfighting__advantages-section,
.page-cockfighting__promotions-section,
.page-cockfighting__cta-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff;
}

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

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

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

.page-cockfighting__feature-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-cockfighting__feature-card .page-cockfighting__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

.page-cockfighting__feature-description {
  font-size: 1em;
  color: #555555;
}

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

.page-cockfighting__type-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #ffffff;
}

.page-cockfighting__type-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting__type-name {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-cockfighting__type-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Betting Guide */
.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting__guide-list li {
  background-color: #f8f8f8;
  margin-bottom: 15px;
  padding: 20px;
  border-left: 5px solid #017439;
  border-radius: 5px;
  font-size: 1.1em;
  color: #333333;
}

.page-cockfighting__guide-list li a {
  color: #017439;
  text-decoration: underline;
}

.page-cockfighting__guide-list li a:hover {
  color: #005f2e;
}

.page-cockfighting__list-strong {
  color: #017439;
}

/* Advantages List */
.page-cockfighting__advantages-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-cockfighting__advantage-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #ffffff;
  border-left: 4px solid #ffffff;
}

/* Security Section */
.page-cockfighting__security-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-cockfighting__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-cockfighting__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting__promo-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-cockfighting__promo-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-cockfighting__promotions-section a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-cockfighting__promotions-section a:hover {
  color: #ffffff;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #e8f5e9;
  border-bottom: 1px solid #d4e9d5;
}

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

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

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

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  font-size: 1.1em;
  color: #555555;
  background-color: #ffffff;
}

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

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

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

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

/* Mobile responsive */
@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 80px 20px 40px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

  .page-cockfighting__introduction-section,
  .page-cockfighting__types-section,
  .page-cockfighting__betting-guide-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__security-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 50px 0;
  }

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

  .page-cockfighting__feature-grid,
  .page-cockfighting__type-list,
  .page-cockfighting__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .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;
    font-size: 1em;
  }

  .page-cockfighting__hero-cta-buttons,
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

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

  .page-cockfighting__faq-answer {
    font-size: 0.95em;
    padding: 15px 20px;
  }

  .page-cockfighting__guide-list li,
  .page-cockfighting__advantage-item {
    font-size: 1em;
    padding: 15px;
  }

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

  .page-cockfighting__feature-card,
  .page-cockfighting__type-item,
  .page-cockfighting__promo-card {
    padding: 20px;
  }
}

/* Ensure content areas don't cause horizontal scroll */
.page-cockfighting__section, .page-cockfighting__card, .page-cockfighting__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Adding padding to prevent content from touching screen edges */
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Override specific section padding for mobile */
  .page-cockfighting__hero-section .page-cockfighting__container,
  .page-cockfighting__introduction-section .page-cockfighting__container,
  .page-cockfighting__types-section .page-cockfighting__container,
  .page-cockfighting__betting-guide-section .page-cockfighting__container,
  .page-cockfighting__advantages-section .page-cockfighting__container,
  .page-cockfighting__security-section .page-cockfighting__container,
  .page-cockfighting__promotions-section .page-cockfighting__container,
  .page-cockfighting__faq-section .page-cockfighting__container,
  .page-cockfighting__cta-section .page-cockfighting__container {
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Ensure images in content areas are not smaller than 200px */
  .page-cockfighting__feature-card img,
  .page-cockfighting__type-item img,
  .page-cockfighting__security-image,
  .page-cockfighting__promo-card img {
    min-width: 200px;
    min-height: 200px;
  }
}