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

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default background, will be overridden by shared.css if dark */
}

/* Dark background sections for contrast */
.page-cockfighting__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 20px;
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 20px;
}

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

/* Hero Video Section */
.page-cockfighting__video-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

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

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

/* Hero Content Section */
.page-cockfighting__hero-content-section {
  text-align: center;
  padding: 40px 20px;
}

.page-cockfighting__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  /* clamp for responsive font size, avoids fixed large values */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background-color: #C30808; /* Đăng ký color */
  color: #FFFF00; /* Đăng ký và Đăng nhập font color */
  border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

/* General Section Styling */
.page-cockfighting__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherits from parent section */
}

.page-cockfighting__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Benefits List */
.page-cockfighting__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 -10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-cockfighting__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  color: #ffffff;
}

.page-cockfighting__benefit-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

/* Steps List */
.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-cockfighting__step-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 20px;
  color: #333333;
}

.page-cockfighting__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.page-cockfighting__step-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: #017439;
}

/* Bet Types List */
.page-cockfighting__bet-types-list {
  list-style: none;
  padding: 0;
  margin: 0 -10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-cockfighting__bet-type-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  color: #ffffff;
}

.page-cockfighting__bet-type-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

/* Tips List */
.page-cockfighting__tips-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 20px;
  color: #333333;
}

.page-cockfighting__tip-item {
  margin-bottom: 15px;
}

.page-cockfighting__tip-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: #017439;
}

/* Bottom CTA Section */
.page-cockfighting__cta-section-bottom {
  text-align: center;
  padding: 80px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

  .page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__dark-section,
  .page-cockfighting__light-bg {
    padding: 40px 15px;
  }

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

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-cockfighting__description {
    font-size: 0.95rem;
  }

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

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

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

  .page-cockfighting__video-section {
    padding-top: 10px !important; /* body handles header offset */
  }

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

  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-cockfighting__benefits-list,
  .page-cockfighting__steps-list,
  .page-cockfighting__bet-types-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-cockfighting__benefits-list .page-cockfighting__benefit-item,
  .page-cockfighting__bet-types-list .page-cockfighting__bet-type-item {
    padding: 20px;
  }

  .page-cockfighting__cta-section-bottom {
    padding: 50px 15px;
  }
}

/* Ensure no filter on images */
.page-cockfighting img {
  filter: none;
}