/* style/cockfighting-rules.css */

/* Cấu hình chung cho trang */
.page-cockfighting-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Mặc định chữ màu tối cho nền sáng */
  background-color: var(--dark-bg-1); /* Lấy từ shared.css, giả định là nền tối */
}

/* Đảm bảo nội dung không bị che bởi fixed header */
.page-cockfighting-rules__hero-banner {
    padding-top: 120px; /* Khoảng cách cho fixed header trên desktop */
}

@media (max-width: 768px) {
    .page-cockfighting-rules__hero-banner {
        padding-top: 100px; /* Khoảng cách cho fixed header trên mobile */
    }
}

/* Các phần chung */
.page-cockfighting-rules__section {
  padding: 60px 0;
}

.page-cockfighting-rules__dark-section {
  background-color: #333333; /* Nền tối hơn */
  color: #ffffff; /* Chữ màu sáng */
}

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

.page-cockfighting-rules__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700; /* Màu vàng thương hiệu */
}

.page-cockfighting-rules__dark-section .page-cockfighting-rules__section-title {
  color: #FFD700;
}

.page-cockfighting-rules__sub-title {
  font-size: 28px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #DC143C; /* Màu đỏ thương hiệu */
}

.page-cockfighting-rules__dark-section .page-cockfighting-rules__sub-title {
  color: #FFD700;
}

.page-cockfighting-rules__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.page-cockfighting-rules__dark-section .page-cockfighting-rules__paragraph {
  color: #f0f0f0;
}

.page-cockfighting-rules__text-highlight {
  color: #FFD700; /* Màu vàng cho các điểm nhấn */
  font-weight: bold;
}

.page-cockfighting-rules__dark-section .page-cockfighting-rules__text-highlight {
  color: #FFD700;
}

.page-cockfighting-rules a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-cockfighting-rules a:hover {
  color: #DC143C;
}

/* Hero Banner */
.page-cockfighting-rules__hero-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #1a1a1a; /* Nền tối cho hero */
  color: #ffffff;
  overflow: hidden;
  min-height: 500px;
}

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

.page-cockfighting-rules__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.page-cockfighting-rules__hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

.page-cockfighting-rules__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Buttons */
.page-cockfighting-rules__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-cockfighting-rules__btn--primary {
  background-color: #FFD700;
  color: #1a1a1a; /* Chữ đen trên nền vàng */
}

.page-cockfighting-rules__btn--primary:hover {
  background-color: #DC143C;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting-rules__btn--secondary:hover {
  background-color: #FFD700;
  color: #1a1a1a;
  border-color: #FFD700;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Image styles */
.page-cockfighting-rules__image-full {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-cockfighting-rules__image-inline {
  width: 100%;
  height: auto;
  max-width: 600px;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Cards Grid */
.page-cockfighting-rules__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting-rules__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting-rules__card--dark {
  background-color: #2a2a2a; /* Nền tối cho card trong dark section */
  color: #ffffff;
}

.page-cockfighting-rules__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-cockfighting-rules__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-cockfighting-rules__card-title {
  font-size: 22px;
  font-weight: 700;
  padding: 20px;
  color: #DC143C;
  text-align: center;
}

.page-cockfighting-rules__card--dark .page-cockfighting-rules__card-title {
  color: #FFD700;
}

.page-cockfighting-rules__card-text {
  font-size: 16px;
  padding: 0 20px 20px;
  line-height: 1.6;
  text-align: justify;
}

/* Lists */
.page-cockfighting-rules__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-cockfighting-rules__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 17px;
}

.page-cockfighting-rules__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFD700;
  font-weight: bold;
  font-size: 20px;
}

.page-cockfighting-rules__dark-section .page-cockfighting-rules__list li {
  color: #f0f0f0;
}

.page-cockfighting-rules__list-item-strong {
  color: #DC143C;
}

.page-cockfighting-rules__dark-section .page-cockfighting-rules__list-item-strong {
  color: #FFD700;
}

.page-cockfighting-rules__nested-list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.page-cockfighting-rules__nested-list li {
  padding-left: 0;
  margin-bottom: 10px;
  font-size: 16px;
}

.page-cockfighting-rules__nested-list li::before {
  content: none;
}

/* Features List */
.page-cockfighting-rules__features-list {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-cockfighting-rules__features-list li {
  position: relative;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #FFD700;
  border-radius: 5px;
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 0; /* Override default list margin */
}

.page-cockfighting-rules__features-list li::before {
  content: none;
}

/* FAQ Section */
.page-cockfighting-rules__faq-list {
  margin-top: 40px;
}

.page-cockfighting-rules__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-cockfighting-rules__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
  max-height: 2000px !important; /* Sử dụng !important đảm bảo ưu tiên */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting-rules__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-cockfighting-rules__faq-question:active {
  background: #eeeeee;
}

.page-cockfighting-rules__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #333333;
}

.page-cockfighting-rules__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-toggle {
  color: #DC143C;
}

/* CTA Section */
.page-cockfighting-rules__cta {
  background-color: #1a1a1a; /* Nền tối cho CTA */
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-cockfighting-rules__cta-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-cockfighting-rules__cta-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-cockfighting-rules__dark-bg-cta {
    background-color: #222222;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting-rules__hero-title {
    font-size: 40px;
  }
  .page-cockfighting-rules__hero-description {
    font-size: 18px;
  }
  .page-cockfighting-rules__section-title {
    font-size: 30px;
  }
  .page-cockfighting-rules__sub-title {
    font-size: 24px;
  }
  .page-cockfighting-rules__card-title {
    font-size: 20px;
  }
  .page-cockfighting-rules__paragraph, .page-cockfighting-rules__list li, .page-cockfighting-rules__card-text, .page-cockfighting-rules__features-list li {
    font-size: 16px;
  }
  .page-cockfighting-rules__cta-title {
    font-size: 32px;
  }
  .page-cockfighting-rules__cta-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules__hero-banner {
    padding-top: 100px; /* Mobile fixed header spacing */
    min-height: 400px;
  }
  .page-cockfighting-rules__hero-title {
    font-size: 32px;
  }
  .page-cockfighting-rules__hero-description {
    font-size: 16px;
  }
  .page-cockfighting-rules__section {
    padding: 40px 0;
  }
  .page-cockfighting-rules__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-cockfighting-rules__sub-title {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-cockfighting-rules__container {
    padding: 0 15px;
  }
  .page-cockfighting-rules__cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting-rules__btn {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-cockfighting-rules__image-full, .page-cockfighting-rules__image-inline {
    margin: 20px 0;
  }
  .page-cockfighting-rules__features-list {
    grid-template-columns: 1fr;
  }
  .page-cockfighting-rules__features-list li {
    padding: 15px;
  }
  .page-cockfighting-rules__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-cockfighting-rules__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-cockfighting-rules__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-cockfighting-rules__faq-answer {
    padding: 0 15px;
  }
  .page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
    padding: 15px !important;
  }
  .page-cockfighting-rules__cta-title {
    font-size: 28px;
  }
  .page-cockfighting-rules__cta-description {
    font-size: 15px;
  }

  /* 强制图片适配移动端 */
  .page-cockfighting-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting-rules__section,
  .page-cockfighting-rules__card,
  .page-cockfighting-rules__container,
  .page-cockfighting-rules__hero-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting-rules__hero-image-wrapper {
    left: -15px;
    width: calc(100% + 30px);
  }
  .page-cockfighting-rules__hero-content {
    padding: 0;
  }
  .page-cockfighting-rules__section-title, .page-cockfighting-rules__cta-title {
    padding: 0 15px;
  }
}