:root {
  --background-color: #08160F;
  --card-bg: #11271B;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-cockfighting-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Light text for dark background */
  background-color: var(--background-color);
}

.page-cockfighting-rules__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px 20px; /* Small top padding, larger bottom for content */
  position: relative;
  overflow: hidden;
}

.page-cockfighting-rules__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.page-cockfighting-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-cockfighting-rules__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 50px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-cockfighting-rules__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-cockfighting-rules__hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-cockfighting-rules__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting-rules__cta-button--large {
  padding: 18px 35px;
  font-size: 1.3rem;
}

.page-cockfighting-rules__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-bottom: 1px solid var(--divider-color);
}

.page-cockfighting-rules__content-area:last-of-type {
  border-bottom: none;
}

.page-cockfighting-rules__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--glow-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

.page-cockfighting-rules__text-block {
  flex: 1;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-rules__text-block p {
  margin-bottom: 15px;
  color: var(--text-main);
  font-size: 1.05rem;
}

.page-cockfighting-rules__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--gold-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting-rules__list,
.page-cockfighting-rules__ordered-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-cockfighting-rules__ordered-list {
  list-style-type: decimal;
}

.page-cockfighting-rules__list li,
.page-cockfighting-rules__ordered-list li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-cockfighting-rules__image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.page-cockfighting-rules__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

/* FAQ Section */
.page-cockfighting-rules__faq-section {
  padding-bottom: 80px;
}

.page-cockfighting-rules__faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-cockfighting-rules__faq-item {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
}

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.1rem;
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-cockfighting-rules__faq-question::-webkit-details-marker {
  display: none;
}

.page-cockfighting-rules__faq-question:hover {
  background-color: var(--deep-green);
}

.page-cockfighting-rules__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color);
}

.page-cockfighting-rules__faq-answer {
  padding: 20px 25px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.page-cockfighting-rules__faq-answer p {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-cockfighting-rules__introduction-section,
  .page-cockfighting-rules__basic-rules-section,
  .page-cockfighting-rules__detailed-rules-section,
  .page-cockfighting-rules__strategy-section,
  .page-cockfighting-rules__cta-section {
    flex-direction: row;
  }

  .page-cockfighting-rules__introduction-section .page-cockfighting-rules__text-block,
  .page-cockfighting-rules__detailed-rules-section .page-cockfighting-rules__text-block,
  .page-cockfighting-rules__cta-section .page-cockfighting-rules__text-block {
    order: 1; /* Text on left */
  }

  .page-cockfighting-rules__introduction-section .page-cockfighting-rules__image-container,
  .page-cockfighting-rules__detailed-rules-section .page-cockfighting-rules__image-container,
  .page-cockfighting-rules__cta-section .page-cockfighting-rules__image-container {
    order: 2; /* Image on right */
  }

  .page-cockfighting-rules__basic-rules-section .page-cockfighting-rules__text-block,
  .page-cockfighting-rules__strategy-section .page-cockfighting-rules__text-block {
    order: 2; /* Text on right */
  }

  .page-cockfighting-rules__basic-rules-section .page-cockfighting-rules__image-container,
  .page-cockfighting-rules__strategy-section .page-cockfighting-rules__image-container {
    order: 1; /* Image on left */
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules__hero-section {
    padding: 10px 15px 40px 15px;
  }

  .page-cockfighting-rules__hero-content {
    padding: 15px;
  }

  .page-cockfighting-rules__hero-image-wrapper {
    max-height: 400px;
  }

  .page-cockfighting-rules__main-title {
    font-size: 2rem;
  }

  .page-cockfighting-rules__hero-description {
    font-size: 0.95rem;
  }

  .page-cockfighting-rules__cta-button {
    font-size: 1rem;
    padding: 12px 25px;
  }

  .page-cockfighting-rules__cta-button--large {
    font-size: 1.1rem;
    padding: 15px 30px;
  }

  .page-cockfighting-rules__content-area {
    padding: 40px 15px;
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting-rules__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-cockfighting-rules__text-block,
  .page-cockfighting-rules__image-container {
    padding: 0;
  }

  .page-cockfighting-rules__text-block p,
  .page-cockfighting-rules__list li,
  .page-cockfighting-rules__ordered-list li {
    font-size: 0.95rem;
  }

  .page-cockfighting-rules__sub-title {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  /* Mobile specific image handling */
  .page-cockfighting-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting-rules__image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile specific button handling */
  .page-cockfighting-rules__cta-button {
    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__cta-section .page-cockfighting-rules__text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-cockfighting-rules__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-cockfighting-rules__faq-answer {
    padding: 15px 20px;
    font-size: 0.9rem;
  }
}