/* style/resources-thomo-cockfighting-rules.css */

:root {
  --primary-color: #CC0000;
  --secondary-color: #FFD700;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --bg-dark: #121212; /* Body background from shared.css */
  --bg-light: #ffffff;
}

.page-resources-thomo-cockfighting-rules {
  color: var(--text-on-dark); /* Default text color for the page, as body is dark */
  background-color: var(--bg-dark); /* Ensure consistency, though body handles this */
}

.page-resources-thomo-cockfighting-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  min-height: 600px;
  overflow: hidden;
  background-color: var(--primary-color);
}

.page-resources-thomo-cockfighting-rules__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-resources-thomo-cockfighting-rules__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay to ensure text readability */
}

.page-resources-thomo-cockfighting-rules__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-on-dark);
}

.page-resources-thomo-cockfighting-rules__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources-thomo-cockfighting-rules__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: var(--text-on-dark);
}

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

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

.page-resources-thomo-cockfighting-rules__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-on-dark);
  border: 2px solid var(--primary-color);
}

.page-resources-thomo-cockfighting-rules__btn-primary:hover {
  background-color: #A30000;
  border-color: #A30000;
}

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

.page-resources-thomo-cockfighting-rules__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--bg-dark);
}

.page-resources-thomo-cockfighting-rules__content-area {
  max-width: 100%;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-resources-thomo-cockfighting-rules__container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-resources-thomo-cockfighting-rules__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-resources-thomo-cockfighting-rules__section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-resources-thomo-cockfighting-rules__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-resources-thomo-cockfighting-rules__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
}

.page-resources-thomo-cockfighting-rules__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-resources-thomo-cockfighting-rules__list-item {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 10px;
}

.page-resources-thomo-cockfighting-rules__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Color contrast specific styles */
.page-resources-thomo-cockfighting-rules__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.page-resources-thomo-cockfighting-rules__light-bg {
  background-color: var(--bg-light);
  color: var(--text-on-light);
}

.page-resources-thomo-cockfighting-rules__faq-section {
  padding: 60px 20px;
}

.page-resources-thomo-cockfighting-rules__faq-list {
  margin-top: 30px;
}

.page-resources-thomo-cockfighting-rules__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter than body for contrast */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-thomo-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-on-dark);
  background-color: var(--primary-color);
  border-radius: 8px 8px 0 0;
}

.page-resources-thomo-cockfighting-rules__faq-question:hover {
  background-color: #A30000;
}

.page-resources-thomo-cockfighting-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-thomo-cockfighting-rules__faq-item.active .page-resources-thomo-cockfighting-rules__faq-question {
  border-radius: 8px 8px 0 0;
}

.page-resources-thomo-cockfighting-rules__faq-item.active .page-resources-thomo-cockfighting-rules__faq-toggle {
  transform: rotate(45deg); /* Change + to X */
}

.page-resources-thomo-cockfighting-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-on-dark);
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 8px 8px;
}

.page-resources-thomo-cockfighting-rules__faq-item.active .page-resources-thomo-cockfighting-rules__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px !important;
}

.page-resources-thomo-cockfighting-rules__faq-answer p {
  margin-bottom: 0;
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-on-dark);
}

/* CTA Section */
.page-resources-thomo-cockfighting-rules__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--primary-color);
  color: var(--text-on-dark);
}

.page-resources-thomo-cockfighting-rules__cta-section .page-resources-thomo-cockfighting-rules__section-title {
  color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources-thomo-cockfighting-rules__hero-title {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  .page-resources-thomo-cockfighting-rules {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-resources-thomo-cockfighting-rules__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top is applied */
  }

  .page-resources-thomo-cockfighting-rules__hero-title {
    font-size: 2.5em;
  }

  .page-resources-thomo-cockfighting-rules__hero-description {
    font-size: 1em;
  }

  .page-resources-thomo-cockfighting-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-thomo-cockfighting-rules__btn-primary,
  .page-resources-thomo-cockfighting-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-resources-thomo-cockfighting-rules__cta-buttons,
  .page-resources-thomo-cockfighting-rules__button-group,
  .page-resources-thomo-cockfighting-rules__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-resources-thomo-cockfighting-rules__content-area,
  .page-resources-thomo-cockfighting-rules__faq-section,
  .page-resources-thomo-cockfighting-rules__cta-section {
    padding: 40px 15px;
  }

  .page-resources-thomo-cockfighting-rules__section-title {
    font-size: 2em;
  }

  .page-resources-thomo-cockfighting-rules__sub-title {
    font-size: 1.5em;
  }

  .page-resources-thomo-cockfighting-rules__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-thomo-cockfighting-rules__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-resources-thomo-cockfighting-rules__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all containers for images/videos/buttons are responsive */
  .page-resources-thomo-cockfighting-rules__container,
  .page-resources-thomo-cockfighting-rules__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Specific overrides for text elements on light background in mobile */
  .page-resources-thomo-cockfighting-rules__light-bg .page-resources-thomo-cockfighting-rules__paragraph,
  .page-resources-thomo-cockfighting-rules__light-bg .page-resources-thomo-cockfighting-rules__list-item {
    color: var(--text-on-light) !important;
  }

  .page-resources-thomo-cockfighting-rules__dark-bg .page-resources-thomo-cockfighting-rules__paragraph,
  .page-resources-thomo-cockfighting-rules__dark-bg .page-resources-thomo-cockfighting-rules__list-item {
    color: var(--text-on-dark) !important;
  }

  .page-resources-thomo-cockfighting-rules__dark-bg .page-resources-thomo-cockfighting-rules__section-title {
    color: var(--secondary-color) !important;
  }
}

@media (max-width: 480px) {
  .page-resources-thomo-cockfighting-rules__hero-title {
    font-size: 2em;
  }
  .page-resources-thomo-cockfighting-rules__section-title {
    font-size: 1.8em;
  }
  .page-resources-thomo-cockfighting-rules__sub-title {
    font-size: 1.3em;
  }
}