.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

.page-cockfighting__section-spacing {
  padding: 60px 0;
}

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

.page-cockfighting__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting__text-block {
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--text-main);
}

.page-cockfighting__inline-link {
  color: var(--glow);
  text-decoration: underline;
}

.page-cockfighting__inline-link:hover {
  color: var(--gold);
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles header offset, small decorative top padding */
  overflow: hidden;
  text-align: center;
}

.page-cockfighting__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  margin-bottom: 30px;
}

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

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

.page-cockfighting__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__hero-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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
  background: var(--card-b-g);
  color: var(--glow);
  border: 2px solid var(--glow);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--glow);
  color: var(--card-b-g);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

/* Content Sections */
.page-cockfighting__content-flex {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-cockfighting__content-flex > .page-cockfighting__text-block,
.page-cockfighting__content-flex > .page-cockfighting__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-cockfighting__image-wrapper {
  text-align: center;
}

.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__image-wrapper--center {
  margin-top: 40px;
}

/* Why QU88 Section */
.page-cockfighting__dark-section {
  background-color: var(--card-b-g);
  color: var(--text-main);
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: var(--gold);
}

.page-cockfighting__dark-section .page-cockfighting__card-title {
  color: var(--glow);
}

.page-cockfighting__dark-section .page-cockfighting__card p {
  color: var(--text-secondary);
}

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

.page-cockfighting__grid-layout--small-gap {
  gap: 20px;
}

.page-cockfighting__card {
  background-color: var(--deep-green);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.page-cockfighting__card-title {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--glow);
}

.page-cockfighting__card p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* How to Play Section */
.page-cockfighting__light-bg {
  background-color: #0A4B2C; /* A lighter shade of green from the palette for contrast */
  color: #F2FFF6;
}

.page-cockfighting__light-bg .page-cockfighting__section-title {
  color: var(--gold);
}

.page-cockfighting__light-bg p {
  color: var(--text-main);
}

.page-cockfighting__light-bg .page-cockfighting__inline-link {
  color: var(--glow);
}

.page-cockfighting__light-bg .page-cockfighting__inline-link:hover {
  color: var(--gold);
}

.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-cockfighting__ordered-list li,
.page-cockfighting__unordered-list li {
  background-color: rgba(17, 168, 78, 0.1);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 17px;
  color: var(--text-main);
  border-left: 5px solid var(--glow);
}

.page-cockfighting__ordered-list li strong,
.page-cockfighting__unordered-list li strong {
  color: var(--gold);
}

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

.page-cockfighting__faq-item {
  background-color: var(--deep-green);
  border: 1px solid var(--divider);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--card-b-g);
  transition: background-color 0.3s ease;
  list-style: none;
}

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

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

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  color: var(--gold);
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow);
  margin-left: 15px;
}

.page-cockfighting__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  color: var(--text-secondary);
}

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

/* Conclusion Section */
.page-cockfighting__conclusion-section .page-cockfighting__section-title {
  color: var(--gold);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-image-wrapper {
    padding-bottom: 65%; /* Adjust aspect ratio for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section-spacing {
    padding: 40px 0;
  }

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

  .page-cockfighting__section-title {
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: 30px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(28px, 6vw, 48px);
  }

  .page-cockfighting__hero-description {
    font-size: clamp(15px, 2.5vw, 18px);
  }

  .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;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__content-flex {
    flex-direction: column;
  }

  .page-cockfighting__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

  .page-cockfighting__card-title {
    font-size: 20px;
  }

  .page-cockfighting__ordered-list li,
  .page-cockfighting__unordered-list li {
    font-size: 15px;
    padding: 12px 15px;
  }

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

  .page-cockfighting__faq-answer {
    padding: 10px 20px 15px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-image-wrapper {
    padding-bottom: 75%; /* More vertical space for image on very small screens */
  }

  .page-cockfighting__section-title {
    font-size: clamp(22px, 6vw, 32px);
  }

  .page-cockfighting__main-title {
    font-size: clamp(26px, 7vw, 40px);
  }

  .page-cockfighting__hero-description {
    font-size: clamp(14px, 3vw, 16px);
  }
}

/* Ensure content section images/videos/buttons do not cause horizontal scroll */
.page-cockfighting__section, .page-cockfighting__card, .page-cockfighting__container, .page-cockfighting__hero-section, .page-cockfighting__introduction-section, .page-cockfighting__why-qu88-section, .page-cockfighting__gameplay-section, .page-cockfighting__how-to-play-section, .page-cockfighting__strategy-section, .page-cockfighting__promotions-section, .page-cockfighting__faq-section, .page-cockfighting__conclusion-section {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}