.page-cockfighting-rules-tips {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

.page-cockfighting-rules-tips__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #26A9E0 0%, #1a7bb0 100%);
}

.page-cockfighting-rules-tips__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.page-cockfighting-rules-tips__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-cockfighting-rules-tips__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting-rules-tips__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-rules-tips__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-cockfighting-rules-tips__content-section {
  padding: 60px 20px;
  background-color: #f8f9fa; /* Light background for content */
  color: #333333; /* Dark text for light background */
}

.page-cockfighting-rules-tips__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-cockfighting-rules-tips__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.page-cockfighting-rules-tips__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-cockfighting-rules-tips__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-cockfighting-rules-tips__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-cockfighting-rules-tips__list-item {
  margin-bottom: 10px;
}

.page-cockfighting-rules-tips__image-container {
  text-align: center;
  margin: 30px 0;
}

.page-cockfighting-rules-tips__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto;
}

.page-cockfighting-rules-tips__btn-primary,
.page-cockfighting-rules-tips__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting-rules-tips__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin-right: 15px;
}

.page-cockfighting-rules-tips__btn-primary:hover {
  background-color: #1a7bb0;
  border-color: #1a7bb0;
  transform: translateY(-3px);
}

.page-cockfighting-rules-tips__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-cockfighting-rules-tips__btn-secondary:hover {
  background-color: #e0f4ff;
  transform: translateY(-3px);
}

.page-cockfighting-rules-tips__cta-buttons {
  text-align: center;
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-cockfighting-rules-tips__faq-list {
  margin-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.page-cockfighting-rules-tips__faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.page-cockfighting-rules-tips__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  transition: color 0.3s ease;
}

.page-cockfighting-rules-tips__faq-question:hover {
  color: #26A9E0;
}

.page-cockfighting-rules-tips__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-cockfighting-rules-tips__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

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

.page-cockfighting-rules-tips__faq-item.active .page-cockfighting-rules-tips__faq-toggle {
  transform: rotate(45deg); /* Change '+' to 'x' visually */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting-rules-tips__main-title {
    font-size: 2.8em;
  }

  .page-cockfighting-rules-tips__section-title {
    font-size: 2em;
  }
}

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

  .page-cockfighting-rules-tips__hero-section {
    padding: 60px 15px 30px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing for mobile */
  }

  .page-cockfighting-rules-tips__main-title {
    font-size: 2.2em;
  }

  .page-cockfighting-rules-tips__hero-description {
    font-size: 1em;
  }

  .page-cockfighting-rules-tips__content-section {
    padding: 30px 15px;
  }

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

  .page-cockfighting-rules-tips__sub-title {
    font-size: 1.5em;
  }

  /* Images responsive */
  .page-cockfighting-rules-tips img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure containers with images are responsive */
  .page-cockfighting-rules-tips__image-container,
  .page-cockfighting-rules-tips__hero-image-wrapper,
  .page-cockfighting-rules-tips__container,
  .page-cockfighting-rules-tips__content-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting-rules-tips__hero-image-wrapper { padding: 0 !important; }

  /* Buttons responsive */
  .page-cockfighting-rules-tips__btn-primary,
  .page-cockfighting-rules-tips__btn-secondary,
  .page-cockfighting-rules-tips a[class*="button"],
  .page-cockfighting-rules-tips 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-rules-tips__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-cockfighting-rules-tips__btn-primary { margin-right: 0; }

  .page-cockfighting-rules-tips__faq-question {
    font-size: 1.1em;
    padding: 15px 0;
  }

  .page-cockfighting-rules-tips__faq-answer {
    padding: 0 10px;
  }

  .page-cockfighting-rules-tips__faq-item.active .page-cockfighting-rules-tips__faq-answer {
    padding: 10px;
  }
}