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

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

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--card-bg);
  overflow: hidden;
}

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

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

.page-cockfighting__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

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

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

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

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

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

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

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.page-cockfighting__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color);
}

.page-cockfighting__section:last-of-type {
  border-bottom: none;
}

.page-cockfighting__dark-bg {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-cockfighting__text-block {
  background-color: var(--page-bg);
  color: var(--text-main);
}

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-cockfighting p {
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.page-cockfighting__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-cockfighting__feature-item {
  background: var(--deep-green);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-cockfighting__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__feature-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.page-cockfighting__guide-item,
.page-cockfighting__list-item {
  background: var(--deep-green);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 1rem;
}

.page-cockfighting__guide-item::before,
.page-cockfighting__list-item::before {
  content: '✔';
  color: var(--glow-color);
  font-weight: bold;
  margin-right: 10px;
  flex-shrink: 0;
}

.page-cockfighting__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting__promotion-item {
  background: var(--deep-green);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

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

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

.page-cockfighting__image-content-block {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__image-caption {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  margin: 40px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  width: 100%; /* Ensure desktop width is 100% */
  max-width: 900px;
}

.page-cockfighting__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
  display: block;
}

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

.page-cockfighting__video-caption {
  text-align: center;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 20px;
  font-size: 0.95rem;
}

.page-cockfighting__faq-list {
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  background: var(--deep-green);
  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: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background: var(--card-bg);
  transition: background 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background: var(--deep-green);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  background: var(--deep-green);
}

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

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

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

/* Remove default marker for details */
.page-cockfighting__faq-item summary {
  list-style: none;
}
.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }
  .page-cockfighting__main-title {
    font-size: 2.8rem;
  }
  .page-cockfighting__description {
    font-size: 1rem;
  }
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__section-title {
    font-size: 2.2rem;
  }
  .page-cockfighting__sub-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px !important;
  }
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
    padding-bottom: 30px;
  }
  .page-cockfighting__main-title {
    font-size: 2.2rem;
  }
  .page-cockfighting__description {
    font-size: 0.95rem;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-cockfighting__section {
    padding: 30px 0;
  }
  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-cockfighting__sub-title {
    font-size: 1.4rem;
  }
  .page-cockfighting p,
  .page-cockfighting li {
    font-size: 1rem;
  }
  .page-cockfighting__features-grid {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__feature-item {
    padding: 25px;
  }
  .page-cockfighting__guide-item,
  .page-cockfighting__list-item {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  .page-cockfighting__promotion-item {
    padding: 20px;
  }
  .page-cockfighting__promotion-title {
    font-size: 1.2rem;
  }
  .page-cockfighting__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__video-wrapper {
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-cockfighting__video-section {
    padding-top: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__video-caption {
    font-size: 0.85rem;
  }
  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }
  /* Ensure all images are responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Ensure all image containers are responsive */
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__image-content-block,
  .page-cockfighting__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-cockfighting__feature-icon {
    width: 60px;
    height: 60px;
  }
  /* Content area images must be >= 200px. This ensures they are not shrunk below it */
  .page-cockfighting__content-image {
    min-width: 200px !important;
    min-height: 150px !important; /* Maintain aspect ratio or set a suitable min-height */
  }
}