.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: var(--background-color, #ffffff); /* Fallback to white if var not defined */
}

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

.page-cockfighting__section-title,
.page-cockfighting__section-heading {
  text-align: center;
  color: #017439;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
}

.page-cockfighting__section-heading {
  font-size: 2em;
}

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

.page-cockfighting__highlight-text {
  color: #017439;
  font-weight: bold;
}

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

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

/* Logo Carousel Section */
.page-cockfighting__logo-carousel-section {
  padding: 10px 0 30px;
  border-bottom: 1px solid #eee;
  background-color: #f8f8f8;
}

.page-cockfighting__logo-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.page-cockfighting__logo-item {
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-cockfighting__logo-item img {
  max-width: 60px;
  max-height: 60px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Hero Section */
.page-cockfighting__hero-section {
  padding-top: 0; /* Handled by body padding-top */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-cockfighting__hero-content {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-cockfighting__main-title {
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -1px;
  max-width: 800px; /* Restrict width to prevent excessively long lines */
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

.page-cockfighting__subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 900px;
}

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

.page-cockfighting__btn-register,
.page-cockfighting__btn-login,
.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, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-cockfighting__btn-register:hover {
  background-color: #e00b0b;
  transform: translateY(-3px);
}

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

.page-cockfighting__btn-login:hover {
  background-color: #C30808;
  transform: translateY(-3px);
}

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

.page-cockfighting__btn-primary:hover {
  background-color: #025a2d;
  transform: translateY(-3px);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

/* General Content Sections */
.page-cockfighting__introduction-section,
.page-cockfighting__why-choose-us-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__tips-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final-section {
  padding: 80px 0;
}

.page-cockfighting__introduction-section .page-cockfighting__image,
.page-cockfighting__why-choose-us-section .page-cockfighting__image,
.page-cockfighting__bet-types-section .page-cockfighting__image,
.page-cockfighting__how-to-play-section .page-cockfighting__image,
.page-cockfighting__tips-section .page-cockfighting__image,
.page-cockfighting__promotions-section .page-cockfighting__image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Why Choose Us Section */
.page-cockfighting__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__feature-card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.page-cockfighting__feature-description {
  font-size: 1em;
  color: #555555;
}

.page-cockfighting__why-choose-us-section .page-cockfighting__feature-title {
  color: #017439; /* Ensure contrast for dark section */
}

.page-cockfighting__why-choose-us-section .page-cockfighting__feature-description {
  color: #333333; /* Ensure contrast for dark section */
}

/* Bet Types Section */
.page-cockfighting__bet-list,
.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__bet-item,
.page-cockfighting__tip-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-cockfighting__bet-description,
.page-cockfighting__tip-description {
  font-size: 1em;
  color: #555555;
}

/* How to Play Section */
.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 70px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 20px;
  background-color: #C30808;
  color: #FFFF00;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
}

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

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

/* Promotions Section */
.page-cockfighting__promotions-section .page-cockfighting__btn-primary {
  margin-top: 30px;
}

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

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

.page-cockfighting__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-weight: bold;
  font-size: 1.1em;
  color: #017439;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
}

.page-cockfighting__faq-item summary::-webkit-details-marker,
.page-cockfighting__faq-item summary::marker {
  display: none;
}

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

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

.page-cockfighting__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  background-color: #f9f9f9;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section .page-cockfighting__section-heading,
.page-cockfighting__cta-final-section .page-cockfighting__text-block {
  color: #ffffff;
}

.page-cockfighting__cta-final-section .page-cockfighting__cta-buttons {
  margin-top: 40px;
}

/* Image styles */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__section-title {
    font-size: 2em;
  }

  .page-cockfighting__section-heading {
    font-size: 1.8em;
  }

  .page-cockfighting__hero-content {
    padding: 40px 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-cockfighting__subtitle {
    font-size: 1.1em;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__bet-list,
  .page-cockfighting__tips-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__why-choose-us-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__logo-carousel-section {
    padding: 10px 0 20px;
  }

  .page-cockfighting__logo-carousel {
    gap: 20px;
    justify-content: center;
  }

  .page-cockfighting__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box;
  }

  .page-cockfighting__hero-section {
    padding-top: 0 !important; /* Ensure no double padding from body */
  }

  .page-cockfighting__hero-content {
    padding: 30px 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-cockfighting__subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain buttons for better mobile look */
    margin: 0 auto;
  }

  .page-cockfighting__btn-register,
  .page-cockfighting__btn-login,
  .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: 12px 20px;
    font-size: 1em;
  }

  .page-cockfighting__section-title,
  .page-cockfighting__section-heading {
    font-size: 1.5em;
    margin-bottom: 30px;
  }

  .page-cockfighting__text-block {
    font-size: 1em;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__why-choose-us-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    padding: 40px 0;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__bet-list,
  .page-cockfighting__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__bet-item,
  .page-cockfighting__tip-item,
  .page-cockfighting__step-item {
    padding: 20px;
  }

  .page-cockfighting__feature-title,
  .page-cockfighting__bet-title,
  .page-cockfighting__tip-title,
  .page-cockfighting__step-title {
    font-size: 1.2em;
  }

  .page-cockfighting__step-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
    left: 15px;
    top: 15px;
  }

  .page-cockfighting__step-item {
    padding-left: 60px;
  }

  /* General image responsiveness */
  .page-cockfighting img:not(.page-cockfighting__logo-item img) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }

  .page-cockfighting__container {
    padding: 0 15px;
    box-sizing: border-box;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden;
  }

  .page-cockfighting__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-cockfighting__faq-answer {
    padding: 10px 20px 15px;
  }
}