/* style/cockfighting.css */

/* Base styles for the page content */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a, so light text */
  background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #0a0a0a; /* Dark background for hero */
  color: #ffffff;
  min-height: 600px;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
}

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

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-cockfighting__cta-buttons--center {
  justify-content: center;
  margin-top: 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: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Required for button responsiveness */
  box-sizing: border-box; /* Required for button responsiveness */
  white-space: normal; /* Required for button text wrap */
  word-wrap: break-word; /* Required for button text wrap */
}

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

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

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

.page-cockfighting__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Section Titles and Text */
.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.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__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #e0e0e0; /* Light grey for readability on dark backgrounds */
}

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

.page-cockfighting__text-block a:hover {
  color: #1e87b7;
}

/* Background colors for sections */
.page-cockfighting__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-cockfighting__light-bg {
  background-color: #1c1c1c; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

/* Image styling */
.page-cockfighting__content-image {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* Grid layout for cards */
.page-cockfighting__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background-color: #1c1c1c; /* Card background, slightly lighter than body */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff; /* Light text on dark card background */
}

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

.page-cockfighting__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-cockfighting__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-cockfighting__card-title a:hover {
  text-decoration: underline;
}

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

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

/* Lists */
.page-cockfighting__numbered-list,
.page-cockfighting__feature-list,
.page-cockfighting__advantage-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-cockfighting__numbered-list li,
.page-cockfighting__feature-list li,
.page-cockfighting__advantage-list li {
  background-color: #1c1c1c; /* List item background */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 1.1em;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__numbered-list li strong,
.page-cockfighting__feature-list li strong,
.page-cockfighting__advantage-list li strong {
  color: #26A9E0;
  margin-right: 10px;
}

.page-cockfighting__numbered-list li:before {
  content: counter(item);
  counter-increment: item;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.page-cockfighting__feature-list li::before,
.page-cockfighting__advantage-list li::before {
  content: '✓';
  color: #26A9E0;
  font-weight: bold;
  font-size: 1.5em;
  margin-right: 15px;
  flex-shrink: 0;
}

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

.page-cockfighting__faq-item {
  background-color: #1c1c1c; /* FAQ item background */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  overflow: hidden;
}

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

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

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

/* For <details> tag, hide default marker */
.page-cockfighting__faq-item summary {
  list-style: none;
}
.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}
/* For details with open attribute, rotate toggle */
.page-cockfighting__faq-item[open] > summary .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}


.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  color: #e0e0e0;
  background-color: #1c1c1c; /* Answer background */
}

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

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

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

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 60px 15px;
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }

  .page-cockfighting__hero-title {
    font-size: 2.5em;
  }

  .page-cockfighting__hero-description {
    font-size: 1em;
  }

  .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 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-cockfighting__text-block,
  .page-cockfighting__card-text,
  .page-cockfighting__numbered-list li,
  .page-cockfighting__feature-list li,
  .page-cockfighting__advantage-list li,
  .page-cockfighting__faq-question,
  .page-cockfighting__faq-answer {
    font-size: 0.95em;
  }

  /* Images responsive on mobile */
  .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; /* Enforce minimum size on mobile */
    min-height: 200px !important; /* Enforce minimum size on mobile */
  }

  /* Card images also responsive on mobile */
  .page-cockfighting__card-image {
    height: auto !important; /* Allow height to adjust */
  }

  /* Ensure content containers are responsive */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ toggle for mobile */
  .page-cockfighting__faq-question {
    padding: 15px 20px;
  }
}

/* Ensure content area images are not smaller than 200px */
.page-cockfighting__introduction-section img,
.page-cockfighting__security-section img,
.page-cockfighting__why-choose-us-section img {
  min-width: 200px;
  min-height: 200px;
}

/* Color contrast enforcement */
/* All text on dark backgrounds should be light */
.page-cockfighting p,
.page-cockfighting li,
.page-cockfighting__hero-description,
.page-cockfighting__card-text,
.page-cockfighting__faq-answer p {
  color: #e0e0e0; /* Default light text on dark background */
}

/* Specific elements that might be on a brand color background */
.page-cockfighting__faq-question {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff; /* White text for contrast */
}

.page-cockfighting__btn-primary {
  background-color: #26A9E0;
  color: #ffffff; /* White text for contrast */
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border-color: #26A9E0;
}
.page-cockfighting__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

/* Placeholder for video section, if any, to account for header offset */
.page-cockfighting__video-section {
  padding-top: var(--header-offset, 120px);
}
@media (max-width: 768px) {
  .page-cockfighting__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}