.page-cockfighting-rules {
  color: #ffffff; /* Body background is dark, so text should be light */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Inherit from body or shared */
}

.page-cockfighting-rules__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #017439, #00502a);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  overflow: hidden;
}

.page-cockfighting-rules__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  z-index: 1;
}

.page-cockfighting-rules__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Custom color for title */
}

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

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

.page-cockfighting-rules__hero-image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: 40px;
}

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

.page-cockfighting-rules__section {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Dark background for sections */
  color: #ffffff;
}

.page-cockfighting-rules__section:nth-of-type(even) {
  background-color: #222222;
}

.page-cockfighting-rules__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-cockfighting-rules__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting-rules__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #f0f0f0;
}

.page-cockfighting-rules__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px 0;
  border-radius: 8px;
  object-fit: cover;
}

.page-cockfighting-rules__list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.page-cockfighting-rules__list-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for list items */
  margin-bottom: 15px;
  padding: 25px;
  border-radius: 8px;
  border-left: 5px solid #017439;
}

.page-cockfighting-rules__list-item-title {
  font-size: 1.5em;
  color: #017439; /* Brand color for list item titles */
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting-rules__list-item p {
  color: #e0e0e0;
}

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

.page-cockfighting-rules__card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-cockfighting-rules__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules__card-title {
  font-size: 1.8em;
  color: #017439; /* Brand color for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting-rules__card-text {
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-cockfighting-rules__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-top: 15px;
}

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-size: 1.1em;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting-rules__btn-primary {
  background-color: #C30808; /* Custom red for register/login */
  color: #FFFF00; /* Custom yellow for text */
  border: 2px solid #C30808;
}

.page-cockfighting-rules__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-cockfighting-rules__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand color */
  border: 2px solid #017439;
}

.page-cockfighting-rules__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-cockfighting-rules__button-center {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
}

.page-cockfighting-rules__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  margin-top: 40px;
}

.page-cockfighting-rules__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.page-cockfighting-rules__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.page-cockfighting-rules__faq-section {
  background-color: #1a1a1a;
  padding: 60px 20px;
}

.page-cockfighting-rules__faq-list {
  margin-top: 40px;
}

.page-cockfighting-rules__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

.page-cockfighting-rules__faq-question:hover {
  background-color: #333333;
}

.page-cockfighting-rules__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

.page-cockfighting-rules__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #017439;
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px 25px 25px;
}

.page-cockfighting-rules__cta-section {
  background: linear-gradient(135deg, #017439, #00502a);
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.page-cockfighting-rules__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting-rules__cta-section .page-cockfighting-rules__section-title {
  color: #FFFF00; /* Custom yellow for CTA title */
  margin-bottom: 25px;
}

.page-cockfighting-rules__cta-section .page-cockfighting-rules__text-block {
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting-rules__hero-title {
    font-size: 2.8em;
  }
  .page-cockfighting-rules__section-title {
    font-size: 2em;
  }
  .page-cockfighting-rules__card-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules__hero-title {
    font-size: 2.2em;
  }
  .page-cockfighting-rules__hero-description {
    font-size: 1em;
  }
  .page-cockfighting-rules__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary {
    width: 100%;
    max-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__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting-rules__text-block {
    font-size: 1em;
  }
  .page-cockfighting-rules__grid {
    grid-template-columns: 1fr;
  }
  .page-cockfighting-rules__card-image {
    height: auto; /* Allow auto height for mobile cards */
  }
  .page-cockfighting-rules__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-cockfighting-rules__faq-answer {
    padding: 0 20px;
  }
  .page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
    padding: 10px 20px 20px 20px;
  }
  .page-cockfighting-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting-rules__container,
  .page-cockfighting-rules__hero-section,
  .page-cockfighting-rules__section,
  .page-cockfighting-rules__card,
  .page-cockfighting-rules__video-wrapper,
  .page-cockfighting-rules__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-cockfighting-rules__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile video section */
  }
  .page-cockfighting-rules__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting-rules__hero-title {
    font-size: 1.8em;
  }
  .page-cockfighting-rules__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting-rules__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-cockfighting-rules__list-item-title {
    font-size: 1.2em;
  }
  .page-cockfighting-rules__card-title {
    font-size: 1.3em;
  }
}