/* Base styles for the cockfighting page */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
}

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

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

.page-cockfighting__light-bg {
  background: #ffffff;
  color: #333333;
}

.page-cockfighting__dark-bg {
  background: #26A9E0;
  color: #ffffff;
}

.page-cockfighting__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 30px;
  color: inherit;
}

.page-cockfighting__sub-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

.page-cockfighting__description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding for fixed header */
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-cockfighting__hero-image {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-cockfighting__hero-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 15px;
  max-width: 900px;
  margin-top: -10%; /* Adjust to slightly overlap the image for visual flow */
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-content .page-cockfighting__description {
  color: #FFFFFF;
  font-size: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  margin-bottom: 40px;
}

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

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

.page-cockfighting__btn-primary {
  background: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

.page-cockfighting__btn-secondary {
  background: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-cockfighting__btn-secondary:hover {
  background: #f0f0f0;
  color: #1e87b8;
  border-color: #1e87b8;
  transform: translateY(-2px);
}

/* Introduction Section */
.page-cockfighting__introduction-section .page-cockfighting__article-body {
  text-align: left;
}

.page-cockfighting__article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
}

.page-cockfighting__article-body p {
  margin-bottom: 20px;
}

.page-cockfighting__image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.page-cockfighting__image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.page-cockfighting__image-caption {
  font-size: 15px;
  color: #666;
  margin-top: 10px;
}

/* Advantages Section */
.page-cockfighting__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting__advantage-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-cockfighting__advantage-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

.page-cockfighting__advantage-card .page-cockfighting__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-cockfighting__advantage-card p {
  font-size: 16px;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Rules and Strategy Section */
.page-cockfighting__rules-strategy-section .page-cockfighting__article-body {
  text-align: left;
}

.page-cockfighting__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  text-align: left;
}

.page-cockfighting__list li {
  margin-bottom: 10px;
  font-size: 17px;
}

.page-cockfighting__list ol {
  list-style-type: decimal;
}

/* FAQ Section */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  text-align: left;
}
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;
}
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: #f5f5f5;
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

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

/* CTA Section */
.page-cockfighting__cta-section {
  padding: 80px 0;
}

.page-cockfighting__cta-section .page-cockfighting__description {
  color: #FFFFFF;
}

.page-cockfighting__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__container {
    padding: 20px 25px;
  }

  .page-cockfighting__hero-content {
    margin-top: -8%;
  }

  .page-cockfighting__main-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }

  .page-cockfighting__hero-content .page-cockfighting__description {
    font-size: 18px;
  }

  .page-cockfighting__btn-primary, .page-cockfighting__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-cockfighting__advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-cockfighting__hero-section {
    padding-top: 10px;
    padding-bottom: 60px;
  }
  .page-cockfighting__hero-image {
    padding-bottom: 75%; /* 4:3 Aspect Ratio for mobile */
  }
  .page-cockfighting__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important;
  }
  .page-cockfighting__hero-content {
    margin-top: -15%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay for mobile */
  }
  .page-cockfighting__main-title {
    font-size: clamp(28px, 6vw, 36px);
    margin-bottom: 15px;
  }
  .page-cockfighting__hero-content .page-cockfighting__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General Sections and Text */
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__section-title {
    font-size: clamp(24px, 5vw, 32px);
    margin-bottom: 25px;
  }
  .page-cockfighting__sub-title {
    font-size: clamp(20px, 4vw, 24px);
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-cockfighting__description, .page-cockfighting__article-body p, .page-cockfighting__list li {
    font-size: 16px;
  }

  /*通用图片与容器*/
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-cockfighting__container,
  .page-cockfighting__article-body,
  .page-cockfighting__image-wrapper,
  .page-cockfighting__cta-section,
  .page-cockfighting__advantages-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Buttons */
  .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: 12px 15px;
    font-size: 16px;
  }

  .page-cockfighting__button-group {
    flex-wrap: wrap !important;
    gap: 15px;
  }

  /* Advantages Grid */
  .page-cockfighting__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__advantage-card {
    padding: 25px;
  }

  .page-cockfighting__advantage-card .page-cockfighting__card-title {
    font-size: 20px;
  }

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

@media (max-width: 480px) {
  .page-cockfighting__hero-content {
    margin-top: -20%;
  }
  .page-cockfighting__main-title {
    font-size: clamp(24px, 7vw, 32px);
  }
  .page-cockfighting__hero-content .page-cockfighting__description {
    font-size: 15px;
  }
}