.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF; /* Body background from shared.css */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  padding-top: 10px; /* Rely on body padding-top for header offset */
  background: #FFFFFF;
  color: #333333;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
}

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

.page-cockfighting__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  width: 100%; /* Ensure it fills wrapper */
  border-radius: 8px;
}

.page-cockfighting__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #017439;
}

.page-cockfighting__description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555555;
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.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;
  border-color: #a00606;
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-cockfighting__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Section Titles */
.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #C30808;
  border-radius: 2px;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  background-color: #017439;
  color: #FFFFFF;
  padding: 60px 0;
}

.page-cockfighting__introduction-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: #f0f0f0;
}

/* Features Section */
.page-cockfighting__features-section {
  background-color: #FFFFFF;
  color: #333333;
  padding: 60px 0;
}

.page-cockfighting__feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__feature-card {
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
  border: 1px solid #e0e0e0;
}

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

.page-cockfighting__feature-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-cockfighting__feature-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666666;
}

/* Types Section */
.page-cockfighting__types-section {
  background-color: #017439;
  color: #FFFFFF;
  padding: 60px 0;
}

.page-cockfighting__types-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: #f0f0f0;
}

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

.page-cockfighting__list li {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #FFFFFF;
  position: relative;
  padding-left: 40px;
}

.page-cockfighting__list li strong {
  color: #FFFF00;
}

.page-cockfighting__list li::before {
  content: '✔';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #FFFF00;
  font-weight: bold;
}

/* How To Play Section */
.page-cockfighting__how-to-play-section {
  background-color: #FFFFFF;
  color: #333333;
  padding: 60px 0;
}

.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-cockfighting__steps-list li {
  counter-increment: step-counter;
  background: #f9f9f9;
  margin-bottom: 20px;
  padding: 25px 30px 25px 80px;
  border-radius: 10px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333333;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.page-cockfighting__steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #017439;
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.page-cockfighting__steps-list li strong {
  color: #C30808;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: #f5f5f5;
  color: #333333;
}

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: #f5f5f5;
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-cockfighting__hero-section {
    padding-bottom: 30px;
  }

  .page-cockfighting__main-title {
    font-size: 2.8rem;
  }

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

  .page-cockfighting__feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-cockfighting__feature-card {
    padding: 20px;
  }

  .page-cockfighting__card-title {
    font-size: 1.3rem;
  }

  .page-cockfighting__list li,
  .page-cockfighting__steps-list li {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Specific mobile top padding */
    padding-bottom: 20px;
  }

  .page-cockfighting__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-cockfighting__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-cockfighting__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
  }

  .page-cockfighting__section-title::after {
    width: 60px;
    height: 3px;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__features-section,
  .page-cockfighting__types-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__faq-section {
    padding: 40px 0;
  }

  .page-cockfighting__introduction-section p,
  .page-cockfighting__types-section p {
    font-size: 0.95rem;
  }

  .page-cockfighting__feature-grid {
    grid-template-columns: 1fr; /* Single column for features */
    gap: 20px;
    margin-top: 30px;
  }

  .page-cockfighting__feature-card {
    padding: 18px;
  }

  .page-cockfighting__feature-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

  .page-cockfighting__feature-card p {
    font-size: 0.9rem;
  }

  .page-cockfighting__list li {
    font-size: 0.95rem;
    padding: 12px 15px 12px 35px;
  }

  .page-cockfighting__list li::before {
    left: 10px;
    font-size: 1rem;
  }

  .page-cockfighting__steps-list li {
    font-size: 1rem;
    padding: 20px 25px 20px 70px;
  }

  .page-cockfighting__steps-list li::before {
    left: 20px;
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }

  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px;
  }

  .page-cockfighting__faq-qtext {
    font-size: 15px;
  }

  .page-cockfighting__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 15px 15px;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}