/* style/cockfighting-betting-rules.css */

/* Biến CSS */
:root {
  --page-primary-color: #1A202C;
  --page-accent-color: #FFD700;
  --page-text-light: #ffffff;
  --page-text-dark: #333333;
  --page-background-dark: #121212; /* Từ shared.css body background */
  --page-background-light: #f8f9fa;
}

.page-cockfighting-betting-rules {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-text-light); /* Mặc định chữ sáng trên nền tối của body */
  background-color: var(--page-background-dark);
}

.page-cockfighting-betting-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Đảm bảo không bị header che */
  background: var(--page-primary-color);
  color: var(--page-text-light);
  overflow: hidden;
}

.page-cockfighting-betting-rules__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
  padding: 20px;
}

.page-cockfighting-betting-rules__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--page-accent-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting-betting-rules__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--page-text-light);
}

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

.page-cockfighting-betting-rules__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Tạo hiệu ứng nền mờ */
  filter: grayscale(50%); /* Làm mờ màu sắc để nổi bật text */
}

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

.page-cockfighting-betting-rules__dark-bg {
  background-color: var(--page-primary-color);
  color: var(--page-text-light);
}

.page-cockfighting-betting-rules__light-bg {
  background-color: var(--page-background-light);
  color: var(--page-text-dark);
}

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

.page-cockfighting-betting-rules__section-title {
  font-size: 2.2em;
  color: var(--page-accent-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

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

.page-cockfighting-betting-rules__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-cockfighting-betting-rules__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-cockfighting-betting-rules__btn-primary {
  background-color: var(--page-accent-color);
  color: var(--page-primary-color);
  border: 2px solid var(--page-accent-color);
}

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

.page-cockfighting-betting-rules__btn-secondary {
  background-color: transparent;
  color: var(--page-accent-color);
  border: 2px solid var(--page-accent-color);
  margin-left: 15px;
}

.page-cockfighting-betting-rules__btn-secondary:hover {
  background-color: var(--page-accent-color);
  color: var(--page-primary-color);
  transform: translateY(-2px);
}

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

.page-cockfighting-betting-rules__card {
  background-color: var(--page-text-light);
  color: var(--page-text-dark);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-cockfighting-betting-rules__card:hover {
  transform: translateY(-5px);
}

.page-cockfighting-betting-rules__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-cockfighting-betting-rules__card-title {
  font-size: 1.5em;
  color: var(--page-primary-color);
  margin-bottom: 15px;
}

.page-cockfighting-betting-rules__card-text {
  font-size: 1em;
  color: var(--page-text-dark);
}

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

.page-cockfighting-betting-rules__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--page-accent-color);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 5px;
}

.page-cockfighting-betting-rules__list-item:last-child {
  margin-bottom: 0;
}

.page-cockfighting-betting-rules__list-title {
  font-size: 1.3em;
  color: var(--page-accent-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting-betting-rules__list-text {
  font-size: 1em;
  color: var(--page-text-light);
}

.page-cockfighting-betting-rules__button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-cockfighting-betting-rules__grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-cockfighting-betting-rules__content-block {
  color: var(--page-text-light);
}

.page-cockfighting-betting-rules__sub-title {
  font-size: 1.6em;
  color: var(--page-accent-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-cockfighting-betting-rules__image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting-betting-rules__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

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

.page-cockfighting-betting-rules__faq-item {
  background-color: var(--page-text-light);
  color: var(--page-text-dark);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-cockfighting-betting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--page-text-light);
  color: var(--page-primary-color);
  border-bottom: 1px solid #eee;
}

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

.page-cockfighting-betting-rules__faq-title {
  margin: 0;
  color: var(--page-primary-color);
}

.page-cockfighting-betting-rules__faq-toggle {
  font-size: 1.5em;
  color: var(--page-accent-color);
  transition: transform 0.3s ease;
}

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

.page-cockfighting-betting-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #fdfdfd;
  color: var(--page-text-dark);
}

.page-cockfighting-betting-rules__faq-item.active .page-cockfighting-betting-rules__faq-answer {
  max-height: 1000px !important; /* Đủ lớn để chứa mọi nội dung */
  padding: 15px 20px;
}

.page-cockfighting-betting-rules__center-text {
  text-align: center;
}

.page-cockfighting-betting-rules__large-button {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-cockfighting-betting-rules__hero-title {
    font-size: 2.2em;
  }
  .page-cockfighting-betting-rules__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting-betting-rules__grid-2-cols {
    grid-template-columns: 1fr;
  }
  .page-cockfighting-betting-rules__image-container {
    order: -1; /* Đẩy ảnh lên đầu trên mobile */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-betting-rules {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting-betting-rules__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-cockfighting-betting-rules__hero-title {
    font-size: 1.8em;
  }
  .page-cockfighting-betting-rules__hero-description {
    font-size: 1em;
  }
  .page-cockfighting-betting-rules__section {
    padding: 50px 15px;
  }
  .page-cockfighting-betting-rules__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }
  .page-cockfighting-betting-rules__paragraph {
    font-size: 0.95em;
  }
  .page-cockfighting-betting-rules__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-betting-rules__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-cockfighting-betting-rules__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting-betting-rules__card-grid {
    gap: 20px;
  }
  .page-cockfighting-betting-rules__card {
    padding: 20px;
  }
  .page-cockfighting-betting-rules__card-title {
    font-size: 1.3em;
  }
  .page-cockfighting-betting-rules__list-title {
    font-size: 1.1em;
  }
  .page-cockfighting-betting-rules__sub-title {
    font-size: 1.4em;
  }
  .page-cockfighting-betting-rules__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-cockfighting-betting-rules__faq-answer {
    padding: 0 15px;
  }
  .page-cockfighting-betting-rules__faq-item.active .page-cockfighting-betting-rules__faq-answer {
    padding: 15px 15px;
  }

  /* Mobile image responsiveness */
  .page-cockfighting-betting-rules img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting-betting-rules__hero-image-wrapper,
  .page-cockfighting-betting-rules__image-container,
  .page-cockfighting-betting-rules__card-image,
  .page-cockfighting-betting-rules__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__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .page-cockfighting-betting-rules__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-cockfighting-betting-rules__section,
  .page-cockfighting-betting-rules__card,
  .page-cockfighting-betting-rules__content-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ensure images within content area are not smaller than 200px */
.page-cockfighting-betting-rules img:not(.page-cockfighting-betting-rules__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Specific override for hero image if needed, but it's already full width */
.page-cockfighting-betting-rules__hero-image {
  min-width: unset;
  min-height: unset;
}

/* No CSS filter on images */
.page-cockfighting-betting-rules img {
  filter: none; /* Ensure no filter is applied */
}