:root {
  --primary-color: #017439;
  --auxiliary-color: #FFFFFF;
  --register-login-bg: #C30808;
  --register-login-text: #FFFF00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--auxiliary-color); /* Body background is white */
  line-height: 1.6;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  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: linear-gradient(135deg, var(--primary-color) 0%, #3a9b6c 100%); /* Green gradient */
  color: var(--text-light);
}

.page-cockfighting__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-cockfighting__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

/* General Section Styles */
.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-cockfighting__section-title--white {
  color: var(--text-light);
}

.page-cockfighting__text-block {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__text-block--white {
  color: rgba(255, 255, 255, 0.9);
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  background-color: var(--auxiliary-color); /* White background */
  padding: 60px 0;
}

/* Advantages Section */
.page-cockfighting__advantages-section {
  background-color: var(--primary-color); /* Dark green background */
  padding: 60px 0;
  color: var(--text-light);
}

.page-cockfighting__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-cockfighting__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__feature-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Ensure images are not too small */
}

.page-cockfighting__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-cockfighting__feature-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* Guide Section */
.page-cockfighting__guide-section {
  background-color: var(--auxiliary-color);
  padding: 60px 0;
}

.page-cockfighting__step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.page-cockfighting__step-item {
  text-align: center;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__step-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
  min-height: 200px; /* Ensure images are not too small */
}

.page-cockfighting__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-cockfighting__step-description {
  font-size: 16px;
  color: var(--text-dark);
}

/* Strategies Section */
.page-cockfighting__strategies-section {
  background-color: var(--primary-color);
  padding: 60px 0;
  color: var(--text-light);
}

.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-cockfighting__strategy-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__strategy-list li strong {
  color: var(--text-light);
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: var(--auxiliary-color);
  padding: 60px 0;
}

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

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Ensure enough space for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
  background: #eeeeee;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Use primary color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Rotate to form 'X' or '-' */
}

/* CTA Bottom Section */
.page-cockfighting__cta-bottom-section {
  background-color: var(--primary-color);
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
}

/* Buttons */
.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin: 15px 10px; /* Adjust margin for multiple buttons */
  transition: all 0.3s ease;
  cursor: pointer;
  border: none; /* Remove default border */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.page-cockfighting__btn-primary {
  background: var(--register-login-bg); /* Red for primary action like register */
  color: var(--register-login-text); /* Yellow text for primary button */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
  background: #e00a0a; /* Slightly darker red on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
  background: var(--auxiliary-color); /* White for secondary action */
  color: var(--primary-color); /* Green text for secondary button */
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--primary-color); /* Green background on hover */
  color: var(--auxiliary-color); /* White text on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__button-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 20px; /* Space between buttons */
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 40px;
  }
  .page-cockfighting__hero-description {
    font-size: 18px;
  }
  .page-cockfighting__section-title {
    font-size: 32px;
  }
  .page-cockfighting__text-block {
    font-size: 17px;
  }
  .page-cockfighting__feature-title {
    font-size: 22px;
  }
  .page-cockfighting__step-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__main-title {
    font-size: 32px;
  }
  .page-cockfighting__hero-description {
    font-size: 16px;
  }
  .page-cockfighting__section-title {
    font-size: 28px;
  }
  .page-cockfighting__text-block,
  .page-cockfighting__feature-description,
  .page-cockfighting__step-description,
  .page-cockfighting__strategy-list li,
  .page-cockfighting__faq-question h3,
  .page-cockfighting__faq-answer p {
    font-size: 15px;
    line-height: 1.6;
  }
}