/* style/cockfighting.css */

/* Base Styles */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f4f7f6; /* Body background color from shared.css */
}

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

/* Section Spacing */
.page-cockfighting__hero-section,
.page-cockfighting__intro-section,
.page-cockfighting__video-section,
.page-cockfighting__types-section,
.page-cockfighting__rules-section,
.page-cockfighting__strategy-section,
.page-cockfighting__promo-section,
.page-cockfighting__faq-section,
.page-cockfighting__contact-section {
  padding: 60px 0;
  overflow: hidden; /* Ensure no content overflow */
}

/* Colors based on palette */
.page-cockfighting__dark-bg {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-cockfighting__light-bg {
  background-color: #f4f7f6; /* Body background from shared.css */
  color: #333333; /* Dark text for light background */
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #11A84E; /* Main color */
}

.page-cockfighting__section-title--white {
  color: #F2FFF6; /* Text Main */
}

.page-cockfighting__section-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333; /* Default for light background */
}

.page-cockfighting__section-text--white {
  color: #A7D9B8; /* Text Secondary */
}

/* Hero Section */
.page-cockfighting__hero-section {
  padding-top: 10px; /* Small padding for the first section */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  background-color: #08160F; /* Deep Green background for hero */
  color: #F2FFF6;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  position: relative;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-cockfighting__hero-content {
  position: relative; /* Ensure content is above image if needed, though structure is image then text */
  z-index: 2;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content slightly over image */
  background: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__main-title {
  /* No fixed font-size, rely on font-weight, line-height, etc. */
  font-weight: 800;
  line-height: 1.2;
  color: #F2FFF6;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
}

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

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt to container */
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Green color */
  border: 2px solid #2AD16F;
}

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

.page-cockfighting__btn-text-link {
  color: #11A84E;
  padding: 5px 0;
  font-weight: 600;
  border-bottom: 1px solid #11A84E;
}

.page-cockfighting__btn-text-link:hover {
  color: #22C768;
  border-color: #22C768;
}

/* Card Styles */
.page-cockfighting__feature-card,
.page-cockfighting__type-card,
.page-cockfighting__promo-card,
.page-cockfighting__rule-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-cockfighting__dark-bg-card {
  background-color: #11271B; /* Card B G */
  color: #F2FFF6; /* Text Main */
}

.page-cockfighting__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure image behaves as block for max-width/height */
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #11A84E; /* Main color */
}

.page-cockfighting__card-title--white {
  color: #F2FFF6; /* Text Main */
}

.page-cockfighting__card-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1; /* Allow text to take up available space */
}

.page-cockfighting__card-text--white {
  color: #A7D9B8; /* Text Secondary */
}

/* Grid Layouts */
.page-cockfighting__content-grid,
.page-cockfighting__grid-2-cols,
.page-cockfighting__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__content-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  align-items: center;
}

/* Video Section */
.page-cockfighting__video-section {
  text-align: center;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  width: 100%; /* Ensure width is 100% for desktop too */
  background: #000;
  border-radius: 10px;
  margin: 0 auto 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer; /* Indicate video is clickable */
}

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

.page-cockfighting__strategy-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-cockfighting__strategy-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__rule-list {
  list-style: disc;
  text-align: left;
  margin-left: 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
}

.page-cockfighting__rule-list li {
  margin-bottom: 10px;
}

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

.page-cockfighting__faq-item {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-cockfighting__faq-item[open] {
  border-color: #11A84E;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: #F8F8F8;
  color: #11A84E;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  background-color: #11A84E;
  color: #F2FFF6;
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  color: #F2FFF6;
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
  max-height: 2000px; /* Arbitrarily large value */
  padding-top: 15px;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 15px;
  text-align: left;
}

/* Contact Section */
.page-cockfighting__cta-content {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -100px;
    padding: 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 4.5vw, 3em);
  }
  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__section-text {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section,
  .page-cockfighting__intro-section,
  .page-cockfighting__video-section,
  .page-cockfighting__types-section,
  .page-cockfighting__rules-section,
.page-cockfighting__strategy-section,
.page-cockfighting__promo-section,
.page-cockfighting__faq-section,
.page-cockfighting__contact-section {
    padding: 40px 0;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__hero-image-wrapper {
    margin-bottom: 15px;
  }

  .page-cockfighting__hero-content {
    margin-top: 0; /* Remove negative margin on mobile */
    padding: 20px 15px;
    background: #08160F; /* Solid background for hero content on mobile */
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.5em, 8vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-cockfighting__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-text-link {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Image responsive rules */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__card-image {
    height: 200px; /* Adjust card image height for mobile */
  }

  /* Video responsive rules */
  .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-section {
    padding-top: 10px !important; /* Small padding for video section */
  }

  /* Ensure all containers with images/videos/buttons are responsive */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__content-grid,
  .page-cockfighting__grid-2-cols,
  .page-cockfighting__promo-grid,
  .page-cockfighting__content-grid-2,
  .page-cockfighting__strategy-grid,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Add padding to prevent content from touching edges if not already done by .container */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    font-size: 0.95em;
    padding: 0 20px 15px;
  }
}

/* Color contrast fixes for specific elements */
.page-cockfighting h1, .page-cockfighting h2, .page-cockfighting h3, .page-cockfighting h4, .page-cockfighting h5, .page-cockfighting h6 {
  color: #11A84E; /* Ensure headings have good contrast */
}
.page-cockfighting__dark-bg h1, .page-cockfighting__dark-bg h2, .page-cockfighting__dark-bg h3, .page-cockfighting__dark-bg h4, .page-cockfighting__dark-bg h5, .page-cockfighting__dark-bg h6 {
  color: #F2FFF6; /* White headings on dark backgrounds */
}
.page-cockfighting__dark-bg p, .page-cockfighting__dark-bg li {
  color: #A7D9B8; /* Light text on dark backgrounds */
}
.page-cockfighting__light-bg p, .page-cockfighting__light-bg li {
  color: #333333; /* Dark text on light backgrounds */
}
.page-cockfighting__card {
  color: #333333; /* Default card text */
}
.page-cockfighting__dark-bg-card {
  color: #F2FFF6; /* Dark background card text */
}
.page-cockfighting__dark-bg-card .page-cockfighting__card-title {
  color: #F2FFF6; /* Dark background card title */
}
.page-cockfighting__dark-bg-card .page-cockfighting__card-text {
  color: #A7D9B8; /* Dark background card text */
}