.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #f8f8f8); /* Use shared background, default to light gray */
}

/* Ensure proper spacing for fixed header */
.page-cockfighting__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset to the first content section */
}

.page-cockfighting__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
}

.page-cockfighting__light-bg {
  background-color: #ffffff; /* Auxiliary color / white background */
  color: #333333; /* Dark text for light background */
}

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

.page-cockfighting__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

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

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

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

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

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

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #ffffff; /* White text for contrast on red */
  border: 2px solid #C30808;
}

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

.page-cockfighting__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2b;
  border-color: #005a2b;
}

.page-cockfighting__mt-20 {
  margin-top: 20px;
}

.page-cockfighting__video-section {
  padding: 80px 20px;
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto;
  border-radius: 10px;
}

.page-cockfighting__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

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

.page-cockfighting__content-section h3 {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-cockfighting__list li {
  background: #f9f9f9;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 5px solid #017439;
  border-radius: 5px;
  display: flex;
  align-items: center;
}

.page-cockfighting__list li p {
  margin: 0;
  color: #333333;
  font-size: 1.05em;
}

.page-cockfighting__image-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}

.page-cockfighting__how-to-register-section {
  padding: 80px 20px;
}

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

.page-cockfighting__step-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-cockfighting__step-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-cockfighting__betting-types-section {
  padding: 80px 20px;
}

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

.page-cockfighting__bet-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-cockfighting__card-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
}

.page-cockfighting__tips-section {
  padding: 80px 20px;
}

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

.page-cockfighting__tip-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-cockfighting__tip-card img {
  margin-bottom: 20px;
}

.page-cockfighting__advantages-section {
  padding: 80px 20px;
}

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

.page-cockfighting__advantage-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
}

.page-cockfighting__advantage-card img {
  width: 200px; /* Explicitly set to minimum required size */
  height: 200px;
  object-fit: contain; /* Ensure content is visible */
  margin: 0 auto 20px auto; /* Center and add margin */
}

.page-cockfighting__advantage-card h3 {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-cockfighting__faq-section {
  padding: 80px 20px;
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.1em; /* Ensure FAQ question title is not too large */
}

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

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

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #333333;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-cockfighting__cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-cockfighting__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting__cta-button {
  margin-top: 30px;
  font-size: 1.2em;
  padding: 18px 40px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 3em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__grid-3-cols {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__hero-section {
    min-height: 500px;
  }
  .page-cockfighting__hero-title {
    font-size: 2.2em;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__hero-actions {
    flex-direction: column;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__hero-actions {
    gap: 10px;
    padding: 0 15px;
  }
  .page-cockfighting__container,
  .page-cockfighting__steps-grid,
  .page-cockfighting__grid-2-cols,
  .page-cockfighting__tips-grid,
  .page-cockfighting__grid-3-cols,
  .page-cockfighting__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__section-description {
    font-size: 0.95em;
  }
  /* Mobile specific image adaptation */
  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Video specific adaptation */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-cockfighting__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section respects header offset */
  }
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 1.8em;
  }
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting__steps-grid,
  .page-cockfighting__grid-2-cols,
  .page-cockfighting__tips-grid,
  .page-cockfighting__grid-3-cols {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 1em;
  }
}

/* Image CSS size lower bound (content area) */
.page-cockfighting img {
  min-width: 200px; /* Enforce minimum size for images in content area */
  min-height: 200px;
}

/* Ensure images in cards are not small icons */
.page-cockfighting__step-card img,
.page-cockfighting__tip-card img {
  min-width: 200px;
  min-height: 200px;
  width: auto; /* Allow auto width for flexible sizing within card, but respect min-width */
  height: auto;
  max-width: 100%;
}

/* Specific override for small icon-like images in advantage cards to ensure they are large enough */
.page-cockfighting__advantage-card img {
  width: 200px; /* Explicitly set to minimum required size */
  height: 200px;
  object-fit: contain; /* Ensure content is visible */
  margin: 0 auto 20px auto; /* Center and add margin */
}

/* No CSS filter for images */
.page-cockfighting img {
  filter: none; /* Explicitly disable any potential filters */
}
.page-cockfighting__hero-image { /* Re-enable for hero image only for darkening effect */
  filter: brightness(0.5);
}