/* style/cockfighting-rules.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --bg-dark: #121212;
  --bg-light: #f8f8f8;
  --border-color: #e0e0e0;
}

.page-cockfighting-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light); /* Default for dark body background */
  background-color: var(--bg-dark); /* Inherited from body */
  padding-top: 120px; /* Adjust for fixed header */
}

.page-cockfighting-rules__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:jun88v8,cockfighting,rules_banner]');
  background-size: cover;
  background-position: center;
  color: var(--text-color-light);
  padding-top: 40px; /* Reduced for hero, main padding-top handles header */
}

.page-cockfighting-rules__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting-rules__main-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

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

.page-cockfighting-rules__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-cockfighting-rules__btn-primary {
  background: var(--primary-color);
  color: var(--text-color-dark);
}

.page-cockfighting-rules__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting-rules__btn-secondary:hover {
  background: #6a0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__content-section {
  padding: 60px 20px;
  background-color: var(--bg-light);
  color: var(--text-color-dark);
}

.page-cockfighting-rules__content-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-cockfighting-rules__dark-bg .page-cockfighting-rules__section-title {
  color: var(--primary-color);
}

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

.page-cockfighting-rules__text-block {
  margin-bottom: 40px;
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--text-color-dark);
}

.page-cockfighting-rules__text-block p {
  margin-bottom: 15px;
}

.page-cockfighting-rules__dark-bg .page-cockfighting-rules__text-block,
.page-cockfighting-rules__dark-bg p,
.page-cockfighting-rules__dark-bg li {
  color: var(--text-color-light);
}

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

.page-cockfighting-rules__list li {
  margin-bottom: 10px;
}

.page-cockfighting-rules__ordered-list {
  list-style: decimal inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-cockfighting-rules__ordered-list li {
  margin-bottom: 10px;
}

.page-cockfighting-rules__inline-link {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-cockfighting-rules__dark-bg .page-cockfighting-rules__inline-link {
  color: var(--primary-color);
}

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

.page-cockfighting-rules__dark-bg .page-cockfighting-rules__inline-link:hover {
  color: #e6c200;
}

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

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

/* FAQ Section */
.page-cockfighting-rules__faq-section {
  padding: 60px 20px;
  background-color: var(--bg-light);
  color: var(--text-color-dark);
}

.page-cockfighting-rules__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-cockfighting-rules__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-color-dark);
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--secondary-color);
  background-color: #f5f5f5;
}

.page-cockfighting-rules__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-cockfighting-rules__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
}

.page-cockfighting-rules__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

.page-cockfighting-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
  color: var(--text-color-dark);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
}

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

/* Brand Section */
.page-cockfighting-rules__brand-section {
  padding: 60px 20px;
  background-color: var(--bg-dark);
  color: var(--text-color-light);
}

.page-cockfighting-rules__brand-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-cockfighting-rules__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-cockfighting-rules__brand-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  color: var(--text-color-light);
}

.page-cockfighting-rules__brand-item .page-cockfighting-rules__item-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-cockfighting-rules__brand-item p {
  margin-bottom: 10px;
}

.page-cockfighting-rules__list--brand {
  list-style: none;
  padding-left: 0;
}

.page-cockfighting-rules__list--brand li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 8px;
}

.page-cockfighting-rules__list--brand li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Blog Section */
.page-cockfighting-rules__blog-section {
  padding: 60px 20px;
  background-color: var(--bg-light);
  color: var(--text-color-dark);
}

.page-cockfighting-rules__blog-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-cockfighting-rules__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-cockfighting-rules__blog-item {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting-rules__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-cockfighting-rules__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.page-cockfighting-rules__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-cockfighting-rules__blog-item-title {
  font-size: 1.3em;
  font-weight: bold;
  margin: 15px 15px 10px;
  color: var(--secondary-color);
}

.page-cockfighting-rules__blog-item-excerpt {
  font-size: 0.95em;
  color: #666;
  margin: 0 15px 15px;
}

.page-cockfighting-rules__blog-item-date {
  display: block;
  font-size: 0.85em;
  color: #999;
  margin: 0 15px 15px;
}

/* Conclusion Section */
.page-cockfighting-rules__conclusion-section {
  padding: 60px 20px;
  background-color: var(--bg-dark);
  text-align: center;
  color: var(--text-color-light);
}

.page-cockfighting-rules__conclusion-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting-rules__conclusion-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting-rules__main-title {
    font-size: 3em;
  }
  .page-cockfighting-rules__section-title {
    font-size: 2em;
  }
  .page-cockfighting-rules__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules {
    padding-top: 100px !important; /* Mobile fixed header adjustment */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting-rules__hero-section {
    padding: 60px 15px;
  }

  .page-cockfighting-rules__main-title {
    font-size: 2.5em;
    margin-bottom: 15px;
  }

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

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

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

  .page-cockfighting-rules__content-section,
  .page-cockfighting-rules__faq-section,
  .page-cockfighting-rules__brand-section,
  .page-cockfighting-rules__blog-section,
  .page-cockfighting-rules__conclusion-section {
    padding: 40px 15px;
  }

  .page-cockfighting-rules__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-cockfighting-rules__sub-title {
    font-size: 1.4em;
  }

  .page-cockfighting-rules__text-block {
    font-size: 1em;
  }

  .page-cockfighting-rules__image-full-width,
  .page-cockfighting-rules__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    margin: 20px auto !important;
  }

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

  .page-cockfighting-rules__faq-question h3 {
    font-size: 1em;
  }

  .page-cockfighting-rules__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

  .page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
    padding: 15px 20px !important;
  }

  .page-cockfighting-rules__brand-content,
  .page-cockfighting-rules__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting-rules__brand-item {
    padding: 25px;
  }

  .page-cockfighting-rules__brand-item .page-cockfighting-rules__item-title {
    font-size: 1.4em;
  }

  .page-cockfighting-rules__blog-image {
    height: 180px;
  }
}