/* style/cockfighting.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-color: #C30808;
  --login-button-color: #C30808;
  --button-text-color: #FFFF00;
  --dark-bg-text-color: #ffffff;
  --light-bg-text-color: #333333;
  --body-background-color: #121212; /* From shared.css */
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--dark-bg-text-color); /* Default text color for dark body background */
  background-color: var(--body-background-color);
  line-height: 1.6;
}

.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

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

/* Fixed Header Offset */
.page-cockfighting__hero-section {
  padding-top: var(--header-offset, 120px);
  position: relative;
  overflow: hidden;
}

.page-cockfighting__dark-bg {
  background-color: var(--primary-color);
  color: var(--dark-bg-text-color);
}

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

.page-cockfighting__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken video for text readability */
}

.page-cockfighting__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: inherit;
  z-index: 1;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background-color: var(--register-button-color); /* Custom color for Register */
  color: var(--button-text-color); /* Custom color for Register/Login font */
}

.page-cockfighting__btn-primary:hover {
  background-color: #a40606; /* Darken #C30808 */
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background-color: var(--login-button-color); /* Custom color for Login */
  color: var(--button-text-color); /* Custom color for Register/Login font */
  border: 2px solid var(--button-text-color);
}

.page-cockfighting__btn-secondary:hover {
  background-color: #a40606; /* Darken #C30808 */
  transform: translateY(-2px);
}

.page-cockfighting__btn-primary--center {
  margin: 20px auto 0 auto;
  display: block;
  width: fit-content;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--secondary-color); /* Default to white on dark background */
}

.page-cockfighting__introduction-section .page-cockfighting__section-title,
.page-cockfighting__advantages-section .page-cockfighting__section-title,
.page-cockfighting__leagues-section .page-cockfighting__section-title,
.page-cockfighting__faq-section .page-cockfighting__section-title {
  color: var(--primary-color); /* Green title on light background */
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--dark-bg-text-color); /* Default to white on dark background */
}

.page-cockfighting__introduction-section .page-cockfighting__text-block,
.page-cockfighting__advantages-section .page-cockfighting__text-block,
.page-cockfighting__leagues-section .page-cockfighting__text-block,
.page-cockfighting__faq-section .page-cockfighting__text-block {
  color: var(--light-bg-text-color); /* Dark text on light background */
}

.page-cockfighting__highlight {
  color: var(--primary-color);
  font-weight: bold;
}

.page-cockfighting__highlight-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__image--large {
  width: 100%;
}

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

.page-cockfighting__card,
.page-cockfighting__feature-card,
.page-cockfighting__step-card {
  background-color: rgba(255, 255, 255, 0.95); /* Light background for cards */
  color: var(--light-bg-text-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
}

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

.page-cockfighting__card-title,
.page-cockfighting__feature-title,
.page-cockfighting__step-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-cockfighting__card-text,
.page-cockfighting__feature-text,
.page-cockfighting__step-text {
  font-size: 1em;
  line-height: 1.6;
}

.page-cockfighting__feature-icon {
  min-width: 200px;
  min-height: 200px;
  width: 200px;
  height: 200px;
  object-fit: contain; /* or cover, depending on desired effect */
  margin: 0 auto 20px auto; /* Center icons if needed */
  display: block;
}

.page-cockfighting__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-cockfighting__list-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: var(--dark-bg-text-color); /* Default to white on dark background */
}

.page-cockfighting__introduction-section .page-cockfighting__list-item,
.page-cockfighting__advantages-section .page-cockfighting__list-item,
.page-cockfighting__leagues-section .page-cockfighting__list-item,
.page-cockfighting__faq-section .page-cockfighting__list-item {
  color: var(--light-bg-text-color); /* Dark text on light background */
}

.page-cockfighting__list-item::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.page-cockfighting__list--numbered .page-cockfighting__list-item {
  counter-increment: list-counter;
  padding-left: 50px;
}

