/* style/cockfighting.css */

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color); /* Inherit from shared, assumed light for default text */
}

/* Ensure body padding-top is handled by shared.css, this page's first section gets small top padding */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  color: #ffffff; /* Text color for dark background */
}

.page-cockfighting__dark-bg {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
}

.page-cockfighting__light-bg {
  background-color: #ffffff; /* Auxiliary brand color / default light background */
  color: #333333;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: 30px; /* Spacing between video and content */
  padding: 0 20px;
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 3.5vw, 3.5em); /* Responsive H1, avoiding fixed large sizes */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff; /* For dark background */
}

.page-cockfighting__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for better contrast on dark green */
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure buttons don't exceed container */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
}

.page-cockfighting__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
  color: #FFFFFF;
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #ffffff; /* For dark background */
  border: 2px solid #ffffff;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
  border-color: #ffffff;
}

/* Video Section Specifics */
.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px; /* Ensure video container is responsive */
  padding-bottom: 56.25%; /* 16:9 aspect ratio (height / width * 100%) */
  height: 0;
  overflow: hidden;
  background-color: #000; /* Placeholder background */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px; /* Space between video and H1 */
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-cockfighting__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Make the link clickable over the video */
    cursor: pointer;
}

/* General Section Styles */
.page-cockfighting__section {
  padding: 60px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-cockfighting__section:last-of-type {
  border-bottom: none;
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from section's color */
}

.page-cockfighting__subsection-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit; /* Inherit from section's color */
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
}

.page-cockfighting__text-block strong {
  color: #017439; /* Highlight keywords with brand color on light background */
}

.page-cockfighting__dark-bg .page-cockfighting__text-block strong {
  color: #FFFF00; /* Highlight keywords with yellow on dark background for contrast */
}

.page-cockfighting__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

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

.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Image with text block layout */
.page-cockfighting__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__image-left {
  flex: 1;
  max-width: 50%;
}

.page-cockfighting__image-right {
  flex: 1;
  max-width: 50%;
}

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

.page-cockfighting__note {
  font-style: italic;
  font-size: 0.95em;
  color: #555;
  margin-top: 20px;
}

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

.page-cockfighting__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-cockfighting__dark-bg .page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: 600;
  font-size: 1.1em;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-cockfighting__dark-bg .page-cockfighting__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.page-cockfighting__dark-bg .page-cockfighting__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

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

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

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

.page-cockfighting__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: inherit;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 10px;
}

.page-cockfighting__faq-cta {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background-color: #017439;
  color: #ffffff;
  border-color: #017439;
}

.page-cockfighting__faq-cta:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  text-align: center;
}

.page-cockfighting__conclusion-section .page-cockfighting__text-block p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15em;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-cockfighting__hero-content {
    margin-top: 20px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-cockfighting__section-title {
    font-size: 2em;
  }

  .page-cockfighting__subsection-title {
    font-size: 1.5em;
  }

  .page-cockfighting__image-text-block {
    flex-direction: column;
  }

  .page-cockfighting__image-left,
  .page-cockfighting__image-right {
    max-width: 100%;
  }

  .page-cockfighting__reverse-on-mobile {
    flex-direction: column-reverse; /* For promotions section image on right */
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-cockfighting__hero-content {
    margin-top: 15px;
    padding: 0 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
    margin-bottom: 15px;
  }

  .page-cockfighting__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container of buttons */
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    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__video-wrapper {
    padding-bottom: 75%; /* Adjust aspect ratio for better mobile viewing if needed, e.g., 4:3 */
    margin-bottom: 20px;
  }

  .page-cockfighting__section {
    padding: 30px 15px;
  }

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

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

  .page-cockfighting__subsection-title {
    font-size: 1.3em;
  }

  .page-cockfighting__text-block {
    font-size: 1em;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-cockfighting__faq-answer {
    padding: 10px 20px;
  }
  
  .page-cockfighting__faq-list {
    margin-bottom: 30px;
  }
}