/* style/cockfighting.css */

/* --- General Styles for .page-cockfighting --- */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#0a0a0a) */
  padding-top: var(--header-offset, 120px); /* Main fixed header offset for the entire page content */
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #FFFFFF; /* White for dark sections */
  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; /* Primary brand color */
  border-radius: 2px;
}

.page-cockfighting__subsection-title {
  font-size: 1.8em;
  color: #017439; /* Primary brand color for sub-titles in light sections */
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 5px solid #017439;
  padding-left: 15px;
}

.page-cockfighting__dark-bg {
  background-color: #017439; /* Primary brand color */\  color: #ffffff;
  padding: 80px 0;
}

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

.page-cockfighting__light-bg .page-cockfighting__section-title {
  color: #017439; /* Darker color for titles on light background */
}
.page-cockfighting__light-bg .page-cockfighting__section-title::after {
  background-color: #017439;
}


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

.page-cockfighting__list-bullet {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

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

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

.page-cockfighting__cta-buttons--center {
  justify-content: center;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.page-cockfighting__btn-primary {
  background-color: #C30808; /* Red for primary action (Register/Login) */
  color: #FFFF00; /* Yellow text for contrast */
  border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
  background-color: #e02d2d;
  border-color: #e02d2d;
  color: #ffffff;
}

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

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

.page-cockfighting__btn-small {
  background-color: #017439;
  color: #ffffff;
  border: 1px solid #017439;
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 25px;
}

.page-cockfighting__btn-small:hover {
  background-color: #005a2a;
  border-color: #005a2a;
}

.page-cockfighting__text-link {
  color: #017439; /* Primary color for links on light background */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-cockfighting__text-link:hover {
  color: #005a2a;
}

/* --- Hero Section --- */
.page-cockfighting__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  padding: 100px 0; /* Regular padding for the hero content, offset handled by .page-cockfighting */
}

.page-cockfighting__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 1;
}

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

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-cockfighting__hero-section .page-cockfighting__container {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* --- About Section --- */
.page-cockfighting__about-section {
  padding: 80px 0;
  text-align: center;
}

.page-cockfighting__image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-cockfighting__gallery-item {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

/* --- Features Section --- */
.page-cockfighting__features-section {
  padding: 80px 0;
}

.page-cockfighting__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__feature-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-cockfighting__feature-title {
  font-size: 1.5em;
  color: #FFFF00; /* Yellow for feature titles */
  margin-bottom: 15px;
}

.page-cockfighting__feature-item p {
  color: #f0f0f0;
}

/* --- Gameplay Section --- */
.page-cockfighting__gameplay-section {
  padding: 80px 0;
  text-align: center;
}

.page-cockfighting__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__step-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  min-height: 250px; /* Ensure cards have some height */
}

.page-cockfighting__step-card .page-cockfighting__btn-small {
  margin-top: 20px;
  align-self: flex-start;
}

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

.page-cockfighting__step-card p {
  color: #555555;
}

/* --- Video Section --- */
.page-cockfighting__video-section {
  padding: 80px 0; /* Regular padding for the video section content */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px; /* Limit video width */
  margin: 40px auto 20px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer; /* Indicate clickable */
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-cockfighting__video-caption {
  font-style: italic;
  margin-top: 10px;
  color: #f0f0f0;
}

/* --- FAQ Section --- */
.page-cockfighting__faq-section {
  padding: 80px 0;
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #e0e0e0;
  cursor: pointer;
  font-weight: bold;
  color: #017439;
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
}

.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 20px;
  background-color: #ffffff;
  color: #555555;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

/* --- SEO Content Section --- */
.page-cockfighting__seo-content {
  padding: 80px 0;
  background-color: #0a0a0a; /* Ensure dark background for SEO content, matching body */
  color: #ffffff; /* White text for dark background */
}

.page-cockfighting__seo-content .page-cockfighting__section-title {
  color: #ffffff;
}
.page-cockfighting__seo-content .page-cockfighting__section-title::after {
  background-color: #FFFF00; /* Yellow line for contrast */
}

.page-cockfighting__seo-content .page-cockfighting__subsection-title {
  color: #FFFF00; /* Yellow for sub-titles on dark background */
  border-left-color: #FFFF00;
}

.page-cockfighting__seo-content .page-cockfighting__text-block {
  color: #f0f0f0;
}

.page-cockfighting__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px 0;
  display: block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* --- Responsive Design --- */

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

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

  .page-cockfighting__hero-section {
    min-height: 450px;
    padding: 80px 0; /* Content padding, offset handled by .page-cockfighting */
  }

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

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

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
  }

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

  .page-cockfighting__dark-bg,
  .page-cockfighting__light-bg,
  .page-cockfighting__seo-content {
    padding: 60px 0;
  }

  .page-cockfighting__image-gallery {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__feature-list,
  .page-cockfighting__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    margin: 30px auto 15px auto;
  }

  .page-cockfighting__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific override as per prompt */
  }

  /* Force responsive for all images and videos */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure containers do not overflow */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-cockfighting__faq-question {
    padding: 15px;
  }

  .page-cockfighting__faq-question h3 {
    font-size: 1em;
  }

  .page-cockfighting__faq-answer {
    padding: 0 15px;
  }

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px;
  }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-cockfighting__hero-title {
    font-size: 3em;
  }

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

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

  .page-cockfighting__feature-list,
  .page-cockfighting__steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}