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

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

.page-cockfighting__hero-section {
  position: relative;
  text-align: center;
  color: #FFF3E6;
  padding-bottom: 40px;
  padding-top: 10px; /* Adhering to the 10px top padding for hero */
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 675px; /* Fixed height for desktop to maintain aspect ratio with width 1200 */
  object-fit: cover;
  display: block;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 900px;
  margin: -200px auto 0 auto; /* Pull content up without overlapping the image */
  background: var(--card-bg-color, rgba(23, 25, 31, 0.8)); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding-top: 40px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFF3E6;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF3E6;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__cta-button,
.page-cockfighting__cta-link,
.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: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 165, 58, 0.4);
}

.page-cockfighting__btn-secondary {
  background: #17191F;
  color: #FFA53A;
  border: 2px solid #FFA53A;
}

.page-cockfighting__btn-secondary:hover {
  transform: translateY(-2px);
  background: #FFA53A;
  color: #17191F;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #FFA53A;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

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

.page-cockfighting__dark-section {
  background-color: var(--card-bg-color, #17191F);
  padding: 60px 0;
}

.page-cockfighting__introduction-section {
  padding: 60px 0;
}

.page-cockfighting__introduction-section .page-cockfighting__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__how-to-play-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__features-section,
.page-cockfighting__benefits-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
  padding: 60px 0;
}

.page-cockfighting__step-list,
.page-cockfighting__bet-list,
.page-cockfighting__benefit-list,
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 30px;
}

.page-cockfighting__step-item,
.page-cockfighting__bet-item,
.page-cockfighting__tip-item {
  background-color: var(--card-bg-color, #17191F);
  border: 1px solid var(--border-color, #A84F0C);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__step-title,
.page-cockfighting__bet-name,
.page-cockfighting__tip-title {
  font-size: 1.5em;
  color: #FFA53A;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__step-description,
.page-cockfighting__bet-description,
.page-cockfighting__tip-description {
  color: #FFF3E6;
  font-size: 1em;
  line-height: 1.5;
}

.page-cockfighting__how-to-play-image-wrapper,
.page-cockfighting__bet-types-image-wrapper,
.page-cockfighting__benefit-image-wrapper,
.page-cockfighting__tips-image-wrapper {
  margin-top: 40px;
  text-align: center;
}

.page-cockfighting__how-to-play-image,
.page-cockfighting__bet-types-image,
.page-cockfighting__benefit-image,
.page-cockfighting__tips-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto;
}

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

.page-cockfighting__feature-card {
  background-color: var(--card-bg-color, #17191F);
  border: 1px solid var(--border-color, #A84F0C);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.page-cockfighting__feature-title {
  font-size: 1.6em;
  color: #FFA53A;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__feature-description {
  color: #FFF3E6;
  font-size: 1em;
  line-height: 1.5;
}

.page-cockfighting__benefit-list {
  grid-template-columns: 1fr;
}

.page-cockfighting__benefit-item {
  background-color: var(--card-bg-color, #17191F);
  border: 1px solid var(--border-color, #A84F0C);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__benefit-text {
  color: #FFF3E6;
  font-size: 1.1em;
}

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

.page-cockfighting__faq-item {
  background-color: var(--card-bg-color, #17191F);
  border: 1px solid var(--border-color, #A84F0C);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFA53A;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: #FFA53A;
}

.page-cockfighting__faq-answer {
  padding: 0 20px 20px 20px;
  color: #FFF3E6;
  font-size: 1em;
  line-height: 1.5;
}

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

.page-cockfighting__cta-section .page-cockfighting__section-title {
  color: #FFA53A;
  font-size: 3em;
}

.page-cockfighting__cta-section .page-cockfighting__text-block {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.2em;
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* General image responsiveness */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -150px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

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

  .page-cockfighting__hero-image {
    height: 550px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container,
  .page-cockfighting__introduction-section .page-cockfighting__text-block,
  .page-cockfighting__cta-section .page-cockfighting__text-block {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 20px;
  }

  .page-cockfighting__hero-image {
    height: 300px !important; /* Smaller height for mobile hero */
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-cockfighting__hero-content {
    margin-top: -100px; /* Adjust pull-up for smaller screens */
    padding: 20px 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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

  .page-cockfighting__hero-buttons,
  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__cta-button,
  .page-cockfighting__cta-link,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

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

  .page-cockfighting__step-list,
  .page-cockfighting__bet-list,
  .page-cockfighting__benefit-list,
  .page-cockfighting__tips-list,
  .page-cockfighting__features-grid,
  .page-cockfighting__faq-list {
    grid-template-columns: 1fr; /* Single column layout for lists and grids */
    gap: 20px;
  }

  .page-cockfighting__how-to-play-image,
  .page-cockfighting__bet-types-image,
  .page-cockfighting__benefit-image,
  .page-cockfighting__tips-image,
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

  .page-cockfighting__faq-answer {
    font-size: 0.9em;
  }

  .page-cockfighting__cta-section {
    padding: 40px 0;
  }

  .page-cockfighting__cta-section .page-cockfighting__section-title {
    font-size: 2em;
  }
}