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

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-color: #C30808;
  --login-color: #C30808;
  --background-color: #FFFFFF;
  --register-login-font-color: #FFFF00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-light: #e0e0e0;
}

.page-resources-cockfighting-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--background-color);
}

.page-resources-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;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-resources-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-resources-cockfighting-rules__hero-content {
  position: relative;
  z-index: 3;
  color: var(--text-light);
  max-width: 900px;
  padding: 20px;
}

.page-resources-cockfighting-rules__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--text-light);
}

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

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

.page-resources-cockfighting-rules__content-section {
  padding: 60px 0;
}

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

.page-resources-cockfighting-rules__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources-cockfighting-rules__section-title--white {
  color: var(--text-light);
}

.page-resources-cockfighting-rules__sub-section-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources-cockfighting-rules__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-resources-cockfighting-rules__list {
  list-style-type: disc;
  margin-left: 40px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

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

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

.page-resources-cockfighting-rules__btn-primary,
.page-resources-cockfighting-rules__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  text-align: center;
}

.page-resources-cockfighting-rules__btn-primary {
  background-color: var(--register-color);
  color: var(--register-login-font-color);
  border-color: var(--register-color);
}

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

.page-resources-cockfighting-rules__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.page-resources-cockfighting-rules__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

.page-resources-cockfighting-rules__cta-buttons--center {
  justify-content: center;
}

.page-resources-cockfighting-rules__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

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

.page-resources-cockfighting-rules__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-light);
}

.page-resources-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-resources-cockfighting-rules__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

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

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

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

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

.page-resources-cockfighting-rules__faq-answer p {
  margin-bottom: 0;
  color: var(--text-light);
}

.page-resources-cockfighting-rules__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-cockfighting-rules__hero-title {
    font-size: 2.8em;
  }
  .page-resources-cockfighting-rules__section-title {
    font-size: 2em;
  }
  .page-resources-cockfighting-rules__sub-section-title {
    font-size: 1.5em;
  }
  .page-resources-cockfighting-rules__paragraph,
  .page-resources-cockfighting-rules__list-item {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-resources-cockfighting-rules {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources-cockfighting-rules__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset applies */
  }
  .page-resources-cockfighting-rules__hero-title {
    font-size: 2.2em;
  }
  .page-resources-cockfighting-rules__hero-description {
    font-size: 1em;
  }
  .page-resources-cockfighting-rules__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-cockfighting-rules__btn-primary,
  .page-resources-cockfighting-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-resources-cockfighting-rules__container,
  .page-resources-cockfighting-rules__content-section,
  .page-resources-cockfighting-rules__faq-section,
  .page-resources-cockfighting-rules__conclusion-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources-cockfighting-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-cockfighting-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-cockfighting-rules__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-resources-cockfighting-rules__faq-answer {
    padding: 0 15px;
  }
  .page-resources-cockfighting-rules__faq-item.active .page-resources-cockfighting-rules__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-resources-cockfighting-rules__hero-section {
    height: 400px;
  }
  .page-resources-cockfighting-rules__hero-title {
    font-size: 1.8em;
  }
  .page-resources-cockfighting-rules__hero-description {
    font-size: 0.9em;
  }
  .page-resources-cockfighting-rules__section-title {
    font-size: 1.8em;
  }
  .page-resources-cockfighting-rules__sub-section-title {
    font-size: 1.3em;
  }
}