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

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--bg-body); /* Page body background */
  line-height: 1.6;
}

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

.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__section-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 25px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-cockfighting__subsection-title {
  font-size: 2.2em;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px 20px;
  max-width: 900px;
  margin-top: 40px; /* Space between image and text */
}

.page-cockfighting__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px var(--color-glow);
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary {
  background: var(--color-button-gradient);
  color: var(--text-main);
  border: 2px solid var(--color-glow);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
  opacity: 0.9;
}

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

.page-cockfighting__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: var(--color-glow);
  color: var(--bg-body);
  box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
}

.page-cockfighting__btn-center {
  margin-top: 30px;
}

.page-cockfighting__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}

.page-cockfighting__image-text-block--reversed {
  flex-direction: row-reverse;
}

.page-cockfighting__image-content {
  flex: 1;
  max-width: 50%;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  width: 100%; /* Ensure image fills its flex container */
  height: auto;
}

.page-cockfighting__text-content {
  flex: 1;
  max-width: 50%;
}

.page-cockfighting__text-content .page-cockfighting__text-block {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.page-cockfighting__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-cockfighting__list-item {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-cockfighting__list-item::before {
  content: '✓';
  color: var(--color-glow);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
}

.page-cockfighting__card-grid,
.page-cockfighting__step-grid,
.page-cockfighting__promotion-card-grid,
.page-cockfighting__benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__card,
.page-cockfighting__step-card,
.page-cockfighting__promotion-card,
.page-cockfighting__benefit-card {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

.page-cockfighting__card:hover,
.page-cockfighting__step-card:hover,
.page-cockfighting__promotion-card:hover,
.page-cockfighting__benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(87, 227, 141, 0.3);
}

.page-cockfighting__card-title,
.page-cockfighting__step-title,
.page-cockfighting__promotion-title,
.page-cockfighting__benefit-card h3 {
  font-size: 1.6em;
  color: var(--color-primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting__card-description,
.page-cockfighting__step-description,
.page-cockfighting__promotion-description,
.page-cockfighting__benefit-card p {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-cockfighting__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-button-gradient);
  color: var(--text-main);
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__guide-image-wrapper,
.page-cockfighting__promotions-image-wrapper {
  max-width: 900px;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

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

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

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

.page-cockfighting__faq-item summary {
  list-style: none;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-card);
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-item summary:hover {
  background-color: rgba(34, 199, 104, 0.1);
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--color-glow);
  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: 1.05em;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-cockfighting__cta-section {
  padding: 80px 0;
  background-image: linear-gradient(rgba(17, 168, 78, 0.1), rgba(17, 168, 78, 0.2));
  border-top: 1px solid var(--color-border);
}

.page-cockfighting__cta-content {
  max-width: 800px;
}

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

/* --- Responsive Design --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2.2em;
  }

  .page-cockfighting__subsection-title {
    font-size: 1.8em;
  }

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

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

  .page-cockfighting__image-text-block {
    flex-direction: column;
    text-align: center;
  }

  .page-cockfighting__image-text-block--reversed {
    flex-direction: column;
  }

  .page-cockfighting__image-content,
  .page-cockfighting__text-content {
    max-width: 100%;
  }

  .page-cockfighting__text-content .page-cockfighting__text-block {
    text-align: center;
  }

  .page-cockfighting__card-grid,
  .page-cockfighting__step-grid,
  .page-cockfighting__promotion-card-grid,
  .page-cockfighting__benefit-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

  .page-cockfighting__subsection-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-cockfighting__text-block {
    font-size: 1em;
    margin-bottom: 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-cockfighting__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-cockfighting__hero-buttons,
  .page-cockfighting__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;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-cockfighting__image-content,
  .page-cockfighting__guide-image-wrapper img,
  .page-cockfighting__promotions-image-wrapper img,
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__image-text-block,
  .page-cockfighting__guide-image-wrapper,
  .page-cockfighting__promotions-image-wrapper,
  .page-cockfighting__card-grid,
  .page-cockfighting__step-grid,
  .page-cockfighting__promotion-card-grid,
  .page-cockfighting__benefit-grid,
  .page-cockfighting__faq-list,
  .page-cockfighting__cta-content,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

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

  .page-cockfighting__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  .page-cockfighting__card,
  .page-cockfighting__step-card,
  .page-cockfighting__promotion-card,
  .page-cockfighting__benefit-card {
    padding: 20px;
  }

  .page-cockfighting__card-title,
  .page-cockfighting__step-title,
  .page-cockfighting__promotion-title,
  .page-cockfighting__benefit-card h3 {
    font-size: 1.4em;
  }
}

/* Ensure content area images are never too small */
.page-cockfighting__image-content {
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__image-text-block .page-cockfighting__image-content {
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__guide-image-wrapper .page-cockfighting__image-content,
.page-cockfighting__promotions-image-wrapper .page-cockfighting__image-content {
  min-width: 200px;
  min-height: 200px;
}