.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherit from body or set explicitly if needed */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: #017439; /* Brand color as background for hero */
  color: #ffffff;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px;
}

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

.page-cockfighting__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above any potential background layers */
}

.page-cockfighting__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: #ffffff;
  margin-bottom: 20px;
  /* No fixed font-size for H1, relying on responsive design */
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-cockfighting__intro-text {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: #ffffff;
}

/* General Section Styling */
.page-cockfighting__section {
  padding: 60px 0;
}

.page-cockfighting__section-title {
  font-size: 2.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-cockfighting__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Color Scheme Adaptation */
.page-cockfighting__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__text-block {
  color: #333333;
}

/* Buttons */
.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

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

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

/* Card Grid */
.page-cockfighting__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__card {
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent white for cards on dark background */
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.page-cockfighting__dark-section .page-cockfighting__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__card-title {
  color: #ffffff;
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-cockfighting__card-text {
  font-size: 1rem;
  line-height: 1.7;
}

/* Steps List */
.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-cockfighting__step-item {
  background: #f9f9f9;
  color: #333333;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__step-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

.page-cockfighting__step-description {
  font-size: 1rem;
  line-height: 1.6;
}

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

.page-cockfighting__tip-item {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__tip-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-cockfighting__tip-description {
  font-size: 1rem;
  line-height: 1.6;
}

/* Safety Features */
.page-cockfighting__safety-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__feature-item {
  background: #f9f9f9;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__feature-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

.page-cockfighting__feature-description {
  font-size: 1rem;
  line-height: 1.7;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 30px;
}

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

.page-cockfighting__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00; /* Yellow for toggle icon */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: '−';
}

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

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

/* CTA Section */
.page-cockfighting__cta-section {
  text-align: center;
  padding: 80px 0;
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
  color: #017439;
}

.page-cockfighting__cta-section .page-cockfighting__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  color: #333333;
}

/* Highlight text */
.page-cockfighting__highlight {
  color: #FFFF00; /* Yellow for highlight text */
  font-weight: bold;
}

.page-cockfighting__light-bg .page-cockfighting__highlight {
  color: #C30808; /* Red for highlight text on light background */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-cockfighting__intro-text {
    font-size: 1.1rem;
  }
  .page-cockfighting__section-title {
    font-size: 1.8rem;
  }
  .page-cockfighting__text-block {
    font-size: 1rem;
  }
  .page-cockfighting__card-title, .page-cockfighting__step-title, .page-cockfighting__tip-title, .page-cockfighting__feature-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-cockfighting__intro-text {
    font-size: 1rem;
  }
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  .page-cockfighting__text-block {
    font-size: 0.95rem;
  }
  .page-cockfighting__card-grid, .page-cockfighting__safety-features {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile image responsiveness */
  .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__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure content does not overflow */
  }
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}