/* style/cockfighting.css */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

.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;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for large screens */
  overflow: hidden;
}

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

.page-cockfighting__hero-content {
  position: static; /* Content is below image, not overlapping */
  transform: none;
  z-index: auto;
  max-width: 800px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  color: #FFF3E6;
  text-shadow: none;
  margin-top: 20px; /* Space between image and content */
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFB04D; /* Glow */
}

.page-cockfighting__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: #FFB04D; /* Glow */
}

.page-cockfighting__overview-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__popular-halls-section,
.page-cockfighting__conclusion-section {
  padding: 60px 0;
}

.page-cockfighting__dark-section {
  background-color: #17191F; /* Card BG */
}

.page-cockfighting__criteria-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-cockfighting__list-item {
  background-color: #17191F; /* Card BG */
  border-left: 5px solid #FF8C1A;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-cockfighting__list-title {
  font-size: 1.5em;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
}

.page-cockfighting__numbered-list {
  list-style: none;
  padding: 0;
  counter-reset: item;
}

.page-cockfighting__numbered-list .page-cockfighting__list-item {
  background-color: #17191F; /* Card BG */
  border-left: none;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  position: relative;
  padding-left: 60px;
}

.page-cockfighting__numbered-list .page-cockfighting__list-item::before {
  content: counter(item);
  counter-increment: item;
  position: absolute;
  left: 20px;
  top: 20px;
  background-color: #FF8C1A;
  color: #FFF3E6;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
}

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

.page-cockfighting__card {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C; /* Border */
  display: flex;
  flex-direction: column;
}

.page-cockfighting__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 1.4em;
  color: #FFB04D; /* Glow */
  padding: 15px 20px 0;
  margin-bottom: 10px;
}

.page-cockfighting__card p {
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 30px;
  object-fit: cover;
}

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

.page-cockfighting__list--two-columns .page-cockfighting__list-item {
  margin-bottom: 0;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-text {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: #FF8C1A;
  color: #FFF3E6;
}

.page-cockfighting__btn-text {
  background: none;
  border: none;
  color: #FF8C1A;
  padding: 0;
  text-decoration: underline;
  margin-top: 10px;
}

.page-cockfighting__btn-text:hover {
  color: #FFB04D;
}

.page-cockfighting__text-link {
  color: #FF8C1A;
  text-decoration: none;
}

.page-cockfighting__text-link:hover {
  text-decoration: underline;
  color: #FFB04D;
}

.page-cockfighting__faq-section {
  padding: 60px 0;
}

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

.page-cockfighting__faq-item {
  background-color: #17191F; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFF3E6; /* Text Main */
  cursor: pointer;
  position: relative;
  list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FF8C1A;
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #FFF3E6;
}

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

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

  .page-cockfighting__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-cockfighting__intro-text {
    font-size: 1em;
  }

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

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

  .page-cockfighting__overview-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__popular-halls-section,
  .page-cockfighting__conclusion-section,
  .page-cockfighting__criteria-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section {
    padding: 40px 0;
  }

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

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

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

  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__container,
  .page-cockfighting__card,
  .page-cockfighting__list-item,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent overflow */
  }

  /* Mobile button responsiveness */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-text,
  .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;
    padding-right: 15px;
    margin-bottom: 10px; /* Stack buttons */
  }

  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }
  .page-cockfighting__hero-content .page-cockfighting__btn-primary {
    margin: 0 auto; /* Center single button */
  }

  /* Fixed header spacing for mobile, applied to body via shared.css */
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for aesthetic spacing */
  }
}