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

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

.page-cockfighting__section-title {
  font-size: 2.5rem;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting__description-text {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-secondary-color);
}

.page-cockfighting__highlight {
  color: var(--gold-color);
  font-weight: bold;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  background: var(--card-bg-color);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  margin-top: -80px; /* Overlap with image for visual effect */
  margin-bottom: 60px;
}

.page-cockfighting__main-title {
  font-weight: bold;
  color: var(--text-main-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__description {
  font-size: 1.2rem;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__card-button {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--main-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

.page-cockfighting__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  color: var(--text-secondary-color);
}

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

.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.page-cockfighting__paragraph {
  margin-top: 30px;
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-secondary-color);
}

/* Game Types Section */
.page-cockfighting__game-types-section {
  padding: 80px 0;
  background-color: var(--card-bg-color);
}

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

.page-cockfighting__type-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-cockfighting__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  color: var(--text-main-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__card-text {
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting__card-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  margin-top: auto;
}

.page-cockfighting__card-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Guide Section */
.page-cockfighting__guide-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
}

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

.page-cockfighting__step-item {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__step-number {
  width: 60px;
  height: 60px;
  background-color: var(--gold-color);
  color: var(--background-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-cockfighting__step-title {
  font-size: 1.6rem;
  color: var(--text-main-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__step-text {
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

.page-cockfighting__small-btn {
  padding: 10px 20px;
  font-size: 1rem;
}

/* Advantages Section */
.page-cockfighting__advantages-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

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

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

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

.page-cockfighting__card-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
}

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

.page-cockfighting__promo-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

/* Tips Section */
.page-cockfighting__tips-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-cockfighting__list-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--divider-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__list-title {
  font-size: 1.4rem;
  color: var(--text-main-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-cockfighting__list-text {
  color: var(--text-secondary-color);
}

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

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-main-color);
  cursor: pointer;
  background-color: var(--card-bg-color);
  user-select: none;
  list-style: none;
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--main-color);
}

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

.page-cockfighting__faq-answer {
  padding: 0 20px 20px 20px;
  color: var(--text-secondary-color);
  font-size: 1rem;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--background-color);
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-cockfighting__hero-content {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    margin-top: 0; 
    margin-bottom: 0;
  }

  .page-cockfighting__introduction-section .page-cockfighting__content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section-title {
    font-size: 2rem;
  }

  .page-cockfighting__description-text,
  .page-cockfighting__description {
    font-size: 1rem;
  }

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

  .page-cockfighting__hero-image-wrapper {
    max-height: 50vh;
  }

  .page-cockfighting__hero-content {
    padding: 30px 15px;
    margin-top: -50px;
    margin-bottom: 40px;
    width: calc(100% - 30px);
    left: auto;
    transform: none;
    position: relative;
  }

  .page-cockfighting__main-title {
    font-size: 1.8rem;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__card-button,
  .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-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__game-types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    padding: 40px 0;
  }

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

  .page-cockfighting__image-content,
  .page-cockfighting__card-image,
  .page-cockfighting__card-icon,
  .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,
  .page-cockfighting__image-wrapper,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting__video-section {
    padding-top: 10px !important;
  }

  .page-cockfighting__type-card,
  .page-cockfighting__advantage-card,
  .page-cockfighting__promo-card,
  .page-cockfighting__list-item,
  .page-cockfighting__faq-item {
    padding: 20px;
  }

  .page-cockfighting__card-icon {
    max-width: 150px;
  }

  .page-cockfighting__card-title {
    font-size: 1.3rem;
  }

  .page-cockfighting__step-title {
    font-size: 1.4rem;
  }

  .page-cockfighting__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }

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

/* Color Contrast Fixes (Intelligent application based on provided colors) */
:root {
  --main-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-cockfighting {
  color: var(--text-main-color); /* Light text on dark background */
  background-color: var(--background-color);
}

.page-cockfighting__card,
.page-cockfighting__advantage-card,
.page-cockfighting__promo-card,
.page-cockfighting__step-item,
.page-cockfighting__list-item,
.page-cockfighting__faq-item {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

.page-cockfighting__text-block p,
.page-cockfighting__paragraph,
.page-cockfighting__description,
.page-cockfighting__card-text,
.page-cockfighting__step-text,
.page-cockfighting__list-text,
.page-cockfighting__faq-answer p {
  color: var(--text-secondary-color);
}

.page-cockfighting__section-title,
.page-cockfighting__main-title,
.page-cockfighting__card-title,
.page-cockfighting__step-title,
.page-cockfighting__list-title,
.page-cockfighting__faq-question {
  color: var(--text-main-color);
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--main-color);
  color: #ffffff;
}

.page-cockfighting__card-button {
  background: var(--button-gradient);
  color: #ffffff;
}

.page-cockfighting__step-number {
  background-color: var(--gold-color);
  color: var(--background-color);
}

.page-cockfighting__faq-toggle {
  color: var(--main-color);
}

.page-cockfighting__dark-section {
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
}