/* style/cockfighting-game-rules-explained.css */
.page-cockfighting-game-rules-explained {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg); /* Inherited from shared.css */
}

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

.page-cockfighting-game-rules-explained__section-title {
  font-size: 2.5em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting-game-rules-explained__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-cockfighting-game-rules-explained__sub-title {
  font-size: 1.8em;
  color: #FFFFFF;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-cockfighting-game-rules-explained__paragraph {
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-cockfighting-game-rules-explained__paragraph a,
.page-cockfighting-game-rules-explained__list-item a {
  color: #FFFF00; /* Yellow for links to stand out */
  text-decoration: underline;
}

.page-cockfighting-game-rules-explained__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-cockfighting-game-rules-explained__hero-section {
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
  text-align: center;
  background: linear-gradient(135deg, #017439, #004d27) no-repeat center center/cover;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a decent height */
}

.page-cockfighting-game-rules-explained__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting-game-rules-explained__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFFFFF;
}

.page-cockfighting-game-rules-explained__hero-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-game-rules-explained__hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

.page-cockfighting-game-rules-explained__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-cockfighting-game-rules-explained__btn-primary,
.page-cockfighting-game-rules-explained__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting-game-rules-explained__btn-primary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-cockfighting-game-rules-explained__btn-primary:hover {
  background-color: #004d27;
  transform: translateY(-3px);
}

.page-cockfighting-game-rules-explained__btn-secondary {
  background-color: #C30808; /* Specific for login/register type actions */
  color: #000000; /* Black for contrast on red, overrides yellow for WCAG AA */
  border: 2px solid #C30808;
}

.page-cockfighting-game-rules-explained__btn-secondary:hover {
  background-color: #a00606;
  transform: translateY(-3px);
}

/* Sections with alternating backgrounds */
.page-cockfighting-game-rules-explained__dark-bg {
  background-color: var(--dark-bg);
  color: #FFFFFF;
  padding: 60px 0;
}

.page-cockfighting-game-rules-explained__light-bg {
  background-color: #FFFFFF;
  color: #333333;
  padding: 60px 0;
}

.page-cockfighting-game-rules-explained__light-bg .page-cockfighting-game-rules-explained__section-title,
.page-cockfighting-game-rules-explained__light-bg .page-cockfighting-game-rules-explained__sub-title {
  color: #017439;
}

.page-cockfighting-game-rules-explained__light-bg .page-cockfighting-game-rules-explained__paragraph,
.page-cockfighting-game-rules-explained__light-bg .page-cockfighting-game-rules-explained__list-item {
  color: #333333;
}

.page-cockfighting-game-rules-explained__light-bg .page-cockfighting-game-rules-explained__paragraph a,
.page-cockfighting-game-rules-explained__light-bg .page-cockfighting-game-rules-explained__list-item a {
  color: #017439;
}

/* Card Grid */
.page-cockfighting-game-rules-explained__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting-game-rules-explained__card {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent on dark background */
  color: #FFFFFF; /* Light text for contrast */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-cockfighting-game-rules-explained__light-bg .page-cockfighting-game-rules-explained__card {
  background-color: #f8f8f8;
  color: #333333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-game-rules-explained__card:hover {
  transform: translateY(-5px);
}

.page-cockfighting-game-rules-explained__card-title {
  font-size: 1.4em;
  color: #FFFF00; /* Yellow for card titles on dark bg */
  margin-bottom: 15px;
}

.page-cockfighting-game-rules-explained__light-bg .page-cockfighting-game-rules-explained__card-title {
  color: #017439; /* Green for card titles on light bg */
}

.page-cockfighting-game-rules-explained__card-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-cockfighting-game-rules-explained__light-bg .page-cockfighting-game-rules-explained__card-text {
  color: #555555;
}

/* Lists */
.page-cockfighting-game-rules-explained__rule-list,
.page-cockfighting-game-rules-explained__process-list,
.page-cockfighting-game-rules-explained__betting-types,
.page-cockfighting-game-rules-explained__safety-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-cockfighting-game-rules-explained__list-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #FFFFFF;
  display: flex;
  align-items: flex-start;
}

.page-cockfighting-game-rules-explained__light-bg .page-cockfighting-game-rules-explained__list-item {
  background-color: #f0f0f0;
  color: #333333;
}

.page-cockfighting-game-rules-explained__list-item::before {
  content: '✓';
  color: #FFFF00; /* Yellow checkmark */
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

.page-cockfighting-game-rules-explained__light-bg .page-cockfighting-game-rules-explained__list-item::before {
  color: #017439; /* Green checkmark */
}

.page-cockfighting-game-rules-explained__sub-list {
  list-style: disc;
  margin-left: 20px;
  margin-top: 10px;
  color: #f0f0f0;
}

.page-cockfighting-game-rules-explained__light-bg .page-cockfighting-game-rules-explained__sub-list {
  color: #555555;
}

.page-cockfighting-game-rules-explained__sub-list .page-cockfighting-game-rules-explained__list-item {
  background-color: transparent;
  padding: 5px 0;
  margin-bottom: 5px;
}

.page-cockfighting-game-rules-explained__sub-list .page-cockfighting-game-rules-explained__list-item::before {
  content: '';
  margin-right: 0;
}

.page-cockfighting-game-rules-explained__cta-single {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-cockfighting-game-rules-explained__faq-list {
  margin-top: 40px;
}

.page-cockfighting-game-rules-explained__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.page-cockfighting-game-rules-explained__light-bg .page-cockfighting-game-rules-explained__faq-item {
  border: 1px solid #e0e0e0;
}

.page-cockfighting-game-rules-explained__faq-question {
  background-color: #017439; /* Brand color for question background */
  color: #FFFFFF;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-cockfighting-game-rules-explained__faq-question:hover {
  background-color: #004d27;
}

.page-cockfighting-game-rules-explained__light-bg .page-cockfighting-game-rules-explained__faq-question {
  background-color: #f0f0f0;
  color: #017439;
}

.page-cockfighting-game-rules-explained__light-bg .page-cockfighting-game-rules-explained__faq-question:hover {
  background-color: #e0e0e0;
}

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

.page-cockfighting-game-rules-explained__faq-item.active .page-cockfighting-game-rules-explained__faq-toggle {
  transform: rotate(45deg); /* Plus to X / Minus */
}

.page-cockfighting-game-rules-explained__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer on dark */
  color: #f0f0f0;
}

.page-cockfighting-game-rules-explained__light-bg .page-cockfighting-game-rules-explained__faq-answer {
  background-color: #ffffff;
  color: #555555;
}

.page-cockfighting-game-rules-explained__faq-item.active .page-cockfighting-game-rules-explained__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-cockfighting-game-rules-explained__faq-answer .page-cockfighting-game-rules-explained__paragraph {
  margin-bottom: 10px;
}

/* Global image rules for content area - min size */
.page-cockfighting-game-rules-explained__content-area img,
.page-cockfighting-game-rules-explained__history-culture-section img,
.page-cockfighting-game-rules-explained__match-process-section img,
.page-cockfighting-game-rules-explained__strategies-tips-section img,
.page-cockfighting-game-rules-explained__faq-section img {
  min-width: 200px;
  min-height: 200px;
  width: auto; /* Allow natural width */
  height: auto; /* Allow natural height */
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-cockfighting-game-rules-explained__hero-title {
    font-size: 2.8em;
  }

  .page-cockfighting-game-rules-explained__section-title {
    font-size: 2em;
  }

  .page-cockfighting-game-rules-explained__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-game-rules-explained__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    min-height: 450px;
  }

  .page-cockfighting-game-rules-explained__hero-title {
    font-size: 2.2em;
  }

  .page-cockfighting-game-rules-explained__hero-description {
    font-size: 1.1em;
  }

  .page-cockfighting-game-rules-explained__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting-game-rules-explained__btn-primary,
  .page-cockfighting-game-rules-explained__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-cockfighting-game-rules-explained__container {
    padding: 0 15px;
  }

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

  .page-cockfighting-game-rules-explained__sub-title {
    font-size: 1.3em;
  }

  .page-cockfighting-game-rules-explained__card-grid {
    grid-template-columns: 1fr;
  }

  .page-cockfighting-game-rules-explained__list-item {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-cockfighting-game-rules-explained__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  /* Mobile responsive for all images */
  .page-cockfighting-game-rules-explained img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Mobile responsive for all video elements */
  .page-cockfighting-game-rules-explained video,
  .page-cockfighting-game-rules-explained__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Mobile responsive for all image/video containers */
  .page-cockfighting-game-rules-explained__section,
  .page-cockfighting-game-rules-explained__card,
  .page-cockfighting-game-rules-explained__container,
  .page-cockfighting-game-rules-explained__video-section,
  .page-cockfighting-game-rules-explained__video-container,
  .page-cockfighting-game-rules-explained__video-wrapper,
  .page-cockfighting-game-rules-explained__cta-buttons,
  .page-cockfighting-game-rules-explained__button-group,
  .page-cockfighting-game-rules-explained__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting-game-rules-explained__hero-video-wrapper {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }

  /* Specific padding-top for video section on mobile */
  .page-cockfighting-game-rules-explained__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

/* Print styles */
@media print {
  .page-cockfighting-game-rules-explained__hero-section,
  .page-cockfighting-game-rules-explained__cta-group,
  .page-cockfighting-game-rules-explained__hero-video-wrapper {
    display: none;
  }

  .page-cockfighting-game-rules-explained {
    color: #000000; /* Ensure black text on print */
    background-color: #FFFFFF; /* White background for print */
  }

  .page-cockfighting-game-rules-explained h1, .page-cockfighting-game-rules-explained h2, .page-cockfighting-game-rules-explained h3 {
    color: #000000;
  }

  .page-cockfighting-game-rules-explained a {
    color: #0000EE !important;
    text-decoration: underline;
  }
}