.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, ensure contrast */
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

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

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

/* Hero Section */
.page-cockfighting__hero-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(90deg, #017439 0%, #015c2d 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-cockfighting__hero-content {
  flex: 1;
  padding-left: 50px;
  z-index: 1;
  max-width: 60%;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Use custom color for prominent title */
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #ffffff;
}

.page-cockfighting__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding-right: 50px;
}

.page-cockfighting__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

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

.page-cockfighting__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  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: #017439;
  border: 2px solid #017439;
}

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

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

/* Introduction Section */
.page-cockfighting__introduction-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

/* Types Section */
.page-cockfighting__types-section {
  padding: 60px 0;
  background-color: #121212;
}

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

.page-cockfighting__card {
  background-color: rgba(255, 255, 255, 0.05); /* Light translucent on dark body */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

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

.page-cockfighting__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
}

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

.page-cockfighting__card-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Guide Section */
.page-cockfighting__guide-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

.page-cockfighting__step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #017439;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

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

.page-cockfighting__step-description {
  font-size: 1.05em;
  margin-bottom: 15px;
  color: #f0f0f0;
}

/* Strategy Section */
.page-cockfighting__strategy-section {
  padding: 60px 0;
  background-color: #121212;
}

.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-cockfighting__strategy-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-cockfighting__strategy-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 10px;
}

.page-cockfighting__strategy-description {
  font-size: 1.05em;
  color: #f0f0f0;
}

/* Advantages Section */
.page-cockfighting__advantages-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-cockfighting__advantage-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__advantage-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: brightness(1.2); /* Slightly brighten for visibility on dark background, but no color change */
}

.page-cockfighting__advantage-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-cockfighting__advantage-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: #121212;
}

.page-cockfighting__faq-list {
  margin-top: 30px;
}

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

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

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

.page-cockfighting__faq-title {
  margin: 0;
  color: #ffffff;
}

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

.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-out, padding 0.3s ease-out;
  background-color: rgba(255, 255, 255, 0.02);
  color: #f0f0f0;
}

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

.page-cockfighting__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
  color: #f0f0f0;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  padding: 60px 0;
  background-color: #017439;
  text-align: center;
  color: #ffffff;
}

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

.page-cockfighting__conclusion-section .page-cockfighting__section-title::after {
    background-color: #FFFF00;
}

.page-cockfighting__conclusion-section .page-cockfighting__paragraph {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #ffffff;
}

/* Global Image Styles for Responsiveness */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-cockfighting__hero-section {
    flex-direction: column;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px);
  }
  
  .page-cockfighting__hero-content {
    max-width: 90%;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
  }
  
  .page-cockfighting__hero-image-wrapper {
    padding-right: 20px;
    padding-left: 20px;
    margin-top: 40px;
  }

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

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

  .page-cockfighting__strategy-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

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

  .page-cockfighting__hero-section {
    padding: 40px 0 !important;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

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

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    margin-bottom: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-cockfighting__btn-large {
    padding: 15px 30px !important;
    font-size: 1.1em !important;
  }

  .page-cockfighting__card-grid,
  .page-cockfighting__advantage-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__step-item,
  .page-cockfighting__strategy-item,
  .page-cockfighting__card,
  .page-cockfighting__advantage-item {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

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

  /* Image responsiveness for mobile */
  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Ensure content area images are not too small */
  .page-cockfighting__card-image,
  .page-cockfighting__advantage-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain;
  }

  .page-cockfighting__hero-image {
    min-width: 200px !important;
    min-height: 150px !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
}