/* style/cockfighting.css */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#121212) */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #017439, #00562b);
}

.page-cockfighting__hero-section .page-cockfighting__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
  z-index: 1;
}

.page-cockfighting__hero-content {
  flex: 1;
  max-width: 600px;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  color: #FFFF00; /* Custom color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  color: #ffffff;
  margin-bottom: 30px;
}

.page-cockfighting__hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

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

.page-cockfighting__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #FFFF00; /* Custom color for titles */
  text-align: center;
  margin-bottom: 40px;
  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: #017439;
  border-radius: 2px;
}

/* General Section Styling */
.page-cockfighting__introduction-section,
.page-cockfighting__guide-section,
.page-cockfighting__advantages-section,
.page-cockfighting__cta-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-cockfighting__dark-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* Light text for dark background */
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__text-block strong {
  color: #00562b;
}

/* Types Section Grid */
.page-cockfighting__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark section */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 100%; /* Ensure image fills card width */
  min-height: 200px; /* Minimum image height */
  object-fit: cover;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: #FFFF00; /* Custom color for card titles */
  margin-bottom: 10px;
}

.page-cockfighting__card-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Guide Section List */
.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__guide-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  margin-bottom: 20px;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__guide-step-title {
  font-size: 1.4em;
  color: #017439;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting__guide-item p {
  color: #555555;
  margin-bottom: 0;
}

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

/* Tips Section List */
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__tips-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-cockfighting__tips-title {
  font-size: 1.4em;
  color: #FFFF00; /* Custom color for tips titles */
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting__tips-item p {
  color: #f0f0f0;
  margin-bottom: 0;
}

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

.page-cockfighting__advantage-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-cockfighting__advantage-item:hover {
  transform: translateY(-5px);
}

.page-cockfighting__advantage-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
}

.page-cockfighting__advantage-item p {
  color: #555555;
}

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

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFF00; /* Custom color for FAQ questions */
  cursor: pointer;
  background-color: #017439;
  transition: background-color 0.3s ease;
}

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

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px;
  padding-bottom: 25px;
}

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

/* Call to Action Section */
.page-cockfighting__cta-section {
  text-align: center;
  padding: 100px 0;
  background-color: #f0f0f0; /* Light background */
  color: #333333;
}

.page-cockfighting__cta-content {
  max-width: 800px;
}

.page-cockfighting__cta-title {
  font-size: 2.8em;
  color: #017439;
  margin-bottom: 20px;
}

.page-cockfighting__cta-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 40px;
}

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

.page-cockfighting__btn-primary {
  background-color: #C30808; /* Custom Register/Login button color */
  color: #FFFF00; /* Custom Register/Login font color */
  border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom Register/Login font color */
  border: 2px solid #FFFF00;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808; /* Invert colors on hover */
  transform: translateY(-2px);
}

.page-cockfighting__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.3em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 2.8em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__cta-title {
    font-size: 2.2em;
  }
  .page-cockfighting__hero-section .page-cockfighting__container {
    flex-direction: column;
    text-align: center;
  }
  .page-cockfighting__hero-content {
    max-width: 100%;
  }
  .page-cockfighting__hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header spacing */
    min-height: auto;
  }
  .page-cockfighting__hero-title {
    font-size: 2.2em;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__cta-title {
    font-size: 1.8em;
  }
  .page-cockfighting__introduction-section,
  .page-cockfighting__types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 40px 0;
  }
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__card {
    padding: 20px;
  }
  .page-cockfighting__card-title {
    font-size: 1.3em;
  }
  .page-cockfighting__guide-item,
  .page-cockfighting__tips-item,
  .page-cockfighting__advantage-item {
    padding: 15px 20px;
  }
  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px 20px;
    padding-bottom: 20px;
  }
  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__card,
  .page-cockfighting__guide-section,
  .page-cockfighting__types-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 1.8em;
  }
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting__cta-title {
    font-size: 1.5em;
  }
  .page-cockfighting__btn-primary--large {
    font-size: 1.1em;
    padding: 15px 25px;
  }
}

/* Color Contrast Fixes based on body background #121212 (dark) */
.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__text-block,
.page-cockfighting__light-bg .page-cockfighting__guide-step-title,
.page-cockfighting__light-bg .page-cockfighting__guide-item p,
.page-cockfighting__light-bg .page-cockfighting__advantage-title,
.page-cockfighting__light-bg .page-cockfighting__advantage-item p,
.page-cockfighting__light-bg .page-cockfighting__cta-title,
.page-cockfighting__light-bg .page-cockfighting__cta-description {
  color: #333333; /* Dark text for light backgrounds */
}

.page-cockfighting__dark-bg,
.page-cockfighting__dark-section {
  color: #ffffff; /* Light text for dark backgrounds */
}

.page-cockfighting__dark-bg .page-cockfighting__hero-title,
.page-cockfighting__dark-section .page-cockfighting__section-title,
.page-cockfighting__dark-section .page-cockfighting__card-title,
.page-cockfighting__dark-section .page-cockfighting__tips-title,
.page-cockfighting__dark-section .page-cockfighting__faq-question span {
  color: #FFFF00; /* Specific titles on dark background */
}

.page-cockfighting__dark-section .page-cockfighting__card,
.page-cockfighting__dark-section .page-cockfighting__tips-item,
.page-cockfighting__dark-section .page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark */
  color: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__faq-question {
  background-color: #017439;
}

.page-cockfighting__dark-section .page-cockfighting__faq-question:hover {
  background-color: #00562b;
}

.page-cockfighting__dark-section .page-cockfighting__faq-answer p {
  color: #f0f0f0;
}