/* style/cockfighting.css */

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

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

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

.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__dark-bg {
  background-color: var(--color-background);
  color: var(--color-text-main);
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-cockfighting__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--color-gold);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: var(--color-text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__subsection-title {
  font-size: 2em;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--color-primary);
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image for text readability */
}

.page-cockfighting__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5em, 5vw, 4.5em); /* Responsive H1 font size */
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 20px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  color: var(--color-text-main);
  margin-bottom: 30px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.page-cockfighting__cta-button,
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting a[class*="button"],
.page-cockfighting a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: var(--color-button-gradient);
  color: #ffffff;
  border: none;
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 25px var(--color-glow);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Cards */
.page-cockfighting__card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
}

.page-cockfighting__card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--color-gold);
  margin-bottom: 15px;
  text-align: center;
}

.page-cockfighting__card-text {
  font-size: 1em;
  color: var(--color-text-secondary);
  text-align: center;
}

.page-cockfighting__card-button {
  margin-top: 20px;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  background-color: var(--color-background);
}

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

.page-cockfighting__feature-item {
  text-align: center;
}

.page-cockfighting__feature-icon {
  width: 100%;
  max-width: 400px; /* Ensure images are large enough */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-cockfighting__feature-title {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.page-cockfighting__feature-text {
  color: var(--color-text-secondary);
}

/* Types Section */
.page-cockfighting__types-section {
  background-color: var(--color-deep-green);
}

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

/* Guide Section */
.page-cockfighting__guide-section {
  background-color: var(--color-background);
}

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

.page-cockfighting__step-item {
  text-align: center;
}

.page-cockfighting__step-title {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.page-cockfighting__step-text {
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.page-cockfighting__step-button {
  width: 100%;
  max-width: 250px; /* Constrain button width */
  margin: 0 auto;
}

/* Strategy Section */
.page-cockfighting__strategy-section {
  background-color: var(--color-deep-green);
}

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

.page-cockfighting__strategy-item {
  text-align: center;
}

.page-cockfighting__strategy-title {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.page-cockfighting__strategy-text {
  color: var(--color-text-secondary);
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  background-color: var(--color-background);
}

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

.page-cockfighting__promo-card .page-cockfighting__card-image {
  max-height: 200px; /* Adjust height for promo cards */
}

/* Support Section */
.page-cockfighting__support-section {
  background-color: var(--color-deep-green);
}

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

.page-cockfighting__contact-item {
  text-align: center;
}

.page-cockfighting__contact-title {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.page-cockfighting__contact-text {
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.page-cockfighting__contact-button {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: var(--color-background);
}

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

.page-cockfighting__faq-item {
  margin-bottom: 20px;
  padding: 20px 25px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 5px 0;
  font-size: 1.25em;
  font-weight: bold;
  color: var(--color-gold);
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none; /* Hide for Webkit browsers */
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  padding-top: 15px;
  font-size: 1em;
  color: var(--color-text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--color-divider);
  margin-top: 15px;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
  padding-bottom: 80px;
  background-color: var(--color-deep-green);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2.2em;
  }

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

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

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-content {
    position: static;
    transform: none;
    padding: 20px;
    margin-top: -100px; /* Pull content up over the image a bit */
    background: rgba(8, 22, 15, 0.85); /* Semi-transparent background for readability */
    border-radius: 10px;
  }

  .page-cockfighting__hero-image {
    filter: brightness(0.5); /* Darken image more on mobile */
  }

  .page-cockfighting__main-title {
    font-size: 2.5em;
    margin-bottom: 10px;
  }

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

  .page-cockfighting__section {
    padding: 40px 0;
  }

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

  .page-cockfighting__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-cockfighting__subsection-title {
    font-size: 1.5em;
  }

  /* Mobile image responsiveness */
  .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-image-wrapper,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-cockfighting__cta-button,
  .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;
    margin-bottom: 10px; /* Add spacing between stacked 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-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }

  .page-cockfighting__feature-grid,
  .page-cockfighting__type-cards,
  .page-cockfighting__steps-grid,
  .page-cockfighting__strategy-grid,
  .page-cockfighting__promo-grid,
  .page-cockfighting__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

  .page-cockfighting__faq-item summary {
    font-size: 1.1em;
  }

  .page-cockfighting__faq-answer {
    font-size: 0.95em;
  }

  .page-cockfighting__step-button,
  .page-cockfighting__contact-button {
    max-width: 100%;
  }
}

/* Ensure content area images are not too small */
.page-cockfighting__feature-icon,
.page-cockfighting__card-image {
  min-width: 200px;
  min-height: 200px;
}

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

/* Specific filter for hero image for readability */
.page-cockfighting__hero-image {
  filter: brightness(0.7); /* Darken image for text readability */
}

@media (max-width: 768px) {
  .page-cockfighting__hero-image {
    filter: brightness(0.5); /* Darken image more on mobile */
  }
}