.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
}

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

.page-cockfighting__section {
  padding: 40px 0;
  margin-bottom: 20px;
  background-color: #7A0E0E; /* Deep Red for sections to provide contrast from main background */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__section:nth-child(even) {
  background-color: #D32F2F; /* Card BG for alternating sections */
}

.page-cockfighting__section-title {
  font-size: clamp(28px, 4vw, 38px);
  color: #FFD86A; /* Gold-like for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__section-text {
  font-size: 18px;
  color: #FFF5E1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 25px auto;
  line-height: 1.8;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 0 40px 0; /* Adjust padding as image is above */
  background-color: #B71C1C; /* Match main background */
}

.page-cockfighting__hero-image {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

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

.page-cockfighting__hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: #F4D34D; /* Gold */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #FFF5E1;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.page-cockfighting__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* For mobile */
}

/* General Button Styles */
.page-cockfighting__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Button responsive rule */
  box-sizing: border-box; /* Button responsive rule */
  white-space: normal; /* Button responsive rule */
  word-wrap: break-word; /* Button responsive rule */
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button custom color */
  color: #7A0E0E; /* Deep Red for contrast */
  border: none;
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: #FFD86A; /* Gold-like */
  border: 2px solid #FFD86A; /* Gold-like border */
}

.page-cockfighting__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 216, 106, 0.1);
}

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

.page-cockfighting__center-buttons {
  margin-top: 30px;
  text-align: center;
  width: 100%; /* Button container responsive rule */
  max-width: 100%; /* Button container responsive rule */
  overflow: hidden; /* Button container responsive rule */
  box-sizing: border-box; /* Button container responsive rule */
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Image content */
.page-cockfighting__image-content {
  display: block;
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Grid Layouts */
.page-cockfighting__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-cockfighting__card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #FFF5E1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #F2B544; /* Border custom color */
}

.page-cockfighting__card-title {
  font-size: 22px;
  color: #FFD86A; /* Gold-like */
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.page-cockfighting__card-description {
  font-size: 16px;
  line-height: 1.7;
  color: #FFF5E1;
}

.page-cockfighting__step-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #FFF5E1;
  border: 1px solid #F2B544; /* Border custom color */
}

.page-cockfighting__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button custom color */
  color: #7A0E0E; /* Deep Red for contrast */
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 900px;
  text-align: left;
}

.page-cockfighting__strategy-list li {
  background-color: #D32F2F; /* Card BG */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 17px;
  color: #FFF5E1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #F2B544; /* Border custom color */
}

.page-cockfighting__strategy-list li strong {
  color: #FFD86A; /* Gold-like */
}

.page-cockfighting__promo-card img {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-cockfighting__why-choose-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 900px;
  text-align: left;
}

.page-cockfighting__why-choose-list li {
  background-color: #D32F2F; /* Card BG */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 17px;
  color: #FFF5E1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #F2B544; /* Border custom color */
}

.page-cockfighting__why-choose-list li strong {
  color: #FFD86A; /* Gold-like */
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Border custom color */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  color: #FFF5E1;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFD86A; /* Gold-like */
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: #E53935; /* Accent color for hover */
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD86A; /* Gold-like */
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFF5E1; /* Text Main */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: #7A0E0E; /* Deep Red for answer background */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1;
  font-size: 16px;
}
.page-cockfighting__faq-answer p {
  margin: 0;
  padding: 0;
}


/* --- Responsive Styles --- */
/* All images basic responsive */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All buttons basic responsive */
.page-cockfighting__btn,
.page-cockfighting a[class*="button"],
.page-cockfighting a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* All button containers basic responsive */
.page-cockfighting__hero-cta-buttons,
.page-cockfighting__center-buttons,
.page-cockfighting__button-group,
.page-cockfighting__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .page-cockfighting__container {
    padding: 15px;
  }
  .page-cockfighting__section-title {
    font-size: clamp(26px, 3.5vw, 34px);
  }
  .page-cockfighting__section-text {
    font-size: 17px;
  }
  .page-cockfighting__hero-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }
  .page-cockfighting__hero-description {
    font-size: clamp(17px, 2.2vw, 20px);
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    padding-top: 10px; /* Small top padding for mobile */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__section {
    padding: 30px 0;
  }

  .page-cockfighting__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* HERO 主图区域 */
  .page-cockfighting__hero-image img {
    object-fit: contain !important; /* Prevent cropping */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    width: 100% !important;
    height: auto !important;
  }

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

  .page-cockfighting__hero-title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .page-cockfighting__hero-description {
    font-size: clamp(16px, 4vw, 18px);
  }

  .page-cockfighting__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  /* 通用图片与容器 */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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__btn,
  .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__hero-cta-buttons,
  .page-cockfighting__center-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; /* Ensure multiple buttons wrap */
    gap: 10px;
  }
  .page-cockfighting__center-buttons {
    flex-direction: column; /* Stack if centered */
  }

  /* Sản phẩm/Lưới hình ảnh (General grid items, not gameshow) */
  .page-cockfighting__grid {
    grid-template-columns: 1fr !important; /* Single column for cards */
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-cockfighting__promo-grid {
    grid-template-columns: 1fr !important; /* Single column for promo cards */
  }
  .page-cockfighting__steps-grid {
    grid-template-columns: 1fr !important; /* Single column for steps */
  }
  .page-cockfighting__promo-card img {
    height: auto !important; /* Allow auto height on mobile */
  }

  /* Khu vực SEO tiêu đề chính + văn bản dài */
  .page-cockfighting__section-title {
    font-size: clamp(24px, 6vw, 30px);
    text-align: center;
  }
  .page-cockfighting__section-text {
    font-size: 16px;
    text-align: left; /* Align text left for better readability on mobile */
    margin-left: auto;
    margin-right: auto;
    padding: 0 5px;
  }
  .page-cockfighting__strategy-list,
  .page-cockfighting__why-choose-list {
    margin-left: 0;
    margin-right: 0;
    padding: 0 5px;
  }
  .page-cockfighting__strategy-list li,
  .page-cockfighting__why-choose-list li {
    font-size: 16px;
    padding: 12px 15px;
  }

  /* FAQ */
  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
  .page-cockfighting__faq-qtext { font-size: 16px; }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer { padding: 0 15px 15px; }
}