/* style/cockfighting.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General page styling */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom for aesthetic */
}

/* 🚨 Fixed header spacing - PC and mobile */
.page-cockfighting {
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

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

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

.page-cockfighting__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #0A2463; /* Main brand color for titles */
}

.page-cockfighting__section-title--light {
  color: #ffffff; /* White text for dark backgrounds */
}

.page-cockfighting__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__paragraph--light {
  color: #f0f0f0; /* Light text for dark backgrounds */
}

.page-cockfighting a {
  color: #0A2463;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-cockfighting a:hover {
  color: #E0A441;
}

/* Buttons */
.page-cockfighting__cta-button,
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  margin: 10px; /* Add margin for spacing between buttons */
}

.page-cockfighting__cta-button--primary,
.page-cockfighting__btn-primary {
  background: #E0A441; /* Gold for primary actions */
  color: #0A2463; /* Dark blue text for gold background for contrast */
  border: 2px solid #E0A441;
}

.page-cockfighting__cta-button--primary:hover,
.page-cockfighting__btn-primary:hover {
  background: #f0b85a;
  border-color: #f0b85a;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-button--secondary,
.page-cockfighting__btn-secondary {
  background: transparent;
  color: #E0A441; /* Gold text for secondary actions */
  border: 2px solid #E0A441;
}

.page-cockfighting__cta-button--secondary:hover,
.page-cockfighting__btn-secondary:hover {
  background: #E0A441;
  color: #0A2463; /* Dark blue text on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__text-link {
  color: #E0A441; /* Gold for text links on dark backgrounds */
}

.page-cockfighting__text-link:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #0A2463, #3A5A90); /* Dark blue gradient */
  padding: 80px 20px;
}

.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;
}

.page-cockfighting__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff; /* White text for dark hero background */
}

.page-cockfighting__main-title {
  font-size: 48px;
  margin-bottom: 15px;
  color: #E0A441; /* Gold for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

/* Intro Section */
.page-cockfighting__intro-section {
  background: #f9f9f9;
}

/* Quick Access Section */
.page-cockfighting__quick-access-section {
  background: #0A2463; /* Dark blue background */
  color: #ffffff;
  padding: 80px 0;
}

.page-cockfighting__grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-cockfighting__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-cockfighting__card {
  background: #ffffff; /* White background for cards on dark sections */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%; /* Ensure cards have equal height */
  color: #333333; /* Dark text for white cards */
}

.page-cockfighting__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #0A2463;
}

.page-cockfighting__card-description {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-cockfighting__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-cockfighting__more-links {
  margin-top: 30px;
  font-size: 16px;
  color: #f0f0f0;
}

.page-cockfighting__more-links a {
  color: #E0A441;
}

/* Game Details Section */
.page-cockfighting__game-details-section {
  background: #ffffff;
}

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

.page-cockfighting__game-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-cockfighting__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting__game-card-title {
  font-size: 22px;
  font-weight: bold;
  color: #0A2463;
  margin-bottom: 10px;
}

.page-cockfighting__game-card-description {
  font-size: 15px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  background: #0A2463;
  color: #ffffff;
  padding: 80px 0;
}

/* Security & Support Section */
.page-cockfighting__security-support-section {
  background: #f9f9f9;
}

.page-cockfighting__feature-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  color: #333333;
}

.page-cockfighting__feature-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-cockfighting__feature-title {
  font-size: 24px;
  font-weight: bold;
  color: #0A2463;
  margin-bottom: 10px;
}

.page-cockfighting__feature-description {
  font-size: 16px;
  color: #555555;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background: #ffffff;
  padding: 60px 0;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.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 20px; /* Adjust padding to match question */
  opacity: 0;
  background: #f9f9f9;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough to hold any content */
  padding: 20px !important; /* Adjust padding for expanded state */
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: #f5f5f5;
}

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

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #0A2463;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #E0A441; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: #0A2463; /* Dark blue when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* Blog Section */
.page-cockfighting__blog-section {
  background: #0A2463;
  color: #ffffff;
  padding: 80px 0;
}

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

.page-cockfighting__blog-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  color: #333333;
  display: flex;
  flex-direction: column;
}

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

.page-cockfighting__blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-cockfighting__blog-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #0A2463;
}

.page-cockfighting__blog-title a {
  color: #0A2463;
}

.page-cockfighting__blog-title a:hover {
  color: #E0A441;
  text-decoration: underline;
}

.page-cockfighting__blog-excerpt {
  font-size: 15px;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-cockfighting__blog-date {
  font-size: 14px;
  color: #888888;
  display: block;
  margin-top: auto;
}

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

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

@media (max-width: 768px) {
  /* 🚨 Mobile header spacing */
  .page-cockfighting {
    padding-top: var(--header-offset, 120px); /* This will be overridden by shared.css media query for --header-offset if needed */
  }

  .page-cockfighting__hero-section {
    padding: 60px 15px;
  }
  
  .page-cockfighting__main-title {
    font-size: 36px;
  }
  .page-cockfighting__hero-description {
    font-size: 16px;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__cta-button,
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
    margin: 5px 0; /* Adjust margin for vertical stack */
  }

  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__section-title {
    font-size: 28px;
  }
  .page-cockfighting__paragraph {
    font-size: 15px;
  }

  .page-cockfighting__grid,
  .page-cockfighting__game-grid,
  .page-cockfighting__blog-grid {
    grid-template-columns: 1fr; /* Single column layout for mobile */
    gap: 20px;
  }

  /* 🚨 Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container,
  .page-cockfighting__feature-box,
  .page-cockfighting__blog-card,
  .page-cockfighting__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__faq-question {
    padding: 15px;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 16px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }
}

/* Color Contrast Fixes (if needed) */
.page-cockfighting__dark-bg {
  background: #0A2463;
  color: #ffffff;
}

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

.page-cockfighting__medium-bg {
  background: #E0A441;
  color: #0A2463; /* Dark blue text on gold for good contrast */
}

/* Ensure all images maintain original color (no filter) */
.page-cockfighting img {
  filter: none !important;
}