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

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  overflow: hidden;
}

.page-cockfighting__hero-content {
  max-width: 900px;
  z-index: 10;
  margin-bottom: 30px;
}

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

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

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

.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, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

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

.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__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for better text contrast */
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand primary color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: #ffffff;
}

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

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

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

.page-cockfighting__features-grid,
.page-cockfighting__steps-grid,
.page-cockfighting__promo-grid,
.page-cockfighting__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-cockfighting__feature-card,
.page-cockfighting__step-card,
.page-cockfighting__promo-card,
.page-cockfighting__why-choose-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-cockfighting__dark-section .page-cockfighting__feature-card,
.page-cockfighting__dark-section .page-cockfighting__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-cockfighting__feature-card:hover,
.page-cockfighting__step-card:hover,
.page-cockfighting__promo-card:hover,
.page-cockfighting__why-choose-item:hover {
  transform: translateY(-5px);
}

.page-cockfighting__feature-image,
.page-cockfighting__promo-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-cockfighting__dark-section .page-cockfighting__card-title {
  color: #ffffff;
}

.page-cockfighting__card-text {
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

.page-cockfighting__dark-section .page-cockfighting__card-text {
  color: #f0f0f0;
}

.page-cockfighting__button-small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: auto; /* Push button to bottom */
}

.page-cockfighting__button-full-width {
  width: 100%;
  margin-top: 40px;
  text-align: center;
}

.page-cockfighting__tips-section {
  margin-top: 60px;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-cockfighting__sub-section-title {
  font-size: 2em;
  color: #017439;
  text-align: center;
  margin-bottom: 25px;
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-cockfighting__list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  text-align: justify;
}

.page-cockfighting__list li::before {
  content: '✔';
  color: #017439;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-cockfighting__list-item-text {
  margin: 0;
  font-size: 1.1em;
}

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

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

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

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffffff;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  text-align: justify;
}

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

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

.page-cockfighting__faq-answer a {
  color: #FFFF00; /* Custom link color for contrast */
  text-decoration: underline;
}

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

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

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

  .page-cockfighting__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header */
  }

  .page-cockfighting__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-cockfighting__subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .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;
    margin: 0 auto; /* Center buttons */
  }

  .page-cockfighting__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-cockfighting__text-block {
    font-size: 0.95em;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__promo-grid,
  .page-cockfighting__why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__step-card,
  .page-cockfighting__promo-card,
  .page-cockfighting__why-choose-item {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-cockfighting__card-title {
    font-size: 1.3em;
  }

  .page-cockfighting__feature-image,
  .page-cockfighting__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__tips-section {
    padding: 20px;
  }

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

  .page-cockfighting__list li {
    padding-left: 25px;
  }
  
  .page-cockfighting__list-item-text {
    font-size: 0.9em;
  }

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

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

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

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

  /* Ensure all img elements within .page-cockfighting are responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all containers with images/buttons/videos are responsive */
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__introduction-section,
  .page-cockfighting__features-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__hero-content,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__feature-card,
  .page-cockfighting__step-card,
  .page-cockfighting__promo-card,
  .page-cockfighting__why-choose-item,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}