.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default body background is light */
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  background-color: #26A9E0; /* Brand primary color for hero background */
  color: #ffffff;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  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: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-cockfighting__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-cockfighting__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure buttons don't overflow */
  width: auto; /* Default width */
  text-align: center;
}

.page-cockfighting__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-cockfighting__btn-primary:hover {
  background-color: #d46c00;
  border-color: #d46c00;
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0; /* Brand primary color on hover */
}

.page-cockfighting__section {
  padding: 80px 20px;
  text-align: center;
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-cockfighting__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 20px;
  font-weight: bold;
  color: inherit; /* Inherit color from section background */
}

.page-cockfighting__text-block {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
  color: inherit;
}

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

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

.page-cockfighting__feature-card,
.page-cockfighting__content-item,
.page-cockfighting__step-card,
.page-cockfighting__service-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #333333;
}

.page-cockfighting__dark-bg .page-cockfighting__feature-card,
.page-cockfighting__dark-bg .page-cockfighting__content-item,
.page-cockfighting__dark-bg .page-cockfighting__step-card,
.page-cockfighting__dark-bg .page-cockfighting__service-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-cockfighting__dark-bg .page-cockfighting__feature-card .page-cockfighting__card-title,
.page-cockfighting__dark-bg .page-cockfighting__content-item .page-cockfighting__item-title,
.page-cockfighting__dark-bg .page-cockfighting__step-card .page-cockfighting__card-title,
.page-cockfighting__dark-bg .page-cockfighting__service-card .page-cockfighting__card-title {
  color: #ffffff;
}

.page-cockfighting__dark-bg .page-cockfighting__feature-card p,
.page-cockfighting__dark-bg .page-cockfighting__content-item p,
.page-cockfighting__dark-bg .page-cockfighting__step-card p,
.page-cockfighting__dark-bg .page-cockfighting__service-card p {
  color: #f0f0f0;
}

.page-cockfighting__feature-image,
.page-cockfighting__content-image,
.page-cockfighting__step-image,
.page-cockfighting__service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting__card-title,
.page-cockfighting__item-title,
.page-cockfighting__item-heading {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand primary color for titles */
}

.page-cockfighting__dark-bg .page-cockfighting__card-title,
.page-cockfighting__dark-bg .page-cockfighting__item-title,
.page-cockfighting__dark-bg .page-cockfighting__item-heading {
  color: #ffffff;
}

.page-cockfighting__card-text {
  font-size: 1rem;
  color: #555555;
}

.page-cockfighting__dark-bg .page-cockfighting__card-text {
  color: #e0e0e0;
}

.page-cockfighting__promotion-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-cockfighting__promotion-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-cockfighting__dark-bg .page-cockfighting__promotion-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left-color: #ffffff;
  color: #ffffff;
}

.page-cockfighting__dark-bg .page-cockfighting__promotion-item p {
  color: #f0f0f0;
}

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

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-cockfighting__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  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(255, 255, 255, 0.25);
}

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

.page-cockfighting__faq-toggle {
  margin-left: 15px;
  font-size: 1.5rem;
  line-height: 1;
}

.page-cockfighting__faq-answer {
  padding: 15px 20px 20px 20px;
  font-size: 1rem;
  color: #f0f0f0;
}

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

.page-cockfighting__call-to-action {
  background-color: #f0f8ff; /* Light blue background */
  padding: 60px 20px;
  border-top: 5px solid #26A9E0;
}

.page-cockfighting__call-to-action .page-cockfighting__section-title {
  color: #26A9E0;
}

.page-cockfighting__call-to-action .page-cockfighting__text-block {
  color: #555555;
}

/* Ensure all images and containers are responsive */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Desktop video container width */
.page-cockfighting__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-cockfighting__hero-content {
    padding: 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

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

  .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;
  }

  .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;
  }

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

  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .page-cockfighting__text-block {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-cockfighting__feature-grid,
  .page-cockfighting__content-grid,
  .page-cockfighting__guide-steps,
  .page-cockfighting__service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__content-item,
  .page-cockfighting__step-card,
  .page-cockfighting__service-card {
    padding: 20px;
  }

  .page-cockfighting__card-title,
  .page-cockfighting__item-title,
  .page-cockfighting__item-heading {
    font-size: 1.2rem;
  }

  .page-cockfighting__card-text {
    font-size: 0.9rem;
  }

  .page-cockfighting__promotion-item {
    padding: 15px;
  }

  .page-cockfighting__faq-item summary {
    padding: 15px;
    font-size: 1rem;
  }

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

  /* Image responsive */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video responsive */
  .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;
  }
}