/* style/cockfighting.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */

:root {
  --may999-primary-color: #26A9E0;
  --may999-secondary-color: #FFFFFF;
  --may999-text-dark: #333333;
  --may999-text-light: #ffffff;
  --may999-cta-login: #EA7C07;
  --may999-bg-light: #FFFFFF;
  --may999-bg-dark: #26A9E0;
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--may999-text-dark); /* Mặc định cho nền sáng */
  background-color: var(--may999-bg-light);
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Chỉ một khoảng cách nhỏ, body đã xử lý --header-offset */
  background: linear-gradient(135deg, var(--may999-primary-color), #1a7fb0);
  color: var(--may999-text-light);
  text-align: center;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--may999-text-light);
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--may999-text-light);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1em;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background-color: var(--may999-cta-login);
  color: var(--may999-text-light);
  border: 2px solid var(--may999-cta-login);
}

.page-cockfighting__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--may999-text-light);
  border: 2px solid var(--may999-text-light);
}

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

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

.page-cockfighting__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  color: var(--may999-primary-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__dark-section {
  background-color: var(--may999-primary-color);
  color: var(--may999-text-light);
  padding: 60px 20px;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: var(--may999-text-light);
}

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

.page-cockfighting__feature-item,
.page-cockfighting__type-card,
.page-cockfighting__promo-card {
  background-color: var(--may999-bg-light);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--may999-text-dark);
  display: flex;
  flex-direction: column;
}

.page-cockfighting__dark-section .page-cockfighting__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--may999-text-light);
}

.page-cockfighting__feature-item:hover,
.page-cockfighting__type-card:hover,
.page-cockfighting__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__feature-icon,
.page-cockfighting__type-image,
.page-cockfighting__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__feature-title,
.page-cockfighting__type-title,
.page-cockfighting__promo-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--may999-primary-color);
}

.page-cockfighting__dark-section .page-cockfighting__feature-title {
  color: var(--may999-text-light);
}

.page-cockfighting__feature-description,
.page-cockfighting__type-description,
.page-cockfighting__promo-description {
  font-size: 1em;
  line-height: 1.6;
  flex-grow: 1;
}

.page-cockfighting__rules-tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.page-cockfighting__subtitle {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--may999-primary-color);
  margin-bottom: 20px;
}

.page-cockfighting__rules-list,
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-cockfighting__rules-list li,
.page-cockfighting__tips-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 1.05em;
  line-height: 1.6;
}

.page-cockfighting__rules-list li::before,
.page-cockfighting__tips-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--may999-cta-login);
  font-weight: bold;
}

.page-cockfighting__tips-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

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

.page-cockfighting__step-item {
  background-color: var(--may999-bg-light);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-cockfighting__step-number {
  width: 50px;
  height: 50px;
  background-color: var(--may999-primary-color);
  color: var(--may999-text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: 700;
  margin: 0 auto 20px;
}

.page-cockfighting__step-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--may999-primary-color);
  margin-bottom: 10px;
}

.page-cockfighting__step-description {
  font-size: 1em;
  line-height: 1.6;
}

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

.page-cockfighting__faq-item {
  background-color: var(--may999-bg-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--may999-primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f8f8;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item summary:hover {
  background-color: #f0f0f0;
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--may999-cta-login);
  line-height: 1;
}

.page-cockfighting__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--may999-text-dark);
  border-top: 1px solid #eee;
}

/* =================================== */
/* Responsive Design */
/* =================================== */

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

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

  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }

  .page-cockfighting__content-area {
    padding: 30px 15px;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.6em, 4vw, 2.2em);
    margin-bottom: 25px;
  }

  .page-cockfighting__rules-tips-grid {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__rules-column,
  .page-cockfighting__tips-column {
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
  }

  .page-cockfighting__tips-column {
    border-bottom: none;
  }
}

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

  /* 强制图片适配移动端 */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* 强制视频适配移动端 */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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-section {
    padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }

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

  /* 强制按钮适配移动端 */
  .page-cockfighting__cta-button,
  .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-direction: column !important; /* 移动端垂直排列 */
    gap: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-cockfighting__hero-description {
    font-size: 1em;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100%;
  }

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

  .page-cockfighting__features-grid,
  .page-cockfighting__types-grid,
  .page-cockfighting__promo-cards-grid,
  .page-cockfighting__steps-list {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__feature-icon,
  .page-cockfighting__type-image,
  .page-cockfighting__promo-image {
    height: 180px;
  }

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

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