/* style/cockfighting.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --background-light: #FFFFFF;
  --background-dark: #26A9E0;
}

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

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

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

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  margin-top: -80px; /* Pull content slightly over the image for visual flow */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: clamp(2rem, 4vw, 3rem); /* Responsive font size for H1 */
}

.page-cockfighting__tagline {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 30px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  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;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-cockfighting__introduction-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__tips-strategies-section,
.page-cockfighting__faq-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-cockfighting__game-types-section,
.page-cockfighting__rules-odds-section,
.page-cockfighting__why-choose-mcw77-section,
.page-cockfighting__final-cta-section {
  padding: 60px 20px;
  background-color: var(--background-dark);
  color: var(--text-light);
  text-align: center;
}

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-cockfighting__introduction-section .page-cockfighting__section-title,
.page-cockfighting__how-to-play-section .page-cockfighting__section-title,
.page-cockfighting__tips-strategies-section .page-cockfighting__section-title,
.page-cockfighting__faq-section .page-cockfighting__section-title {
  color: var(--primary-color);
}

.page-cockfighting__game-types-section .page-cockfighting__section-title,
.page-cockfighting__rules-odds-section .page-cockfighting__section-title,
.page-cockfighting__why-choose-mcw77-section .page-cockfighting__section-title,
.page-cockfighting__final-cta-section .page-cockfighting__section-title {
  color: var(--text-light);
}

.page-cockfighting p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-cockfighting__game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white for dark background */
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--secondary-color);
}

.page-cockfighting__card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.page-cockfighting__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__step-item {
  background-color: var(--background-light);
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.page-cockfighting__step-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--primary-color);
}

.page-cockfighting__step-item p {
  font-size: 1rem;
  color: var(--text-dark);
}

.page-cockfighting__rules-content ul,
.page-cockfighting__tips-list {
  text-align: left;
  max-width: 900px;
  margin: 0 auto 40px auto;
  list-style: none;
  padding-left: 0;
}

.page-cockfighting__rules-content ul li,
.page-cockfighting__tips-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  font-size: 1.05rem;
  color: var(--text-light);
}

.page-cockfighting__rules-content ul li::before,
.page-cockfighting__tips-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-cockfighting__rules-content p {
  color: var(--text-light);
}

.page-cockfighting__sub-title {
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--secondary-color);
}

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

.page-cockfighting__benefits-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  font-size: 1.05rem;
  color: var(--text-light);
}

.page-cockfighting__benefits-list li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

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

.page-cockfighting__faq-item {
  background-color: var(--background-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.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(--primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom: 1px solid var(--primary-color);
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  color: var(--text-light);
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent text click from interfering with summary toggle */
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: var(--primary-color);
  pointer-events: none; /* Prevent icon click from interfering with summary toggle */
}

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-dark);
}

.page-cockfighting__faq-answer p {
  margin-bottom: 0;
  max-width: 100%;
}

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

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

  .page-cockfighting__hero-content {
    margin-top: -50px; /* Adjust for smaller screens */
    padding: 15px;
  }

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

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

  .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;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__tips-strategies-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__game-types-section,
  .page-cockfighting__rules-odds-section,
  .page-cockfighting__why-choose-mcw77-section,
  .page-cockfighting__final-cta-section {
    padding: 40px 15px;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }

  .page-cockfighting p {
    font-size: 1rem;
  }

  .page-cockfighting__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 30px auto;
  }

  .page-cockfighting__game-cards,
  .page-cockfighting__steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card,
  .page-cockfighting__step-item {
    padding: 25px;
  }

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

  .page-cockfighting__rules-content ul li,
  .page-cockfighting__tips-list li,
  .page-cockfighting__benefits-list li {
    font-size: 1rem;
  }

  .page-cockfighting__sub-title {
    font-size: 1.6rem;
  }

  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1.05rem;
  }

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

  /* Ensure all image containers are responsive */
  .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;
    overflow: hidden !important;
  }
}