/* style/cockfighting.css */

:root {
  --page-cockfighting-main-color: #11A84E;
  --page-cockfighting-accent-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-color: #2E7A4E;
  --page-cockfighting-glow-color: #57E38D;
  --page-cockfighting-gold-color: #F2C14E;
  --page-cockfighting-divider-color: #1E3A2A;
  --page-cockfighting-deep-green: #0A4B2C;
}

.page-cockfighting {
  background-color: var(--page-cockfighting-background);
  color: var(--page-cockfighting-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px;
  text-align: center;
  overflow: hidden;
  background-color: var(--page-cockfighting-deep-green); /* Fallback for image */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
  min-height: 200px; /* Enforce min size */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image, but not covering it */
  background: rgba(8, 22, 15, 0.8); /* Dark background for text readability */
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.page-cockfighting__main-title {
  color: var(--page-cockfighting-text-main);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

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

/* General Section Styles */
.page-cockfighting__introduction-section,
.page-cockfighting__rules-section,
.page-cockfighting__promotions-section,
.page-cockfighting__technology-section,
.page-cockfighting__cta-final-section {
  padding: 60px 0;
  background-color: var(--page-cockfighting-background);
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__bet-types-section,
.page-cockfighting__strategy-section,
.page-cockfighting__registration-guide-section,
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: var(--page-cockfighting-deep-green);
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: var(--page-cockfighting-text-main);
}

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

.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  min-height: 200px; /* Enforce min size */
}

.page-cockfighting__mt-20 { margin-top: 20px; }
.page-cockfighting__mt-40 { margin-top: 40px; }
.page-cockfighting__text-center { text-align: center; }
.page-cockfighting__text-main { color: var(--page-cockfighting-text-main); }
.page-cockfighting__text-secondary { color: var(--page-cockfighting-text-secondary); }
.page-cockfighting__dark-bg { background-color: var(--page-cockfighting-deep-green); color: var(--page-cockfighting-text-main); }
.page-cockfighting__light-bg { background-color: var(--page-cockfighting-background); color: var(--page-cockfighting-text-main); }

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

.page-cockfighting__card {
  background-color: var(--page-cockfighting-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-cockfighting-text-main);
}

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

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

.page-cockfighting__card-text {
  color: var(--page-cockfighting-text-secondary);
  line-height: 1.7;
}

/* List Styles */
.page-cockfighting__list,
.page-cockfighting__steps-list,
.page-cockfighting__features-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-cockfighting__list-item {
  background-color: var(--page-cockfighting-card-bg);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  color: var(--page-cockfighting-text-secondary);
  font-size: 1.05em;
}

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

.page-cockfighting__list-item a {
  color: var(--page-cockfighting-accent-color);
  text-decoration: none;
}

.page-cockfighting__list-item a:hover {
  text-decoration: underline;
}

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

.page-cockfighting__promotion-cards .page-cockfighting__card-bg-light {
  background-color: var(--page-cockfighting-card-bg);
  color: var(--page-cockfighting-text-main);
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__promotion-cards .page-cockfighting__card-bg-light .page-cockfighting__card-title {
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__promotion-cards .page-cockfighting__card-bg-light .page-cockfighting__card-text {
  color: var(--page-cockfighting-text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-cockfighting__faq-item {
  background-color: var(--page-cockfighting-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  color: var(--page-cockfighting-text-main);
  list-style: none; /* For details summary */
}

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

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--page-cockfighting-accent-color);
}

.page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  color: var(--page-cockfighting-text-secondary);
  line-height: 1.7;
  font-size: 0.95em;
}

.page-cockfighting__faq-answer a {
  color: var(--page-cockfighting-accent-color);
  text-decoration: none;
}

.page-cockfighting__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-cockfighting__hero-content {
    margin-top: -80px;
    padding: 20px 15px;
  }
  .page-cockfighting__main-title {
    font-size: 2em;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-cockfighting__cta-buttons {
    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__bet-types-section,
  .page-cockfighting__rules-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__registration-guide-section,
  .page-cockfighting__technology-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    padding: 40px 0;
  }
  .page-cockfighting__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__text-block,
  .page-cockfighting__card-text,
  .page-cockfighting__list-item,
  .page-cockfighting__faq-answer {
    font-size: 1em;
  }
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-content {
    margin-top: -60px;
  }
  .page-cockfighting__main-title {
    font-size: 1.8em;
  }
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting__card-title {
    font-size: 1.3em;
  }
}