.page-cockfighting {
  color: #333333; /* Default text color for light backgrounds */
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for brand primary background */
  text-align: center;
}

.page-cockfighting__hero-image-container {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  /* No fixed font-size, rely on clamp if absolutely needed, otherwise responsive */
}

.page-cockfighting__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #ffffff;
}

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

.page-cockfighting__cta-buttons--center {
  margin-top: 30px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt */
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-cockfighting__btn-secondary:hover {
  background-color: #e0f4ff;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-cockfighting__section {
  padding: 60px 20px;
}

.page-cockfighting__introduction,
.page-cockfighting__registration-guide,
.page-cockfighting__betting-tips,
.page-cockfighting__cta-final {
  background-color: #ffffff;
  color: #333333;
}

.page-cockfighting__bet-types,
.page-cockfighting__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

.page-cockfighting__benefits,
.page-cockfighting__faq,
.page-cockfighting__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-cockfighting__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-cockfighting__introduction .page-cockfighting__section-title,
.page-cockfighting__bet-types .page-cockfighting__section-title,
.page-cockfighting__registration-guide .page-cockfighting__section-title,
.page-cockfighting__betting-tips .page-cockfighting__section-title,
.page-cockfighting__cta-final .page-cockfighting__section-title {
  color: #26A9E0;
}

.page-cockfighting__benefits .page-cockfighting__section-title,
.page-cockfighting__faq .page-cockfighting__section-title {
  color: #ffffff;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: justify;
}

.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-cockfighting__card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  text-align: left;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
  text-align: center;
}

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

.page-cockfighting__benefit-list,
.page-cockfighting__guide-list,
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__benefit-item,
.page-cockfighting__guide-item,
.page-cockfighting__tips-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  text-align: left;
}

.page-cockfighting__benefits .page-cockfighting__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-cockfighting__benefit-title,
.page-cockfighting__guide-title,
.page-cockfighting__tips-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-cockfighting__registration-guide .page-cockfighting__guide-item,
.page-cockfighting__betting-tips .page-cockfighting__tips-item {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-cockfighting__registration-guide .page-cockfighting__guide-title,
.page-cockfighting__betting-tips .page-cockfighting__tips-title {
  color: #26A9E0;
}

.page-cockfighting__benefit-description,
.page-cockfighting__guide-description,
.page-cockfighting__tips-description {
  font-size: 1em;
  line-height: 1.6;
}

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

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #ffffff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px; /* Arbitrary large value for expansion */
  padding-top: 10px;
}

/* Details tag specific styles */
.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
  max-height: none;
  padding-top: 10px;
}

.page-cockfighting__faq-item details > summary {
  list-style: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 2.5em;
  }

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

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

  .page-cockfighting__section {
    padding: 40px 15px;
  }

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

@media (max-width: 768px) {
  .page-cockfighting__main-title {
    font-size: 2em;
  }

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

  .page-cockfighting__hero-description,
  .page-cockfighting__text-block,
  .page-cockfighting__card-text,
  .page-cockfighting__benefit-description,
  .page-cockfighting__guide-description,
  .page-cockfighting__tips-description,
  .page-cockfighting__faq-answer p {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__image-content,
  .page-cockfighting__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__container,
  .page-cockfighting__card,
  .page-cockfighting__benefit-item,
  .page-cockfighting__guide-item,
  .page-cockfighting__tips-item,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is for internal spacing */
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .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__faq-question {
    padding: 15px;
  }

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