.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Sử dụng màu chữ chính đã định nghĩa */
  background: var(--background); /* Sử dụng màu nền chính đã định nghĩa */
}

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

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

.page-cockfighting__dark-section {
  background: var(--card-bg);
  color: var(--text-main);
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--text-main);
  font-weight: bold;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--text-main);
  font-weight: bold;
}

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body đã padding-top, đây chỉ là padding nội dung */
  background: var(--background);
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Làm tối ảnh để chữ dễ đọc hơn */
}

.page-cockfighting__hero-content {
  position: relative; /* Đảm bảo content không bị ảnh hưởng bởi absolute của ảnh */
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Kéo lên một chút để tạo sự liền mạch với ảnh */
}

.page-cockfighting__main-title {
  font-weight: bold;
  color: var(--gold); /* Sử dụng màu vàng cho tiêu đề chính */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(2.5em, 5vw, 3.5em); /* Sử dụng clamp để giới hạn kích thước */
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
  background: var(--card-bg);
  color: var(--glow);
  border: 2px solid var(--glow);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--glow);
  color: var(--deep-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-cockfighting__content-flex {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-cockfighting__content-flex--reverse {
  flex-direction: row-reverse;
}

.page-cockfighting__text-block {
  flex: 1;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.page-cockfighting__text-block a {
  color: var(--glow);
  text-decoration: underline;
}

.page-cockfighting__text-block a:hover {
  color: var(--gold);
}

.page-cockfighting__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__advantages-list ul {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__advantages-list li {
  background: var(--deep-green);
  border-left: 5px solid var(--glow);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: var(--text-main);
  font-size: 1.05em;
}

.page-cockfighting__advantages-list li strong {
  color: var(--gold);
}

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

.page-cockfighting__step-card,
.page-cockfighting__promo-card {
  background: var(--background);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%; /* Đảm bảo các card có chiều cao bằng nhau */
  box-sizing: border-box;
}

.page-cockfighting__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: var(--gold);
  margin-bottom: 15px;
}

.page-cockfighting__step-card p,
.page-cockfighting__promo-card p {
  color: var(--text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-cockfighting__app-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  text-align: left;
  max-width: 1000px;
  margin: 40px auto 0 auto;
}

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

.page-cockfighting__app-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-cockfighting__app-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__app-image .page-cockfighting__image {
  max-width: 400px; /* Giới hạn chiều rộng ảnh APP */
}

.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-cockfighting__faq-item {
  background: var(--background);
  border: 1px solid var(--divider);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--deep-green);
  color: var(--text-main);
  font-weight: bold;
  font-size: 1.15em;
  cursor: pointer;
  border-bottom: 1px solid var(--divider);
  list-style: none;
  user-select: none;
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom: 1px solid var(--glow);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  color: var(--glow);
}

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  color: var(--text-secondary);
  font-size: 1em;
  background: var(--background);
}

.page-cockfighting__faq-answer p {
  margin-bottom: 10px;
}

.page-cockfighting__faq-answer a {
  color: var(--glow);
  text-decoration: underline;
}

.page-cockfighting__conclusion-section {
  padding-bottom: 80px;
}

.page-cockfighting__conclusion-text {
  font-size: 1.15em;
  color: var(--text-main);
  max-width: 900px;
  margin: 0 auto 25px auto;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-cockfighting__section-title {
    font-size: 2em;
  }

  .page-cockfighting__sub-title {
    font-size: 1.5em;
  }

  .page-cockfighting__hero-content {
    margin-top: -50px;
  }

  .page-cockfighting__grid-two-columns,
  .page-cockfighting__content-flex {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .page-cockfighting__content-flex--reverse {
    flex-direction: column;
  }

  .page-cockfighting__app-content {
    flex-direction: column;
    text-align: center;
  }

  .page-cockfighting__app-image {
    order: -1; /* Đặt ảnh lên trên trong mobile */
  }

  .page-cockfighting__app-image .page-cockfighting__image {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-cockfighting__sub-title {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .page-cockfighting__hero-content {
    padding: 30px 15px;
    margin-top: -30px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-cockfighting__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    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__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__steps-grid,
  .page-cockfighting__promo-grid,
  .page-cockfighting__app-content,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-cockfighting__video-section {
    padding-top: 10px !important;
  }

  .page-cockfighting__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

  .page-cockfighting__advantages-list li {
    padding: 12px 15px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 9vw, 2.2em);
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-cockfighting__section-title {
    font-size: 1.5em;
  }

  .page-cockfighting__sub-title {
    font-size: 1.2em;
  }
}