/* style/cockfighting.css */

/* Custom colors */
:root {
  --page-cockfighting-primary-color: #11A84E;
  --page-cockfighting-secondary-color: #22C768;
  --page-cockfighting-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-cockfighting-card-bg: #11271B;
  --page-cockfighting-background: #08160F;
  --page-cockfighting-text-main: #F2FFF6;
  --page-cockfighting-text-secondary: #A7D9B8;
  --page-cockfighting-border: #2E7A4E;
  --page-cockfighting-glow: #57E38D;
  --page-cockfighting-gold: #F2C14E;
  --page-cockfighting-divider: #1E3A2A;
  --page-cockfighting-deep-green: #0A4B2C;
}

/* General page styling */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  background-color: var(--page-cockfighting-background); /* Dark background */
  color: var(--page-cockfighting-text-main); /* Light text for dark background */
  line-height: 1.6;
}

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

.page-cockfighting__section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--page-cockfighting-text-main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-cockfighting__text-block {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting a {
  color: var(--page-cockfighting-primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-cockfighting a:hover {
  color: var(--page-cockfighting-secondary-color);
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  text-decoration: none;
}

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-button-gradient);
  color: #ffffff; /* White text for dark gradient button */
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--page-cockfighting-primary-color);
  border: 2px solid var(--page-cockfighting-primary-color);
  box-shadow: none;
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--page-cockfighting-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-cockfighting__btn-link {
  background: none;
  border: none;
  color: var(--page-cockfighting-gold);
  padding: 8px 15px;
  font-size: 16px;
  text-decoration: underline;
}

.page-cockfighting__btn-link:hover {
  color: var(--page-cockfighting-glow);
}

/* Hero Section */
.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;
  background-color: var(--page-cockfighting-background);
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height to maintain aspect ratio */
  overflow: hidden;
  margin-bottom: 40px;
}

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

.page-cockfighting__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above any background elements */
}

.page-cockfighting__main-title {
  font-size: clamp(36px, 5vw, 64px); /* Use clamp for responsive H1 */
  font-weight: 800;
  color: var(--page-cockfighting-gold);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-cockfighting__hero-description {
  font-size: 20px;
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 500px; /* Limit max width for button group */
  margin: 0 auto;
}

/* Sections */
.page-cockfighting__introduction-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__tips-section,
.page-cockfighting__cta-final-section {
  padding: 80px 0;
  text-align: center;
}

.page-cockfighting__types-section,
.page-cockfighting__benefits-section,
.page-cockfighting__faq-section {
  padding: 80px 0;
}

.page-cockfighting__dark-section {
  background-color: var(--page-cockfighting-card-bg); /* Use card background for dark sections */
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: var(--page-cockfighting-gold);
}

.page-cockfighting__dark-section .page-cockfighting__text-block {
  color: var(--page-cockfighting-text-secondary);
}

/* Content Image Styling */
.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Grid Layouts */
.page-cockfighting__grid,
.page-cockfighting__benefits-grid,
.page-cockfighting__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

/* Card Styling */
.page-cockfighting__card,
.page-cockfighting__benefit-card,
.page-cockfighting__step-item,
.page-cockfighting__tip-item {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__card:hover,
.page-cockfighting__benefit-card:hover,
.page-cockfighting__step-item:hover,
.page-cockfighting__tip-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 200px; /* Fixed height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-cockfighting__card-title,
.page-cockfighting__benefit-title,
.page-cockfighting__step-title,
.page-cockfighting__tip-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--page-cockfighting-gold);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-cockfighting__card-description,
.page-cockfighting__benefit-description,
.page-cockfighting__step-description,
.page-cockfighting__tip-description {
  font-size: 16px;
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1; /* Allow descriptions to take available space */
}

/* How-To-Play specific */
.page-cockfighting__step-item .page-cockfighting__btn-primary,
.page-cockfighting__step-item .page-cockfighting__btn-secondary {
  margin-top: auto; /* Push buttons to the bottom */
}

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

.page-cockfighting__faq-item {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 20px;
  font-weight: 600;
  color: var(--page-cockfighting-text-main);
  cursor: pointer;
  background-color: var(--page-cockfighting-deep-green);
  border-bottom: 1px solid var(--page-cockfighting-divider);
  list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

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

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  width: 30px;
  text-align: center;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--page-cockfighting-text-secondary);
  text-align: left;
}

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

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

/* Final CTA Section */
.page-cockfighting__cta-final-section {
  padding-bottom: 80px;
}

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

  .page-cockfighting__main-title {
    font-size: clamp(32px, 4.5vw, 56px);
  }

  .page-cockfighting__section-title {
    font-size: clamp(26px, 3.2vw, 40px);
  }
}

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

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

  .page-cockfighting__hero-image-wrapper {
    max-height: 300px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(28px, 8vw, 48px);
    margin-bottom: 15px;
  }

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

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
  }

  .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;
    padding-right: 15px;
  }

  .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-wrap: wrap !important;
    gap: 10px;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__cta-final-section,
  .page-cockfighting__types-section,
  .page-cockfighting__benefits-section,
  .page-cockfighting__faq-section {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

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

  .page-cockfighting__grid,
  .page-cockfighting__benefits-grid,
  .page-cockfighting__tips-grid,
  .page-cockfighting__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card-image {
    height: auto; /* Allow auto height for mobile card images */
  }

  .page-cockfighting__card-title,
  .page-cockfighting__benefit-title,
  .page-cockfighting__step-title,
  .page-cockfighting__tip-title {
    font-size: 20px;
  }

  .page-cockfighting__card-description,
  .page-cockfighting__benefit-description,
  .page-cockfighting__step-description,
  .page-cockfighting__tip-description {
    font-size: 15px;
  }

  .page-cockfighting__faq-question {
    font-size: 18px;
    padding: 15px 20px;
  }

  .page-cockfighting__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
  }

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

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__types-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__benefits-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Adjust padding for sections that might have inherited 0 padding earlier */
  .page-cockfighting__introduction-section.page-cockfighting__container,
  .page-cockfighting__types-section.page-cockfighting__container,
  .page-cockfighting__how-to-play-section.page-cockfighting__container,
  .page-cockfighting__benefits-section.page-cockfighting__container,
  .page-cockfighting__tips-section.page-cockfighting__container,
  .page-cockfighting__faq-section.page-cockfighting__container,
  .page-cockfighting__cta-final-section.page-cockfighting__container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

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

/* Ensure color contrast for light background cards in sections */
.page-cockfighting__light-bg {
  background-color: #0A4B2C; /* Deep Green from custom colors, for contrast on dark section */
  color: var(--page-cockfighting-text-main);
  border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__light-bg .page-cockfighting__benefit-title {
  color: var(--page-cockfighting-gold);
}

.page-cockfighting__light-bg .page-cockfighting__benefit-description {
  color: var(--page-cockfighting-text-secondary);
}