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

/* --- 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);
  overflow: hidden;
  background: linear-gradient(135deg, #017439, #005f2e);
  color: #ffffff;
}

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

.page-cockfighting__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

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

.page-cockfighting__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFF00;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__intro-text {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 180px;
}

.page-cockfighting__cta-button--register {
  background: #C30808; /* Register button color */
  color: #FFFF00; /* Register font color */
  border: 2px solid #C30808;
}

.page-cockfighting__cta-button--register:hover {
  background: #a30606;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--login {
  background: #C30808; /* Login button color */
  color: #FFFF00; /* Login font color */
  border: 2px solid #C30808;
}

.page-cockfighting__cta-button--login:hover {
  background: #a30606;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- General Section Styles --- */
.page-cockfighting__section {
  padding: 80px 20px;
  text-align: center;
}

.page-cockfighting__section--intro {
  background-color: #f9f9f9;
  color: #333333;
}

.page-cockfighting__section--types {
  background-color: #ffffff;
  color: #333333;
}

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

.page-cockfighting__section-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 40px;
  color: #017439;
}

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

.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-cockfighting p {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

/* --- Card Styles --- */
.page-cockfighting__card,
.page-cockfighting__advantage-item,
.page-cockfighting__strategy-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-cockfighting__card:hover,
.page-cockfighting__advantage-item:hover,
.page-cockfighting__strategy-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__card img,
.page-cockfighting__advantage-item img,
.page-cockfighting__strategy-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__card-title,
.page-cockfighting__advantage-title,
.page-cockfighting__strategy-title {
  font-size: 24px;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-cockfighting__card p,
.page-cockfighting__advantage-item p,
.page-cockfighting__strategy-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

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

.page-cockfighting__step-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-cockfighting__step-item:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.2);
}

.page-cockfighting__step-icon {
  width: 60px;
  height: 60px;
  background: #C30808;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  color: #FFFF00;
  margin: 0 auto 25px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-cockfighting__step-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- Secondary Button (for dark sections) --- */
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: #ffffff;
  color: #017439;
  text-decoration: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  margin-top: auto; /* Push to bottom of flex container */
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-secondary:hover {
  background: #e0e0e0;
  color: #005f2e;
  border-color: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- FAQ Section --- */
.page-cockfighting__section--faq {
  background-color: #f9f9f9;
  color: #333333;
}

.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #017439;
}

.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: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #333333;
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #017439;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: #C30808;
  transform: rotate(45deg); /* Change to minus sign visually */
}

.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 25px;
  opacity: 0;
  background: #ffffff;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Use !important and large value */
  padding: 20px 25px !important;
  opacity: 1;
  background: #fdfdfd;
  border-color: #017439;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 10px;
  font-size: 16px;
  color: #555555;
  text-align: left;
}

.page-cockfighting__faq-answer .page-cockfighting__btn-secondary {
  margin-top: 15px;
  text-align: left;
  width: auto;
}

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

  .page-cockfighting__section-title {
    font-size: 34px;
  }

  .page-cockfighting__card-title,
  .page-cockfighting__advantage-title,
  .page-cockfighting__strategy-title,
  .page-cockfighting__step-title {
    font-size: 22px;
  }
}

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

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

  .page-cockfighting__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-cockfighting__cta-button {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto;
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-cockfighting__section {
    padding: 50px 15px;
  }

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

  .page-cockfighting p {
    font-size: 15px;
    margin-bottom: 15px;
  }

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

  .page-cockfighting__card,
  .page-cockfighting__advantage-item,
  .page-cockfighting__strategy-item,
  .page-cockfighting__step-item {
    padding: 25px;
  }

  .page-cockfighting__card img,
  .page-cockfighting__advantage-item img,
  .page-cockfighting__strategy-item img {
    height: 200px;
    margin-bottom: 20px;
  }

  .page-cockfighting__card-title,
  .page-cockfighting__advantage-title,
  .page-cockfighting__strategy-title,
  .page-cockfighting__step-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-cockfighting__card p,
  .page-cockfighting__advantage-item p,
  .page-cockfighting__strategy-item p,
  .page-cockfighting__step-item p {
    font-size: 14px;
    margin-bottom: 10px;
  }

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

  .page-cockfighting__faq-question h3 {
    font-size: 16px;
  }

  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

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

  /* Mobile image adaptation */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-container,
  .page-cockfighting__hero-content,
  .page-cockfighting__hero-image,
  .page-cockfighting__hero-buttons,
  .page-cockfighting__process-steps,
  .page-cockfighting__step-item,
  .page-cockfighting__advantage-item,
  .page-cockfighting__strategy-item,
  .page-cockfighting__faq-list,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Reset padding for specific elements that have it controlled by flex/grid gap */
  .page-cockfighting__hero-section .page-cockfighting__container,
  .page-cockfighting__section .page-cockfighting__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-cockfighting__hero-content {
    padding-left: 0;
    padding-right: 0;
  }

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

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Mobile button adaptation */
  .page-cockfighting__cta-button,
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  .page-cockfighting__btn-secondary {
    width: auto !important; /* Allow auto width for internal buttons, if they are not full width */
    max-width: fit-content !important;
    margin: 10px auto;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: 28px;
  }

  .page-cockfighting__section-title {
    font-size: 24px;
  }

  .page-cockfighting__cta-button {
    max-width: 250px !important;
  }
}