/* style/cockfighting.css */

/* Base Styles for the page content */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text on light body background (#f4f4f4) */
  line-height: 1.6;
  background-color: transparent; /* Inherit from body or shared.css */
}

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

.page-cockfighting__section-title {
  font-size: 36px;
  color: #1A1A1A; /* Dark grey for main titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Gold accent */
  border-radius: 2px;
}

.page-cockfighting__sub-title {
  font-size: 28px;
  color: #1A1A1A;
  margin-top: 30px;
  margin-bottom: 20px;
  border-left: 5px solid #FFD700;
  padding-left: 15px;
}

.page-cockfighting__paragraph {
  font-size: 17px;
  margin-bottom: 15px;
  color: #333333;
}

.page-cockfighting__link {
  color: #FFD700; /* Gold links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-cockfighting__link:hover {
  color: #1A1A1A; /* Darker on hover */
  text-decoration: underline;
}

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

.page-cockfighting__list--ordered {
  list-style: decimal;
}

.page-cockfighting__list-item {
  margin-bottom: 10px;
  font-size: 17px;
  color: #333333;
}

.page-cockfighting__image-wrapper {
  margin: 30px auto;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px; /* Apply border-radius to img itself */
}

/* --- Buttons --- */
.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-cockfighting__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #1A1A1A; /* Dark text for contrast */
  border: 2px solid #FFD700;
}

.page-cockfighting__btn-primary:hover {
  background-color: #e6c200; /* Slightly darker gold */
  color: #ffffff;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary {
  background-color: #1A1A1A; /* Dark Grey */
  color: #FFD700; /* Gold text for contrast */
  border: 2px solid #1A1A1A;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #333333; /* Slightly lighter dark grey */
  color: #FFD700;
  border-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-small {
  display: inline-block;
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 5px;
  text-decoration: none;
  background-color: #1A1A1A;
  color: #FFD700;
  border: 1px solid #1A1A1A;
  transition: all 0.3s ease;
}

.page-cockfighting__btn-small:hover {
  background-color: #333333;
  color: #FFD700;
  border-color: #333333;
}

.page-cockfighting__btn-center {
  display: block;
  margin: 30px auto 0 auto;
  max-width: 300px;
}

/* --- Hero Section --- */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #FFD700, #1A1A1A); /* Gradient background */
  color: #ffffff; /* White text on dark/gold background */
}

.page-cockfighting__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-cockfighting__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-cockfighting__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: #FFD700; /* Gold title for impact */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-cockfighting__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- Cards --- */
.page-cockfighting__grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background: #ffffff; /* White background for cards */
  color: #333333; /* Dark text on white card */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__card-title {
  font-size: 22px;
  color: #1A1A1A;
  margin-bottom: 15px;
}

.page-cockfighting__card-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- FAQ Section --- */
.page-cockfighting__faq {
  background-color: #f9f9f9; /* Light grey background for FAQ */
  padding: 60px 0;
}

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

/* FAQ容器样式 */
.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #333333; /* Dark text on light background */
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff; /* White background for expanded answer */
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A1A1A; /* Dark background for question */
  color: #FFD700; /* Gold text for question */
  border: 1px solid #1A1A1A;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: #333333; /* Slightly lighter dark grey on hover */
  border-color: #333333;
}

.page-cockfighting__faq-question:active {
  background: #000000;
}

/* 问题标题样式 */
.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #FFD700; /* Gold text for question title */
}

/* 切换图标 */
.page-cockfighting__faq-toggle {
  font-size: 28px; /* Larger icon for better visibility */
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: #ffffff; /* White icon when active */
  transform: rotate(45deg); /* Rotate to form an 'X' or similar */
}

/* Center content utility */
.page-cockfighting__center-content {
  text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 32px;
  }
  .page-cockfighting__sub-title {
    font-size: 24px;
  }
  .page-cockfighting__hero-title {
    font-size: 40px;
  }
  .page-cockfighting__hero-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-cockfighting__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-cockfighting__hero-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    width: 100%;
  }

  /* 🚨 Mobile button specific styles */
  .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: 12px 20px !important;
    font-size: 16px !important;
  }

  .page-cockfighting__btn-center {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .page-cockfighting__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-cockfighting__sub-title {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-cockfighting__paragraph,
  .page-cockfighting__list-item {
    font-size: 16px;
  }

  /* 🚨 Mobile image specific styles */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 5px;
  }
  
  .page-cockfighting__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0;
    margin-right: 0;
    padding: 0; /* Remove padding if any, let container handle it */
  }

  .page-cockfighting__grid-cards {
    grid-template-columns: 1fr; /* Stack cards vertically on mobile */
    gap: 20px;
  }
  
  .page-cockfighting__card {
    padding: 20px;
  }

  /* FAQ mobile styles */
  .page-cockfighting__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-cockfighting__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-cockfighting__faq-toggle {
    margin-left: 10px;
    width: 26px;
    height: 26px;
    font-size: 24px;
  }
  
  .page-cockfighting__faq-answer {
    padding: 0 15px;
  }
  
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }
}