.page-cockfighting__list--numbered .page-cockfighting__list-item::before {
  content: counter(list-counter) '.';
  font-size: 1.2em;
  color: var(--primary-color);
  font-weight: bold;
  left: 0;
  top: 0;
}

.page-cockfighting__list-item-title {
  font-size: 1.2em;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.page-cockfighting__list-item-text {
  font-size: 1em;
  line-height: 1.5;
}

.page-cockfighting__faq-list {
  margin-top: 30px;
  text-align: left;
}

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.95); /* Light background for FAQ items */
  color: var(--light-bg-text-color);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: var(--secondary-color);
  border-bottom: 1px solid #eee;
  list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

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

.page-cockfighting__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--light-bg-text-color);
  background-color: var(--secondary-color);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 3em;
  }
  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-cockfighting__hero-content {
    padding: 20px;
  }
  .page-cockfighting__hero-title {
    font-size: 2.2em;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__text-block {
    font-size: 1em;
  }
  .page-cockfighting__cards-grid,
  .page-cockfighting__features-grid,
  .page-cockfighting__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__card,
  .page-cockfighting__feature-card,
  .page-cockfighting__step-card {
    padding: 20px;
  }
  .page-cockfighting__feature-icon {
    margin-bottom: 15px;
  }
  .page-cockfighting__list-item {
    font-size: 1em;
    padding-left: 25px;
  }
  .page-cockfighting__list--numbered .page-cockfighting__list-item {
    padding-left: 40px;
  }
  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 10px 20px;
  }

  /* Mobile image and container responsive rules */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__container,
  .page-cockfighting__card,
  .page-cockfighting__feature-card,
  .page-cockfighting__step-card,
  .page-cockfighting__hero-video-wrapper,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-cockfighting__cta-buttons {
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-cockfighting__hero-video-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .page-cockfighting__feature-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 200px !important;
    height: 200px !important;
    margin: 0 auto 15px auto !important;
  }
  /* Specific override for image min-size if any selection applies */
  .page-cockfighting__section img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
  /* Ensure no image filter */
  .page-cockfighting img { filter: none !important; }
}

/* Color Contrast Adjustments for body background #121212 (dark) */
.page-cockfighting {
  color: var(--dark-bg-text-color); /* All main text on body background should be white */
}

.page-cockfighting__introduction-section,
.page-cockfighting__advantages-section,
.page-cockfighting__leagues-section,
.page-cockfighting__faq-section {
  background-color: var(--secondary-color); /* These sections have white background */
  color: var(--light-bg-text-color); /* So text should be dark */
}

.page-cockfighting__introduction-section .page-cockfighting__section-title,
.page-cockfighting__advantages-section .page-cockfighting__section-title,
.page-cockfighting__leagues-section .page-cockfighting__section-title,
.page-cockfighting__faq-section .page-cockfighting__section-title {
  color: var(--primary-color); /* Green titles on white background */
}

.page-cockfighting__introduction-section .page-cockfighting__text-block,
.page-cockfighting__advantages-section .page-cockfighting__text-block,
.page-cockfighting__leagues-section .page-cockfighting__text-block,
.page-cockfighting__faq-section .page-cockfighting__text-block {
  color: var(--light-bg-text-color); /* Dark text on white background */
}

.page-cockfighting__card,
.page-cockfighting__feature-card,
.page-cockfighting__step-card {
  background-color: var(--secondary-color); /* Cards on dark background */
  color: var(--light-bg-text-color);
}

.page-cockfighting__faq-question {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-cockfighting__faq-answer {
  background-color: var(--secondary-color);
  color: var(--light-bg-text-color);
}

.page-cockfighting__list-item {
  color: var(--light-bg-text-color); /* List items on light background */
}

/* Ensure no image filter is applied */
.page-cockfighting img { 
  filter: none;
}

/* Darken video slightly for text readability, not a filter to change color */
.page-cockfighting__hero-video {
  filter: brightness(0.5);
}