/* style/cockfighting-rules-odds.css */

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

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

.page-cockfighting-rules-odds__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  box-sizing: border-box;
  overflow: hidden;
}

.page-cockfighting-rules-odds__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-cockfighting-rules-odds__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-cockfighting-rules-odds__main-title {
  color: var(--page-cockfighting-rules-odds-text-main);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

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

.page-cockfighting-rules-odds__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--page-cockfighting-rules-odds-button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-cockfighting-rules-odds__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules-odds__section {
  padding: 40px 20px;
  margin-bottom: 20px;
  background-color: var(--page-cockfighting-rules-odds-card-bg);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-rules-odds__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-cockfighting-rules-odds__heading {
  color: var(--page-cockfighting-rules-odds-text-main);
  font-size: 2.2em;
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 2px solid var(--page-cockfighting-rules-odds-divider);
  padding-bottom: 15px;
}

.page-cockfighting-rules-odds__sub-heading {
  color: var(--page-cockfighting-rules-odds-secondary);
  font-size: 1.6em;
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 4px solid var(--page-cockfighting-rules-odds-gold);
  padding-left: 10px;
}

.page-cockfighting-rules-odds__text-block {
  color: var(--page-cockfighting-rules-odds-text-secondary);
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-cockfighting-rules-odds__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--page-cockfighting-rules-odds-text-secondary);
}

.page-cockfighting-rules-odds__list-item {
  margin-bottom: 10px;
}

.page-cockfighting-rules-odds__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block; /* Ensure it behaves as a block element */
}

.page-cockfighting-rules-odds__image--center {
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting-rules-odds__dark-section {
  background-color: var(--page-cockfighting-rules-odds-deep-green);
  color: var(--page-cockfighting-rules-odds-text-main);
}

.page-cockfighting-rules-odds__light-bg {
  background-color: var(--page-cockfighting-rules-odds-background);
  color: var(--page-cockfighting-rules-odds-text-main);
}

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

.page-cockfighting-rules-odds__faq-item {
  background: var(--page-cockfighting-rules-odds-card-bg);
  border: 1px solid var(--page-cockfighting-rules-odds-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting-rules-odds__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--page-cockfighting-rules-odds-deep-green);
  color: var(--page-cockfighting-rules-odds-text-main);
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
}

.page-cockfighting-rules-odds__faq-question:hover {
  background: var(--page-cockfighting-rules-odds-primary);
}

.page-cockfighting-rules-odds__faq-qtext {
  flex-grow: 1;
  font-size: 1.1em;
}

.page-cockfighting-rules-odds__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  width: 20px;
  text-align: center;
}

.page-cockfighting-rules-odds__faq-answer {
  padding: 0 25px;
  color: var(--page-cockfighting-rules-odds-text-secondary);
  max-height: 0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  overflow: hidden;
}

.page-cockfighting-rules-odds__faq-item.active .page-cockfighting-rules-odds__faq-answer {
  max-height: 2000px; /* Large enough to show all content */
  padding: 15px 25px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

/* For <details> tag native behavior */
.page-cockfighting-rules-odds__faq-item[open] .page-cockfighting-rules-odds__faq-answer {
  max-height: none; /* Let content dictate height */
  padding: 15px 25px;
}

.page-cockfighting-rules-odds__faq-item details > summary {
  list-style: none;
}

.page-cockfighting-rules-odds__faq-item details > summary::-webkit-details-marker {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting-rules-odds__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-cockfighting-rules-odds__heading {
    font-size: 2em;
  }
  .page-cockfighting-rules-odds__sub-heading {
    font-size: 1.4em;
  }
}

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

  .page-cockfighting-rules-odds__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-cockfighting-rules-odds__hero-content {
    padding: 15px;
  }

  .page-cockfighting-rules-odds__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-cockfighting-rules-odds__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-cockfighting-rules-odds__cta-button {
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-cockfighting-rules-odds__section,
  .page-cockfighting-rules-odds__container,
  .page-cockfighting-rules-odds__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting-rules-odds__heading {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-cockfighting-rules-odds__sub-heading {
    font-size: 1.2em;
    margin-top: 25px;
  }

  .page-cockfighting-rules-odds__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-top: 20px;
  }

  .page-cockfighting-rules-odds__faq-question {
    padding: 15px 20px;
  }

  .page-cockfighting-rules-odds__faq-answer {
    padding: 0 20px;
  }
  
  .page-cockfighting-rules-odds__faq-item.active .page-cockfighting-rules-odds__faq-answer {
    padding: 10px 20px;
  }
}