.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, but explicitly set for clarity */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  text-align: center;
  padding: 100px 20px; /* Adjusted to allow for header offset */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.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;
  text-align: center;
}

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

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

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

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

/* Section Titles and Text Blocks */
.page-cockfighting__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439;
}

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

/* General Section Styling */
.page-cockfighting__introduction-section,
.page-cockfighting__types-section,
.page-cockfighting__tips-section,
.page-cockfighting__security-section {
  padding: 80px 0;
  color: #333333; /* Dark text for light background */
}

.page-cockfighting__features-section,
.page-cockfighting__guide-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final-section {
  padding: 80px 0;
  color: #ffffff; /* Light text for dark background */
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
}

.page-cockfighting__dark-bg {
  background-color: #121212; /* Match body background for consistency */
}

/* Image Styling */
.page-cockfighting__image-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

/* Card Styling */
.page-cockfighting__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__card-image {
  max-width: 100%;
  height: 250px; /* Fixed height for consistency, will scale down */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-cockfighting__card-text {
  font-size: 1em;
  line-height: 1.6;
  flex-grow: 1;
}

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

/* Guide List */
.page-cockfighting__guide-list {
  list-style: none;
  counter-reset: guide-counter;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__guide-item {
  position: relative;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px 30px 30px 80px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__guide-item::before {
  counter-increment: guide-counter;
  content: counter(guide-counter);
  position: absolute;
  left: 30px;
  top: 30px;
  background-color: #017439;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-cockfighting__guide-step-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

/* Security Section */
.page-cockfighting__security-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 40px;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: #017439;
  border-radius: 10px;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  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);
}

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

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

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

/* Final CTA */
.page-cockfighting__cta-final-section {
  text-align: center;
  padding: 80px 20px;
}

.page-cockfighting__cta-final-section .page-cockfighting__section-title {
  color: #ffffff;
}

/* Sticky Buttons */
.page-cockfighting__sticky-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-cockfighting__sticky-btn {
  display: block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.page-cockfighting__sticky-btn:hover {
  transform: translateY(-3px);
}

.page-cockfighting__sticky-btn--register {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register font color */
}

.page-cockfighting__sticky-btn--login {
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login font color */
}

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

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 80px 15px;
    min-height: 400px;
  }
  .page-cockfighting__hero-title {
    font-size: 2.5em;
  }
  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }
  .page-cockfighting__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__text-block {
    font-size: 1em;
  }
  .page-cockfighting__introduction-section,
  .page-cockfighting__types-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__security-section,
  .page-cockfighting__features-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    padding: 50px 0;
  }
  .page-cockfighting__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__card-image {
    height: 200px; /* Adjust height for mobile cards */
  }
  .page-cockfighting__card,
  .page-cockfighting__feature-item,
  .page-cockfighting__guide-item,
  .page-cockfighting__security-item {
    padding: 20px;
  }
  .page-cockfighting__guide-item {
    padding-left: 60px;
  }
  .page-cockfighting__guide-item::before {
    left: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    font-size: 1.2em;
  }
  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-cockfighting__faq-answer {
    padding: 15px 20px;
  }
  .page-cockfighting__sticky-buttons {
    right: 10px;
    bottom: 10px;
    flex-direction: row;
    gap: 8px;
  }
  .page-cockfighting__sticky-btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-title {
    font-size: 2em;
  }
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting__hero-section {
    min-height: 350px;
  }
  .page-cockfighting__card-image {
    height: 180px;
  }
  .page-cockfighting__sticky-buttons {
    width: calc(100% - 20px);
    left: 10px;
    right: 10px;
    justify-content: space-around;
  }
  .page-cockfighting__sticky-btn {
    flex: 1;
    max-width: 48%;
  }
}