.page-cockfighting-rules-betting {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg: #17191F;
  --background-color: #0D0E12;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;

  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Light text for dark background */
  background-color: var(--background-color); /* Dark background */
}

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

.page-cockfighting-rules-betting__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-cockfighting-rules-betting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-cockfighting-rules-betting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: 30px;
  padding: 0 20px;
}

.page-cockfighting-rules-betting__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em); /* Responsive H1 font size */
  color: var(--secondary-color);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(255,165,58,0.5);
}

.page-cockfighting-rules-betting__description {
  font-size: 1.1em;
  color: var(--text-main-color);
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.page-cockfighting-rules-betting__btn-primary,
.page-cockfighting-rules-betting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.page-cockfighting-rules-betting__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255,140,26,0.4);
}

.page-cockfighting-rules-betting__btn-primary:hover {
  background: linear-gradient(180deg, var(--deep-orange-color) 0%, var(--secondary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,140,26,0.6);
}

.page-cockfighting-rules-betting__btn-secondary {
  background: var(--card-bg);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-cockfighting-rules-betting__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--background-color);
  transform: translateY(-2px);
}

.page-cockfighting-rules-betting__section {
  padding: 40px 20px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.page-cockfighting-rules-betting__content-area {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--background-color);
}

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

.page-cockfighting-rules-betting__section-title {
  font-size: 2.2em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-cockfighting-rules-betting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.page-cockfighting-rules-betting__section-title--light {
  color: var(--text-main-color);
}

.page-cockfighting-rules-betting__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  text-align: justify;
  font-size: 1.05em;
  line-height: 1.7;
  opacity: 0.9;
}

.page-cockfighting-rules-betting__text-block a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-cockfighting-rules-betting__text-block a:hover {
  text-decoration: underline;
}

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

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

.page-cockfighting-rules-betting__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

.page-cockfighting-rules-betting__card-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-cockfighting-rules-betting__card-text {
  font-size: 0.95em;
  color: var(--text-main-color);
  opacity: 0.8;
  flex-grow: 1;
}

.page-cockfighting-rules-betting__info-card {
  background-color: var(--card-bg);
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-cockfighting-rules-betting__info-card-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-cockfighting-rules-betting__info-card-text {
  font-size: 1em;
  color: var(--text-main-color);
  opacity: 0.85;
}

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

.page-cockfighting-rules-betting__step-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-cockfighting-rules-betting__step-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-cockfighting-rules-betting__step-text {
  font-size: 0.95em;
  color: var(--text-main-color);
  opacity: 0.8;
}

.page-cockfighting-rules-betting__list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
}

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

.page-cockfighting-rules-betting__list-item-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-cockfighting-rules-betting__list-item-text {
  font-size: 1em;
  color: var(--text-main-color);
  opacity: 0.85;
}

.page-cockfighting-rules-betting__faq-section {
  padding-bottom: 60px;
}

.page-cockfighting-rules-betting__faq-list {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
}

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

.page-cockfighting-rules-betting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  color: var(--secondary-color);
  cursor: pointer;
  background-color: rgba(255,140,26,0.1);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-cockfighting-rules-betting__faq-question:hover {
  background-color: rgba(255,140,26,0.2);
}

.page-cockfighting-rules-betting__faq-item[open] .page-cockfighting-rules-betting__faq-question {
  border-bottom: 1px solid var(--primary-color);
}

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

.page-cockfighting-rules-betting__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  margin-left: 15px;
}

.page-cockfighting-rules-betting__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-main-color);
  opacity: 0.85;
  background-color: var(--card-bg);
  line-height: 1.6;
}

.page-cockfighting-rules-betting__conclusion {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

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

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

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

  .page-cockfighting-rules-betting__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-cockfighting-rules-betting__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

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

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

  .page-cockfighting-rules-betting__section {
    padding: 30px 15px;
  }

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

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

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

  .page-cockfighting-rules-betting__card-grid,
  .page-cockfighting-rules-betting__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting-rules-betting__card,
  .page-cockfighting-rules-betting__step-card,
  .page-cockfighting-rules-betting__info-card,
  .page-cockfighting-rules-betting__list-item,
  .page-cockfighting-rules-betting__faq-item {
    padding: 20px;
  }

  .page-cockfighting-rules-betting__card-image,
  .page-cockfighting-rules-betting__step-image {
    height: 150px;
  }

  .page-cockfighting-rules-betting__card-title,
  .page-cockfighting-rules-betting__step-title,
  .page-cockfighting-rules-betting__info-card-title,
  .page-cockfighting-rules-betting__list-item-title {
    font-size: 1.3em;
  }

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

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

  /* Mobile image responsiveness */
  .page-cockfighting-rules-betting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting-rules-betting__hero-image-wrapper,
  .page-cockfighting-rules-betting__card-grid,
  .page-cockfighting-rules-betting__steps-grid,
  .page-cockfighting-rules-betting__faq-list,
  .page-cockfighting-rules-betting__conclusion {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  .page-cockfighting-rules-betting__faq-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }
}