.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark background #121212, so light text */
  background-color: #121212; /* Ensure consistent background */
}

.page-cockfighting__section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

.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: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__section-title--light {
  color: #ffffff;
}

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

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

.page-cockfighting__text-link {
  color: #26A9E0;
  text-decoration: underline;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

.page-cockfighting__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-cockfighting__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.page-cockfighting__hero-content {
  max-width: 900px;
  z-index: 1;
  padding: 0 20px;
}

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

.page-cockfighting__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  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;
  font-size: 1.1em;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

.page-cockfighting__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* Introduction Section */
.page-cockfighting__introduction-section .page-cockfighting__image {
  margin-top: 30px;
  float: right;
  margin-left: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Betting Types Section */
.page-cockfighting__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__card-text {
  font-size: 1em;
  line-height: 1.5;
}

.page-cockfighting__betting-types-section .page-cockfighting__image {
  margin-top: 30px;
  float: left;
  margin-right: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Guide Section */
.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-counter;
}

.page-cockfighting__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #26A9E0;
  padding: 20px 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  position: relative;
  padding-left: 70px; /* Space for counter */
}

.page-cockfighting__list-item::before {
  counter-increment: guide-counter;
  content: counter(guide-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #26A9E0;
  color: #ffffff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-cockfighting__list-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
}

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

.page-cockfighting__cta-buttons--center {
  text-align: center;
  margin-top: 40px;
}

/* Advantages Section */
.page-cockfighting__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-cockfighting__grid-container--advantages {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-cockfighting__card--dark {
  background-color: rgba(38, 169, 224, 0.2);
  border: 1px solid rgba(38, 169, 224, 0.5);
}

.page-cockfighting__card-title--light {
  color: #26A9E0;
}

.page-cockfighting__card-text--light {
  color: #f0f0f0;
}

.page-cockfighting__image--center {
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Promotions Section */
.page-cockfighting__promotion-card {
  display: flex;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  align-items: center;
}

.page-cockfighting__promotion-card:nth-child(even) {
  flex-direction: row-reverse;
}

.page-cockfighting__promotion-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-cockfighting__promotion-content {
  width: 50%;
  padding: 30px;
  color: #ffffff;
}

.page-cockfighting__promotion-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__promotion-text {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-cockfighting__text-block--note {
  text-align: center;
  font-style: italic;
  color: #aaaaaa;
  margin-top: 40px;
}

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

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-title {
  font-size: 1.2em;
  margin: 0;
  flex-grow: 1;
}

.page-cockfighting__faq-title--light {
  color: #ffffff;
}

.page-cockfighting__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  width: 30px;
  text-align: center;
  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; /* Sufficient height for content */
  padding: 15px 25px 20px 25px;
}

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

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 3em;
  }
  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__promotion-card {
    flex-direction: column;
  }
  .page-cockfighting__promotion-card:nth-child(even) {
    flex-direction: column;
  }
  .page-cockfighting__promotion-image,
  .page-cockfighting__promotion-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-cockfighting__hero-section {
    height: 600px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__section {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-cockfighting__introduction-section .page-cockfighting__image,
  .page-cockfighting__betting-types-section .page-cockfighting__image,
  .page-cockfighting__image--center,
  .page-cockfighting__promotion-image {
    float: none;
    margin: 20px auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__grid-container {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

  .page-cockfighting__list-item {
    padding: 15px 15px 15px 60px;
  }

  .page-cockfighting__list-item::before {
    left: 15px;
    width: 30px;
    height: 30px;
    font-size: 1em;
  }

  .page-cockfighting__list-title {
    font-size: 1.2em;
  }

  .page-cockfighting__promotion-content {
    padding: 20px;
  }

  .page-cockfighting__promotion-title {
    font-size: 1.5em;
  }

  .page-cockfighting__promotion-text {
    font-size: 0.95em;
  }

  .page-cockfighting__faq-question {
    padding: 15px 20px;
  }

  .page-cockfighting__faq-title {
    font-size: 1.1em;
  }

  .page-cockfighting__faq-answer {
    padding: 0 20px;
  }

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px 20px 20px 20px;
  }

  /* Ensure all containers are responsive */
  .page-cockfighting__container,
  .page-cockfighting__hero-content,
  .page-cockfighting__grid-container,
  .page-cockfighting__guide-list,
  .page-cockfighting__promotion-card,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
}