.page-cockfighting-rules {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: var(--background-color, #f5f5f5);
}

.page-cockfighting-rules__hero-section {
  position: relative;
  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 */
  background: #26A9E0;
  color: #ffffff;
  overflow: hidden;
}

.page-cockfighting-rules__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-cockfighting-rules__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle overlay for text readability */
}

.page-cockfighting-rules__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting-rules__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-cockfighting-rules__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting-rules__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-login {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting-rules__btn-primary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #ffffff;
}

.page-cockfighting-rules__btn-primary:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.page-cockfighting-rules__btn-login {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-cockfighting-rules__btn-login:hover {
  background-color: #d46a00;
  transform: translateY(-2px);
}

.page-cockfighting-rules__section {
  padding: 50px 0;
}

.page-cockfighting-rules__why-hm88 {
  background-color: #ffffff;
}

.page-cockfighting-rules__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-cockfighting-rules__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: justify;
}

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

.page-cockfighting-rules__feature-item {
  background-color: #f0f8ff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

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

.page-cockfighting-rules__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-cockfighting-rules__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-rules__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-cockfighting-rules__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #444444;
}

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

.page-cockfighting-rules__faq-section {
  background-color: #f0f8ff;
}

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

.page-cockfighting-rules__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-cockfighting-rules__faq-question:hover {
  background-color: #f7f7f7;
}

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

.page-cockfighting-rules__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  color: #26A9E0;
  margin-left: 15px;
}

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

.page-cockfighting-rules__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  text-align: justify;
}

.page-cockfighting-rules__faq-answer p {
  margin-bottom: 0;
}

.page-cockfighting-rules__cta-bottom {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #26A9E0, #007bff);
  color: #ffffff;
}

.page-cockfighting-rules__cta-bottom .page-cockfighting-rules__section-title {
  color: #ffffff;
  margin-bottom: 30px;
}

.page-cockfighting-rules__cta-bottom .page-cockfighting-rules__text-block {
  color: #ffffff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-cockfighting-rules__cta-bottom .page-cockfighting-rules__cta-buttons .page-cockfighting-rules__btn-primary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-cockfighting-rules__cta-bottom .page-cockfighting-rules__cta-buttons .page-cockfighting-rules__btn-primary:hover {
  background-color: #e0e0e0;
}

.page-cockfighting-rules__cta-bottom .page-cockfighting-rules__cta-buttons .page-cockfighting-rules__btn-login {
  background-color: #EA7C07;
  color: #ffffff;
  border-color: #EA7C07;
}

.page-cockfighting-rules__cta-bottom .page-cockfighting-rules__cta-buttons .page-cockfighting-rules__btn-login:hover {
  background-color: #d46a00;
}

.page-cockfighting-rules a {
  color: #26A9E0;
  text-decoration: none;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-cockfighting-rules__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-cockfighting-rules__section-title {
    font-size: 2em;
  }
  .page-cockfighting-rules__sub-title {
    font-size: 1.5em;
  }
  .page-cockfighting-rules__features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-cockfighting-rules__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-cockfighting-rules__description {
    font-size: 1em;
  }
  .page-cockfighting-rules__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-cockfighting-rules__sub-title {
    font-size: 1.3em;
  }
  .page-cockfighting-rules__section {
    padding: 30px 0;
  }
  .page-cockfighting-rules__container {
    padding: 0 15px !important;
  }
  .page-cockfighting-rules__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-login {
    padding: 12px 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile image responsiveness */
  .page-cockfighting-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting-rules__section,
  .page-cockfighting-rules__card,
  .page-cockfighting-rules__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-cockfighting-rules__hero-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
  }
  .page-cockfighting-rules__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-cockfighting-rules__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting-rules__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-cockfighting-rules__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting-rules__sub-title {
    font-size: 1.2em;
  }
  .page-cockfighting-rules__list {
    margin-left: 20px;
  }
}