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

.page-cockfighting-rules-odds {
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background-color); /* Page background from custom colors */
}

.page-cockfighting-rules-odds__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
}

.page-cockfighting-rules-odds__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-cockfighting-rules-odds__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-cockfighting-rules-odds__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-cockfighting-rules-odds__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.page-cockfighting-rules-odds__intro-text {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-cockfighting-rules-odds__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules-odds__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-cockfighting-rules-odds__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 0, 0.4);
}

.page-cockfighting-rules-odds__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-left: 20px;
}

.page-cockfighting-rules-odds__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 0, 0.4);
}

.page-cockfighting-rules-odds__section {
  padding: 60px 0;
  background-color: var(--background-color);
}

.page-cockfighting-rules-odds__section:nth-of-type(even) {
  background-color: var(--deep-green-color);
}

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

.page-cockfighting-rules-odds__container--center {
  text-align: center;
}

.page-cockfighting-rules-odds__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
}

.page-cockfighting-rules-odds__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
}

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

.page-cockfighting-rules-odds__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-cockfighting-rules-odds__list-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules-odds__list-icon {
  font-size: 1.8em;
  color: var(--glow-color);
  margin-right: 15px;
  flex-shrink: 0;
}

.page-cockfighting-rules-odds__list-content {
  flex-grow: 1;
}

.page-cockfighting-rules-odds__list-heading {
  font-size: 1.3em;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 8px;
}

.page-cockfighting-rules-odds__list-description {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.page-cockfighting-rules-odds__card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting-rules-odds__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 255, 0, 0.5);
}

.page-cockfighting-rules-odds__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Ensure minimum size */
}

.page-cockfighting-rules-odds__card-content {
  padding: 25px;
}

.page-cockfighting-rules-odds__card-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting-rules-odds__card-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-cockfighting-rules-odds__rules-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting-rules-odds__rules-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-cockfighting-rules-odds__rules-heading {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting-rules-odds__rules-description {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.page-cockfighting-rules-odds__glossary-item {
  background-color: var(--deep-green-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules-odds__glossary-term {
  font-size: 1.3em;
  color: var(--gold-color);
  margin-top: 0;
  margin-bottom: 10px;
  text-shadow: 0 0 5px rgba(255, 255, 0, 0.3);
}

.page-cockfighting-rules-odds__glossary-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-cockfighting-rules-odds__formula {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--glow-color);
  text-align: center;
  margin: 30px 0;
}

.page-cockfighting-rules-odds__faq-list {
  margin-top: 30px;
}

.page-cockfighting-rules-odds__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules-odds__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  color: var(--text-main);
  font-weight: 600;
  list-style: none;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-cockfighting-rules-odds__faq-question::-webkit-details-marker {
  display: none;
}

.page-cockfighting-rules-odds__faq-question:hover {
  background-color: var(--deep-green-color);
}

.page-cockfighting-rules-odds__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting-rules-odds__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color);
}

.page-cockfighting-rules-odds__faq-item[open] .page-cockfighting-rules-odds__faq-toggle {
  content: '−';
}

.page-cockfighting-rules-odds__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-cockfighting-rules-odds__cta-section {
  padding: 80px 0;
  background: var(--deep-green-color);
  text-align: center;
}

.page-cockfighting-rules-odds__cta-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
}

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

.page-cockfighting-rules-odds__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-cockfighting-rules-odds__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }

  .page-cockfighting-rules-odds__section-title {
    font-size: 2.2em;
  }

  .page-cockfighting-rules-odds__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules-odds__hero-section {
    padding: 10px 15px 40px;
  }

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

  .page-cockfighting-rules-odds__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Force smaller H1 on mobile */
    line-height: 1.3;
  }

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

  .page-cockfighting-rules-odds__cta-button {
    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-rules-odds__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }

  .page-cockfighting-rules-odds__button-group {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-cockfighting-rules-odds__section {
    padding: 40px 0;
  }

  .page-cockfighting-rules-odds__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-cockfighting-rules-odds__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-cockfighting-rules-odds__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-cockfighting-rules-odds__paragraph {
    font-size: 0.95em;
  }

  .page-cockfighting-rules-odds__list-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }

  .page-cockfighting-rules-odds__list-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .page-cockfighting-rules-odds__grid-cards, .page-cockfighting-rules-odds__odds-grid, .page-cockfighting-rules-odds__grid-tips {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting-rules-odds__card-image {
    height: 200px; /* Adjust card image height for mobile */
    min-height: 200px;
  }

  .page-cockfighting-rules-odds__card-title {
    font-size: 1.3em;
  }

  .page-cockfighting-rules-odds__rules-item {
    padding: 20px;
  }

  .page-cockfighting-rules-odds__rules-heading {
    font-size: 1.2em;
  }

  .page-cockfighting-rules-odds__glossary {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-cockfighting-rules-odds__glossary-term {
    font-size: 1.2em;
  }

  .page-cockfighting-rules-odds__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

  .page-cockfighting-rules-odds__cta-title {
    font-size: 1.8em;
  }

  .page-cockfighting-rules-odds__cta-description {
    font-size: 1em;
  }

  /* Force responsive for all images and containers */
  .page-cockfighting-rules-odds img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting-rules-odds__section,
  .page-cockfighting-rules-odds__card,
  .page-cockfighting-rules-odds__container,
  .page-cockfighting-rules-odds__hero-section,
  .page-cockfighting-rules-odds__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-cockfighting-rules-odds__video-section {
    padding-top: 10px !important;
  }
  
  .page-cockfighting-rules-odds__video-container,
  .page-cockfighting-rules-odds__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting-rules-odds video,
  .page-cockfighting-rules-odds__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}