/* style/cockfighting.css */

/* Global styles for the page content, adhering to body background and text color */
.page-cockfighting {
  background-color: var(--background-color, #08160F); /* Fallback if shared.css not loaded */
  color: var(--text-main-color, #F2FFF6); /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

/* Section styling */
.page-cockfighting__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-cockfighting__subsection-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-cockfighting__text-block {
  margin-bottom: 20px;
  color: var(--text-secondary-color, #A7D9B8);
}

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

/* Hero Section */
.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 as per requirement */
  box-sizing: border-box;
  background-color: var(--background-color, #08160F);
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image wrapper */
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 10px;
}

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

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

.page-cockfighting__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Using clamp as per H1 font size rule */
  font-weight: 700;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-cockfighting__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%; /* Ensure container takes full width */
  max-width: 500px; /* Limit button group width on desktop */
  margin: 0 auto;
}

/* Button styles */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main-color, #F2FFF6); /* Ensure light text on dark button */
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--glow-color, #57E38D); /* Using Glow color for secondary button text */
  border: 2px solid var(--glow-color, #57E38D);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--glow-color, #57E38D);
  color: var(--background-color, #08160F); /* Dark text on light hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

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

/* Image styles for content sections */
.page-cockfighting__image-wrapper {
  margin: 30px auto;
  max-width: 800px; /* Example max-width, adjust as needed */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

/* List styles */
.page-cockfighting__list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-cockfighting__list-item {
  margin-bottom: 10px;
}

.page-cockfighting__list-item strong {
  color: var(--text-main-color, #F2FFF6);
}

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

.page-cockfighting__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-main-color, #F2FFF6);
  background-color: var(--deep-green-color, #0A4B2C); /* Darker background for question */
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: var(--main-color, #11A84E);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  background-color: var(--main-color, #11A84E);
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--text-main-color, #F2FFF6);
}

.page-cockfighting__faq-answer {
  padding: 15px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary-color, #A7D9B8);
  border-top: 1px solid var(--divider-color, #1E3A2A);
}

/* Ensure no default marker for details summary */
.page-cockfighting__faq-item summary {
  list-style: none;
}
.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none;
}

/* Ensure all images do not use filter */
.page-cockfighting img {
  filter: none; /* Explicitly disable any filters */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2rem;
  }
  .page-cockfighting__subsection-title {
    font-size: 1.6rem;
  }
  .page-cockfighting__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-cockfighting__hero-description {
    font-size: 1rem;
  }
}

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

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

  .page-cockfighting__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }

  .page-cockfighting__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-cockfighting__hero-description {
    font-size: 0.95rem;
  }

  .page-cockfighting__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  
  /* Buttons responsive */
  .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: 12px 20px;
    font-size: 1rem;
  }

  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  .page-cockfighting__subsection-title {
    font-size: 1.4rem;
    margin-top: 30px;
  }

  /* Images responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0; /* Remove border radius for full width */
  }

  /* FAQ responsive */
  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-cockfighting__faq-answer {
    padding: 10px 20px;
  }
}