/* style/cockfighting.css */
/* body đã padding-top: var(--header-offset)；trang này cấm viết lại biến đó */
.page-cockfighting {
  background-color: #08160F; /* Màu nền chính */
  color: #F2FFF6; /* Màu chữ chính */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  padding-top: 10px; /* Nhẹ nhàng hơn để tránh xung đột với body padding-top */
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  height: auto;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-cockfighting__hero-content {
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em);
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-cockfighting__description {
  font-size: 1.1em;
  color: #A7D9B8;
  margin-bottom: 30px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Cho phép chữ xuống dòng */
  word-wrap: break-word; /* Ngắt từ */
  box-sizing: border-box;
  text-align: center;
}

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

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D;
}

.page-cockfighting__btn-secondary {
  background: #11271B;
  color: #2AD16F;
  border: 2px solid #2E7A4E;
}

.page-cockfighting__btn-secondary:hover {
  background: #22C768;
  color: #11271B;
  border-color: #22C768;
}

.page-cockfighting__btn-link {
  background: none;
  color: #2AD16F;
  border: 2px solid transparent;
  padding: 8px 15px;
}

.page-cockfighting__btn-link:hover {
  color: #57E38D;
  text-decoration: underline;
}

.page-cockfighting__cta-buttons--centered {
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-cockfighting__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__text-block {
  font-size: 1em;
  color: #A7D9B8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__intro-section,
.page-cockfighting__features-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
  padding: 60px 0;
}

.page-cockfighting__features-section,
.page-cockfighting__promotions-section {
  background-color: #0A4B2C;
}

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

.page-cockfighting__feature-card,
.page-cockfighting__promotion-card {
  background-color: #11271B;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__feature-image,
.page-cockfighting__promotion-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-cockfighting__card-title a {
  color: #F2FFF6;
  text-decoration: none;
}

.page-cockfighting__card-title a:hover {
  color: #2AD16F;
  text-decoration: underline;
}

.page-cockfighting__card-text {
  font-size: 0.95em;
  color: #A7D9B8;
  flex-grow: 1;
}

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

.page-cockfighting__step-item {
  background-color: #11271B;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  border: 1px solid #2E7A4E;
}

.page-cockfighting__step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin: 0 auto 20px;
}

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

.page-cockfighting__step-text {
  font-size: 0.9em;
  color: #A7D9B8;
}

.page-cockfighting__video-section {
  background-color: #0A4B2C;
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 30px;
  border-radius: 12px;
  border: 1px solid #2E7A4E;
  width: 100%; /* Desktop width constraint */
}

.page-cockfighting__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-cockfighting__faq-list {
  margin-top: 30px;
}

.page-cockfighting__faq-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  color: #F2FFF6;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #2AD16F;
  margin-left: 15px;
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  color: #A7D9B8;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__hero-section {
    padding: 40px 0;
    padding-top: 10px !important;
  }

  .page-cockfighting__main-title {
    font-size: 2em;
  }

  .page-cockfighting__description {
    font-size: 1em;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-cockfighting__intro-section,
  .page-cockfighting__features-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section,
  .page-cockfighting__video-section {
    padding: 40px 0;
  }

  /* Image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__feature-card,
  .page-cockfighting__promotion-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;
  }

  /* Video responsiveness */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting__video-wrapper {
    padding-bottom: 56.25% !important;
    height: 0 !important;
  }
}