/* style/cockfighting.css */

/* Body background from shared.css is #121212 (dark). */
/* General text color for .page-cockfighting should be light. */
.page-cockfighting {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-cockfighting__section-title,
.page-cockfighting__sub-title,
.page-cockfighting__card-title {
  color: #26A9E0; /* Brand primary color for titles */
  font-weight: bold;
  margin-bottom: 20px;
}

.page-cockfighting__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  max-width: 900px;
  text-align: center;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
}

.page-cockfighting__subtitle {
  font-size: 1.25rem;
  text-align: center;
  max-width: 800px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-cockfighting__highlight {
  color: #26A9E0;
  font-weight: bold;
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
  padding: 10px 20px 60px; /* Small top padding, larger bottom */
  box-sizing: border-box;
  background-color: #121212; /* Ensure dark background for hero */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 0;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.3; /* Subtle overlay for text readability */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

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

.page-cockfighting__introduction,
.page-cockfighting__game-types,
.page-cockfighting__security-fairplay,
.page-cockfighting__mobile-experience,
.page-cockfighting__conclusion {
  background-color: #FFFFFF; /* Light background for these sections */
  color: #333333; /* Dark text on light background */
}

.page-cockfighting__introduction .page-cockfighting__section-title,
.page-cockfighting__introduction .page-cockfighting__sub-title,
.page-cockfighting__introduction .page-cockfighting__text-block,
.page-cockfighting__introduction .page-cockfighting__list-item,
.page-cockfighting__game-types .page-cockfighting__section-title,
.page-cockfighting__game-types .page-cockfighting__card-title,
.page-cockfighting__game-types .page-cockfighting__card-description,
.page-cockfighting__security-fairplay .page-cockfighting__section-title,
.page-cockfighting__security-fairplay .page-cockfighting__sub-title,
.page-cockfighting__security-fairplay .page-cockfighting__text-block,
.page-cockfighting__mobile-experience .page-cockfighting__section-title,
.page-cockfighting__mobile-experience .page-cockfighting__sub-title,
.page-cockfighting__mobile-experience .page-cockfighting__text-block,
.page-cockfighting__mobile-experience .page-cockfighting__list-item,
.page-cockfighting__conclusion .page-cockfighting__section-title,
.page-cockfighting__conclusion .page-cockfighting__text-block {
  color: #333333; /* Ensure dark text on light sections */
}

.page-cockfighting__dark-bg {
  background-color: #121212; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-cockfighting__light-bg {
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

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

.page-cockfighting__grid--2-col {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-cockfighting__grid--3-col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-cockfighting__card {
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent white for cards on dark body, or solid white on light section */
  color: #333333; /* Dark text for cards */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-cockfighting__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card image display */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.page-cockfighting__card-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-cockfighting__card-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #555555;
}

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
}

.page-cockfighting__cta-buttons--center {
  justify-content: center;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
  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;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

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

.page-cockfighting__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-cockfighting__btn-small {
  padding: 8px 15px;
  font-size: 0.9rem;
  margin-top: 15px;
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 1px solid #26A9E0;
}

.page-cockfighting__btn-small:hover {
  background-color: #1a7bb0;
  border-color: #1a7bb0;
}

/* Login specific button color */
.page-cockfighting__btn-login {
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-cockfighting__btn-login:hover {
  background-color: #c96a06;
  border-color: #c96a06;
}

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

.page-cockfighting__step-item {
  background: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  border-radius: 8px;
  padding: 30px;
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-cockfighting__step-title {
  font-size: 1.3rem;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-cockfighting__step-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #f0f0f0;
}

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

.page-cockfighting__list-item {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #333333;
}

.page-cockfighting__list-item::before {
  content: '✔';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-cockfighting__image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-cockfighting__faq-item {
  background: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFFFFF;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #26A9E0; /* Brand color for questions */
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none;   /* Disable text selection on iOS */
  -khtml-user-select: none;    /* Disable text selection on Android */
  -moz-user-select: none;      /* Disable text selection on Firefox */
  -ms-user-select: none;       /* Disable text selection on IE/Edge */
  user-select: none;           /* Disable text selection on modern browsers */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom: 1px solid #26A9E0;
}

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

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  color: #FFFFFF;
}

.page-cockfighting__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for answers */
}

.page-cockfighting__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__grid--2-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    min-height: 400px;
    padding: 10px 15px 40px; /* Adjust padding for mobile */
  }

  .page-cockfighting__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 15px;
  }

  .page-cockfighting__subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

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

  .page-cockfighting__container {
    padding: 30px 15px;
  }

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

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

  .page-cockfighting__grid,
  .page-cockfighting__grid--2-col,
  .page-cockfighting__grid--3-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

  .page-cockfighting__card-image {
    height: 180px;
  }

  .page-cockfighting__steps {
    gap: 20px;
  }

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

  .page-cockfighting__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__text-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

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

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

  .page-cockfighting__grid--reverse-on-mobile {
    display: flex;
    flex-direction: column-reverse;
  }

  /* Ensure all img tags within .page-cockfighting are responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* All containing elements for images/buttons must have max-width: 100% */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container,
  .page-cockfighting__image-container,
  .page-cockfighting__video-section, /* If video was present */
  .page-cockfighting__video-container, /* If video was present */
  .page-cockfighting__video-wrapper /* If video was present */
  {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-cockfighting__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-cockfighting__hero-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Additional contrast fixes if needed */
.page-cockfighting__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-cockfighting__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}