.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #121212 (dark), so text must be light */
  background-color: #121212; /* Ensure consistency with shared body background */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  background-color: #017439; /* Brand primary color for hero background */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  overflow: hidden;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-cockfighting__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Custom color for important titles */
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-cockfighting__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

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

.page-cockfighting__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #FFFF00;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #FFFF00;
  color: #017439;
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

/* General Section Styles */
.page-cockfighting__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Brand primary color */
  font-weight: bold;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: #FFFF00; /* Light text for dark sections */
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-cockfighting__text-block--center {
  text-align: center;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark background for contrast */
  color: #ffffff;
}

/* Game Types Section */
.page-cockfighting__game-types-section {
  padding: 60px 0;
  background-color: #121212;
}

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

.page-cockfighting__card {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439; /* Brand primary color */
  font-weight: bold;
}

.page-cockfighting__card-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* How-To-Play Section */
.page-cockfighting__how-to-play-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-cockfighting__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__step-item {
  background-color: #222222;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439; /* Brand primary color */
  margin-bottom: 15px;
}

.page-cockfighting__step-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFFF00; /* Custom color for step titles */
}

.page-cockfighting__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-cockfighting__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-cockfighting__illustration-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 50px auto 0;
  border-radius: 10px;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__illustration-image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 20px;
}

/* Benefits Section */
.page-cockfighting__benefits-section {
  padding: 60px 0;
  background-color: #121212;
}

.page-cockfighting__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__benefit-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__benefit-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #017439; /* Brand primary color */
  font-weight: bold;
}

.page-cockfighting__benefit-text {
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-cockfighting__benefit-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* Video Section */
.page-cockfighting__video-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
}

.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  border-radius: 10px;
  max-width: 900px; /* Max width for video container */
}

.page-cockfighting__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  z-index: 10; /* Ensure overlay is clickable */
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

.page-cockfighting__cta-wrapper--center {
  text-align: center;
}

/* Tips Section */
.page-cockfighting__tips-section {
  padding: 60px 0;
  background-color: #121212;
}

.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__tip-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__tip-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFFF00; /* Custom color for tip titles */
  font-weight: bold;
}

.page-cockfighting__tip-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__faq-item {
  background-color: #222222;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #FFFF00; /* Custom color for FAQ questions */
  background-color: #017439; /* Brand primary color */
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: #005f2e;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
  content: '−'; /* Changed via JS, but good to have CSS for visual */
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

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

.page-cockfighting__faq-answer p {
  margin: 0;
}

/* CTA Section */
.page-cockfighting__cta-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  text-align: center;
}

.page-cockfighting__cta-container {
  max-width: 800px;
}

.page-cockfighting__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for CTA title */
  font-weight: bold;
}

.page-cockfighting__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 2.8em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__cta-title {
    font-size: 2.2em;
  }
  .page-cockfighting__card-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__tips-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}