/* style/cockfighting.css */

/* Biến CSS */
:root {
  --page-cockfighting-primary-color: #FFD700;
  --page-cockfighting-secondary-color: #8B0000;
  --page-cockfighting-text-light: #ffffff;
  --page-cockfighting-text-dark: #333333;
  --page-cockfighting-bg-light: #f5f5f5;
  --page-cockfighting-bg-dark: var(--dark-bg-1, #0d0d0d); /* Sử dụng biến từ shared.css */
}

/* Thiết lập chung cho trang Đá gà */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--page-cockfighting-text-light); /* Màu chữ mặc định cho nền tối của body */
  background-color: var(--page-cockfighting-bg-dark);
  line-height: 1.6;
}

/* Đảm bảo nội dung đầu tiên không bị che bởi header cố định */
.page-cockfighting__section--padding-top {
  padding-top: 120px; /* Cho desktop */
}

/* Phần Hero Banner */
.page-cockfighting__hero-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--page-cockfighting-secondary-color) 0%, var(--page-cockfighting-bg-dark) 100%);
  padding: 60px 20px;
  gap: 40px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-cockfighting__hero-content {
  max-width: 600px;
  text-align: left;
  z-index: 1;
}

.page-cockfighting__main-title {
  font-size: 48px;
  font-weight: bold;
  color: var(--page-cockfighting-text-light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__intro-text {
  font-size: 18px;
  color: var(--page-cockfighting-text-light);
  margin-bottom: 30px;
}

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

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

/* Nút CTA */
.page-cockfighting__cta-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-cockfighting__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-cockfighting__btn--primary {
  background-color: var(--page-cockfighting-primary-color);
  color: var(--page-cockfighting-text-dark);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-cockfighting__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-cockfighting__btn--secondary {
  background-color: transparent;
  color: var(--page-cockfighting-primary-color);
  border: 2px solid var(--page-cockfighting-primary-color);
}

.page-cockfighting__btn--secondary:hover {
  background-color: var(--page-cockfighting-primary-color);
  color: var(--page-cockfighting-text-dark);
  transform: translateY(-2px);
}

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

.page-cockfighting__btn--small {
  padding: 10px 20px;
  font-size: 16px;
}

/* Các phần chung */
.page-cockfighting__section {
  padding: 60px 20px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

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

.page-cockfighting__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-cockfighting-primary-color);
  line-height: 1.3;
}

.page-cockfighting__text-block {
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--page-cockfighting-text-light);
}

.page-cockfighting__link--promo {
  color: var(--page-cockfighting-primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-cockfighting__link--promo:hover {
  text-decoration: underline;
}

.page-cockfighting__highlight {
  color: var(--page-cockfighting-primary-color);
}

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

/* Phần tính năng */
.page-cockfighting__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-cockfighting__feature-item:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-cockfighting-primary-color);
}

.page-cockfighting__feature-description {
  font-size: 16px;
  color: var(--page-cockfighting-text-light);
}

/* Phần các loại hình đá gà */
.page-cockfighting__game-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__game-type-card {
  background-color: var(--page-cockfighting-bg-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-cockfighting-text-dark);
}

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

.page-cockfighting__game-type-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-cockfighting__game-type-title {
  font-size: 22px;
  font-weight: bold;
  padding: 15px 20px 0;
  color: var(--page-cockfighting-secondary-color);
}

.page-cockfighting__game-type-description {
  font-size: 16px;
  padding: 0 20px 20px;
  line-height: 1.6;
}

/* Phần hướng dẫn */
.page-cockfighting__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-cockfighting__step-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--page-cockfighting-primary-color);
  margin-bottom: 15px;
  line-height: 1;
}

.page-cockfighting__step-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-cockfighting-text-light);
}

.page-cockfighting__step-description {
  font-size: 16px;
  color: var(--page-cockfighting-text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Phần khuyến mãi */
.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-color: var(--page-cockfighting-bg-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-cockfighting-text-dark);
}

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

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

.page-cockfighting__promo-content {
  padding: 20px;
}

.page-cockfighting__promo-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--page-cockfighting-secondary-color);
}

.page-cockfighting__promo-description {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Phần thông tin & hỗ trợ */
.page-cockfighting__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__info-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-cockfighting__info-item:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__info-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__info-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-cockfighting-primary-color);
}

.page-cockfighting__info-description {
  font-size: 16px;
  color: var(--page-cockfighting-text-light);
}

/* Phần 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;
  padding: 0 15px;
  opacity: 0;
  color: var(--page-cockfighting-text-dark); /* Đảm bảo màu chữ tối cho nền sáng */
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--page-cockfighting-bg-light);
  border-radius: 0 0 5px 5px;
}

.page-cockfighting__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;
  color: var(--page-cockfighting-text-dark); /* Đảm bảo màu chữ tối cho nền sáng */
}

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

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

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

