/* style/cockfighting.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --bg-light: #FFFFFF;
  --bg-dark: #017439;
  --btn-register-bg: #C30808;
  --btn-register-text: #FFFF00;
}

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

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-cockfighting__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 1;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

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

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

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

/* Buttons */
.page-cockfighting__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-cockfighting__btn--primary:hover {
  background-color: #A30606; /* Darken #C30808 */
  border-color: #A30606;
}

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

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

.page-cockfighting__btn--link {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
}

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

.page-cockfighting__btn--large {
  font-size: 1.2em;
  padding: 18px 35px;
}

/* Sections */
.page-cockfighting__intro-section,
.page-cockfighting__game-types-section,
.page-cockfighting__guide-section,
.page-cockfighting__strategy-section,
.page-cockfighting__advantages-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
  padding: 80px 0;
}

.page-cockfighting__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section (dark/light bg) */
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Content Grid */
.page-cockfighting__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-cockfighting__text-block {
  flex: 1;
}

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

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

.page-cockfighting__image--full-width {
  width: 100%;
  margin-top: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__type-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.page-cockfighting__type-card .page-cockfighting__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--text-light);
}

/* Guide Steps */
.page-cockfighting__guide-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-color: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

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

/* Strategy List */
.page-cockfighting__strategy-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-top: 30px;
  color: var(--text-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__strategy-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-cockfighting__strategy-list strong {
  color: var(--secondary-color);
}

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

.page-cockfighting__advantage-card {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: var(--text-dark);
}

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

/* FAQ Section */
.page-cockfighting__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  color: var(--text-dark);
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: #f0f0f0;
}

.page-cockfighting__faq-title {
  margin: 0;
  font-size: 1.1em;
  color: inherit;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
  content: '−'; /* This will be handled by JS */
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 0;
  color: var(--text-dark);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 3em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__content-grid {
    flex-direction: column;
  }
  .page-cockfighting__text-block, .page-cockfighting__image-wrapper {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-cockfighting__hero-title {
    font-size: 2.5em;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn {
    width: 100%;
    max-width: 300px; /* Limit button width on small screens */
    margin: 0 auto;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__intro-section, .page-cockfighting__game-types-section, .page-cockfighting__guide-section, .page-cockfighting__strategy-section, .page-cockfighting__advantages-section, .page-cockfighting__faq-section, .page-cockfighting__cta-section {
    padding: 60px 0;
  }

  /* Mobile image adaptation */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__image-wrapper,
  .page-cockfighting__content-grid,
  .page-cockfighting__types-grid,
  .page-cockfighting__guide-steps,
  .page-cockfighting__advantages-grid,
  .page-cockfighting__faq-list,
  .page-cockfighting__cta-section .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-cockfighting__btn--primary, .page-cockfighting__btn--secondary, .page-cockfighting__btn--link, .page-cockfighting__btn--large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__strategy-list {
    margin-left: 0;
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 2em;
  }
  .page-cockfighting__hero-section {
    height: 400px;
  }
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting__hero-actions {
    gap: 10px;
  }
}

/* Contrast Fixes */
.page-cockfighting__dark-bg {
  color: var(--text-light); /* Deep green background with white text */
}
.page-cockfighting__light-bg {
  color: var(--text-dark); /* White background with dark text */
}

.page-cockfighting__type-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark bg cards */
  color: var(--text-light); /* White text on these cards */
}
.page-cockfighting__type-card .page-cockfighting__card-title {
  color: var(--text-light); /* White titles on these cards */
}

/* Ensure all text in light sections is dark */
.page-cockfighting__light-bg p, .page-cockfighting__light-bg li, .page-cockfighting__light-bg h1, .page-cockfighting__light-bg h2, .page-cockfighting__light-bg h3 {
  color: var(--text-dark);
}

/* Ensure all text in dark sections is light */
.page-cockfighting__dark-bg p, .page-cockfighting__dark-bg li, .page-cockfighting__dark-bg h1, .page-cockfighting__dark-bg h2, .page-cockfighting__dark-bg h3 {
  color: var(--text-light);
}

/* Specific overrides for button text on dark backgrounds */
.page-cockfighting__btn--secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}
.page-cockfighting__btn--secondary:hover {
  color: var(--primary-color);
}

.page-cockfighting__faq-question {
  background-color: #f9f9f9;
  color: var(--text-dark);
}
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  background-color: var(--bg-light);
  color: var(--text-dark);
}
.page-cockfighting__faq-answer p {
  color: var(--text-dark);
}