/* style/cockfighting.css */

:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --background-dark: #140C0C;
  --card-background: #2A1212;
  --text-main: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red: #7E0D0D;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  --header-offset: 122px; /* Default value, will be overridden by shared if present */
}

.page-cockfighting {
  font-family: Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--background-dark);
  line-height: 1.6;
  font-size: 18px;
}

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

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

.page-cockfighting__section-title {
  font-size: 2.8em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-cockfighting__sub-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relies on body padding-top from shared */
  padding-bottom: 60px;
}

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

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

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

.page-cockfighting__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  color: var(--gold-color);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--background-dark);
  transform: translateY(-2px);
}

.page-cockfighting__link {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-cockfighting__link:hover {
  color: var(--primary-color);
}

.page-cockfighting__overview-section .page-cockfighting__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__overview-section .page-cockfighting__text-block {
  flex: 1;
}

.page-cockfighting__overview-section .page-cockfighting__image-block {
  flex: 1;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-cockfighting__list-item {
  background-color: var(--card-background);
  border-left: 4px solid var(--gold-color);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 4px;
  font-size: 1.1em;
  color: var(--text-main);
}

.page-cockfighting__dark-section {
  background-color: var(--deep-red);
  color: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: var(--gold-color);
}

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

.page-cockfighting__card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-cockfighting__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__card-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin: 15px 20px 10px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-cockfighting__card-title a {
  color: var(--gold-color);
  text-decoration: none;
}

.page-cockfighting__card-title a:hover {
  text-decoration: underline;
}

.page-cockfighting__card-description {
  font-size: 1em;
  color: var(--text-main);
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-cockfighting__btn-text {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: auto; /* Pushes button to bottom */
  display: inline-block;
  padding: 10px 20px;
  transition: color 0.3s ease;
}

.page-cockfighting__btn-text:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-cockfighting__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  text-align: center;
}

.page-cockfighting__guide-item {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__guide-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__guide-title {
  font-size: 1.6em;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-cockfighting__strategy-section .page-cockfighting__content-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-cockfighting__strategy-section .page-cockfighting__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-cockfighting__strategy-section .page-cockfighting__text-block {
  flex: 1;
}

.page-cockfighting__strategy-section .page-cockfighting__image-block {
  flex: 1;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting__faq-item {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-red);
  border-bottom: 1px solid var(--border-color);
  list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  color: var(--gold-color);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-cockfighting__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--text-main);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom: none;
}

.page-cockfighting__cta-section {
  text-align: center;
  background-color: var(--deep-red);
  padding: 80px 0;
}

.page-cockfighting__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: var(--text-main);
}

.page-cockfighting__cta-button {
  margin: 10px;
}

.page-cockfighting__blog-news-section .page-cockfighting__cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-cockfighting__blog-card,
.page-cockfighting__news-card {
  text-align: left;
  padding-bottom: 0;
}

.page-cockfighting__blog-card .page-cockfighting__card-image,
.page-cockfighting__news-card .page-cockfighting__card-image {
  height: 200px;
  margin-bottom: 10px;
}

.page-cockfighting__blog-card .page-cockfighting__card-title,
.page-cockfighting__news-card .page-cockfighting__card-title {
  font-size: 1.2em;
  margin: 10px 15px;
  text-align: left;
}

.page-cockfighting__blog-card .page-cockfighting__card-description,
.page-cockfighting__news-card .page-cockfighting__card-description {
  font-size: 0.95em;
  padding: 0 15px;
  margin-bottom: 15px;
}

.page-cockfighting__view-all-buttons {
  text-align: center;
  margin-top: 50px;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2.2em;
  }

  .page-cockfighting__sub-title {
    font-size: 1.6em;
  }

  .page-cockfighting__hero-image-wrapper {
    height: 500px;
  }

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

  .page-cockfighting__overview-section .page-cockfighting__content-grid,
  .page-cockfighting__strategy-section .page-cockfighting__content-grid {
    flex-direction: column;
  }

  .page-cockfighting__strategy-section .page-cockfighting__content-grid--reverse {
    flex-direction: column-reverse;
  }

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

  .page-cockfighting__card-image {
    height: 220px;
  }

  .page-cockfighting__guide-image {
    max-width: 300px;
  }

  .page-cockfighting__faq-question {
    padding: 15px;
  }

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

  .page-cockfighting__blog-card .page-cockfighting__card-image,
  .page-cockfighting__news-card .page-cockfighting__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-cockfighting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-cockfighting__hero-image-wrapper {
    height: 300px;
    margin-bottom: 20px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }

  /* 产品展示图区域 (通用卡片网格) */
  .page-cockfighting__cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__card-image {
    height: 200px;
  }
  .page-cockfighting__blog-card .page-cockfighting__card-image,
  .page-cockfighting__news-card .page-cockfighting__card-image {
    height: 150px;
  }

  /* 通用图片与容器 */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-content,
  .page-cockfighting__text-block,
  .page-cockfighting__image-block,
  .page-cockfighting__guide-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__section {
    padding: 40px 0;
  }

  /* 按钮与按钮容器 */
  .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;
    margin: 10px 0 !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: 10px;
  }
  .page-cockfighting__cta-section .page-cockfighting__container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* 其他内容模块 */
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-cockfighting__sub-title {
    font-size: 1.4em;
  }
  .page-cockfighting__list-item {
    font-size: 1em;
  }
  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-cockfighting__faq-answer {
    font-size: 0.95em;
    padding: 15px;
  }
  .page-cockfighting__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
  .page-cockfighting__view-all-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }
  .page-cockfighting__overview-section .page-cockfighting__content-grid,
  .page-cockfighting__strategy-section .page-cockfighting__content-grid {
    gap: 20px;
  }
  .page-cockfighting__guide-steps {
    gap: 20px;
  }
}