/* 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 */
}

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

.page-cockfighting__dark-bg {
  background-color: #0a0a0a; /* Ensure dark background for sections */
  color: #ffffff;
  padding: 60px 0;
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand 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: #26A9E0;
  border-radius: 2px;
}

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

.page-cockfighting__text-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-cockfighting__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a8cc4;
  border-color: #1a8cc4;
}

.page-cockfighting__btn-full-width {
  display: block;
  width: 100%;
  margin-top: 30px;
}

.page-cockfighting__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

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

.page-cockfighting__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
}

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

/* Introduction Section */
.page-cockfighting__introduction-section .page-cockfighting__image-content {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  display: block;
}

/* How to Play Section */
.page-cockfighting__ordered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
}

.page-cockfighting__list-item {
  font-size: 1.1em;
  margin-bottom: 15px;
}

.page-cockfighting__list-item strong {
  color: #26A9E0;
}

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

.page-cockfighting__card {
  background: rgba(255, 255, 255, 0.1); /* Light transparent background for cards on dark sections */
  color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-cockfighting__light-bg .page-cockfighting__card {
  background: #f8f8f8; /* Slightly off-white for cards on light sections */
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-cockfighting__card-text {
  font-size: 1em;
}

/* Advantages Section */
.page-cockfighting__unordered-list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 30px;
}

.page-cockfighting__advantages-section .page-cockfighting__image-content {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  display: block;
}

/* Safety Section */
.page-cockfighting__feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__feature-cards .page-cockfighting__card {
  background: #f8f8f8;
  color: #333333;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-cockfighting__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

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

.page-cockfighting__faq-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-item details {
  padding: 0;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: #26A9E0; /* Brand color for FAQ questions */
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.page-cockfighting__faq-answer {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.02); /* Very light transparent background for answers */
  color: #ffffff;
  font-size: 1em;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: '−';
}

.page-cockfighting__image-faq {
  display: block;
  margin: 30px auto;
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
}

/* Conclusion Section */
.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

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

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile hero is below header */
  }
  .page-cockfighting__hero-title {
    font-size: 2.2em;
  }
  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }
  .page-cockfighting__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-cockfighting__btn-full-width {
    width: 100%;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__paragraph,
  .page-cockfighting__list-item,
  .page-cockfighting__card-text {
    font-size: 1em;
  }
  .page-cockfighting__card-grid,
  .page-cockfighting__feature-cards {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__safety-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure images within content areas are not too small on mobile */
@media (max-width: 768px) {
  .page-cockfighting__introduction-section .page-cockfighting__image-content,
  .page-cockfighting__advantages-section .page-cockfighting__image-content,
  .page-cockfighting__card-image,
  .page-cockfighting__image-faq {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* No filter on images */
.page-cockfighting img {
  filter: none;
}