/* style/cockfighting-rules-and-formats.css */
.page-cockfighting-rules-and-formats {
  color: var(--text-main);
  background-color: var(--background-color);
}

.page-cockfighting-rules-and-formats__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--background-color);
}

.page-cockfighting-rules-and-formats__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-cockfighting-rules-and-formats__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-cockfighting-rules-and-formats__hero-content {
  text-align: center;
  max-width: 900px;
  margin-top: 30px;
  padding: 0 15px;
}

.page-cockfighting-rules-and-formats__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting-rules-and-formats__description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-cockfighting-rules-and-formats__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main);
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting-rules-and-formats__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-cockfighting-rules-and-formats__cta-button--secondary {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  color: var(--text-main);
}

.page-cockfighting-rules-and-formats__cta-button--secondary:hover {
  background: var(--deep-green);
  color: var(--text-main);
}

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

.page-cockfighting-rules-and-formats__section-title {
  font-size: 2.5em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting-rules-and-formats__sub-title {
  font-size: 1.8em;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting-rules-and-formats__introduction-section,
.page-cockfighting-rules-and-formats__rules-section,
.page-cockfighting-rules-and-formats__betting-section,
.page-cockfighting-rules-and-formats__faq-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

.page-cockfighting-rules-and-formats__types-section,
.page-cockfighting-rules-and-formats__format-section,
.page-cockfighting-rules-and-formats__tips-section,
.page-cockfighting-rules-and-formats__conclusion-section {
  padding: 60px 0;
  background-color: var(--card-bg);
}

.page-cockfighting-rules-and-formats__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-cockfighting-rules-and-formats__card {
  background-color: var(--deep-green);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting-rules-and-formats__card-title {
  font-size: 1.5em;
  color: var(--gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting-rules-and-formats__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting-rules-and-formats__card p {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1;
}

.page-cockfighting-rules-and-formats__list,
.page-cockfighting-rules-and-formats__ordered-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-cockfighting-rules-and-formats__list li,
.page-cockfighting-rules-and-formats__ordered-list li {
  background-color: var(--card-bg);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  color: var(--text-main);
  border-left: 4px solid var(--gold);
  line-height: 1.5;
}

.page-cockfighting-rules-and-formats__list li strong,
.page-cockfighting-rules-and-formats__ordered-list li strong {
  color: var(--gold);
}

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

.page-cockfighting-rules-and-formats__faq-item {
  background-color: var(--deep-green);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting-rules-and-formats__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  color: var(--text-main);
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> */
}

.page-cockfighting-rules-and-formats__faq-question::-webkit-details-marker {
  display: none; /* For <summary> */
}

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

.page-cockfighting-rules-and-formats__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting-rules-and-formats__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold);
}

.page-cockfighting-rules-and-formats__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-cockfighting-rules-and-formats__faq-item[open] .page-cockfighting-rules-and-formats__faq-answer {
  max-height: 500px; /* Adjust as needed for content length */
}

.page-cockfighting-rules-and-formats__faq-item.active .page-cockfighting-rules-and-formats__faq-answer {
  max-height: 2000px !important; /* For JS-based toggle */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting-rules-and-formats__main-title {
    font-size: clamp(2.2em, 5vw, 3em);
  }
  .page-cockfighting-rules-and-formats__section-title {
    font-size: clamp(2em, 4.5vw, 2.5em);
  }
  .page-cockfighting-rules-and-formats__sub-title {
    font-size: clamp(1.5em, 3.5vw, 1.8em);
  }
}

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

  .page-cockfighting-rules-and-formats__hero-content {
    margin-top: 20px;
  }

  .page-cockfighting-rules-and-formats__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-cockfighting-rules-and-formats__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .page-cockfighting-rules-and-formats__section-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
    margin-bottom: 30px;
  }

  .page-cockfighting-rules-and-formats__sub-title {
    font-size: clamp(1.3em, 4.5vw, 1.5em);
  }

  .page-cockfighting-rules-and-formats__introduction-section,
  .page-cockfighting-rules-and-formats__types-section,
  .page-cockfighting-rules-and-formats__rules-section,
  .page-cockfighting-rules-and-formats__format-section,
  .page-cockfighting-rules-and-formats__betting-section,
  .page-cockfighting-rules-and-formats__tips-section,
  .page-cockfighting-rules-and-formats__faq-section,
  .page-cockfighting-rules-and-formats__conclusion-section {
    padding: 40px 0;
  }

  .page-cockfighting-rules-and-formats__container {
    padding: 0 15px;
  }

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

  .page-cockfighting-rules-and-formats__card-image {
    height: 180px;
  }

  .page-cockfighting-rules-and-formats__list li,
  .page-cockfighting-rules-and-formats__ordered-list li {
    padding: 12px 15px;
  }

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

  .page-cockfighting-rules-and-formats__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9em;
  }

  /* Mobile image and video responsive adaptation */
  .page-cockfighting-rules-and-formats img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting-rules-and-formats__section,
  .page-cockfighting-rules-and-formats__card,
  .page-cockfighting-rules-and-formats__container,
  .page-cockfighting-rules-and-formats__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting-rules-and-formats__hero-image-wrapper {
    padding: 0 15px;
  }

  .page-cockfighting-rules-and-formats video,
  .page-cockfighting-rules-and-formats__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting-rules-and-formats__video-section,
  .page-cockfighting-rules-and-formats__video-container,
  .page-cockfighting-rules-and-formats__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting-rules-and-formats__cta-buttons,
  .page-cockfighting-rules-and-formats__button-group,
  .page-cockfighting-rules-and-formats__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-cockfighting-rules-and-formats__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}