.page-cockfighting {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-cockfighting__section-title {
  font-size: 2.8em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-cockfighting__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
}

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

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

/* Hero Section */
.page-cockfighting__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  min-height: 600px;
  gap: 40px;
  background: linear-gradient(90deg, #017439 0%, #0a0a0a 100%);
}

.page-cockfighting__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  color: #FFFF00; /* Custom font color for H1 */
  margin-bottom: 20px;
  line-height: 1.1;
}

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

.page-cockfighting__hero-buttons {
  display: flex;
  gap: 20px;
}

.page-cockfighting__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-cockfighting__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
  transform: translateY(-2px);
}

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

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

.page-cockfighting__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Intro Section */
.page-cockfighting__intro-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-cockfighting__intro-section .page-cockfighting__section-title {
  color: #017439; /* Brand color for title on light background */
}

/* Types Section */
.page-cockfighting__types-section {
  padding: 80px 0;
  background-color: #017439; /* Dark green background */
  color: #FFFFFF; /* White text for dark background */
}

.page-cockfighting__types-section .page-cockfighting__section-title {
  color: #FFFFFF;
}

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

.page-cockfighting__grid--three-cols {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.page-cockfighting__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__card-image {
  max-width: 100%;
  height: 250px; /* Fixed height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-cockfighting__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for card titles */
  font-weight: bold;
}

.page-cockfighting__card-description {
  font-size: 1em;
  line-height: 1.5;
  flex-grow: 1;
}

/* Rules Section */
.page-cockfighting__rules-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-cockfighting__rules-section .page-cockfighting__section-title {
  color: #017439;
}

.page-cockfighting__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

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

.page-cockfighting__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

/* Advantages Section */
.page-cockfighting__advantages-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #FFFFFF;
}

.page-cockfighting__advantages-section .page-cockfighting__section-title {
  color: #FFFFFF;
}

.page-cockfighting__advantages-section .page-cockfighting__card {
  background-color: rgba(1, 116, 57, 0.2); /* Slightly transparent brand green */
  color: #FFFFFF;
}

.page-cockfighting__advantages-section .page-cockfighting__card-title {
  color: #FFFF00;
}

/* CTA Section */
.page-cockfighting__cta-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
  text-align: center;
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
  color: #017439;
}

.page-cockfighting__cta-section .page-cockfighting__paragraph {
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Guide Section */
.page-cockfighting__guide-section {
  padding: 80px 0;
  background-color: #017439;
  color: #FFFFFF;
}

.page-cockfighting__guide-section .page-cockfighting__section-title {
  color: #FFFFFF;
}

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

.page-cockfighting__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: #C30808;
  color: #FFFF00;
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

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

/* Video Section */
.page-cockfighting__video-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #FFFFFF;
  text-align: center;
}

.page-cockfighting__video-section .page-cockfighting__section-title {
  color: #FFFFFF;
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 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%;
  border: 0;
  cursor: pointer;
}

.page-cockfighting__video-caption {
  font-size: 1em;
  color: #CCCCCC;
  margin-top: 10px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-cockfighting__faq-section .page-cockfighting__section-title {
  color: #017439;
}

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

.page-cockfighting__faq-item {
  background-color: #f9f9f9;
  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;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  max-height: 0; /* Initial state */
  overflow: hidden;
  padding: 0 25px; /* Initial padding */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  font-size: 1.05em;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px !important; /* Expanded padding */
}

.page-cockfighting__faq-answer .page-cockfighting__paragraph {
  margin-bottom: 0;
}

/* Final CTA Section */
.page-cockfighting__final-cta-section {
  padding: 80px 0;
  background-color: #017439;
  color: #FFFFFF;
  text-align: center;
}

.page-cockfighting__final-cta-section .page-cockfighting__section-title {
  color: #FFFFFF;
}

.page-cockfighting__final-cta-section .page-cockfighting__paragraph {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-cockfighting__final-cta-section .page-cockfighting__hero-buttons {
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 3em;
  }
  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }
  .page-cockfighting__section-title {
    font-size: 2.2em;
  }
  .page-cockfighting__hero-section {
    padding: 40px 20px;
    padding-top: var(--header-offset, 120px);
  }
  .page-cockfighting__content-wrapper {
    flex-direction: column;
  }
  .page-cockfighting__image-block {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px !important;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-cockfighting__hero-content {
    max-width: 100%;
  }
  .page-cockfighting__hero-title {
    font-size: 2.5em;
    margin-bottom: 15px;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .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;
  }
  .page-cockfighting__hero-image-wrapper {
    margin-top: 30px;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-cockfighting__sub-title {
    font-size: 1.5em;
  }
  .page-cockfighting__card {
    padding: 20px;
  }
  .page-cockfighting__card-image {
    height: 200px; /* Adjust height for mobile */
  }
  .page-cockfighting__card-title {
    font-size: 1.4em;
  }
  .page-cockfighting__content-image {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    height: auto !important;
  }
  /* Mobile image and video responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .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,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio */
  }
  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-cockfighting__faq-answer {
    padding: 10px 20px !important;
  }
  .page-cockfighting__final-cta-section .page-cockfighting__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 2em;
  }
  .page-cockfighting__section-title {
    font-size: 1.6em;
  }
  .page-cockfighting__step-title {
    font-size: 1.3em;
  }
  .page-cockfighting__hero-buttons {
    flex-direction: column;
  }
}