/* style/cockfighting-rules.css */
:root {
  --page-primary-color: #11A84E;
  --page-secondary-color: #22C768;
  --page-background-color: #08160F;
  --page-card-background: #11271B;
  --page-text-main: #F2FFF6;
  --page-text-secondary: #A7D9B8;
  --page-border-color: #2E7A4E;
  --page-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

/* General Section Styling */
.page-cockfighting-rules__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: bold;
  color: var(--page-text-main);
  text-align: center;
  margin-bottom: 40px;
}

.page-cockfighting-rules__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: bold;
  color: var(--page-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-cockfighting-rules__paragraph {
  font-size: 16px;
  color: var(--page-text-secondary);
  margin-bottom: 15px;
}

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

.page-cockfighting-rules__dark-bg {
  background-color: var(--page-background-color);
  color: var(--page-text-main);
}

.page-cockfighting-rules__light-bg {
  background-color: #11271B; /* Using card background for light section to ensure contrast */
  color: var(--page-text-main);
}

/* Hero Section */
.page-cockfighting-rules__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
}

.page-cockfighting-rules__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-cockfighting-rules__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: var(--page-text-main);
}

.page-cockfighting-rules__main-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  color: var(--page-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting-rules__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--page-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-cockfighting-rules__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting-rules__btn-primary {
  background: var(--page-button-gradient);
  color: var(--page-text-main);
  border: 2px solid transparent;
}

.page-cockfighting-rules__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting-rules__btn-secondary {
  background-color: transparent;
  color: var(--page-primary-color);
  border: 2px solid var(--page-primary-color);
}

.page-cockfighting-rules__btn-secondary:hover {
  background-color: var(--page-primary-color);
  color: var(--page-text-main);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

.page-cockfighting-rules__cta-buttons--center {
  margin-top: 30px;
}

/* Content Grid */
.page-cockfighting-rules__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting-rules__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-cockfighting-rules__text-block {
  flex: 1;
}

.page-cockfighting-rules__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting-rules__image-block--center {
  margin-top: 40px;
}

.page-cockfighting-rules__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-cockfighting-rules__text-link {
  color: var(--page-secondary-color);
  text-decoration: underline;
}

.page-cockfighting-rules__text-link:hover {
  color: var(--page-primary-color);
}

/* FAQ Section */
.page-cockfighting-rules__faq-list {
  margin-top: 30px;
}

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

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  color: var(--page-text-main);
  cursor: pointer;
  user-select: none;
  background-color: var(--page-card-background);
  transition: background-color 0.3s ease;
}

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

.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-question {
  background-color: #1a332a;
}

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

.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-toggle {
  content: '−';
}

.page-cockfighting-rules__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: var(--page-text-secondary);
}

/* Reset default details/summary styles */
.page-cockfighting-rules__faq-item > summary {
  list-style: none;
}
.page-cockfighting-rules__faq-item > summary::-webkit-details-marker {
  display: none;
}

/* Conclusion Section */
.page-cockfighting-rules__conclusion-section {
  padding: 80px 20px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-cockfighting-rules__content-grid {
    flex-direction: column;
  }
  .page-cockfighting-rules__content-grid--reverse {
    flex-direction: column;
  }
}

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

  .page-cockfighting-rules__main-title {
    font-size: clamp(30px, 8vw, 48px);
  }

  .page-cockfighting-rules__hero-description {
    font-size: clamp(16px, 4vw, 20px);
  }

  .page-cockfighting-rules__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-cockfighting-rules__sub-title {
    font-size: clamp(20px, 5vw, 26px);
  }

  .page-cockfighting-rules__paragraph {
    font-size: 15px;
  }

  .page-cockfighting-rules__container,
  .page-cockfighting-rules__hero-content {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .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__hero-cta-buttons,
  .page-cockfighting-rules__cta-buttons--center {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

@media (max-width: 480px) {
  .page-cockfighting-rules__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }
  .page-cockfighting-rules__main-title {
    font-size: clamp(28px, 9vw, 40px);
  }
  .page-cockfighting-rules__hero-description {
    font-size: clamp(15px, 4.5vw, 18px);
  }
  .page-cockfighting-rules__section-title {
    font-size: clamp(22px, 7vw, 30px);
  }
  .page-cockfighting-rules__sub-title {
    font-size: clamp(18px, 6vw, 24px);
  }
  .page-cockfighting-rules__paragraph {
    font-size: 14px;
  }
  .page-cockfighting-rules__cta-button {
    padding: 12px 20px;
    font-size: 16px;
  }
}