.page-cockfighting__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__faq-item.active .page-cockfighting__faq-toggle {
  color: var(--page-cockfighting-secondary-color);
  transform: rotate(45deg);
}

/* Phần Blog */
.page-cockfighting__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__blog-card {
  background-color: rgba(255, 255, 255, 0.08);
  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;
}

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

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

.page-cockfighting__blog-content {
  padding: 20px;
}

.page-cockfighting__blog-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-cockfighting__blog-link {
  color: var(--page-cockfighting-primary-color);
  text-decoration: none;
}

.page-cockfighting__blog-link:hover {
  text-decoration: underline;
}

.page-cockfighting__blog-excerpt {
  font-size: 16px;
  color: var(--page-cockfighting-text-light);
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-cockfighting__read-more {
  display: inline-block;
  color: var(--page-cockfighting-primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.page-cockfighting__read-more:hover {
  text-decoration: underline;
}

/* CTA cuối trang */
.page-cockfighting__final-cta {
  background: linear-gradient(90deg, var(--page-cockfighting-secondary-color) 0%, var(--page-cockfighting-primary-color) 100%);
  padding: 80px 20px;
  text-align: center;
}

.page-cockfighting__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting__final-cta .page-cockfighting__section-title {
  color: var(--page-cockfighting-text-light);
  margin-bottom: 25px;
}

.page-cockfighting__final-cta .page-cockfighting__text-block {
  color: var(--page-cockfighting-text-light);
  margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
  .page-cockfighting__hero-banner {
    flex-direction: column;
    text-align: center;
    padding: 80px 20px;
    gap: 30px;
  }

  .page-cockfighting__hero-content {
    max-width: 100%;
    text-align: center;
  }

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

  .page-cockfighting__hero-image-wrapper {
    width: 80%;
    height: 350px;
  }

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

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

  .page-cockfighting__feature-title, .page-cockfighting__game-type-title, .page-cockfighting__step-title, .page-cockfighting__promo-title, .page-cockfighting__info-title, .page-cockfighting__blog-title {
    font-size: 20px;
  }

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

@media (max-width: 768px) {
  .page-cockfighting__section--padding-top {
    padding-top: 100px !important; /* Cho mobile */
  }

  .page-cockfighting__hero-banner {
    padding: 60px 15px;
  }

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

  .page-cockfighting__intro-text {
    font-size: 16px;
  }

  .page-cockfighting__cta-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-cockfighting__btn {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    padding: 12px 20px;
  }

  .page-cockfighting__hero-image-wrapper {
    width: 95%;
    height: 280px;
  }

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

  .page-cockfighting__container {
    padding: 0;
  }

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

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

  .page-cockfighting__features-grid, .page-cockfighting__game-types-grid, .page-cockfighting__steps-grid, .page-cockfighting__promo-grid, .page-cockfighting__info-grid, .page-cockfighting__blog-grid {
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .page-cockfighting__feature-item, .page-cockfighting__game-type-card, .page-cockfighting__step-item, .page-cockfighting__promo-card, .page-cockfighting__info-item, .page-cockfighting__blog-card {
    padding: 20px;
  }

  .page-cockfighting__feature-icon, .page-cockfighting__info-icon {
    width: 60px;
    height: 60px;
  }

  .page-cockfighting__feature-title, .page-cockfighting__game-type-title, .page-cockfighting__step-title, .page-cockfighting__promo-title, .page-cockfighting__info-title, .page-cockfighting__blog-title {
    font-size: 18px;
  }

  .page-cockfighting__feature-description, .page-cockfighting__game-type-description, .page-cockfighting__step-description, .page-cockfighting__promo-description, .page-cockfighting__info-description, .page-cockfighting__blog-excerpt {
    font-size: 14px;
  }

  .page-cockfighting__step-number {
    font-size: 40px;
  }

  .page-cockfighting__game-type-img, .page-cockfighting__promo-img, .page-cockfighting__blog-img {
    height: 180px;
  }

  .page-cockfighting__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-cockfighting__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    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__final-cta {
    padding: 60px 15px;
  }

  .page-cockfighting__final-cta .page-cockfighting__section-title {
    font-size: 26px;
  }

  .page-cockfighting__final-cta .page-cockfighting__text-block {
    font-size: 15px;
  }

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

/* Đảm bảo tất cả hình ảnh responsive và không gây tràn */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__container,
  .page-cockfighting__hero-banner,
  .page-cockfighting__hero-content,
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__feature-item,
  .page-cockfighting__game-type-card,
  .page-cockfighting__step-item,
  .page-cockfighting__promo-card,
  .page-cockfighting__info-item,
  .page-cockfighting__blog-card,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left và padding-right đã được điều chỉnh ở các section/container */
  }
}