.page-cockfighting-betting-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background-color, #08160F); /* From shared.css */
}

.page-cockfighting-betting-rules__hero-section {
  position: relative;
  width: 100%;
  padding: 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  background-color: var(--deep-green-color, #0A4B2C);
}

.page-cockfighting-betting-rules__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-cockfighting-betting-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-cockfighting-betting-rules__hero-content {
  max-width: 900px;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-cockfighting-betting-rules__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.page-cockfighting-betting-rules__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
}

.page-cockfighting-betting-rules__section {
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-cockfighting-betting-rules__dark-bg {
  background-color: var(--background-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
}

.page-cockfighting-betting-rules__card-bg {
  background-color: var(--card-bg-color, #11271B);
  color: var(--text-main-color, #F2FFF6);
}

.page-cockfighting-betting-rules__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-cockfighting-betting-rules__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  color: var(--gold-color, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting-betting-rules__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--glow-color, #57E38D), transparent);
  border-radius: 2px;
}

.page-cockfighting-betting-rules__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary-color, #A7D9B8);
  text-align: justify;
}

.page-cockfighting-betting-rules__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-cockfighting-betting-rules__card {
  background-color: var(--deep-green-color, #0A4B2C);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color, #2E7A4E);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-cockfighting-betting-rules__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 15px;
}

.page-cockfighting-betting-rules__card-text {
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
  line-height: 1.7;
}

.page-cockfighting-betting-rules__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 40px auto;
  max-width: 100%; /* Ensure it doesn't overflow */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

.page-cockfighting-betting-rules__image-center {
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

.page-cockfighting-betting-rules__ordered-list,
.page-cockfighting-betting-rules__unordered-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-cockfighting-betting-rules__list-item {
  background-color: var(--deep-green-color, #0A4B2C);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-betting-rules__list-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 10px;
}

.page-cockfighting-betting-rules__list-text {
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-cockfighting-betting-rules__btn-primary,
.page-cockfighting-betting-rules__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-cockfighting-betting-rules__btn-primary {
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
  color: #ffffff;
  border: 2px solid transparent;
  margin-top: 20px;
}

.page-cockfighting-betting-rules__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(var(--glow-color-rgb, 87, 227, 141), 0.4);
}

.page-cockfighting-betting-rules__btn-secondary {
  background: transparent;
  color: var(--glow-color, #57E38D);
  border: 2px solid var(--glow-color, #57E38D);
  margin-top: 15px;
}

.page-cockfighting-betting-rules__btn-secondary:hover {
  background: var(--glow-color, #57E38D);
  color: var(--background-color, #08160F);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(var(--glow-color-rgb, 87, 227, 141), 0.4);
}

.page-cockfighting-betting-rules__faq-list {
  margin-top: 40px;
}

.page-cockfighting-betting-rules__faq-item {
  background-color: var(--deep-green-color, #0A4B2C);
  border: 1px solid var(--divider-color, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting-betting-rules__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main-color, #F2FFF6);
  background-color: var(--card-bg-color, #11271B);
  transition: background-color 0.3s ease;
}

.page-cockfighting-betting-rules__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-cockfighting-betting-rules__faq-item summary:hover {
  background-color: var(--deep-green-color, #0A4B2C);
}

.page-cockfighting-betting-rules__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting-betting-rules__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color, #F2C14E);
}

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

.page-cockfighting-betting-rules__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
  line-height: 1.7;
  background-color: var(--deep-green-color, #0A4B2C);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .page-cockfighting-betting-rules {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-cockfighting-betting-rules__hero-section {
    padding: 15px;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-cockfighting-betting-rules__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }

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

  .page-cockfighting-betting-rules__section {
    padding: 30px 15px;
  }

  .page-cockfighting-betting-rules__container {
    padding: 0;
  }

  .page-cockfighting-betting-rules__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-cockfighting-betting-rules__text-block {
    font-size: 0.95em;
  }

  .page-cockfighting-betting-rules__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting-betting-rules__card {
    padding: 20px;
  }

  .page-cockfighting-betting-rules__card-title {
    font-size: 1.3em;
  }

  .page-cockfighting-betting-rules__list-item {
    padding: 15px;
  }

  .page-cockfighting-betting-rules__list-title {
    font-size: 1.2em;
  }

  .page-cockfighting-betting-rules__btn-primary,
  .page-cockfighting-betting-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-cockfighting-betting-rules__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-cockfighting-betting-rules__faq-answer {
    padding: 10px 20px 15px;
  }

  /* Mobile image and video overflow prevention */
  .page-cockfighting-betting-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce min size even on mobile */
    min-height: 200px !important; /* Enforce min size even on mobile */
  }

  .page-cockfighting-betting-rules video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting-betting-rules__hero-image-wrapper,
  .page-cockfighting-betting-rules__section,
  .page-cockfighting-betting-rules__card,
  .page-cockfighting-betting-rules__container,
  .page-cockfighting-betting-rules__faq-list,
  .page-cockfighting-betting-rules__faq-item,
  .page-cockfighting-betting-rules__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-cockfighting-betting-rules__btn-container {
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }

  /* Specific overrides for padding on full-width sections that might have been reset */
  .page-cockfighting-betting-rules__introduction-section,
  .page-cockfighting-betting-rules__bet-types-section,
  .page-cockfighting-betting-rules__how-to-bet-section,
  .page-cockfighting-betting-rules__general-rules-section,
  .page-cockfighting-betting-rules__tips-strategies-section,
  .page-cockfighting-betting-rules__safety-section,
  .page-cockfighting-betting-rules__faq-section,
  .page-cockfighting-betting-rules__conclusion-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}