.page-cockfighting-rules-betting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF;
}

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

.page-cockfighting-rules-betting__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background-color: #26A9E0;
  overflow: hidden;
}

.page-cockfighting-rules-betting__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6;
}

.page-cockfighting-rules-betting__hero-section .page-cockfighting-rules-betting__container {
  position: relative;
  z-index: 2;
}

.page-cockfighting-rules-betting__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-rules-betting__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

.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;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-cockfighting-rules-betting__btn-primary {
  background-color: #EA7C07; /* Login button color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-cockfighting-rules-betting__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-cockfighting-rules-betting__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-cockfighting-rules-betting__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-cockfighting-rules-betting__content-area {
  padding: 60px 0;
}

.page-cockfighting-rules-betting__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-cockfighting-rules-betting__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: justify;
}

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

.page-cockfighting-rules-betting__grid-2-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-cockfighting-rules-betting__card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-cockfighting-rules-betting__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min-size */
  min-height: 200px; /* Enforce min-size */
}

.page-cockfighting-rules-betting__card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-cockfighting-rules-betting__card-description {
  font-size: 1em;
  text-align: justify;
}

.page-cockfighting-rules-betting__image-text-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
}

.page-cockfighting-rules-betting__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-cockfighting-rules-betting__image-inline {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min-size */
  min-height: 200px; /* Enforce min-size */
}

.page-cockfighting-rules-betting__text-content {
  flex: 2;
  min-width: 300px;
}

.page-cockfighting-rules-betting__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-cockfighting-rules-betting__list {
  list-style: none;
  padding: 0;
  margin-bottom: 50px;
}

.page-cockfighting-rules-betting__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #333333;
}

.page-cockfighting-rules-betting__list-item strong {
  color: #EA7C07;
}

.page-cockfighting-rules-betting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 60px;
}

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

.page-cockfighting-rules-betting__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting-rules-betting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-cockfighting-rules-betting__faq-question:hover {
  background-color: #f0f0f0;
}

.page-cockfighting-rules-betting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-cockfighting-rules-betting__faq-item.active .page-cockfighting-rules-betting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting-rules-betting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #333333;
}

.page-cockfighting-rules-betting__faq-item.active .page-cockfighting-rules-betting__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting-rules-betting__hero-title {
    font-size: 2.8em;
  }

  .page-cockfighting-rules-betting__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules-betting__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }

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

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

  .page-cockfighting-rules-betting__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting-rules-betting__btn-primary,
  .page-cockfighting-rules-betting__btn-secondary {
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto;
  }
  
  .page-cockfighting-rules-betting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-cockfighting-rules-betting__grid-3-columns,
  .page-cockfighting-rules-betting__grid-2-columns {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-cockfighting-rules-betting__image-text-layout {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }

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

  .page-cockfighting-rules-betting__faq-list {
    padding: 0 15px;
  }
  
  /* Mobile image responsiveness */
  .page-cockfighting-rules-betting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  .page-cockfighting-rules-betting__card-image,
  .page-cockfighting-rules-betting__image-inline {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }
  
  .page-cockfighting-rules-betting__hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  
  /* Ensure all containers holding images/buttons are responsive */
  .page-cockfighting-rules-betting__section,
  .page-cockfighting-rules-betting__card,
  .page-cockfighting-rules-betting__container,
  .page-cockfighting-rules-betting__image-wrapper,
  .page-cockfighting-rules-betting__text-content,
  .page-cockfighting-rules-betting__hero-buttons,
  .page-cockfighting-rules-betting__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-cockfighting-rules-betting__hero-title {
    font-size: 1.8em;
  }

  .page-cockfighting-rules-betting__section-title {
    font-size: 1.5em;
  }

  .page-cockfighting-rules-betting__sub-title {
    font-size: 1.5em;
  }

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