/* style/cockfighting.css */

/* Base Styles for the page-cockfighting scope */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg, #0d0d0d); /* Assuming shared.css defines --dark-bg */
  padding-top: var(--header-offset, 120px); /* Apply header offset to the main content area */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  padding-top: 0; /* Hero section itself should not have additional padding-top if main already has it */
}

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

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

.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: 1;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  max-width: 900px;
}

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

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

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

/* General Section Styles */
.page-cockfighting__introduction-section,
.page-cockfighting__guide-section,
.page-cockfighting__promotions-section,
.page-cockfighting__conclusion-section {
  padding: 80px 0;
  color: #333333; /* Dark text for light background */
  background-color: #ffffff; /* White background */
}

.page-cockfighting__types-section,
.page-cockfighting__rules-section,
.page-cockfighting__why-choose-section,
.page-cockfighting__faq-section {
  padding: 80px 0;
  color: #ffffff; /* Light text for dark background */
  background-color: var(--dark-bg, #0d0d0d); /* Dark background */
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for titles on light background */
}

.page-cockfighting__section-subtitle {
  font-size: 2em;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0; /* Brand color for subtitles */
}

.page-cockfighting__dark-bg .page-cockfighting__section-subtitle,
.page-cockfighting__dark-bg .page-cockfighting__sub-heading {
  color: #ffffff; /* White for subtitles on dark background */
}

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

.page-cockfighting__text-light {
  color: #f0f0f0; /* Lighter text for dark backgrounds */
}

.page-cockfighting__text-center {
  text-align: center;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
}

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

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

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

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

/* Image Styles */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-cockfighting__type-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__type-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  margin-bottom: 15px;
  object-fit: cover;
}

.page-cockfighting__type-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #26A9E0; /* Brand color for titles */
}

.page-cockfighting__type-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

.page-cockfighting__step-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-cockfighting__step-number {
  font-size: 2em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

.page-cockfighting__step-description a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-cockfighting__step-description a:hover {
  text-decoration: underline;
}

.page-cockfighting__guide-image-container {
  margin-top: 40px;
  text-align: center;
}

.page-cockfighting__guide-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain; /* Use contain for guide images that might be diagrams */
}

.page-cockfighting__sub-heading {
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-cockfighting__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

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

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

.page-cockfighting__tip-card {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-cockfighting__tip-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-cockfighting__tip-description {
  font-size: 0.95em;
}

.page-cockfighting__tips-image-container {
  margin-top: 40px;
  text-align: center;
}

.page-cockfighting__tips-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

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

.page-cockfighting__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  color: #ffffff;
  text-align: center;
}

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

.page-cockfighting__feature-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

.page-cockfighting__promotion-card {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
  text-align: center;
}

.page-cockfighting__promotion-image {
  width: 100%;
  height: 200px; /* Consistent height for promotion images */
  margin-bottom: 15px;
  object-fit: cover;
}

.page-cockfighting__promotion-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-cockfighting__promotion-description {
  font-size: 0.95em;
}

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

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

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

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

.page-cockfighting__faq-text {
  flex-grow: 1;
  font-size: 1.1em;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  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;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.02); /* Slightly lighter background for answer */
  color: #f0f0f0;
}

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

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

/* 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__section-subtitle {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-cockfighting__hero-section {
    min-height: 450px;
    padding-top: 0;
  }

  .page-cockfighting__hero-content {
    padding: 60px 15px;
  }
}