.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Assuming shared.css body background is light, or fallback */
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

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

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

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

.page-cockfighting__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* For mobile responsiveness */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to width */
}

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

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

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

.page-cockfighting__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a8cc2;
  border-color: #1a8cc2;
}

/* General Sections */
.page-cockfighting__section {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.page-cockfighting__section:nth-of-type(even) {
  background-color: #f9f9f9;
}

.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add some padding for content */
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #26A9E0;
  text-align: center;
}

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

.page-cockfighting__text-block strong {
  color: #26A9E0;
}

.page-cockfighting__image-container {
  margin: 40px auto;
  max-width: 800px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

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

.page-cockfighting__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #26A9E0;
}

.page-cockfighting__feature-item h3 {
  color: #26A9E0;
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
}

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

.page-cockfighting__guide-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-bottom: 5px solid #26A9E0;
}

.page-cockfighting__guide-item h3 {
  color: #26A9E0;
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-cockfighting__guide-item .page-cockfighting__btn-primary {
  margin-top: 20px;
  width: auto;
}

.page-cockfighting__sub-list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

/* Video Section */
.page-cockfighting__video-section {
  background-color: #f0f8ff; /* Light blue background */
}

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

.page-cockfighting__video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

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

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: #ffffff;
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  color: #26A9E0;
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #ffffff;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Ensure it expands */
  padding: 15px 25px;
}

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

/* Conclusion Section */
.page-cockfighting__conclusion {
  background-color: #f9f9f9;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 2.8em;
  }
  .page-cockfighting__description {
    font-size: 1.1em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    height: 500px;
  }
  .page-cockfighting__main-title {
    font-size: 2.2em;
  }
  .page-cockfighting__description {
    font-size: 1em;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-cockfighting__section {
    padding: 40px 15px;
  }
  .page-cockfighting__container {
    padding: 0 10px;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__text-block {
    font-size: 0.95em;
  }
  .page-cockfighting__feature-list,
  .page-cockfighting__guide-steps {
    grid-template-columns: 1fr;
  }

  /* Images responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__image-container,
  .page-cockfighting__video-wrapper,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__faq-list,
  .page-cockfighting__feature-list,
  .page-cockfighting__guide-steps {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent overflow */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Fixed header offset for video section on mobile */
  }
  .page-cockfighting__video-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .page-cockfighting__faq-question,
  .page-cockfighting__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-section {
    height: 400px;
  }
  .page-cockfighting__main-title {
    font-size: 1.8em;
  }
  .page-cockfighting__description {
    font-size: 0.9em;
  }
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
}