.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page, which is #F2FFF6 on dark background #08160F */
  background-color: var(--background); /* #08160F */
}

/* Base styles for sections and containers */
.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(1.8rem, 3vw, 2.5rem); /* Responsive font size */
  color: var(--text-main); /* #F2FFF6 */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-cockfighting__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-main); /* #F2FFF6 */
  text-align: justify;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 10px 0 60px; /* Small top padding, body handles header offset */
  overflow: hidden;
  background-color: var(--background);
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  color: #fff;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  color: var(--gold); /* #F2C14E */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main); /* #F2FFF6 */
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* CTA Button - General */
.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  background: var(--button-gradient); /* linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Secondary Button Style */
.page-cockfighting__btn-secondary {
  background: none;
  border: 2px solid var(--primary-color); /* #11A84E */
  color: var(--primary-color); /* #11A84E */
  margin-left: 20px;
}

.page-cockfighting__btn-secondary:hover {
  background: var(--primary-color); /* #11A84E */
  color: #ffffff;
}

/* Button Group */
.page-cockfighting__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* About Section */
.page-cockfighting__about-section .page-cockfighting__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main); /* #F2FFF6 */
}

.page-cockfighting__image-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Guide Section */
.page-cockfighting__guide-step {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color); /* #2E7A4E */
}

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

.page-cockfighting__guide-step-title {
  font-size: 1.6rem;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 15px;
}

/* Game Types Section */
.page-cockfighting__dark-section {
  background-color: var(--deep-green); /* #0A4B2C */
  color: var(--text-main); /* #F2FFF6 */
}

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

.page-cockfighting__game-type-card {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color); /* #2E7A4E */
}

.page-cockfighting__game-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum size */
}

.page-cockfighting__card-title {
  font-size: 1.4rem;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 10px;
}

.page-cockfighting__card-description {
  font-size: 1rem;
  color: var(--text-secondary); /* #A7D9B8 */
}

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

.page-cockfighting__advantage-item {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid var(--border-color); /* #2E7A4E */
}

.page-cockfighting__advantage-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.page-cockfighting__advantage-title {
  font-size: 1.3rem;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 5px;
}

.page-cockfighting__advantage-description {
  font-size: 1rem;
  color: var(--text-secondary); /* #A7D9B8 */
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  background-color: var(--deep-green); /* #0A4B2C */
  color: var(--text-main); /* #F2FFF6 */
}

.page-cockfighting__promotion-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-cockfighting__promotion-item {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color); /* #2E7A4E */
}

.page-cockfighting__promotion-title {
  font-size: 1.5rem;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 10px;
}

.page-cockfighting__promotion-description {
  font-size: 1rem;
  color: var(--text-secondary); /* #A7D9B8 */
}

/* Tips Section */
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
}

.page-cockfighting__tip-item {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color); /* #2E7A4E */
}

.page-cockfighting__tip-title {
  font-size: 1.5rem;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 10px;
}

.page-cockfighting__tip-description {
  font-size: 1rem;
  color: var(--text-secondary); /* #A7D9B8 */
}

/* Responsible Gambling Section */
.page-cockfighting__responsible-gambling {
  background-color: var(--deep-green); /* #0A4B2C */
  text-align: center;
}

.page-cockfighting__responsible-gambling .page-cockfighting__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main); /* #F2FFF6 */
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__faq-item {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: var(--text-main); /* #F2FFF6 */
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--gold); /* #F2C14E */
  cursor: pointer;
  background-color: var(--card-bg); /* #11271B */
  position: relative;
  list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary-color); /* #11A84E */
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary); /* #A7D9B8 */
  line-height: 1.7;
}

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

/* Final CTA Section */
.page-cockfighting__cta-final {
  background-color: var(--deep-green); /* #0A4B2C */
  text-align: center;
}

.page-cockfighting__cta-final .page-cockfighting__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main); /* #F2FFF6 */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2.2rem;
  }
  .page-cockfighting__text-block {
    font-size: 1rem;
  }
  .page-cockfighting__hero-section {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section-spacing {
    padding: 40px 0;
  }
  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-cockfighting__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
  }
  .page-cockfighting__main-title {
    font-size: 2rem;
  }
  .page-cockfighting__hero-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  .page-cockfighting__cta-button,
  .page-cockfighting__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-cockfighting__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-cockfighting__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__guide-step,
  .page-cockfighting__game-type-card,
  .page-cockfighting__advantage-item,
  .page-cockfighting__promotion-item,
  .page-cockfighting__tip-item {
    padding: 20px;
  }

  .page-cockfighting__guide-step-title,
  .page-cockfighting__card-title,
  .page-cockfighting__advantage-title,
  .page-cockfighting__promotion-title,
  .page-cockfighting__tip-title {
    font-size: 1.3rem;
  }

  /* Image responsive rules */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__image-responsive,
  .page-cockfighting__card-image,
  .page-cockfighting__advantage-icon {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video responsive rules (if any video is added later) */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button responsive rules */
  .page-cockfighting__cta-button,
  .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-left: 15px;
    padding-right: 15px;
    text-align: center;
  }
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

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

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

/* Ensure contrast for text on various backgrounds */
.page-cockfighting__dark-bg {
  background-color: var(--deep-green); /* #0A4B2C */
  color: var(--text-main); /* #F2FFF6 */
}
.page-cockfighting__light-bg {
  background-color: #ffffff; /* Example for light background if needed */
  color: #333333;
}
.page-cockfighting__medium-bg {
  background-color: var(--secondary-color); /* #22C768 */
  color: #000000; /* Ensure dark text on medium green */
}

/* Contrast fix for text */
.page-cockfighting__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}
.page-cockfighting__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* Specific text color for links inside headings, if they are not gold or main text */
.page-cockfighting__section-title a,
.page-cockfighting__guide-step-title a,
.page-cockfighting__card-title a,
.page-cockfighting__advantage-title a,
.page-cockfighting__promotion-title a,
.page-cockfighting__tip-title a {
  color: var(--gold); /* Or var(--primary-color) if gold is too bright */
  text-decoration: none;
}
.page-cockfighting__section-title a:hover,
.page-cockfighting__guide-step-title a:hover,
.page-cockfighting__card-title a:hover,
.page-cockfighting__advantage-title a:hover,
.page-cockfighting__promotion-title a:hover,
.page-cockfighting__tip-title a:hover {
  text-decoration: underline;
}