.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, ensuring contrast */
}

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

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  overflow: hidden;
}

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

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay to ensure text contrast */
  filter: none; /* No filter for color change */
}

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

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

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

.page-cockfighting__hero-cta-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;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

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

.page-cockfighting__light-bg {
  background-color: #FFFFFF;
  color: #333333;
  padding: 60px 0;
}

.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__card-title,
.page-cockfighting__light-bg .page-cockfighting__step-title,
.page-cockfighting__light-bg .page-cockfighting__tip-title,
.page-cockfighting__light-bg .page-cockfighting__faq-question h3 {
  color: #017439;
}

.page-cockfighting__light-bg .page-cockfighting__text-block,
.page-cockfighting__light-bg .page-cockfighting__card-text,
.page-cockfighting__light-bg .page-cockfighting__step-text,
.page-cockfighting__light-bg .page-cockfighting__tip-text,
.page-cockfighting__light-bg .page-cockfighting__faq-answer p {
  color: #333333;
}

.page-cockfighting__dark-bg {
  background-color: #1a1a1a; /* Darker background for sections */
  color: #ffffff;
  padding: 60px 0;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title,
.page-cockfighting__dark-bg .page-cockfighting__card-title,
.page-cockfighting__dark-bg .page-cockfighting__bet-type-title,
.page-cockfighting__dark-bg .page-cockfighting__promo-title,
.page-cockfighting__dark-bg .page-cockfighting__faq-question h3 {
  color: #ffffff;
}

.page-cockfighting__dark-bg .page-cockfighting__text-block,
.page-cockfighting__dark-bg .page-cockfighting__card-text,
.page-cockfighting__dark-bg .page-cockfighting__bet-type-description,
.page-cockfighting__dark-bg .page-cockfighting__promo-description,
.page-cockfighting__dark-bg .page-cockfighting__faq-answer p {
  color: #e0e0e0;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-cockfighting__card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark bg */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  min-height: 200px; /* Minimum height for card content */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-cockfighting__light-bg .page-cockfighting__card {
  background-color: #f8f8f8;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* No filter for color change */
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

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

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

.page-cockfighting__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 250px;
}

.page-cockfighting__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* No filter for color change */
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-cockfighting__step-text {
  font-size: 1em;
  color: #333333;
  margin-bottom: 20px;
}

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

.page-cockfighting__bet-type-card {
  background-color: #017439;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  min-height: 200px;
}

.page-cockfighting__bet-type-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-cockfighting__bet-type-description {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-cockfighting__tip-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 250px;
}

.page-cockfighting__tip-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* No filter for color change */
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

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

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

.page-cockfighting__promo-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #017439;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-cockfighting__promo-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-cockfighting__promo-description {
  font-size: 1em;
  color: #e0e0e0;
}

.page-cockfighting__center-buttons {
  margin-top: 40px;
  text-align: center;
}

.page-cockfighting__security-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-cockfighting__security-text {
  flex: 1;
  min-width: 300px;
}

.page-cockfighting__security-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-cockfighting__security-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-cockfighting__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-cockfighting__security-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  filter: none; /* No filter for color change */
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__faq-list {
  margin-top: 40px;
}

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

.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;
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.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); /* Changes '+' to 'x' or similar */
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.02);
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 2.5em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__hero-section {
    padding: 60px 15px;
  }
  .page-cockfighting__hero-title {
    font-size: 2em;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9em;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__bet-types-grid,
  .page-cockfighting__tips-grid {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__card,
  .page-cockfighting__step-card,
  .page-cockfighting__bet-type-card,
  .page-cockfighting__tip-card {
    padding: 20px;
  }
  .page-cockfighting__card-image,
  .page-cockfighting__step-image,
  .page-cockfighting__tip-image,
  .page-cockfighting__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-cockfighting__security-content {
    flex-direction: column;
  }
  .page-cockfighting__security-text,
  .page-cockfighting__security-image-wrapper {
    min-width: unset;
    width: 100%;
  }
  .page-cockfighting__section, .page-cockfighting__card, .page-cockfighting__container, .page-cockfighting__hero-section, .page-cockfighting__intro-section, .page-cockfighting__advantages-section, .page-cockfighting__how-to-section, .page-cockfighting__bet-types-section, .page-cockfighting__tips-section, .page-cockfighting__promotions-section, .page-cockfighting__security-section, .page-cockfighting__faq-section, .page-cockfighting__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-cockfighting__promo-list {
    padding-left: 0;
  }
  .page-cockfighting__promo-item {
    padding: 15px;
  }
  .page-cockfighting__faq-question {
    padding: 15px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 15px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 1.8em;
  }
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting__card-title,
  .page-cockfighting__step-title,
  .page-cockfighting__bet-type-title,
  .page-cockfighting__tip-title,
  .page-cockfighting__promo-title {
    font-size: 1.3em;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 1.1em;
  }
}

/* Ensure images do not have color filters */
.page-cockfighting img {
  filter: none;
}