.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF);
}

.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%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  box-sizing: border-box;
}

.page-cockfighting__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-cockfighting__hero-overlay {
  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-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Bright yellow for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-cockfighting__btn-register, .page-cockfighting__btn-login, .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: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-cockfighting__btn-register:hover, .page-cockfighting__btn-login:hover {
  background-color: #a30606;
  transform: translateY(-3px);
}

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

.page-cockfighting__btn-primary:hover {
  background-color: #005a2e;
  transform: translateY(-3px);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

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

.page-cockfighting__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* General Section Styles */
.page-cockfighting__section {
  padding: 80px 0;
}

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

.page-cockfighting__dark-bg .page-cockfighting__section-title {
  color: #FFFF00; /* Yellow for titles on dark background */
}

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

.page-cockfighting__dark-bg .page-cockfighting__paragraph {
  color: #ffffff;
}

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

.page-cockfighting__image--responsive {
  max-width: 100%;
  height: auto;
}

/* List Styles */
.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.page-cockfighting__list-item {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-cockfighting__dark-bg .page-cockfighting__list-item {
  background-color: rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-cockfighting__list-item h3 {
  color: #017439;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.page-cockfighting__dark-bg .page-cockfighting__list-item h3 {
  color: #FFFF00;
}

.page-cockfighting__list--ordered {
  list-style: decimal;
  padding-left: 20px;
}

/* Grid Styles */
.page-cockfighting__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.page-cockfighting__card-title {
  color: #017439;
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 15px;
}

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

.page-cockfighting__guide-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  border-left: 5px solid #017439;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__guide-item h3 {
  color: #017439;
  font-size: 1.2em;
  margin-top: 0;
  margin-bottom: 10px;
}

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

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

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

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

.page-cockfighting__faq-question:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.page-cockfighting__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  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-top: 0;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-cockfighting__faq-answer a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-cockfighting__faq-answer a:hover {
  color: #fff;
}

/* Conclusion Section */
.page-cockfighting__conclusion {
  text-align: center;
  padding-bottom: 80px;
}

.page-cockfighting__conclusion .page-cockfighting__paragraph {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    height: auto;
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

  .page-cockfighting__btn-register, .page-cockfighting__btn-login, .page-cockfighting__btn-primary, .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .page-cockfighting__section {
    padding: 40px 0;
  }

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

  .page-cockfighting__paragraph {
    font-size: 1em;
  }

  .page-cockfighting__image, .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__container, .page-cockfighting__grid, .page-cockfighting__guide-steps, .page-cockfighting__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-cockfighting__guide-steps {
    grid-template-columns: 1fr;
  }

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

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

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }
  
  /* Ensure content area images are not too small */
  .page-cockfighting img {
    min-width: 200px;
    min-height: 200px;
  }
  
  /* Ensure no filter is used on images */
  .page-cockfighting img {
    filter: none !important;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 1.8em;
  }

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

  .page-cockfighting__hero-section {
    min-height: 400px;
  }
}