/* style/cockfighting-rules.css */

/* Base styles for the page */
.page-cockfighting-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background */
}

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

/* Hero Section */
.page-cockfighting-rules__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-cockfighting-rules__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-cockfighting-rules__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-cockfighting-rules__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 20px;
}

.page-cockfighting-rules__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Special color for hero title based on custom palette */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-rules__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-cockfighting-rules__hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Section common styles */
.page-cockfighting-rules__intro-section,
.page-cockfighting-rules__types-section,
.page-cockfighting-rules__basic-rules-section,
.page-cockfighting-rules__terminology-section,
.page-cockfighting-rules__betting-rules-section,
.page-cockfighting-rules__strategy-section,
.page-cockfighting-rules__video-section,
.page-cockfighting-rules__faq-section,
.page-cockfighting-rules__conclusion-section {
  padding: 60px 0;
}

.page-cockfighting-rules__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-cockfighting-rules__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

.page-cockfighting-rules__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit color from parent section (light/dark bg) */
}

.page-cockfighting-rules__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 15px;
  color: inherit;
}

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

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

.page-cockfighting-rules__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* Buttons */
.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.page-cockfighting-rules__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
}

.page-cockfighting-rules__btn-primary:hover {
  background-color: #a00606;
  color: #FFFFFF;
}

.page-cockfighting-rules__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-cockfighting-rules__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439;
}

.page-cockfighting-rules__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

/* Images */
.page-cockfighting-rules__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-rules__image-inline {
  float: right;
  margin-left: 30px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 50%; /* Example for inline image */
  height: auto;
}

.page-cockfighting-rules__image-center {
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 80%;
  height: auto;
}

/* Video Section */
.page-cockfighting-rules__video-section {
  padding: 60px 0;
  background-color: #f5f5f5; /* Light background for video */
  color: #333333;
  text-align: center;
}

.page-cockfighting-rules__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 30px;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.page-cockfighting-rules__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
  display: block; /* Ensure it respects max-width/height */
}

.page-cockfighting-rules__text-center {
  text-align: center;
}

/* FAQ Section */
.page-cockfighting-rules__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.page-cockfighting-rules__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-cockfighting-rules__faq-item.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.page-cockfighting-rules__faq-question:hover {
  color: #FFFF00;
}

.page-cockfighting-rules__faq-title {
  margin: 0;
  font-size: 1.2em;
}

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

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting-rules__hero-title {
    font-size: 3em;
  }
  .page-cockfighting-rules__section-title {
    font-size: 2em;
  }
  .page-cockfighting-rules__image-inline {
    float: none;
    margin: 30px auto;
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules__hero-section {
    height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-cockfighting-rules__hero-title {
    font-size: 2em;
  }
  .page-cockfighting-rules__hero-description {
    font-size: 1em;
  }
  .page-cockfighting-rules__hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-cockfighting-rules__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting-rules__sub-title {
    font-size: 1.4em;
  }
  .page-cockfighting-rules__paragraph,
  .page-cockfighting-rules__list-item {
    font-size: 1em;
  }
}