/* style/cockfighting.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

.page-cockfighting {
  color: #ffffff; /* Vì body là nền tối #000000, văn bản chính phải là màu sáng */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Chỉ 10px top padding, tránh trùng với body padding-top */
  text-align: center;
  background: linear-gradient(135deg, #26A9E0 0%, #007bff 100%); /* Nền gradient sử dụng màu chủ đạo */
  color: #ffffff;
  overflow: hidden;
}

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

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.page-cockfighting__hero-content {
  position: relative; /* Đảm bảo nội dung nằm trên ảnh nếu có lớp phủ */
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  margin-top: 20px;
}

.page-cockfighting__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Sử dụng clamp cho kích thước font H1 */
}

.page-cockfighting__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Cho phép xuống dòng */
  word-wrap: break-word;
}

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

.page-cockfighting__btn-primary:hover {
  background-color: #1a8cc7;
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__light-bg {
  background-color: #ffffff; /* Nền trắng cho phần nội dung */
  color: #333333; /* Chữ màu tối trên nền sáng */
}

.page-cockfighting__dark-bg {
  background-color: #0d0d0d; /* Nền tối nhẹ */
  color: #ffffff; /* Chữ màu sáng trên nền tối */
}

.page-cockfighting__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-cockfighting__section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: bold;
  color: inherit; /* Kế thừa màu từ section cha */
}

.page-cockfighting__subsection-title {
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
  color: inherit;
}

.page-cockfighting__introduction p,
.page-cockfighting__betting-types p,
.page-cockfighting__advantages p,
.page-cockfighting__promotions p,
.page-cockfighting__guide p,
.page-cockfighting__mobile-app p,
.page-cockfighting__faq-section p,
.page-cockfighting__conclusion p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  line-height: 1.7;
  color: inherit;
}

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

.page-cockfighting__card {
  background: rgba(255, 255, 255, 0.1); /* Nền bán trong suốt trên nền tối */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: bold;
  color: #26A9E0;
}

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

.page-cockfighting__advantage-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #333333;
  border: 1px solid #e0e0e0;
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__advantage-icon {
  width: 200px; /* Tối thiểu 200px */
  height: 150px; /* Tối thiểu 200px */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-cockfighting__advantage-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: bold;
  color: #26A9E0;
}

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

.page-cockfighting__promo-card {
  background: rgba(255, 255, 255, 0.1); /* Nền bán trong suốt trên nền tối */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 200px; /* Chiều cao cố định cho hình ảnh khuyến mãi */
  object-fit: cover;
  display: block;
}

.page-cockfighting__promo-card .page-cockfighting__promo-title {
  font-size: 1.3rem;
  margin: 20px 20px 10px 20px;
  font-weight: bold;
  color: #26A9E0;
}

.page-cockfighting__promo-card p {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-cockfighting__cta-buttons--center {
  margin-top: 40px;
}

.page-cockfighting__step-by-step {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting__step-item {
  background: #f8f8f8;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #333333;
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__step-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: bold;
  color: #26A9E0;
}

.page-cockfighting__mobile-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting__mobile-text {
  flex: 1;
}

.page-cockfighting__mobile-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-cockfighting__mobile-image {
  width: 400px; /* Kích thước hiển thị */
  height: 300px; /* Kích thước hiển thị */
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting__faq-item {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #26A9E0;
  transition: background-color 0.3s ease;
  list-style: none; /* Ẩn marker mặc định của summary */
}

.page-cockfighting__faq-question::-webkit-details-marker { /* Ẩn marker trên WebKit */
  display: none;
}

.page-cockfighting__faq-question:hover {
  background-color: #e5e5e5;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #26A9E0;
}

.page-cockfighting__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555555;
}

.page-cockfighting__conclusion {
  padding: 80px 0;
  background-color: #0d0d0d; /* Nền tối nhẹ */
  color: #ffffff; /* Chữ màu sáng trên nền tối */
}

.page-cockfighting__cta-block {
  max-width: 800px;
}

/* ==================================================================
   RESPONSIVE STYLES (MOBILE FIRST) 
   ================================================================== */

@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    padding: 20px;
  }

  .page-cockfighting__section-title {
    font-size: 2.2rem;
  }

  .page-cockfighting__subsection-title {
    font-size: 1.6rem;
  }

  .page-cockfighting__introduction p,
  .page-cockfighting__betting-types p,
  .page-cockfighting__advantages p,
  .page-cockfighting__promotions p,
  .page-cockfighting__guide p,
  .page-cockfighting__mobile-app p,
  .page-cockfighting__faq-section p,
  .page-cockfighting__conclusion p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
    margin-bottom: 15px;
  }

  .page-cockfighting__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Nút xếp chồng trên di động */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important; /* Buộc nút full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__section {
    padding: 40px 0;
  }

  .page-cockfighting__content-area,
  .page-cockfighting__card,
  .page-cockfighting__advantage-item,
  .page-cockfighting__promo-card,
  .page-cockfighting__step-item,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__mobile-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-cockfighting__mobile-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-cockfighting__mobile-image {
    width: 100% !important;
    height: auto !important;
    max-width: 300px !important; /* Giới hạn chiều rộng ảnh mobile để không quá lớn */
    margin: 0 auto;
  }

  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-cockfighting__subsection-title {
    font-size: 1.4rem;
  }

  .page-cockfighting__card-title,
  .page-cockfighting__advantage-title,
  .page-cockfighting__promo-card .page-cockfighting__promo-title,
  .page-cockfighting__step-title,
  .page-cockfighting__faq-question {
    font-size: 1.1rem;
  }

  .page-cockfighting__advantage-icon {
    width: 150px;
    height: 100px;
  }

  .page-cockfighting__promo-image {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-cockfighting__section-title {
    font-size: 1.6rem;
  }

  .page-cockfighting__hero-content {
    padding: 10px;
  }
}