:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg-color: #08160F; /* This is the body background from shared.css */
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-cockfighting-rules-history {
  color: var(--text-main); /* Light text for dark body background */
  background-color: var(--bg-color); /* Ensure consistency, though body handles this */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-cockfighting-rules-history__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Center content vertically if space allows */
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
  background-color: var(--deep-green); /* Fallback background */
}

.page-cockfighting-rules-history__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6); /* Darken image slightly for text contrast */
}

.page-cockfighting-rules-history__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: 20px;
  color: var(--text-main);
}

.page-cockfighting-rules-history__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-main);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-rules-history__hero-description {
  font-size: clamp(1em, 2vw, 1.3em);
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-cockfighting-rules-history__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  background: var(--button-gradient); /* Button gradient color */
  color: var(--text-main); /* White text on button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules-history__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* General Container & Typography */
.page-cockfighting-rules-history__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-cockfighting-rules-history__section-title {
  font-size: clamp(1.8em, 4vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color); /* Gold for titles */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules-history__section-title--light {
  color: var(--text-main);
}

.page-cockfighting-rules-history__sub-title {
  font-size: clamp(1.4em, 3vw, 2em);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-cockfighting-rules-history__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-cockfighting-rules-history__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

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

/* Image with text block */
.page-cockfighting-rules-history__image-text-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.page-cockfighting-rules-history__image-text-block--reverse {
  flex-direction: row-reverse;
}

.page-cockfighting-rules-history__content-image {
  flex: 1;
  min-width: 300px; /* Ensure images are not too small */
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.page-cockfighting-rules-history__image-text-block > div {
  flex: 1;
  min-width: 300px;
}

/* Rules Grid */
.page-cockfighting-rules-history__rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-cockfighting-rules-history__rule-card {
  background-color: var(--card-bg); /* Card BG color */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-cockfighting-rules-history__card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-cockfighting-rules-history__card-text {
  font-size: 1em;
  color: var(--text-secondary);
}

/* CTA Section */
.page-cockfighting-rules-history__cta-section {
  background-color: var(--deep-green); /* Deep Green for CTA background */
  padding: 60px 20px;
  text-align: center;
}

.page-cockfighting-rules-history__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-cockfighting-rules-history__cta-button--secondary {
  background: none;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.page-cockfighting-rules-history__cta-button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-cockfighting-rules-history__faq-section {
  padding-bottom: 60px;
}

.page-cockfighting-rules-history__faq-list {
  margin-top: 30px;
}

.page-cockfighting-rules-history__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-cockfighting-rules-history__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--primary-color);
  list-style: none; /* Remove default marker for summary */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-cockfighting-rules-history__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-cockfighting-rules-history__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold-color);
  transition: transform 0.3s ease;
}

.page-cockfighting-rules-history__faq-item[open] .page-cockfighting-rules-history__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting-rules-history__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1em;
  color: var(--text-secondary);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-cockfighting-rules-history {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting-rules-history__hero-section {
    padding: 10px 15px 40px 15px;
  }

  .page-cockfighting-rules-history__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-cockfighting-rules-history__hero-description {
    font-size: clamp(0.9em, 3vw, 1.1em);
  }

  .page-cockfighting-rules-history__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-cockfighting-rules-history__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 30px;
  }

  .page-cockfighting-rules-history__sub-title {
    font-size: clamp(1.2em, 5vw, 1.6em);
  }

  .page-cockfighting-rules-history__image-text-block {
    flex-direction: column;
    gap: 20px;
  }

  .page-cockfighting-rules-history__image-text-block--reverse {
    flex-direction: column; /* Stack vertically on mobile */
  }

  .page-cockfighting-rules-history__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting-rules-history__image-text-block > div {
    min-width: unset;
    width: 100%;
  }

  .page-cockfighting-rules-history__rules-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting-rules-history__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting-rules-history__button-group .page-cockfighting-rules-history__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting-rules-history__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-cockfighting-rules-history__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Ensure all images inside content sections are responsive */
  .page-cockfighting-rules-history img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting-rules-history__section,
  .page-cockfighting-rules-history__card,
  .page-cockfighting-rules-history__container,
  .page-cockfighting-rules-history__image-text-block,
  .page-cockfighting-rules-history__rules-grid,
  .page-cockfighting-rules-history__button-group,
  .page-cockfighting-rules-history__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure content area images are at least 200px (desktop) */
.page-cockfighting-rules-history__content-area img,
.page-cockfighting-rules-history__introduction-section img,
.page-cockfighting-rules-history__advanced-rules-section img {
  min-width: 200px;
  min-height: 200px;
}