/* style/cockfighting.css */

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #FFF1E8; /* Main text color for dark background */
  background-color: #140C0C; /* Overall background from custom colors */
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden; /* Prevent horizontal scroll on desktop */
}

/* Container for content sections */
.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section titles */
.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #F3C54D; /* Gold color for titles */
  line-height: 1.2;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding to avoid double header offset */
  background-color: #140C0C;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-cockfighting__hero-content {
  text-align: center;
  padding: 30px 20px;
  max-width: 900px;
  z-index: 1;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 800;
  color: #FFF1E8;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 18px;
  color: #FFF1E8;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General button styles */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-cockfighting__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: #F3C54D; /* Gold text for secondary button */
  border: 2px solid #F3C54D; /* Gold border */
}

.page-cockfighting__btn-secondary:hover {
  background: rgba(243, 197, 77, 0.1); /* Light gold background on hover */
  color: #FFF1E8;
  border-color: #FFF1E8;
}

/* Dark section for contrast */
.page-cockfighting__dark-section {
  background-color: #2A1212; /* Card B G from custom colors */
  padding: 60px 0;
  color: #FFF1E8;
}

/* Text blocks */
.page-cockfighting__text-block {
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Image wrappers for content images */
.page-cockfighting__image-wrapper {
  margin: 30px auto;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

/* List styles */
.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.page-cockfighting__list-item {
  background-color: #2A1212; /* Card B G */
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__list-title {
  font-size: 24px;
  font-weight: 700;
  color: #F3C54D; /* Gold color */
  margin-top: 0;
  margin-bottom: 15px;
}

.page-cockfighting__list-description {
  font-size: 16px;
  color: #FFF1E8;
}

/* Guide list (ordered list) */
.page-cockfighting__guide-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-cockfighting__guide-item {
  background-color: #140C0C; /* Background */
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__guide-title {
  font-size: 22px;
  font-weight: 700;
  color: #F3C54D; /* Gold color */
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting__guide-description {
  font-size: 16px;
  color: #FFF1E8;
}

/* Call to action buttons group */
.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: #2A1212; /* Card B G */
}

.page-cockfighting__faq-image-wrapper {
  margin: 30px auto;
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #6A1E1E; /* Border color */
  overflow: hidden;
  background: #140C0C; /* Background */
  color: #FFF1E8;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: #2A1212; /* Slightly darker on hover */
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D; /* Gold color for question text */
}
.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F3C54D; /* Gold color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  background: #140C0C; /* Background */
  border-radius: 0 0 10px 10px;
  font-size: 16px;
  color: #FFF1E8;
}
.page-cockfighting__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

/* --- Responsive Styles --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 32px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-cockfighting__hero-description {
    font-size: 17px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 12px 25px;
    font-size: 17px;
  }
  .page-cockfighting__list {
    gap: 20px;
  }
  .page-cockfighting__list-title {
    font-size: 22px;
  }
  .page-cockfighting__guide-title {
    font-size: 20px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 17px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 26px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 15px;
  }

  /* Universal image and container responsive styles */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust H1 for smaller screens */
    margin-bottom: 10px;
  }
  .page-cockfighting__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-cockfighting__hero-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-cockfighting__list {
    grid-template-columns: 1fr; /* Single column for lists */
    gap: 20px;
  }
  .page-cockfighting__list-item {
    padding: 20px;
  }
  .page-cockfighting__list-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .page-cockfighting__list-description {
    font-size: 15px;
  }

  .page-cockfighting__guide-item {
    padding: 15px;
    margin-bottom: 15px;
  }
  .page-cockfighting__guide-title {
    font-size: 18px;
  }
  .page-cockfighting__guide-description {
    font-size: 15px;
  }

  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px 20px;
  }
  .page-cockfighting__faq-qtext {
    font-size: 16px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }
}