/* style/cockfighting.css */

/* Custom Colors from provided palette */
: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;

  /* Default text color for light backgrounds */
  --page-cockfighting-default-text-color: #333333;
  /* Default text color for dark backgrounds */
  --page-cockfighting-dark-text-color: #ffffff;
}

/* Base styles for the page content wrapper */
.page-cockfighting {
  background-color: var(--page-cockfighting-background); /* Dark background from palette */
  color: var(--page-cockfighting-text-main); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Section Spacing */
.page-cockfighting__section-spacing {
  padding: 80px 0;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--page-cockfighting-deep-green); /* Slightly different dark background for hero */
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure image is not too small */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 40px; /* Space between image and text */
  padding: 0 20px;
  box-sizing: border-box;
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--page-cockfighting-gold);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: var(--page-cockfighting-text-secondary);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

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

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-cockfighting__btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

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

/* Section Titles and Text */
.page-cockfighting__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--page-cockfighting-gold);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-cockfighting__section-title--light {
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--page-cockfighting-text-secondary);
  text-align: justify;
}

.page-cockfighting__text-block--light {
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__highlight {
  color: var(--page-cockfighting-gold);
  font-weight: 600;
}

/* Dark Section styling */
.page-cockfighting__dark-section {
  background-color: var(--page-cockfighting-card-bg); /* Darker background for contrast */
  color: var(--page-cockfighting-text-main);
}

/* Image styles within content */
.page-cockfighting__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__image-spacing-top {
  margin-top: 40px;
}

/* Grid Layout for rules section */
.page-cockfighting__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background-color: var(--page-cockfighting-deep-green); /* Card BG from palette */
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__card--dark {
  background-color: var(--page-cockfighting-deep-green);
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--page-cockfighting-gold);
  margin-bottom: 20px;
}

.page-cockfighting__list {
  list-style: disc;
  padding-left: 20px;
  font-size: 1rem;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__list--light {
  color: var(--page-cockfighting-text-main);
}

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

.page-cockfighting__list strong {
  color: var(--page-cockfighting-gold);
}

/* Feature Grid for advantages section */
.page-cockfighting__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-cockfighting__feature-card {
  background-color: var(--page-cockfighting-deep-green);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  color: var(--page-cockfighting-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__feature-icon {
  width: 100%; /* Ensure feature image takes full width of card */
  max-width: 200px; /* Max width for icon-like images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-cockfighting__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--page-cockfighting-gold);
  margin-bottom: 15px;
}

.page-cockfighting__feature-description {
  font-size: 1rem;
  color: var(--page-cockfighting-text-secondary);
}

/* Numbered List for guide section */
.page-cockfighting__numbered-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting__numbered-list li {
  background-color: var(--page-cockfighting-deep-green);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 10px;
  padding: 20px 25px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--page-cockfighting-text-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-left: 60px; /* Space for step number */
}

.page-cockfighting__numbered-list li strong {
  color: var(--page-cockfighting-gold);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 5px;
}

.page-cockfighting__numbered-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--page-cockfighting-primary-color);
  color: var(--page-cockfighting-dark-text-color);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.page-cockfighting__numbered-list--light {
  counter-reset: step-counter;
}

.page-cockfighting__link-inline {
  color: var(--page-cockfighting-secondary-color);
  text-decoration: underline;
}

.page-cockfighting__link-inline:hover {
  color: var(--page-cockfighting-gold);
}


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

.page-cockfighting__faq-item {
  background-color: var(--page-cockfighting-deep-green);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--page-cockfighting-gold);
  background-color: var(--page-cockfighting-deep-green);
  border-bottom: 1px solid transparent; /* No border initially */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom: 1px solid var(--page-cockfighting-divider); /* Border when open */
}

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

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

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

.page-cockfighting__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-cockfighting-secondary-color);
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1rem;
  color: var(--page-cockfighting-text-secondary);
}

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


/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

  .page-cockfighting__section-title {
    font-size: 2rem;
  }
}

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

  .page-cockfighting__section-spacing {
    padding: 60px 0;
  }

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

  .page-cockfighting__hero-content {
    margin-top: 30px;
  }

  .page-cockfighting__main-title {
    font-size: 2rem !important; /* Force smaller H1 on mobile */
    margin-bottom: 15px;
  }

  .page-cockfighting__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  /* Buttons */
  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .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__btn-large {
    padding: 15px 25px;
    font-size: 1.1rem;
  }

  /* Section titles and text */
  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-cockfighting__text-block {
    font-size: 1rem;
  }

  /* Images responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__container,
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__feature-card,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Grid layout adjustments */
  .page-cockfighting__grid-layout,
  .page-cockfighting__feature-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  /* Numbered list adjustments */
  .page-cockfighting__numbered-list li {
    padding: 15px 15px 15px 50px;
    font-size: 1rem;
  }

  .page-cockfighting__numbered-list li strong {
    font-size: 1.1rem;
  }

  .page-cockfighting__numbered-list li::before {
    width: 30px;
    height: 30px;
    font-size: 1rem;
    left: 15px;
  }

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

  .page-cockfighting__faq-toggle {
    font-size: 1.5rem;
  }

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

/* Ensure content area images are not smaller than 200px */
.page-cockfighting img:not(.page-cockfighting__feature-icon) {
  min-width: 200px;
  min-height: 200px;
}
.page-cockfighting__feature-icon {
  min-width: 200px; /* Even feature icons need to be >= 200px */
  min-height: 200px;
}

/* No CSS filter for images */
.page-cockfighting img {
  filter: none;
}