/* style/cockfighting.css */

/* Cấu hình chung cho trang Đá gà */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Văn bản sáng trên nền tối */
  background-color: #0a0a0a; /* Nền tối từ shared.css */
}

/* Đảm bảo nội dung không bị che bởi header cố định */
.page-cockfighting__top-spacer {
  padding-top: 120px; /* Khoảng cách cho header cố định */
}

@media (max-width: 768px) {
  .page-cockfighting__top-spacer {
    padding-top: 100px;
  }
}

/* Phần Hero Banner */
.page-cockfighting__hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 5%;
  background: linear-gradient(135deg, #0A246A, #FFD700);
  color: #ffffff;
  gap: 40px;
}

.page-cockfighting__hero-content {
  flex: 1;
  max-width: 600px;
}

.page-cockfighting__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-cockfighting__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image-wrapper {
  flex: 1;
  max-width: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

/* Các Section chung */
.page-cockfighting__section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Nền tối */
  color: #ffffff;
}

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

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700; /* Màu vàng phụ đạo */
}

.page-cockfighting__text-block {
  font-size: 17px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid cho các thẻ */
.page-cockfighting__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting__card {
  background-color: rgba(255, 255, 255, 0.08); /* Nền hơi trong suốt */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  max-width: 100%;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-cockfighting__card-description {
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
}

/* Loại hình đá gà */
.page-cockfighting__type-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__type-card {
  background-color: rgba(10, 36, 106, 0.6); /* Nền từ màu chủ đạo */
  border-radius: 12px;
  padding: 30px;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-align: center;
}

.page-cockfighting__type-card:hover {
  transform: translateY(-8px);
  background-color: rgba(10, 36, 106, 0.8);
}

.page-cockfighting__type-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

.page-cockfighting__type-card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-cockfighting__type-card-description {
  font-size: 16px;
  line-height: 1.7;
}

/* Hướng dẫn tham gia */
.page-cockfighting__how-to-play .page-cockfighting__section-title {
  color: #FFD700;
}

.page-cockfighting__step-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 40px;
}

.page-cockfighting__step-item {
  display: flex;
  align-items: flex-start;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  gap: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__step-icon {
  background-color: #FFD700;
  color: #0A246A;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  flex-shrink: 0;
}

.page-cockfighting__step-content {
  flex-grow: 1;
}

.page-cockfighting__step-title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-cockfighting__step-content p {
  font-size: 16px;
  color: #e0e0e0;
}

.page-cockfighting__link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-cockfighting__link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Mẹo cá cược */
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__tip-item {
  background-color: rgba(10, 36, 106, 0.4); /* Nền từ màu chủ đạo */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.page-cockfighting__tip-title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-cockfighting__tip-item p {
  font-size: 16px;
  color: #e0e0e0;
}

/* Ưu đãi */
.page-cockfighting__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  max-width: 100%;
  display: block;
}

.page-cockfighting__promo-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-cockfighting__promo-description {
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
}

/* Tại sao chọn Jun88 */
.page-cockfighting__advantage-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__advantage-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.page-cockfighting__advantage-title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-cockfighting__advantage-item p {
  font-size: 16px;
  color: #e0e0e0;
}

/* FAQ */
.page-cockfighting__faq-list {
  margin-top: 40px;
}

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

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
  color: #e0e0e0;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(10, 36, 106, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-cockfighting__faq-question:hover {
  background: rgba(10, 36, 106, 0.9);
  border-color: #FFD700;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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__faq-item.active .page-cockfighting__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

/* Tin tức mới nhất */
.page-cockfighting__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__news-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-cockfighting__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__news-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-cockfighting__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-cockfighting__news-title {
  font-size: 20px;
  font-weight: bold;
  margin: 15px 15px 10px 15px;
  color: #FFD700;
  line-height: 1.4;
  flex-grow: 1;
}

.page-cockfighting__news-excerpt {
  font-size: 15px;
  margin: 0 15px 15px 15px;
  color: #e0e0e0;
}

.page-cockfighting__news-date {
  font-size: 13px;
  color: #999999;
  margin: 0 15px 15px 15px;
  align-self: flex-end;
}

/* Call to Action cuối trang */
.page-cockfighting__call-to-action {
  text-align: center;
  background: linear-gradient(90deg, #0A246A, #FFD700);
  padding: 80px 20px;
}

.page-cockfighting__call-to-action .page-cockfighting__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-cockfighting__call-to-action .page-cockfighting__text-block {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Buttons */
.page-cockfighting__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.page-cockfighting__btn--primary {
  background-color: #FFD700;
  color: #0A246A;
  border: 2px solid #FFD700;
}

.page-cockfighting__btn--primary:hover {
  background-color: #e6c200;
  color: #0A246A;
  transform: translateY(-3px);
}

.page-cockfighting__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-cockfighting__btn--secondary:hover {
  background-color: #FFD700;
  color: #0A246A;
  transform: translateY(-3px);
}

.page-cockfighting__btn--large {
  padding: 18px 40px;
  font-size: 20px;
}

.page-cockfighting__cta-center {
  text-align: center;
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-banner {
    flex-direction: column;
    text-align: center;
    padding: 60px 5%;
  }

  .page-cockfighting__hero-content {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .page-cockfighting__hero-title {
    font-size: 42px;
  }

  .page-cockfighting__hero-description {
    font-size: 16px;
  }

  .page-cockfighting__hero-image-wrapper {
    max-width: 100%;
  }

  .page-cockfighting__section-title {
    font-size: 32px;
  }

  .page-cockfighting__text-block {
    font-size: 16px;
  }

  .page-cockfighting__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-cockfighting__step-icon {
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-banner {
    padding: 40px 15px;
  }

  .page-cockfighting__hero-title {
    font-size: 32px;
  }

  .page-cockfighting__hero-description {
    font-size: 15px;
  }

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

  .page-cockfighting__container {
    padding: 0 15px;
  }

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

  .page-cockfighting__text-block {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-cockfighting__grid, .page-cockfighting__type-card-grid, .page-cockfighting__promo-grid, .page-cockfighting__tips-list, .page-cockfighting__advantage-list, .page-cockfighting__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card-image, .page-cockfighting__type-card-image, .page-cockfighting__promo-image, .page-cockfighting__news-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-cockfighting__card-title, .page-cockfighting__type-card-title, .page-cockfighting__promo-title, .page-cockfighting__news-title {
    font-size: 20px;
  }

  .page-cockfighting__btn {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-cockfighting__btn--large {
    padding: 15px 30px;
    font-size: 18px;
  }

  .page-cockfighting__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }

  .page-cockfighting__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }

  .page-cockfighting__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  .page-cockfighting__faq-answer {
    padding: 0 15px;
  }

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Đảm bảo tất cả hình ảnh đều phản hồi và không tràn */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}