.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default page background */
}

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

.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__section-title {
  font-size: 36px;
  margin-bottom: 30px;
  color: #017439;
  font-weight: 700;
}

.page-cockfighting__section-title--white {
  color: #FFFFFF;
}

.page-cockfighting__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__text-block--white {
  color: #f0f0f0;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, not --header-offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 675px; /* Fixed height for desktop to maintain aspect ratio with width="1200" */
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-top: 100px; /* Push content down from the top */
}

.page-cockfighting__main-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFF00; /* Use custom color for H1 in hero */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-cockfighting__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #FFFFFF;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  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: #e01010;
  border-color: #e01010;
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 16px;
}

.page-cockfighting__btn-inline {
  margin-top: 15px;
  margin-bottom: 15px;
}

/* Intro Section */
.page-cockfighting__intro-section {
  background-color: #FFFFFF;
  color: #333333;
}

/* Bet Types Section */
.page-cockfighting__bet-types-section {
  background-color: #017439;
  color: #FFFFFF;
}

.page-cockfighting__grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.page-cockfighting__grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.page-cockfighting__card {
  background-color: #FFFFFF;
  color: #333333;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-cockfighting__card--dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #017439;
}

.page-cockfighting__card--dark .page-cockfighting__card-title {
  color: #FFFF00;
}

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

/* Guide Section */
.page-cockfighting__guide-section {
  background-color: #f9f9f9;
  color: #333333;
}

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

.page-cockfighting__list-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  counter-increment: step-counter;
  position: relative;
  padding-left: 70px; /* Space for step number */
}

.page-cockfighting__list-item::before {
  content: "0" counter(step-counter);
  position: absolute;
  left: 20px;
  top: 30px;
  font-size: 36px;
  font-weight: 800;
  color: #017439;
  line-height: 1;
}

.page-cockfighting__list-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #017439;
}

/* Advantages Section */
.page-cockfighting__advantages-section {
  background-color: #017439;
  color: #FFFFFF;
}

.page-cockfighting__feature-item {
  text-align: left;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.page-cockfighting__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-cockfighting__feature-text {
  font-size: 16px;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  background-color: #FFFFFF;
  color: #333333;
}

.page-cockfighting__promotion-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__promotion-note {
  margin-top: 40px;
  font-style: italic;
  color: #555555;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: #017439;
  color: #FFFFFF;
}

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

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFFFFF;
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFFF00;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
  text-align: left;
}

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

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  background-color: #f9f9f9;
  color: #333333;
}

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

/* Global image responsiveness */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-cockfighting__hero-image {
    height: 500px;
  }

  .page-cockfighting__main-title {
    font-size: 42px;
  }

  .page-cockfighting__hero-description {
    font-size: 18px;
  }

  .page-cockfighting__grid--3-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-cockfighting__numbered-list {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__promotion-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section {
    padding: 40px 0;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-cockfighting__text-block {
    font-size: 16px;
  }

  /* Hero Section */
  .page-cockfighting__hero-section {
    padding-bottom: 40px;
    padding-top: 10px; /* Ensure small top padding */
  }

  .page-cockfighting__hero-image {
    height: 350px !important;
    object-fit: contain !important; /* Banner: 849px object-fit:contain */
  }

  .page-cockfighting__hero-content {
    padding: 20px 15px;
    margin-top: 60px;
  }

  .page-cockfighting__main-title {
    font-size: 32px;
  }

  .page-cockfighting__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-cockfighting__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Buttons - Mobile adaptation (all buttons) */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-cockfighting__hero-cta-buttons,
  .page-cockfighting__cta-buttons--center {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  /* Grid Layouts */
  .page-cockfighting__grid--3-cols,
  .page-cockfighting__grid--2-cols {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

  .page-cockfighting__card-image {
    height: 200px;
  }

  .page-cockfighting__card-title {
    font-size: 20px;
  }

  /* Guide Section */
  .page-cockfighting__numbered-list {
    gap: 20px;
  }

  .page-cockfighting__list-item {
    padding: 20px 20px 20px 60px;
  }

  .page-cockfighting__list-item::before {
    font-size: 30px;
    left: 15px;
    top: 25px;
  }

  .page-cockfighting__list-title {
    font-size: 20px;
  }

  /* Advantages Section */
  .page-cockfighting__feature-item {
    padding: 15px;
  }

  .page-cockfighting__feature-title {
    font-size: 20px;
  }

  /* Promotions Section */
  .page-cockfighting__promotion-cards {
    gap: 20px;
  }

  /* FAQ Section */
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px;
  }

  .page-cockfighting__faq-qtext {
    font-size: 16px;
  }

  .page-cockfighting__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 15px 15px;
  }

  /* Global image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__promotion-cards,
  .page-cockfighting__grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}